Home
last modified time | relevance | path

Searched refs:bounce_buffer (Results 1 – 10 of 10) sorted by relevance

/rk3399_rockchip-uboot/common/
H A Dbouncebuf.c14 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 …]
/rk3399_rockchip-uboot/include/
H A Dbouncebuf.h40 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);
/rk3399_rockchip-uboot/board/synopsys/axs10x/
H A Dnand.c105 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()
/rk3399_rockchip-uboot/drivers/mmc/
H A Dtegra_mmc.c72 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 Ddw_mmc.c118 void *bounce_buffer) in dwmci_prepare_data() argument
142 (ulong)bounce_buffer + (i * PAGE_SIZE)); in dwmci_prepare_data()
370 struct bounce_buffer bbstate;
404 bbstate.bounce_buffer);
515 struct bounce_buffer bbstate;
554 bbstate.bounce_buffer);
H A Dmxsmmc.c97 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()
/rk3399_rockchip-uboot/drivers/rkflash/
H A Dsfc.c127 struct bounce_buffer bb; in sfc_request()
141 writel((unsigned long)bb.bounce_buffer, g_sfc_reg + SFC_DMA_ADDR); in sfc_request()
/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Dtegra_nand.c518 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()
/rk3399_rockchip-uboot/drivers/spi/
H A Drockchip_sfc.c629 struct bounce_buffer bb; in rockchip_sfc_xfer_data_dma()
648 ret = rockchip_sfc_fifo_transfer_dma(sfc, (dma_addr_t)bb.bounce_buffer, len); in rockchip_sfc_xfer_data_dma()
/rk3399_rockchip-uboot/drivers/nvme/
H A Dnvme.c758 struct bounce_buffer bb; in nvme_blk_rw()
770 temp_buffer = (unsigned long)bb.bounce_buffer; in nvme_blk_rw()