/kernel/linux/linux-6.6/lib/ |
H A 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() 366 ptr = bounce in dmirror_do_read() 360 dmirror_do_read(struct dmirror *dmirror, unsigned long start, unsigned long end, struct dmirror_bounce *bounce) dmirror_do_read() argument 388 struct dmirror_bounce bounce; dmirror_read() local 426 dmirror_do_write(struct dmirror *dmirror, unsigned long start, unsigned long end, struct dmirror_bounce *bounce) dmirror_do_write() argument 454 struct dmirror_bounce bounce; dmirror_write() local 784 struct dmirror_bounce bounce; dmirror_exclusive() local 969 struct dmirror_bounce bounce; dmirror_migrate_to_device() local [all...] |
/kernel/linux/linux-5.10/lib/ |
H A 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() 319 ptr = bounce in dmirror_do_read() 313 dmirror_do_read(struct dmirror *dmirror, unsigned long start, unsigned long end, struct dmirror_bounce *bounce) dmirror_do_read() argument 344 struct dmirror_bounce bounce; dmirror_read() local 382 dmirror_do_write(struct dmirror *dmirror, unsigned long start, unsigned long end, struct dmirror_bounce *bounce) dmirror_do_write() argument 413 struct dmirror_bounce bounce; dmirror_write() local 673 struct dmirror_bounce bounce; dmirror_migrate() local [all...] |
/kernel/linux/linux-6.6/arch/s390/mm/ |
H A 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/arch/s390/mm/ |
H A 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-5.10/drivers/gpu/drm/vmwgfx/ |
H A 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, siz in vmw_get_cap_3d_ioctl() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A 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() 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-5.10/drivers/misc/eeprom/ |
H A 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-6.6/drivers/gpu/drm/vmwgfx/ |
H A 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()
|
H A D | vmwgfx_devcaps.c | 55 static int vmw_fill_compat_cap(struct vmw_private *dev_priv, void *bounce, in vmw_fill_compat_cap() argument 59 (struct svga_3d_compat_cap *) bounce; in vmw_fill_compat_cap()
|
/kernel/linux/linux-6.6/drivers/misc/eeprom/ |
H A D | at25.c | 205 u8 *bounce; in at25_ee_write() local 218 bounce = kmalloc(buf_size + at25->addrlen + 1, GFP_KERNEL); in at25_ee_write() 219 if (!bounce) in at25_ee_write() 231 u8 *cp = bounce; in at25_ee_write() 268 status = spi_write(at25->spi, bounce, in at25_ee_write() 315 kfree(bounce); in at25_ee_write()
|
/kernel/linux/linux-6.6/drivers/char/ |
H A D | mem.c | 110 char *bounce; in read_mem() local 134 bounce = kmalloc(PAGE_SIZE, GFP_KERNEL); in read_mem() 135 if (!bounce) in read_mem() 163 probe = copy_from_kernel_nofault(bounce, ptr, sz); in read_mem() 168 remaining = copy_to_user(buf, bounce, sz); in read_mem() 181 kfree(bounce); in read_mem() 187 kfree(bounce); in read_mem()
|
/kernel/linux/linux-6.6/block/ |
H A D | blk-settings.c | 55 lim->bounce = BLK_BOUNCE_NONE; in blk_set_default_limits() 89 * blk_queue_bounce_limit - set bounce buffer limit for queue 91 * @bounce: bounce limit to enforce 98 void blk_queue_bounce_limit(struct request_queue *q, enum blk_bounce bounce) in blk_queue_bounce_limit() argument 100 q->limits.bounce = bounce; in blk_queue_bounce_limit() 565 t->bounce = max(t->bounce, b->bounce); in blk_stack_limits() [all...] |
H A 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/fs/erofs/ |
H A D | decompressor_deflate.c | 9 u8 bounce[PAGE_SIZE]; member 202 memcpy(strm->bounce, strm->z.next_in, strm->z.avail_in); in z_erofs_deflate_decompress() 203 strm->z.next_in = strm->bounce; in z_erofs_deflate_decompress()
|
H A D | decompressor_lzma.c | 10 u8 bounce[PAGE_SIZE]; member 252 memcpy(strm->bounce, strm->buf.in, strm->buf.in_size); in z_erofs_lzma_decompress() 253 strm->buf.in = strm->bounce; in z_erofs_lzma_decompress()
|
/kernel/linux/linux-5.10/arch/loongarch/kvm/intc/ |
H A D | ls3a_ext_irq.h | 60 union bounce { union 64 } bounce; member
|
/kernel/linux/linux-5.10/drivers/char/ |
H A D | mem.c | 121 char *bounce; in read_mem() local 145 bounce = kmalloc(PAGE_SIZE, GFP_KERNEL); in read_mem() 146 if (!bounce) in read_mem() 174 probe = copy_from_kernel_nofault(bounce, ptr, sz); in read_mem() 179 remaining = copy_to_user(buf, bounce, sz); in read_mem() 192 kfree(bounce); in read_mem() 198 kfree(bounce); in read_mem()
|
/kernel/linux/linux-5.10/block/ |
H A 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 pf in blk_queue_bounce() [all...] |
/kernel/linux/linux-6.6/kernel/module/ |
H A D | sysfs.c | 40 char bounce[MODULE_SECT_READ_SIZE + 1]; in module_sect_read() local 52 * the NUL, we have to use a bounce buffer. in module_sect_read() 54 wrote = scnprintf(bounce, sizeof(bounce), "0x%px\n", in module_sect_read() 58 memcpy(buf, bounce, count); in module_sect_read()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
H A D | r852.c | 174 int bounce = 0; in r852_do_dma() local 191 /* if incoming buffer is not page aligned, we should do bounce */ in r852_do_dma() 193 bounce = 1; in r852_do_dma() 195 if (!bounce) { in r852_do_dma() 200 bounce = 1; in r852_do_dma() 203 if (bounce) { in r852_do_dma() 204 dbg_verbose("dma: using bounce buffer"); in r852_do_dma() 223 if (do_read && bounce) in r852_do_dma()
|
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ |
H A D | r852.c | 174 int bounce = 0; in r852_do_dma() local 191 /* if incoming buffer is not page aligned, we should do bounce */ in r852_do_dma() 193 bounce = 1; in r852_do_dma() 195 if (!bounce) { in r852_do_dma() 200 bounce = 1; in r852_do_dma() 203 if (bounce) { in r852_do_dma() 204 dbg_verbose("dma: using bounce buffer"); in r852_do_dma() 223 if (do_read && bounce) in r852_do_dma()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
H A D | sun6i_mipi_dsi.c | 886 u8 *bounce; in sun6i_dsi_dcs_write_long() local 892 bounce = kzalloc(ALIGN(msg->tx_len + sizeof(crc), 4), GFP_KERNEL); in sun6i_dsi_dcs_write_long() 893 if (!bounce) in sun6i_dsi_dcs_write_long() 896 memcpy(bounce, msg->tx_buf, msg->tx_len); in sun6i_dsi_dcs_write_long() 899 crc = sun6i_dsi_crc_compute(bounce, msg->tx_len); in sun6i_dsi_dcs_write_long() 900 memcpy((u8 *)bounce + msg->tx_len, &crc, sizeof(crc)); in sun6i_dsi_dcs_write_long() 903 regmap_bulk_write(dsi->regs, SUN6I_DSI_CMD_TX_REG(1), bounce, DIV_ROUND_UP(len, 4)); in sun6i_dsi_dcs_write_long() 905 kfree(bounce); in sun6i_dsi_dcs_write_long()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/ |
H A D | sun6i_mipi_dsi.c | 886 u8 *bounce; in sun6i_dsi_dcs_write_long() local 892 bounce = kzalloc(ALIGN(msg->tx_len + sizeof(crc), 4), GFP_KERNEL); in sun6i_dsi_dcs_write_long() 893 if (!bounce) in sun6i_dsi_dcs_write_long() 896 memcpy(bounce, msg->tx_buf, msg->tx_len); in sun6i_dsi_dcs_write_long() 899 crc = sun6i_dsi_crc_compute(bounce, msg->tx_len); in sun6i_dsi_dcs_write_long() 900 memcpy((u8 *)bounce + msg->tx_len, &crc, sizeof(crc)); in sun6i_dsi_dcs_write_long() 903 regmap_bulk_write(dsi->regs, SUN6I_DSI_CMD_TX_REG(1), bounce, DIV_ROUND_UP(len, 4)); in sun6i_dsi_dcs_write_long() 905 kfree(bounce); in sun6i_dsi_dcs_write_long()
|
/kernel/linux/linux-5.10/drivers/block/ |
H A D | xen-blkfront.c | 218 unsigned int bounce:1; member 321 if (info->bounce) { in fill_grant_buffer() 341 if (info->bounce) in fill_grant_buffer() 387 if (info->bounce) in get_grant() 411 if (!info->bounce) { in get_indirect_grant() 726 .need_copy = rq_data_dir(req) && info->bounce, in blkif_queue_rw_req() 1052 "bounce buffer:", info->bounce ? "enabled" : "disabled;"); in xlvbd_flush() 1286 BUG_ON(info->bounce); in blkif_free_ring() 1303 if (info->bounce) in blkif_free_ring() [all...] |
/kernel/linux/linux-6.6/drivers/block/ |
H A D | xen-blkfront.c | 220 unsigned int bounce:1; member 321 if (info->bounce) { in fill_grant_buffer() 341 if (info->bounce) in fill_grant_buffer() 387 if (info->bounce) in get_grant() 411 if (!info->bounce) { in get_indirect_grant() 714 .need_copy = rq_data_dir(req) && info->bounce, in blkif_queue_rw_req() 998 "bounce buffer:", info->bounce ? "enabled" : "disabled;"); in xlvbd_flush() 1220 BUG_ON(info->bounce); in blkif_free_ring() 1237 if (info->bounce) in blkif_free_ring() [all...] |