Searched refs:bounce (Results 1 - 25 of 33) sorted by relevance

12

/linux-master/arch/s390/mm/
H A Dmaccess.c153 void *bounce = ptr; local
165 bounce = (void *)__get_free_page(GFP_ATOMIC);
166 if (!bounce)
172 memcpy(bounce, ptr, size);
176 memcpy(bounce, ptr, size);
178 memcpy(bounce, ptr, size);
183 return bounce;
/linux-master/lib/
H A Dtest_hmm.c127 static int dmirror_bounce_init(struct dmirror_bounce *bounce, argument
131 bounce->addr = addr;
132 bounce->size = size;
133 bounce->cpages = 0;
134 bounce->ptr = vmalloc(size);
135 if (!bounce->ptr)
155 static void dmirror_bounce_fini(struct dmirror_bounce *bounce) argument
157 vfree(bounce->ptr);
361 unsigned long end, struct dmirror_bounce *bounce)
366 ptr = bounce
360 dmirror_do_read(struct dmirror *dmirror, unsigned long start, unsigned long end, struct dmirror_bounce *bounce) argument
388 struct dmirror_bounce bounce; local
426 dmirror_do_write(struct dmirror *dmirror, unsigned long start, unsigned long end, struct dmirror_bounce *bounce) argument
454 struct dmirror_bounce bounce; local
784 struct dmirror_bounce bounce; local
969 struct dmirror_bounce bounce; local
[all...]
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ioctl.c130 void *bounce = NULL; local
148 bounce = vzalloc(size);
149 if (unlikely(bounce == NULL)) {
150 DRM_ERROR("Failed to allocate bounce buffer for 3D caps.\n");
154 ret = vmw_devcaps_copy(dev_priv, vmw_fp->gb_aware, bounce, size);
158 ret = copy_to_user(buffer, bounce, size);
162 vfree(bounce);
H A Dvmwgfx_devcaps.c55 static int vmw_fill_compat_cap(struct vmw_private *dev_priv, void *bounce, argument
59 (struct svga_3d_compat_cap *) bounce;
/linux-master/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
227 * bounce buffer like this is significantly faster than
230 char bounce[MEMCPY_BOUNCE_SIZE]; local
235 memcpy_fromio(bounce, _src, MEMCPY_BOUNCE_SIZE);
236 memcpy_toio(_dst, bounce, MEMCPY_BOUNCE_SIZE);
242 memcpy_fromio(bounce, _src, MEMCPY_BOUNCE_SIZE);
243 memcpy_toio(_dst, bounce, MEMCPY_BOUNCE_SIZE);
/linux-master/fs/bcachefs/
H A Dio_write_types.h28 bounce:1,
H A Dio_read.c149 BUG_ON(!rbio->bounce);
206 (*rbio)->bounce = true;
259 bool *bounce,
287 *bounce = true;
329 BUG_ON(rbio->bounce && !rbio->split);
335 if (rbio->bounce)
557 if (rbio->bounce) {
606 if (rbio->bounce) {
639 if (!rbio->bounce && (rbio->flags & BCH_READ_USER_MAPPED)) {
806 bool bounce local
252 promote_alloc(struct btree_trans *trans, struct bvec_iter iter, struct bkey_s_c k, struct extent_ptr_decoded *pick, struct bch_io_opts opts, unsigned flags, struct bch_read_bio **rbio, bool *bounce, bool *read_full) argument
[all...]
H A Dio_read.h14 * was checksummed or compressed we'll also have to allocate bounce
37 u16 bounce:1, member in struct:bch_read_bio::__anon1636::__anon1637
H A Dcompress.c84 goto bounce;
88 goto bounce;
99 goto bounce;
114 bounce:
H A Dio_write.c414 n->bounce = false;
664 if (wbio->bounce)
730 wbio->bounce = true;
889 bool bounce = false; local
912 bounce = true;
927 bounce = true;
945 BUG_ON(op->compression_opt && !bounce);
961 if (bounce) {
994 * But normally we want to be checksumming post bounce,
1075 if (to_wbio(dst)->bounce)
[all...]
/linux-master/drivers/misc/eeprom/
H A Dat25.c205 u8 *bounce; local
218 bounce = kmalloc(buf_size + at25->addrlen + 1, GFP_KERNEL);
219 if (!bounce)
231 u8 *cp = bounce;
268 status = spi_write(at25->spi, bounce,
315 kfree(bounce);
/linux-master/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
110 * free up bounce indirect pages used
210 bool bounce = false; local
217 bounce = true;
219 if (!bounce)
H A DMakefile14 obj-$(CONFIG_BOUNCE) += bounce.o
H A Dblk-settings.c283 * blk_queue_bounce_limit - set bounce buffer limit for queue
285 * @bounce: bounce limit to enforce
292 void blk_queue_bounce_limit(struct request_queue *q, enum blk_bounce bounce) argument
294 q->limits.bounce = bounce;
757 t->bounce = max(t->bounce, b->bounce);
/linux-master/fs/erofs/
H A Ddecompressor_deflate.c8 u8 bounce[PAGE_SIZE]; member in struct:z_erofs_deflate
205 memcpy(strm->bounce, strm->z.next_in, strm->z.avail_in);
206 strm->z.next_in = strm->bounce;
H A Ddecompressor_lzma.c9 u8 bounce[PAGE_SIZE]; member in struct:z_erofs_lzma
252 memcpy(strm->bounce, strm->buf.in, strm->buf.in_size);
253 strm->buf.in = strm->bounce;
/linux-master/drivers/char/
H A Dmem.c106 char *bounce; local
130 bounce = kmalloc(PAGE_SIZE, GFP_KERNEL);
131 if (!bounce)
159 probe = copy_from_kernel_nofault(bounce, ptr, sz);
164 remaining = copy_to_user(buf, bounce, sz);
177 kfree(bounce);
183 kfree(bounce);
/linux-master/kernel/module/
H A Dsysfs.c40 char bounce[MODULE_SECT_READ_SIZE + 1]; local
52 * the NUL, we have to use a bounce buffer.
54 wrote = scnprintf(bounce, sizeof(bounce), "0x%px\n",
58 memcpy(buf, bounce, count);
/linux-master/drivers/media/usb/go7007/
H A Dgo7007-driver.c82 void *bounce; local
97 bounce = kmemdup(fw_entry->data + 16, fw_len, GFP_KERNEL);
98 if (bounce == NULL) {
105 go->boot_fw = bounce;
/linux-master/drivers/gpu/drm/sun4i/
H A Dsun6i_mipi_dsi.c886 u8 *bounce; local
892 bounce = kzalloc(ALIGN(msg->tx_len + sizeof(crc), 4), GFP_KERNEL);
893 if (!bounce)
896 memcpy(bounce, msg->tx_buf, msg->tx_len);
899 crc = sun6i_dsi_crc_compute(bounce, msg->tx_len);
900 memcpy((u8 *)bounce + msg->tx_len, &crc, sizeof(crc));
903 regmap_bulk_write(dsi->regs, SUN6I_DSI_CMD_TX_REG(1), bounce, DIV_ROUND_UP(len, 4));
905 kfree(bounce);
/linux-master/drivers/mtd/nand/raw/
H A Dr852.c174 int bounce = 0; local
191 /* if incoming buffer is not page aligned, we should do bounce */
193 bounce = 1;
195 if (!bounce) {
200 bounce = 1;
203 if (bounce) {
204 dbg_verbose("dma: using bounce buffer");
223 if (do_read && bounce)
/linux-master/drivers/block/
H A Dxen-blkfront.c220 unsigned int bounce:1; member in struct:blkfront_info
321 if (info->bounce) {
341 if (info->bounce)
387 if (info->bounce)
411 if (!info->bounce) {
714 .need_copy = rq_data_dir(req) && info->bounce,
994 "bounce buffer:", info->bounce ? "enabled" : "disabled;");
1218 BUG_ON(info->bounce);
1235 if (info->bounce)
[all...]
/linux-master/arch/arm/vfp/
H A Dvfpmodule.c250 vfp_panic("unhandled bounce", inst);
322 * Package up a bounce condition.
328 pr_debug("VFP: bounce: trigger %08x fpexc %08x\n", trigger, fpexc);
341 * handle the bounce.
392 * FPEXC bounce reason, but this appears to be unreliable.
744 goto bounce;
771 bounce: regs->ARM_pc += 4;
/linux-master/drivers/iio/adc/
H A Dti-ads1298.c492 u32 *bounce = priv->bounce_buffer; local
504 /* Demux the channel data into our bounce buffer */
511 *bounce++ = get_unaligned_be24(data);
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Den_tx.c894 bool bounce = false; local
939 * SW ownership on next descriptor; if not, use a bounce buffer. */
949 bounce = true;
1090 /* If we used a bounce buffer then copy descriptor back into place */
1091 if (unlikely(bounce))

Completed in 231 milliseconds

12