Searched refs:bounce_buffer (Results 1 – 8 of 8) sorted by relevance
| /openbmc/u-boot/common/ |
| H A D | bouncebuf.c | 13 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 …]
|
| /openbmc/u-boot/include/ |
| H A D | bouncebuf.h | 39 struct bounce_buffer { struct 47 void *bounce_buffer; argument 63 int bounce_buffer_start(struct bounce_buffer *state, void *data, argument 69 int bounce_buffer_stop(struct bounce_buffer *state);
|
| /openbmc/u-boot/drivers/mmc/ |
| H A D | tegra_mmc.c | 69 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()
|
| H A D | dw_mmc.c | 48 void *bounce_buffer) in dwmci_prepare_data() argument 75 (ulong)bounce_buffer + (i * PAGE_SIZE)); in dwmci_prepare_data() 236 struct bounce_buffer bbstate; 264 bbstate.bounce_buffer);
|
| H A D | mxsmmc.c | 96 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()
|
| /openbmc/u-boot/drivers/mtd/nand/raw/ |
| H A D | tegra_nand.c | 517 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()
|
| /openbmc/qemu/block/ |
| H A D | block-copy.c | 507 void *bounce_buffer = NULL; in block_copy_do_copy() local 553 bounce_buffer = qemu_blockalign(s->source->bs, nbytes); in block_copy_do_copy() 555 ret = bdrv_co_pread(s->source, offset, nbytes, bounce_buffer, 0); in block_copy_do_copy() 562 ret = bdrv_co_pwrite(s->target, offset, nbytes, bounce_buffer, in block_copy_do_copy() 571 qemu_vfree(bounce_buffer); in block_copy_do_copy()
|
| H A D | io.c | 1178 void *bounce_buffer = NULL; in bdrv_co_do_copy_on_readv() local 1254 if (!bounce_buffer) { in bdrv_co_do_copy_on_readv() 1259 bounce_buffer = qemu_try_blockalign(bs, bounce_buffer_len); in bdrv_co_do_copy_on_readv() 1260 if (!bounce_buffer) { in bdrv_co_do_copy_on_readv() 1265 qemu_iovec_init_buf(&local_qiov, bounce_buffer, pnum); in bdrv_co_do_copy_on_readv() 1275 buffer_is_zero(bounce_buffer, pnum)) { in bdrv_co_do_copy_on_readv() 1301 bounce_buffer + skip_bytes, in bdrv_co_do_copy_on_readv() 1322 qemu_vfree(bounce_buffer); in bdrv_co_do_copy_on_readv()
|