| /OK3568_Linux_fs/u-boot/common/ |
| H A D | bouncebuf.c | 14 static int addr_aligned(struct bounce_buffer *state) in addr_aligned() 34 int bounce_buffer_start(struct bounce_buffer *state, void *data, in bounce_buffer_start() 38 state->bounce_buffer = data; in bounce_buffer_start() 44 state->bounce_buffer = memalign(ARCH_DMA_MINALIGN, in bounce_buffer_start() 46 if (!state->bounce_buffer) in bounce_buffer_start() 50 memcpy(state->bounce_buffer, state->user_buffer, in bounce_buffer_start() 58 flush_dcache_range((unsigned long)state->bounce_buffer, in bounce_buffer_start() 59 (unsigned long)(state->bounce_buffer) + in bounce_buffer_start() 65 int bounce_buffer_stop(struct bounce_buffer *state) in bounce_buffer_stop() 69 invalidate_dcache_range((unsigned long)state->bounce_buffer, in bounce_buffer_stop() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/hantro/ |
| H A D | hantro_jpeg.c | 332 ctx->jpeg_enc.bounce_buffer.size = in hantro_jpeg_enc_init() 336 ctx->jpeg_enc.bounce_buffer.cpu = in hantro_jpeg_enc_init() 338 ctx->jpeg_enc.bounce_buffer.size, in hantro_jpeg_enc_init() 339 &ctx->jpeg_enc.bounce_buffer.dma, in hantro_jpeg_enc_init() 342 if (!ctx->jpeg_enc.bounce_buffer.cpu) in hantro_jpeg_enc_init() 351 ctx->jpeg_enc.bounce_buffer.size, in hantro_jpeg_enc_exit() 352 ctx->jpeg_enc.bounce_buffer.cpu, in hantro_jpeg_enc_exit() 353 ctx->jpeg_enc.bounce_buffer.dma, in hantro_jpeg_enc_exit()
|
| H A D | hantro_h1_jpeg_enc.c | 40 vepu_write_relaxed(vpu, ctx->jpeg_enc.bounce_buffer.dma, in hantro_h1_jpeg_enc_set_buffers() 42 vepu_write_relaxed(vpu, ctx->jpeg_enc.bounce_buffer.size, in hantro_h1_jpeg_enc_set_buffers() 153 ctx->jpeg_enc.bounce_buffer.cpu, bytesused); in hantro_jpeg_enc_done()
|
| H A D | rk3399_vpu_hw_jpeg_enc.c | 71 vepu_write_relaxed(vpu, ctx->jpeg_enc.bounce_buffer.dma, in rk3399_vpu_jpeg_enc_set_buffers() 73 vepu_write_relaxed(vpu, ctx->jpeg_enc.bounce_buffer.size, in rk3399_vpu_jpeg_enc_set_buffers()
|
| H A D | hantro_hw.h | 49 struct hantro_aux_buf bounce_buffer; member
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | bouncebuf.h | 40 struct bounce_buffer { struct 48 void *bounce_buffer; argument 64 int bounce_buffer_start(struct bounce_buffer *state, void *data, argument 70 int bounce_buffer_stop(struct bounce_buffer *state);
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/amazon/ena/ |
| H A D | ena_eth_com.c | 49 u8 *bounce_buffer) in ena_com_write_bounce_buffer_to_dev() argument 77 bounce_buffer, (llq_info->desc_list_entry_size) / 8); in ena_com_write_bounce_buffer_to_dev() 94 u8 *bounce_buffer = pkt_ctrl->curr_bounce_buf; in ena_com_write_header_to_bounce() local 109 if (unlikely(!bounce_buffer)) { in ena_com_write_header_to_bounce() 114 memcpy(bounce_buffer + header_offset, header_src, header_len); in ena_com_write_header_to_bounce() 122 u8 *bounce_buffer; in get_sq_desc_llq() local 125 bounce_buffer = pkt_ctrl->curr_bounce_buf; in get_sq_desc_llq() 127 if (unlikely(!bounce_buffer)) { in get_sq_desc_llq() 132 sq_desc = bounce_buffer + pkt_ctrl->idx * io_sq->desc_entry_size; in get_sq_desc_llq()
|
| /OK3568_Linux_fs/u-boot/board/synopsys/axs10x/ |
| H A D | nand.c | 105 struct bounce_buffer bbstate; in axs101_nand_write_buf() 112 writel(bbstate.bounce_buffer, &bd->buffer_ptr0); in axs101_nand_write_buf() 139 struct bounce_buffer bbstate; in axs101_nand_read_buf() 146 writel(bbstate.bounce_buffer, &bd->buffer_ptr0); in axs101_nand_read_buf()
|
| /OK3568_Linux_fs/u-boot/drivers/mmc/ |
| H A D | tegra_mmc.c | 72 struct bounce_buffer *bbstate) in tegra_mmc_prepare_data() 78 bbstate->bounce_buffer, bbstate->user_buffer, data->blocks, in tegra_mmc_prepare_data() 81 writel((u32)(unsigned long)bbstate->bounce_buffer, &priv->reg->sysad); in tegra_mmc_prepare_data() 159 struct bounce_buffer *bbstate) in tegra_mmc_send_cmd_bounced() 336 struct bounce_buffer bbstate; in tegra_mmc_send_cmd()
|
| H A D | dw_mmc.c | 116 void *bounce_buffer) in dwmci_prepare_data() argument 140 (ulong)bounce_buffer + (i * PAGE_SIZE)); in dwmci_prepare_data() 384 struct bounce_buffer bbstate; 418 bbstate.bounce_buffer); 526 struct bounce_buffer bbstate; 560 bbstate.bounce_buffer);
|
| H A D | mxsmmc.c | 97 struct bounce_buffer bbstate; in mxsmmc_send_cmd_dma() 114 priv->desc->cmd.address = (dma_addr_t)bbstate.bounce_buffer; in mxsmmc_send_cmd_dma()
|
| /OK3568_Linux_fs/kernel/drivers/tty/hvc/ |
| H A D | hvc_vio.c | 230 unsigned char bounce_buffer[16]; in udbg_hvc_putc() local 245 bounce_buffer[0] = c; in udbg_hvc_putc() 246 count = hvterm_raw_put_chars(0, bounce_buffer, 1); in udbg_hvc_putc()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | r852.c | 207 memcpy(dev->bounce_buffer, buf, R852_DMA_LEN); in r852_do_dma() 224 memcpy((void *)buf, dev->bounce_buffer, R852_DMA_LEN); in r852_do_dma() 899 dev->bounce_buffer = dma_alloc_coherent(&pci_dev->dev, R852_DMA_LEN, in r852_probe() 902 if (!dev->bounce_buffer) in r852_probe() 960 dma_free_coherent(&pci_dev->dev, R852_DMA_LEN, dev->bounce_buffer, in r852_probe() 994 dma_free_coherent(&pci_dev->dev, R852_DMA_LEN, dev->bounce_buffer, in r852_remove()
|
| H A D | r852.h | 117 uint8_t *bounce_buffer; /* virtual address of bounce buffer */ member
|
| /OK3568_Linux_fs/kernel/drivers/usb/host/ |
| H A D | imx21-hcd.c | 191 etd->bounce_buffer = NULL; in reset_etd() 276 etd->bounce_buffer = kmalloc(etd->len, in activate_etd() 280 etd->bounce_buffer = kmemdup(etd->cpu_buffer, in activate_etd() 284 if (!etd->bounce_buffer) { in activate_etd() 291 etd->bounce_buffer, in activate_etd() 340 kfree(etd->bounce_buffer); in activate_etd() 1057 if (etd->bounce_buffer) { in nonisoc_etd_done() 1058 memcpy(etd->cpu_buffer, etd->bounce_buffer, bytes_xfrd); in nonisoc_etd_done() 1068 kfree(etd->bounce_buffer); in nonisoc_etd_done() 1069 etd->bounce_buffer = NULL; in nonisoc_etd_done() [all …]
|
| H A D | imx21-hcd.h | 356 void *bounce_buffer; member
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | tegra_nand.c | 518 struct bounce_buffer bbstate, bbstate_oob; in nand_rw_page() 543 writel(virt_to_phys(bbstate.bounce_buffer), &info->reg->data_block_ptr); in nand_rw_page() 575 writel(virt_to_phys(bbstate_oob.bounce_buffer), &info->reg->tag_ptr); in nand_rw_page() 730 struct bounce_buffer bbstate_oob; in nand_rw_oob() 763 writel(virt_to_phys(bbstate_oob.bounce_buffer), &info->reg->tag_ptr); in nand_rw_oob()
|
| /OK3568_Linux_fs/u-boot/drivers/rkflash/ |
| H A D | sfc.c | 127 struct bounce_buffer bb; in sfc_request() 141 writel((unsigned long)bb.bounce_buffer, g_sfc_reg + SFC_DMA_ADDR); in sfc_request()
|
| /OK3568_Linux_fs/kernel/drivers/mmc/host/ |
| H A D | sdhci-esdhc-mcf.c | 330 host->bounce_buffer, length); in esdhc_mcf_copy_to_bounce_buffer() 332 esdhc_mcf_buffer_swap32((u32 *)host->bounce_buffer, in esdhc_mcf_copy_to_bounce_buffer() 466 if (!host->bounce_buffer) { in sdhci_esdhc_mcf_probe()
|
| /OK3568_Linux_fs/kernel/drivers/rpmsg/ |
| H A D | qcom_smd.c | 220 void *bounce_buffer; member 554 ptr = channel->bounce_buffer; in qcom_smd_channel_recv_single() 826 channel->bounce_buffer = kmalloc(bb_size, GFP_KERNEL); in qcom_smd_channel_open() 827 if (!channel->bounce_buffer) in qcom_smd_channel_open() 868 kfree(channel->bounce_buffer); in qcom_smd_channel_close() 869 channel->bounce_buffer = NULL; in qcom_smd_channel_close()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/via/ |
| H A D | via_dmablit.h | 47 unsigned char *bounce_buffer; member
|
| H A D | via_dmablit.c | 200 vfree(vsg->bounce_buffer); in via_free_sg_info() 201 vsg->bounce_buffer = NULL; in via_free_sg_info() 580 vsg->bounce_buffer = NULL; in via_build_sg_info()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/ibm/ |
| H A D | ibmveth.h | 148 void *bounce_buffer; member
|
| H A D | ibmveth.c | 608 adapter->bounce_buffer = in ibmveth_open() 610 if (!adapter->bounce_buffer) in ibmveth_open() 614 dma_map_single(&adapter->vdev->dev, adapter->bounce_buffer, in ibmveth_open() 631 kfree(adapter->bounce_buffer); in ibmveth_open() 708 kfree(adapter->bounce_buffer); in ibmveth_close() 1108 skb_copy_from_linear_data(skb, adapter->bounce_buffer, in ibmveth_start_xmit()
|
| /OK3568_Linux_fs/u-boot/drivers/spi/ |
| H A D | rockchip_sfc.c | 551 struct bounce_buffer bb; in rockchip_sfc_xfer_data_dma() 570 ret = rockchip_sfc_fifo_transfer_dma(sfc, (dma_addr_t)bb.bounce_buffer, len); in rockchip_sfc_xfer_data_dma()
|