Home
last modified time | relevance | path

Searched full:bounce (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/openbmc/u-boot/include/
H A Dbouncebuf.h3 * Generic bounce buffer implementation
15 * The source buffer is copied into the bounce buffer (if unaligned, otherwise
17 * requiring the aligned transfer happens, then the bounce buffer is lost upon
24 * operation requiring the aligned transfer happens, then the bounce buffer is
31 * The source buffer is copied into the bounce buffer (if unaligned, otherwise
33 * requiring the aligned transfer happens, then the bounce buffer is copied
57 * bounce_buffer_start() -- Start the bounce buffer session
66 * bounce_buffer_stop() -- Finish the bounce buffer session
/openbmc/linux/lib/
H A Dtest_hmm.c127 static int dmirror_bounce_init(struct dmirror_bounce *bounce, in dmirror_bounce_init() argument
131 bounce->addr = addr; in dmirror_bounce_init()
132 bounce->size = size; in dmirror_bounce_init()
133 bounce->cpages = 0; in dmirror_bounce_init()
134 bounce->ptr = vmalloc(size); in dmirror_bounce_init()
135 if (!bounce->ptr) in dmirror_bounce_init()
155 static void dmirror_bounce_fini(struct dmirror_bounce *bounce) in dmirror_bounce_fini() argument
157 vfree(bounce->ptr); in dmirror_bounce_fini()
361 unsigned long end, struct dmirror_bounce *bounce) in dmirror_do_read() argument
366 ptr = bounce->ptr + ((start - bounce->addr) & PAGE_MASK); in dmirror_do_read()
[all …]
/openbmc/qemu/hw/nvme/
H A Ddif.c413 g_free(ctx->data.bounce); in nvme_dif_rw_cb()
416 g_free(ctx->mdata.bounce); in nvme_dif_rw_cb()
447 status = nvme_dif_mangle_mdata(ns, ctx->mdata.bounce, ctx->mdata.iov.size, in nvme_dif_rw_check_cb()
454 status = nvme_dif_check(ns, ctx->data.bounce, ctx->data.iov.size, in nvme_dif_rw_check_cb()
455 ctx->mdata.bounce, ctx->mdata.iov.size, prinfo, in nvme_dif_rw_check_cb()
462 status = nvme_bounce_data(n, ctx->data.bounce, ctx->data.iov.size, in nvme_dif_rw_check_cb()
473 status = nvme_bounce_mdata(n, ctx->mdata.bounce, ctx->mdata.iov.size, in nvme_dif_rw_check_cb()
501 ctx->mdata.bounce = g_malloc(mlen); in nvme_dif_rw_mdata_in_cb()
504 qemu_iovec_add(&ctx->mdata.iov, ctx->mdata.bounce, mlen); in nvme_dif_rw_mdata_in_cb()
580 ctx->mdata.bounce = g_malloc0(mlen); in nvme_dif_rw()
[all …]
/openbmc/qemu/block/
H A Dblkio.c27 * Allocated bounce buffers are kept in a list sorted by buffer address.
32 /* The bounce buffer */
61 /* Bounce buffer pool */
64 /* Sorted list of allocated bounce buffers */
67 /* Queue for coroutines waiting for bounce buffer space */
86 /* There can be no allocated bounce buffers during resize */ in blkio_resize_bounce_pool()
123 blkio_do_alloc_bounce_buffer(BDRVBlkioState *s, BlkioBounceBuf *bounce, in blkio_do_alloc_bounce_buffer() argument
138 QLIST_INSERT_BEFORE(cur, bounce, next); in blkio_do_alloc_bounce_buffer()
139 bounce->buf.iov_base = addr; in blkio_do_alloc_bounce_buffer()
140 bounce->buf.iov_len = bytes; in blkio_do_alloc_bounce_buffer()
[all …]
/openbmc/linux/arch/s390/mm/
H A Dmaccess.c153 void *bounce = ptr; in xlate_dev_mem_ptr() local
165 bounce = (void *)__get_free_page(GFP_ATOMIC); in xlate_dev_mem_ptr()
166 if (!bounce) in xlate_dev_mem_ptr()
172 memcpy(bounce, ptr, size); in xlate_dev_mem_ptr()
176 memcpy(bounce, ptr, size); in xlate_dev_mem_ptr()
178 memcpy(bounce, ptr, size); in xlate_dev_mem_ptr()
183 return bounce; in xlate_dev_mem_ptr()
/openbmc/linux/Documentation/i2c/
H A Ddma-considerations.rst49 bounce buffer. But you don't need to care about that detail, just use the
50 returned buffer. If NULL is returned, the threshold was not met or a bounce
54 function ensures a potentially used bounce buffer is freed::
62 The bounce buffer handling from the core is generic and simple. It will always
63 allocate a new bounce buffer. If you want a more sophisticated handling (e.g.
/openbmc/linux/block/
H A Dbounce.c2 /* bounce buffer handling for block devices
72 * Simple bounce buffer support for highmem pages. Depending on the
81 * The bio of @from is created by bounce, so we can iterate in copy_to_high_bio_irq()
110 * free up bounce indirect pages used in bounce_end_io()
209 bool bounce = false; in __blk_queue_bounce() local
216 bounce = true; in __blk_queue_bounce()
218 if (!bounce) in __blk_queue_bounce()
H A Dblk-crypto-fallback.c28 "Number of preallocated bounce pages for the blk-crypto crypto API fallback");
256 * Allocate a bounce bio for encryption, encrypt the input bio using crypto API,
257 * and replace *bio_ptr with the bounce bio. May split input bio if it's too
284 /* Allocate bounce bio for encryption */ in blk_crypto_fallback_encrypt_bio()
315 /* Encrypt each page in the bounce bio */ in blk_crypto_fallback_encrypt_bio()
477 * bounce bio for the first part, encrypts it, and updates bio_ptr to point to
478 * the bounce bio.
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_cache.c39 /* A small bounce buffer that fits on the stack. */
194 * ttm_populate_and_map_pages(), which bounce buffers so much in in drm_need_swiotlb()
226 * Bounce size is not performance tuned, but using a in memcpy_fallback()
227 * bounce buffer like this is significantly faster than in memcpy_fallback()
230 char bounce[MEMCPY_BOUNCE_SIZE]; in memcpy_fallback() local
235 memcpy_fromio(bounce, _src, MEMCPY_BOUNCE_SIZE); in memcpy_fallback()
236 memcpy_toio(_dst, bounce, MEMCPY_BOUNCE_SIZE); in memcpy_fallback()
242 memcpy_fromio(bounce, _src, MEMCPY_BOUNCE_SIZE); in memcpy_fallback()
243 memcpy_toio(_dst, bounce, MEMCPY_BOUNCE_SIZE); in memcpy_fallback()
/openbmc/linux/fs/crypto/
H A Dcrypto.c56 * fscrypt_free_bounce_page() - free a ciphertext bounce page
57 * @bounce_page: the bounce page to free, or NULL
59 * Free a bounce page that was allocated by fscrypt_encrypt_pagecache_blocks(),
157 * A new bounce page is allocated, and the specified block(s) are encrypted into
158 * it. In the bounce page, the ciphertext block(s) will be located at the same
160 * other parts of the bounce page will be left uninitialized. However, normally
165 * The bounce page allocation is mempool-backed, so it will always succeed when
170 * Return: the new encrypted bounce page on success; an ERR_PTR() on failure
327 /* No need to allocate a bounce page pool if this FS won't use it. */ in fscrypt_initialize()
/openbmc/linux/arch/arm/kernel/
H A Dsigreturn_codes.S98 /* ARM sigreturn restorer FDPIC bounce code snippet */
108 /* Thumb sigreturn restorer FDPIC bounce code snippet */
115 /* ARM sigreturn_rt restorer FDPIC bounce code snippet */
125 /* Thumb sigreturn_rt restorer FDPIC bounce code snippet */
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ioctl.c130 void *bounce = NULL; in vmw_get_cap_3d_ioctl() local
148 bounce = vzalloc(size); in vmw_get_cap_3d_ioctl()
149 if (unlikely(bounce == NULL)) { in vmw_get_cap_3d_ioctl()
150 DRM_ERROR("Failed to allocate bounce buffer for 3D caps.\n"); in vmw_get_cap_3d_ioctl()
154 ret = vmw_devcaps_copy(dev_priv, vmw_fp->gb_aware, bounce, size); in vmw_get_cap_3d_ioctl()
158 ret = copy_to_user(buffer, bounce, size); in vmw_get_cap_3d_ioctl()
162 vfree(bounce); in vmw_get_cap_3d_ioctl()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/tipcutils/tipcutils/
H A D0002-replace-non-standard-uint-with-unsigned-int.patch32 __u32 bounce;
35 -static void master_to_client(uint cmd, uint msglen, uint msgcnt, uint bounce)
36 …d master_to_client(unsigned int cmd, unsigned int msglen, unsigned int msgcnt, unsigned int bounce)
40 @@ -93,7 +93,7 @@ static void master_to_client(uint cmd, uint msglen, uint msgcnt, uint bounce)
44 -static void client_from_master(uint *cmd, uint *msglen, uint *msgcnt, uint *bounce)
45 …nt_from_master(unsigned int *cmd, unsigned int *msglen, unsigned int *msgcnt, unsigned int *bounce)
/openbmc/linux/arch/arm64/include/asm/
H A Dspectre.h44 * Bounce via a slot in the hypervisor text mapping of
50 * Bounce via a slot in a special mapping of __bp_harden_hyp_vecs
56 * Bounce via a slot in a special mapping of __bp_harden_hyp_vecs
/openbmc/linux/drivers/scsi/
H A Dgvp11.c75 /* use bounce buffer if the physical address is bad */ in dma_setup()
95 "GVP II SCSI Bounce Buffer"); in dma_setup()
106 /* copy to bounce buffer for a write */ in dma_setup()
120 "cannot map bounce buffer %p\n", in dma_setup()
141 "GVP II SCSI Bounce Buffer"); in dma_setup()
149 /* copy to bounce buffer for a write */ in dma_setup()
204 /* copy from a bounce buffer, if necessary */ in dma_stop()
H A Da2091.c87 /* copy to bounce buffer for a write */ in dma_setup()
97 dev_warn(hdata->dev, "cannot map bounce buffer %p\n", in dma_setup()
102 /* the bounce buffer may not be in the first 16M of physmem */ in dma_setup()
172 /* copy from a bounce buffer, if necessary */ in dma_stop()
/openbmc/linux/Documentation/devicetree/bindings/firmware/
H A Dbrcm,kona-smc.yaml7 title: Broadcom Kona family Secure Monitor bounce buffer
10 A bounce buffer used for non-secure to secure communications.
/openbmc/u-boot/lib/efi_loader/
H A DKconfig30 bool "EFI Applications use bounce buffers for DMA operations"
35 hardware we can create a bounce buffer so that payloads don't have to
/openbmc/linux/include/linux/
H A Dswiotlb.h18 #define SWIOTLB_FORCE (1 << 1) /* force bounce buffering */
75 * address for bounce buffer operation.
162 * Check if @paddr points into a bounce buffer.
165 * * %true if @paddr points into a bounce buffer
/openbmc/linux/tools/testing/selftests/mm/
H A Duffd-stress.c27 * When all threads of type 3 completed the transfer, one bounce is
29 * respawned and so the bounce is immediately restarted in the
306 * bounce though: that racing UFFDIO_COPY would in userfaultfd_stress()
311 * next bounce, effectively leaving a zeropage in the in userfaultfd_stress()
325 /* bounce pass */ in userfaultfd_stress()
350 /* prepare next bounce */ in userfaultfd_stress()
/openbmc/linux/drivers/net/ethernet/amazon/ena/
H A Dena_eth_com.c71 /* Make sure everything was written into the bounce buffer before in ena_com_write_bounce_buffer_to_dev()
72 * writing the bounce buffer to the device in ena_com_write_bounce_buffer_to_dev()
111 netdev_err(ena_com_io_sq_to_ena_dev(io_sq)->net_device, "Bounce buffer is NULL\n"); in ena_com_write_header_to_bounce()
129 netdev_err(ena_com_io_sq_to_ena_dev(io_sq)->net_device, "Bounce buffer is NULL\n"); in get_sq_desc_llq()
149 /* bounce buffer was used, so write it and get a new one */ in ena_com_close_bounce_buffer()
155 "Failed to write bounce buffer to device\n"); in ena_com_close_bounce_buffer()
189 "Failed to write bounce buffer to device\n"); in ena_com_sq_update_llq_tail()
/openbmc/linux/arch/x86/kernel/
H A Dpci-dma.c51 * Set swiotlb to 1 so that bounce buffers are allocated and used for in pci_swiotlb_detect()
59 * bounce buffers as the hypervisor can't access arbitrary VM memory in pci_swiotlb_detect()
183 pr_info("PCI-DMA: Using software bounce buffering for IO (SWIOTLB)\n"); in pci_iommu_init()
/openbmc/linux/kernel/dma/
H A Dswiotlb.c163 pr_info("SWIOTLB bounce buffer size roundup to %luMB", in swiotlb_adjust_nareas()
226 pr_info("SWIOTLB bounce buffer size adjusted to %luMB", size >> 20); in swiotlb_adjust_size()
326 * By default allocate the bounce buffer memory from low memory, but in swiotlb_memblock_alloc()
351 * Statically reserve bounce buffer space and initialize bounce buffer data
393 pr_info("SWIOTLB bounce buffer size adjusted %lu -> %lu slabs", in swiotlb_init_remap()
839 * original address and the bounce buffer address. High bits are preserved by
841 * padding bytes before the bounce buffer.
855 * Bounce: copy the swiotlb buffer from or back to the original dma location
987 * @alloc_size: Total requested size of the bounce buffer,
1109 * @alloc_size: Total requested size of the bounce buffer,
[all …]
/openbmc/linux/Documentation/devicetree/bindings/leds/
H A Dleds-el15203000.txt20 - bounce pattern
21 - inversed bounce pattern
/openbmc/linux/Documentation/block/
H A Dinline-encryption.rst149 on it being unmodified. Instead, blk-crypto-fallback allocates bounce pages,
150 fills a new bio with those bounce pages, encrypts the data into those bounce
151 pages, and submits that "bounce" bio. When the bounce bio completes,
153 large, multiple bounce bios may be required; see the code for details.

12345678910>>...14