Home
last modified time | relevance | path

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

12

/linux/drivers/misc/eeprom/
H A Dat25.c92 u8 *bounce __free(kfree) = kmalloc(min(count, io_limit), GFP_KERNEL); in at25_ee_read()
100 if (!bounce) in at25_ee_read()
119 SPI_MEM_OP_DATA_IN(segment, bounce, 1)); in at25_ee_read()
131 memcpy(buf, bounce, segment); in at25_ee_read()
152 u8 *bounce __free(kfree) = kmalloc(len, GFP_KERNEL); in fm25_aux_read()
156 if (!bounce) in fm25_aux_read()
162 SPI_MEM_OP_DATA_IN(len, bounce, 1)); in fm25_aux_read()
169 memcpy(buf, bounce, len); in fm25_aux_read()
199 u8 *bounce __free(kfree) = kmalloc(1, GFP_KERNEL); in at25_wait_ready()
203 if (!bounce) in at25_wait_ready()
[all …]
/linux/lib/
H A Dtest_hmm.c129 static int dmirror_bounce_init(struct dmirror_bounce *bounce, in dmirror_bounce_init() argument
133 bounce->addr = addr; in dmirror_bounce_init()
134 bounce->size = size; in dmirror_bounce_init()
135 bounce->cpages = 0; in dmirror_bounce_init()
136 bounce->ptr = vmalloc(size); in dmirror_bounce_init()
137 if (!bounce->ptr) in dmirror_bounce_init()
157 static void dmirror_bounce_fini(struct dmirror_bounce *bounce) in dmirror_bounce_fini() argument
159 vfree(bounce->ptr); in dmirror_bounce_fini()
364 unsigned long end, struct dmirror_bounce *bounce) in dmirror_do_read() argument
369 ptr = bounce->ptr + ((start - bounce->addr) & PAGE_MASK); in dmirror_do_read()
[all …]
/linux/arch/s390/mm/
H A Dmaccess.c154 void *bounce = ptr; in xlate_dev_mem_ptr() local
166 bounce = (void *)__get_free_page(GFP_ATOMIC); in xlate_dev_mem_ptr()
167 if (!bounce) in xlate_dev_mem_ptr()
173 memcpy(bounce, ptr, size); in xlate_dev_mem_ptr()
177 memcpy(bounce, ptr, size); in xlate_dev_mem_ptr()
179 memcpy(bounce, ptr, size); in xlate_dev_mem_ptr()
184 return bounce; in xlate_dev_mem_ptr()
/linux/drivers/gpu/drm/
H A Ddrm_cache.c227 char bounce[MEMCPY_BOUNCE_SIZE]; in memcpy_fallback() local
232 memcpy_fromio(bounce, _src, MEMCPY_BOUNCE_SIZE); in memcpy_fallback()
233 memcpy_toio(_dst, bounce, MEMCPY_BOUNCE_SIZE); in memcpy_fallback()
239 memcpy_fromio(bounce, _src, MEMCPY_BOUNCE_SIZE); in memcpy_fallback()
240 memcpy_toio(_dst, bounce, MEMCPY_BOUNCE_SIZE); in memcpy_fallback()
/linux/drivers/char/
H A Dmem.c88 char *bounce; in read_mem() local
112 bounce = kmalloc(PAGE_SIZE, GFP_KERNEL); in read_mem()
113 if (!bounce) in read_mem()
141 probe = copy_from_kernel_nofault(bounce, ptr, sz); in read_mem()
146 remaining = copy_to_user(buf, bounce, sz); in read_mem()
159 kfree(bounce); in read_mem()
165 kfree(bounce); in read_mem()
/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.
/linux/fs/erofs/
H A Ddecompressor_zstd.c7 u8 bounce[PAGE_SIZE]; member
173 dctx.bounce = strm->bounce; in z_erofs_zstd_decompress()
/linux/Documentation/devicetree/bindings/leds/
H A Dleds-el15203000.txt20 - bounce pattern
21 - inversed bounce pattern
/linux/kernel/module/
H A Dsysfs.c32 char bounce[MODULE_SECT_READ_SIZE + 1]; in module_sect_read() local
46 wrote = scnprintf(bounce, sizeof(bounce), "0x%px\n", in module_sect_read()
50 memcpy(buf, bounce, count); in module_sect_read()
/linux/drivers/gpu/drm/sun4i/
H A Dsun6i_mipi_dsi.c886 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()
/linux/drivers/mtd/nand/raw/
H A 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/drivers/media/usb/go7007/
H A 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/arch/loongarch/include/asm/
H A Dkvm_eiointc.h67 u64 bounce[EIOINTC_IRQS_U64_NUMS]; member
/linux/arch/loongarch/kvm/intc/
H A Deiointc.c142 data = s->bounce[index]; in loongarch_eiointc_read()
265 old = s->bounce[index]; in loongarch_eiointc_write()
266 s->bounce[index] = (old & ~mask) | data; in loongarch_eiointc_write()
496 p = s->bounce + offset * 4; in kvm_eiointc_regs_access()
/linux/Documentation/leds/
H A Dleds-el15203000.rst114 Inverted bounce mode for Pipe LED::
/linux/drivers/gpu/drm/xe/
H A Dxe_migrate.c2323 void *bounce; in xe_migrate_access_memory() local
2327 bounce = kmalloc(XE_CACHELINE_BYTES, GFP_KERNEL); in xe_migrate_access_memory()
2328 if (!bounce) in xe_migrate_access_memory()
2344 bounce, in xe_migrate_access_memory()
2350 memcpy(bounce + ptr_offset, buf + buf_offset, copy_bytes); in xe_migrate_access_memory()
2354 bounce, in xe_migrate_access_memory()
2359 memcpy(buf + buf_offset, bounce + ptr_offset, in xe_migrate_access_memory()
2368 kfree(bounce); in xe_migrate_access_memory()
/linux/arch/arm/vfp/
H A Dvfpmodule.c775 goto bounce; in vfp_support_entry()
803 bounce: regs->ARM_pc += 4; in vfp_support_entry()
/linux/drivers/i3c/
H A Dmaster.c1745 void *bounce __free(kfree) = NULL; in i3c_master_dma_map_single()
1764 bounce = kzalloc(dma_xfer->map_len, GFP_KERNEL); in i3c_master_dma_map_single()
1766 bounce = kmemdup(buf, dma_xfer->map_len, GFP_KERNEL); in i3c_master_dma_map_single()
1767 if (!bounce) in i3c_master_dma_map_single()
1769 dma_buf = bounce; in i3c_master_dma_map_single()
1776 dma_xfer->bounce_buf = no_free_ptr(bounce); in i3c_master_dma_map_single()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_tx.c891 bool bounce = false; in mlx4_en_xmit() local
946 bounce = true; in mlx4_en_xmit()
1088 if (unlikely(bounce)) in mlx4_en_xmit()
/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.
/linux/Documentation/virt/hyperv/
H A Dcoco.rst214 Linux kernel DMA APIs, and so bounce buffering through decrypted swiotlb
220 equivalent of bounce buffering between encrypted and decrypted memory is
222 DMA APIs, and is bounce buffered through swiotlb memory implicitly like in
271 provides bounce-buffering, and although the data is not encrypted, the backing
/linux/drivers/gpu/drm/ttm/
H A Dttm_bo.c866 bounce: in ttm_bo_validate()
872 goto bounce; in ttm_bo_validate()
/linux/Documentation/driver-api/usb/
H A Ddma.rst83 This may force your callers to do some bounce buffering, copying from
/linux/kernel/dma/
H A DKconfig93 bool "Dynamic allocation of DMA bounce buffers"
/linux/drivers/usb/dwc3/
H A Dgadget.c4725 dwc->bounce = dma_alloc_coherent(dwc->sysdev, DWC3_BOUNCE_SIZE, in dwc3_gadget_init()
4727 if (!dwc->bounce) { in dwc3_gadget_init()
4807 dma_free_coherent(dwc->sysdev, DWC3_BOUNCE_SIZE, dwc->bounce, in dwc3_gadget_init()
4833 dma_free_coherent(dwc->sysdev, DWC3_BOUNCE_SIZE, dwc->bounce, in dwc3_gadget_exit()

12