| /kernel/linux/linux-5.10/lib/ |
| D | test_hmm.c | 99 static int dmirror_bounce_init(struct dmirror_bounce *bounce, in dmirror_bounce_init() argument 103 bounce->addr = addr; in dmirror_bounce_init() 104 bounce->size = size; in dmirror_bounce_init() 105 bounce->cpages = 0; in dmirror_bounce_init() 106 bounce->ptr = vmalloc(size); in dmirror_bounce_init() 107 if (!bounce->ptr) in dmirror_bounce_init() 112 static void dmirror_bounce_fini(struct dmirror_bounce *bounce) in dmirror_bounce_fini() argument 114 vfree(bounce->ptr); in dmirror_bounce_fini() 314 unsigned long end, struct dmirror_bounce *bounce) in dmirror_do_read() argument 319 ptr = bounce->ptr + ((start - bounce->addr) & PAGE_MASK); in dmirror_do_read() [all …]
|
| /kernel/linux/linux-6.6/lib/ |
| D | test_hmm.c | 127 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 …]
|
| /kernel/linux/linux-6.6/arch/s390/mm/ |
| D | maccess.c | 153 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()
|
| /kernel/linux/linux-5.10/block/ |
| D | bounce.c | 2 /* bounce buffer handling for block devices 128 * Simple bounce buffer support for highmem pages. Depending on the 138 * The bio of @from is created by bounce, so we can iterate in copy_to_high_bio_irq() 170 * free up bounce indirect pages used in bounce_end_io() 295 bool bounce = false; in __blk_queue_bounce() local 303 bounce = true; in __blk_queue_bounce() 305 if (!bounce) in __blk_queue_bounce() 366 * Data-less bio, nothing to bounce in blk_queue_bounce() 372 * for non-isa bounce case, just check if the bounce pfn is equal in blk_queue_bounce()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_ioctl.c | 148 static int vmw_fill_compat_cap(struct vmw_private *dev_priv, void *bounce, in vmw_fill_compat_cap() argument 152 (struct svga_3d_compat_cap *) bounce; in vmw_fill_compat_cap() 191 void *bounce; in vmw_get_cap_3d_ioctl() local 212 bounce = vzalloc(size); in vmw_get_cap_3d_ioctl() 213 if (unlikely(bounce == NULL)) { in vmw_get_cap_3d_ioctl() 214 DRM_ERROR("Failed to allocate bounce buffer for 3D caps.\n"); in vmw_get_cap_3d_ioctl() 220 uint32_t *bounce32 = (uint32_t *) bounce; in vmw_get_cap_3d_ioctl() 234 ret = vmw_fill_compat_cap(dev_priv, bounce, size); in vmw_get_cap_3d_ioctl() 239 memcpy(bounce, &fifo_mem[SVGA_FIFO_3D_CAPS], size); in vmw_get_cap_3d_ioctl() 242 ret = copy_to_user(buffer, bounce, size); in vmw_get_cap_3d_ioctl() [all …]
|
| /kernel/linux/linux-5.10/Documentation/i2c/ |
| D | dma-considerations.rst | 49 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.
|
| /kernel/linux/linux-6.6/Documentation/i2c/ |
| D | dma-considerations.rst | 49 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.
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/misc/ |
| D | brcm,kona-smc.txt | 1 Broadcom Secure Monitor Bounce buffer 3 This binding defines the location of the bounce buffer 9 - reg : Location and size of bounce buffer
|
| /kernel/linux/linux-6.6/block/ |
| D | bounce.c | 2 /* 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()
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/ |
| D | drm_cache.c | 39 /* 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()
|
| /kernel/linux/linux-6.6/fs/crypto/ |
| D | crypto.c | 56 * 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()
|
| /kernel/linux/linux-5.10/fs/crypto/ |
| D | crypto.c | 56 * 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(), 149 * A new bounce page is allocated, and the specified block(s) are encrypted into 150 * it. In the bounce page, the ciphertext block(s) will be located at the same 152 * other parts of the bounce page will be left uninitialized. However, normally 157 * The bounce page allocation is mempool-backed, so it will always succeed when 162 * Return: the new encrypted bounce page on success; an ERR_PTR() on failure 312 /* No need to allocate a bounce page pool if this FS won't use it. */ in fscrypt_initialize()
|
| /kernel/linux/linux-6.6/arch/arm/kernel/ |
| D | sigreturn_codes.S | 98 /* 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 */
|
| /kernel/linux/linux-5.10/arch/arm/kernel/ |
| D | sigreturn_codes.S | 98 /* 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 */
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_ioctl.c | 130 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()
|
| /kernel/linux/linux-5.10/arch/s390/mm/ |
| D | maccess.c | 224 void *bounce = (void *) addr; in xlate_dev_mem_ptr() local 231 bounce = (void *) __get_free_page(GFP_ATOMIC); in xlate_dev_mem_ptr() 232 if (bounce) in xlate_dev_mem_ptr() 233 memcpy_absolute(bounce, (void *) addr, size); in xlate_dev_mem_ptr() 237 return bounce; in xlate_dev_mem_ptr()
|
| /kernel/linux/linux-6.6/drivers/scsi/ |
| D | gvp11.c | 75 /* 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()
|
| /kernel/linux/linux-6.6/arch/arm64/include/asm/ |
| D | spectre.h | 44 * 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
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/firmware/ |
| D | brcm,kona-smc.yaml | 7 title: Broadcom Kona family Secure Monitor bounce buffer 10 A bounce buffer used for non-secure to secure communications.
|
| /kernel/linux/linux-5.10/drivers/scsi/ |
| D | gvp11.c | 61 /* use bounce buffer if the physical address is bad */ in dma_setup() 75 "GVP II SCSI Bounce Buffer"); in dma_setup() 85 /* check if the address of the bounce buffer is OK */ in dma_setup() 99 "GVP II SCSI Bounce Buffer"); in dma_setup() 111 /* copy to bounce buffer for a write */ in dma_setup() 158 /* copy from a bounce buffer, if necessary */ in dma_stop()
|
| D | a2091.c | 62 /* get the physical address of the bounce buffer */ in dma_setup() 65 /* the bounce buffer may not be in the first 16M of physmem */ in dma_setup() 75 /* copy to bounce buffer for a write */ in dma_setup() 139 /* copy from a bounce buffer, if necessary */ in dma_stop()
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | swiotlb.h | 18 #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
|
| /kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
| D | uffd-stress.c | 27 * 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()
|
| /kernel/linux/linux-5.10/drivers/misc/eeprom/ |
| D | at25.c | 135 u8 *bounce; in at25_ee_write() local 148 bounce = kmalloc(buf_size + at25->addrlen + 1, GFP_KERNEL); in at25_ee_write() 149 if (!bounce) in at25_ee_write() 160 u8 *cp = bounce; in at25_ee_write() 195 status = spi_write(at25->spi, bounce, in at25_ee_write() 241 kfree(bounce); in at25_ee_write()
|
| /kernel/linux/linux-5.10/arch/x86/kernel/ |
| D | pci-swiotlb.c | 48 * If SME is active then swiotlb will be set to 1 so that bounce in pci_swiotlb_detect_4gb() 75 "Using software bounce buffering for IO (SWIOTLB)\n"); in pci_swiotlb_late_init()
|