/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/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_eth_com.c | 48 u8 *bounce_buffer) in ena_com_write_bounce_buffer_to_dev() argument 77 __iowrite64_copy(io_sq->desc_addr.pbuf_dev_addr + dst_offset, bounce_buffer, in ena_com_write_bounce_buffer_to_dev() 95 u8 *bounce_buffer = pkt_ctrl->curr_bounce_buf; in ena_com_write_header_to_bounce() local 110 if (unlikely(!bounce_buffer)) { in ena_com_write_header_to_bounce() 115 memcpy(bounce_buffer + header_offset, header_src, header_len); in ena_com_write_header_to_bounce() 123 u8 *bounce_buffer; in get_sq_desc_llq() local 126 bounce_buffer = pkt_ctrl->curr_bounce_buf; in get_sq_desc_llq() 128 if (unlikely(!bounce_buffer)) { in get_sq_desc_llq() 133 sq_desc = bounce_buffer + pkt_ctrl->idx * io_sq->desc_entry_size; in get_sq_desc_llq()
|
/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/linux/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()
|
/openbmc/linux/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() 897 dev->bounce_buffer = dma_alloc_coherent(&pci_dev->dev, R852_DMA_LEN, in r852_probe() 900 if (!dev->bounce_buffer) in r852_probe() 958 dma_free_coherent(&pci_dev->dev, R852_DMA_LEN, dev->bounce_buffer, in r852_probe() 992 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
|
/openbmc/linux/include/linux/iio/ |
H A D | iio-opaque.h | 63 void *bounce_buffer; member
|
/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/linux/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()
|
H A D | sdhci.c | 662 if (host->bounce_buffer) { in sdhci_pre_dma_transfer() 678 host->bounce_buffer, length); in sdhci_pre_dma_transfer() 889 if (host->bounce_buffer) in sdhci_sdma_address() 3007 if (host->flags & SDHCI_REQ_USE_DMA && !host->bounce_buffer) in sdhci_pre_req() 3141 if (host->bounce_buffer) { in sdhci_request_done() 3164 host->bounce_buffer, in sdhci_request_done() 4181 host->bounce_buffer = devm_kmalloc(mmc_dev(mmc), in sdhci_allocate_bounce_buffer() 4184 if (!host->bounce_buffer) { in sdhci_allocate_bounce_buffer() 4196 host->bounce_buffer, in sdhci_allocate_bounce_buffer() 4201 devm_kfree(mmc_dev(mmc), host->bounce_buffer); in sdhci_allocate_bounce_buffer() [all …]
|
H A D | sdhci.h | 493 char *bounce_buffer; /* For packing SDMA reads/writes */ member
|
/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 | 1171 void *bounce_buffer = NULL; in bdrv_co_do_copy_on_readv() local 1247 if (!bounce_buffer) { in bdrv_co_do_copy_on_readv() 1252 bounce_buffer = qemu_try_blockalign(bs, bounce_buffer_len); in bdrv_co_do_copy_on_readv() 1253 if (!bounce_buffer) { in bdrv_co_do_copy_on_readv() 1258 qemu_iovec_init_buf(&local_qiov, bounce_buffer, pnum); in bdrv_co_do_copy_on_readv() 1268 buffer_is_zero(bounce_buffer, pnum)) { in bdrv_co_do_copy_on_readv() 1294 bounce_buffer + skip_bytes, in bdrv_co_do_copy_on_readv() 1315 qemu_vfree(bounce_buffer); in bdrv_co_do_copy_on_readv()
|
/openbmc/linux/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()
|
/openbmc/linux/drivers/iio/ |
H A D | industrialio-buffer.c | 1913 iio_dev_opaque->bounce_buffer, in iio_push_to_buffers_with_ts_unaligned() 1917 iio_dev_opaque->bounce_buffer = bb; in iio_push_to_buffers_with_ts_unaligned() 1920 memcpy(iio_dev_opaque->bounce_buffer, data, data_sz); in iio_push_to_buffers_with_ts_unaligned() 1922 iio_dev_opaque->bounce_buffer, in iio_push_to_buffers_with_ts_unaligned()
|