Home
last modified time | relevance | path

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

/external/u-boot/common/
Dbouncebuf.c13 static int addr_aligned(struct bounce_buffer *state) in addr_aligned()
33 int bounce_buffer_start(struct bounce_buffer *state, void *data, in bounce_buffer_start()
37 state->bounce_buffer = data; in bounce_buffer_start()
43 state->bounce_buffer = memalign(ARCH_DMA_MINALIGN, in bounce_buffer_start()
45 if (!state->bounce_buffer) in bounce_buffer_start()
49 memcpy(state->bounce_buffer, state->user_buffer, in bounce_buffer_start()
57 flush_dcache_range((unsigned long)state->bounce_buffer, in bounce_buffer_start()
58 (unsigned long)(state->bounce_buffer) + in bounce_buffer_start()
64 int bounce_buffer_stop(struct bounce_buffer *state) in bounce_buffer_stop()
68 invalidate_dcache_range((unsigned long)state->bounce_buffer, in bounce_buffer_stop()
[all …]
/external/u-boot/include/
Dbouncebuf.h39 struct bounce_buffer { struct
47 void *bounce_buffer; member
63 int bounce_buffer_start(struct bounce_buffer *state, void *data, argument
69 int bounce_buffer_stop(struct bounce_buffer *state);
/external/u-boot/board/synopsys/axs10x/
Dnand.c104 struct bounce_buffer bbstate; in axs101_nand_write_buf()
111 writel(bbstate.bounce_buffer, &bd->buffer_ptr0); in axs101_nand_write_buf()
138 struct bounce_buffer bbstate; in axs101_nand_read_buf()
145 writel(bbstate.bounce_buffer, &bd->buffer_ptr0); in axs101_nand_read_buf()
/external/u-boot/drivers/mmc/
Dtegra_mmc.c69 struct bounce_buffer *bbstate) in tegra_mmc_prepare_data()
75 bbstate->bounce_buffer, bbstate->user_buffer, data->blocks, in tegra_mmc_prepare_data()
78 writel((u32)(unsigned long)bbstate->bounce_buffer, &priv->reg->sysad); in tegra_mmc_prepare_data()
156 struct bounce_buffer *bbstate) in tegra_mmc_send_cmd_bounced()
333 struct bounce_buffer bbstate; in tegra_mmc_send_cmd()
Ddw_mmc.c47 void *bounce_buffer) in dwmci_prepare_data() argument
71 (ulong)bounce_buffer + (i * PAGE_SIZE)); in dwmci_prepare_data()
204 struct bounce_buffer bbstate;
232 bbstate.bounce_buffer);
Dmxsmmc.c96 struct bounce_buffer bbstate; in mxsmmc_send_cmd_dma()
113 priv->desc->cmd.address = (dma_addr_t)bbstate.bounce_buffer; in mxsmmc_send_cmd_dma()
/external/u-boot/drivers/mtd/nand/
Dtegra_nand.c517 struct bounce_buffer bbstate, bbstate_oob; in nand_rw_page()
542 writel(virt_to_phys(bbstate.bounce_buffer), &info->reg->data_block_ptr); in nand_rw_page()
574 writel(virt_to_phys(bbstate_oob.bounce_buffer), &info->reg->tag_ptr); in nand_rw_page()
729 struct bounce_buffer bbstate_oob; in nand_rw_oob()
762 writel(virt_to_phys(bbstate_oob.bounce_buffer), &info->reg->tag_ptr); in nand_rw_oob()