Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ioctl.c142 static int vmw_fill_compat_cap(struct vmw_private *dev_priv, void *bounce, in vmw_fill_compat_cap() argument
146 (struct svga_3d_compat_cap *) bounce; in vmw_fill_compat_cap()
185 void *bounce; in vmw_get_cap_3d_ioctl() local
206 bounce = vzalloc(size); in vmw_get_cap_3d_ioctl()
207 if (unlikely(bounce == NULL)) { in vmw_get_cap_3d_ioctl()
214 uint32_t *bounce32 = (uint32_t *) bounce; in vmw_get_cap_3d_ioctl()
228 ret = vmw_fill_compat_cap(dev_priv, bounce, size); in vmw_get_cap_3d_ioctl()
233 memcpy(bounce, &fifo_mem[SVGA_FIFO_3D_CAPS], size); in vmw_get_cap_3d_ioctl()
236 ret = copy_to_user(buffer, bounce, size); in vmw_get_cap_3d_ioctl()
240 vfree(bounce); in vmw_get_cap_3d_ioctl()
/Linux-v5.4/arch/s390/mm/
Dmaccess.c207 void *bounce = (void *) addr; in xlate_dev_mem_ptr() local
214 bounce = (void *) __get_free_page(GFP_ATOMIC); in xlate_dev_mem_ptr()
215 if (bounce) in xlate_dev_mem_ptr()
216 memcpy_absolute(bounce, (void *) addr, size); in xlate_dev_mem_ptr()
220 return bounce; in xlate_dev_mem_ptr()
/Linux-v5.4/drivers/misc/eeprom/
Dat25.c135 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()
/Linux-v5.4/Documentation/devicetree/bindings/misc/
Dbrcm,kona-smc.txt3 This binding defines the location of the bounce buffer
9 - reg : Location and size of bounce buffer
/Linux-v5.4/Documentation/i2c/
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.
/Linux-v5.4/drivers/staging/wusbcore/host/whci/
Dqset.c255 void *bounce; in qset_copy_bounce_to_sg() local
258 bounce = std->bounce_buf; in qset_copy_bounce_to_sg()
268 memcpy(sg_virt(sg) + offset, bounce, len); in qset_copy_bounce_to_sg()
270 bounce += len; in qset_copy_bounce_to_sg()
552 void *bounce = NULL; in qset_add_urb_sg_linearize() local
583 bounce = std->bounce_buf; in qset_add_urb_sg_linearize()
590 memcpy(bounce, orig, len); in qset_add_urb_sg_linearize()
595 bounce += len; in qset_add_urb_sg_linearize()
/Linux-v5.4/drivers/char/
Dmem.c117 char *bounce; in read_mem() local
141 bounce = kmalloc(PAGE_SIZE, GFP_KERNEL); in read_mem()
142 if (!bounce) in read_mem()
170 probe = probe_kernel_read(bounce, ptr, sz); in read_mem()
175 remaining = copy_to_user(buf, bounce, sz); in read_mem()
188 kfree(bounce); in read_mem()
194 kfree(bounce); in read_mem()
/Linux-v5.4/block/
Dbounce.c294 bool bounce = false; in __blk_queue_bounce() local
302 bounce = true; in __blk_queue_bounce()
304 if (!bounce) in __blk_queue_bounce()
DMakefile14 obj-$(CONFIG_BOUNCE) += bounce.o
/Linux-v5.4/drivers/gpu/drm/sun4i/
Dsun6i_mipi_dsi.c864 u8 *bounce; in sun6i_dsi_dcs_write_long() local
870 bounce = kzalloc(msg->tx_len + sizeof(crc), GFP_KERNEL); in sun6i_dsi_dcs_write_long()
871 if (!bounce) in sun6i_dsi_dcs_write_long()
874 memcpy(bounce, msg->tx_buf, msg->tx_len); in sun6i_dsi_dcs_write_long()
877 crc = sun6i_dsi_crc_compute(bounce, msg->tx_len); in sun6i_dsi_dcs_write_long()
878 memcpy((u8 *)bounce + msg->tx_len, &crc, sizeof(crc)); in sun6i_dsi_dcs_write_long()
881 regmap_bulk_write(dsi->regs, SUN6I_DSI_CMD_TX_REG(1), bounce, len); in sun6i_dsi_dcs_write_long()
883 kfree(bounce); in sun6i_dsi_dcs_write_long()
/Linux-v5.4/drivers/mtd/nand/raw/
Dr852.c174 int bounce = 0; in r852_do_dma() local
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()
223 if (do_read && bounce) in r852_do_dma()
/Linux-v5.4/drivers/staging/media/hantro/
DTODO11 * Instead of having a DMA bounce buffer, it could be possible to use a
/Linux-v5.4/drivers/media/usb/go7007/
Dgo7007-driver.c82 void *bounce; in go7007_load_encoder() local
97 bounce = kmemdup(fw_entry->data + 16, fw_len, GFP_KERNEL); in go7007_load_encoder()
98 if (bounce == NULL) { in go7007_load_encoder()
105 go->boot_fw = bounce; in go7007_load_encoder()
/Linux-v5.4/Documentation/x86/x86_64/
Dboot-options.rst243 Kernel boot message: "PCI-DMA: Using software bounce buffering
267 Use software bounce buffering (SWIOTLB) (default for
297 iommu options only relevant to the software bounce buffering (SWIOTLB) IOMMU
302 Prereserve that many 128K pages for the software IO bounce buffering.
/Linux-v5.4/fs/notify/fanotify/
Dfanotify_user.c211 unsigned char bounce[FANOTIFY_INLINE_FH_LEN], *fh; in copy_fid_to_user() local
243 memcpy(bounce, fh, fh_len); in copy_fid_to_user()
244 fh = bounce; in copy_fid_to_user()
/Linux-v5.4/Documentation/block/
Dbiodoc.rst182 The generic bounce buffer logic, present in 2.4, where the block layer would
185 changed in 2.5. The bounce logic is now applied only for memory ranges
187 setting the queue bounce limit for the request queue for the device
205 cases, a bounce bio representing a buffer from the supported memory range
210 from the original buffer to the bounce buffer prior to issuing the
215 GFP flags) when allocating bounce buffers, to avoid certain highmem
218 It is also possible that a bounce buffer may be allocated from high-memory
220 device can use directly; so the bounce page may need to be kmapped during
225 be kmapped, even if bounce buffers are not necessary. For example a device
231 the blk_queue_bounce() routine on its own to bounce highmem i/o to low
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c841 bool bounce = false; in mlx4_en_xmit() local
903 bounce = true; in mlx4_en_xmit()
1029 if (unlikely(bounce)) in mlx4_en_xmit()
/Linux-v5.4/drivers/usb/dwc3/
Dgadget.c3332 dwc->bounce = dma_alloc_coherent(dwc->sysdev, DWC3_BOUNCE_SIZE, in dwc3_gadget_init()
3334 if (!dwc->bounce) { in dwc3_gadget_init()
3393 dma_free_coherent(dwc->sysdev, DWC3_BOUNCE_SIZE, dwc->bounce, in dwc3_gadget_init()
3413 dma_free_coherent(dwc->sysdev, DWC3_BOUNCE_SIZE, dwc->bounce, in dwc3_gadget_exit()
Dcore.h1038 void *bounce; member
/Linux-v5.4/Documentation/driver-api/usb/
Ddma.rst83 This may force your callers to do some bounce buffering, copying from
Dusb.rst152 of bounce buffers on some systems. In some cases, drivers may be able to
153 rely on 64bit DMA to eliminate another kind of bounce buffer.
/Linux-v5.4/mm/
DKconfig267 bool "Enable bounce buffers"
271 Enable bounce buffers for devices that cannot access
/Linux-v5.4/Documentation/ide/
DChangeLog.ide-tape.1995-2002140 * bounce buffers.
/Linux-v5.4/arch/unicore32/kernel/
Dentry.S418 @ Now call the C code to package up the bounce to the support code
/Linux-v5.4/Documentation/filesystems/
Dfscrypt.rst1105 temporary buffer or "bounce page", then write out the temporary
1108 F2FS, have to allocate bounce pages specially for encryption.

12