Home
last modified time | relevance | path

Searched refs:buffer (Results 2826 - 2850 of 6654) sorted by relevance

1...<<111112113114115116117118119120>>...267

/kernel/linux/linux-5.10/sound/core/oss/
H A Dpcm_oss.c1060 pdprintf("oss: period bytes = %i, buffer bytes = %i\n", in snd_pcm_oss_change_params_locked()
1071 kvfree(runtime->oss.buffer); in snd_pcm_oss_change_params_locked()
1072 runtime->oss.buffer = kvzalloc(runtime->oss.period_bytes, GFP_KERNEL); in snd_pcm_oss_change_params_locked()
1073 if (!runtime->oss.buffer) { in snd_pcm_oss_change_params_locked()
1368 if (copy_from_user(runtime->oss.buffer, (const char __force __user *)buf, bytes)) in snd_pcm_oss_write2()
1370 buf = runtime->oss.buffer; in snd_pcm_oss_write2()
1415 if (copy_from_user(runtime->oss.buffer + runtime->oss.buffer_used, buf, tmp)) { in snd_pcm_oss_write1()
1426 tmp = snd_pcm_oss_write2(substream, runtime->oss.buffer + runtime->oss.period_ptr, in snd_pcm_oss_write1()
1479 buf = runtime->oss.buffer; in snd_pcm_oss_read2()
1522 tmp = snd_pcm_oss_read2(substream, runtime->oss.buffer, runtim in snd_pcm_oss_read1()
2943 snd_pcm_oss_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_pcm_oss_proc_read() argument
2978 snd_pcm_oss_proc_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_pcm_oss_proc_write() argument
[all...]
/kernel/linux/linux-6.6/sound/core/oss/
H A Dpcm_oss.c849 kvfree(runtime->oss.buffer); in snd_pcm_oss_release_buffers()
850 runtime->oss.buffer = NULL; in snd_pcm_oss_release_buffers()
1067 pdprintf("oss: period bytes = %i, buffer bytes = %i\n", in snd_pcm_oss_change_params_locked()
1078 kvfree(runtime->oss.buffer); in snd_pcm_oss_change_params_locked()
1079 runtime->oss.buffer = kvzalloc(runtime->oss.period_bytes, GFP_KERNEL); in snd_pcm_oss_change_params_locked()
1080 if (!runtime->oss.buffer) { in snd_pcm_oss_change_params_locked()
1377 if (copy_from_user(runtime->oss.buffer, (const char __force __user *)buf, bytes)) in snd_pcm_oss_write2()
1379 buf = runtime->oss.buffer; in snd_pcm_oss_write2()
1424 if (copy_from_user(runtime->oss.buffer + runtime->oss.buffer_used, buf, tmp)) { in snd_pcm_oss_write1()
1435 tmp = snd_pcm_oss_write2(substream, runtime->oss.buffer in snd_pcm_oss_write1()
2962 snd_pcm_oss_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_pcm_oss_proc_read() argument
2997 snd_pcm_oss_proc_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_pcm_oss_proc_write() argument
[all...]
/kernel/linux/linux-5.10/drivers/base/firmware_loader/
H A Dmain.c179 /* For a partial read, the buffer must be preallocated. */ in __allocate_fw_priv()
352 /* one pages buffer should be mapped/unmapped only once */ in fw_map_paged_buf()
380 /* single-shot decompression onto the pre-allocated buffer */
406 /* decompression on paged buffer and map it */
457 /* if the buffer is pre-allocated, we can perform in single-shot mode */ in fw_decompress_xz()
496 void *buffer = NULL; in fw_get_filesystem_firmware() local
498 /* Already populated data member means we're loading into a buffer */ in fw_get_filesystem_firmware()
500 buffer = fw_priv->data; in fw_get_filesystem_firmware()
530 if ((fw_priv->opt_flags & FW_OPT_PARTIAL) && buffer) in fw_get_filesystem_firmware()
535 &buffer, msiz in fw_get_filesystem_firmware()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/
H A Dimg-hash.c106 /* Zero length buffer must remain last member of struct */
107 u8 buffer[] __aligned(sizeof(u32));
194 const u32 *buffer = (const u32 *)buf; in img_hash_xmit_cpu() local
204 writel_relaxed(buffer[count], hdev->cpu_addr); in img_hash_xmit_cpu()
215 img_hash_xmit_cpu(hdev, ctx->buffer, ctx->bufcnt, 0); in img_hash_dma_callback()
258 ctx->buffer, hdev->req->nbytes); in img_hash_write_via_cpu()
267 return img_hash_xmit_cpu(hdev, ctx->buffer, ctx->total, 1); in img_hash_write_via_cpu()
405 ctx->buffer, bleft, ctx->sent); in img_hash_dma_task()
413 ctx->buffer + ctx->bufcnt, len, in img_hash_dma_task()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_object.c45 * This defines the interfaces to operate on an &amdgpu_bo buffer object which
48 * to create/destroy/set buffer object which are then managed by the kernel TTM
58 * @bo: &amdgpu_bo buffer object
102 * amdgpu_bo_is_amdgpu_bo - check if the buffer object is an &amdgpu_bo
103 * @bo: buffer object to be checked
119 * amdgpu_bo_placement_from_domain - set buffer's placement
120 * @abo: &amdgpu_bo buffer object whose placement is to be set
123 * Sets buffer's placement according to requested domain and the buffer's
664 * amdgpu_bo_create - create an &amdgpu_bo buffer objec
1208 void *buffer; amdgpu_bo_set_metadata() local
1249 amdgpu_bo_get_metadata(struct amdgpu_bo *bo, void *buffer, size_t buffer_size, uint32_t *metadata_size, uint64_t *flags) amdgpu_bo_get_metadata() argument
[all...]
/kernel/linux/linux-5.10/drivers/media/i2c/et8ek8/
H A Det8ek8_driver.c1090 u8 buffer[PRIV_MEM_WIN_SIZE]; in et8ek8_g_priv_mem() local
1123 msg.buf = buffer; in et8ek8_g_priv_mem()
1125 buffer[0] = (u8)(ofs >> 8); in et8ek8_g_priv_mem()
1126 buffer[1] = (u8)(ofs & 0xFF); in et8ek8_g_priv_mem()
1136 msg.buf = buffer; in et8ek8_g_priv_mem()
1137 memset(buffer, 0, sizeof(buffer)); in et8ek8_g_priv_mem()
1144 memcpy(ptr, buffer, bytes); in et8ek8_g_priv_mem()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
H A Drx_common.c77 * only be added if this is the final RX buffer, to prevent pages being used in
88 /* Only recycle the page after processing the final buffer. */ in efx_recycle_rx_page()
193 /* Release the page reference we hold for the buffer. */ in efx_fini_rx_buffer()
197 /* If this is the last buffer in a page, unmap and free it. */ in efx_fini_rx_buffer()
222 rx_queue->buffer = kcalloc(entries, sizeof(*rx_queue->buffer), in efx_probe_rx_queue()
224 if (!rx_queue->buffer) in efx_probe_rx_queue()
229 kfree(rx_queue->buffer); in efx_probe_rx_queue()
230 rx_queue->buffer = NULL; in efx_probe_rx_queue()
302 if (rx_queue->buffer) { in efx_fini_rx_queue()
[all...]
/kernel/linux/linux-5.10/drivers/scsi/aic94xx/
H A Daic94xx_sds.c110 * @buffer: where to write the read data
116 static int asd_read_ocm_seg(struct asd_ha_struct *asd_ha, void *buffer, in asd_read_ocm_seg() argument
119 u8 *p = buffer; in asd_read_ocm_seg()
121 asd_read_reg_string(asd_ha, buffer, offs+OCM_BASE_ADDR, size); in asd_read_ocm_seg()
155 * @buffer: where to read the write data
161 static void asd_write_ocm_seg(struct asd_ha_struct *asd_ha, void *buffer, in asd_write_ocm_seg() argument
164 u8 *p = buffer; in asd_write_ocm_seg()
166 asd_write_reg_string(asd_ha, buffer, offs+OCM_BASE_ADDR, size); in asd_write_ocm_seg()
577 void *buffer, u32 offs, int size) in asd_read_flash_seg()
579 asd_read_reg_string(asd_ha, buffer, asd_h in asd_read_flash_seg()
576 asd_read_flash_seg(struct asd_ha_struct *asd_ha, void *buffer, u32 offs, int size) asd_read_flash_seg() argument
[all...]
/kernel/linux/linux-5.10/drivers/pci/
H A Dpci-acpi.c627 struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER, NULL}; in acpi_run_hpx() local
635 status = acpi_evaluate_object(handle, "_HPX", NULL, &buffer); in acpi_run_hpx()
639 package = (union acpi_object *)buffer.pointer; in acpi_run_hpx()
695 kfree(buffer.pointer); in acpi_run_hpx()
702 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in acpi_run_hpp() local
709 status = acpi_evaluate_object(handle, "_HPP", NULL, &buffer); in acpi_run_hpp()
713 package = (union acpi_object *) buffer.pointer; in acpi_run_hpp()
737 kfree(buffer.pointer); in acpi_run_hpp()
/kernel/linux/linux-5.10/samples/bpf/
H A Dxdpsock_user.c140 void *buffer; member
787 memcpy(xsk_umem__get_data(umem->buffer, addr), pkt_data, in gen_eth_frame()
791 static struct xsk_umem_info *xsk_configure_umem(void *buffer, u64 size) in xsk_configure_umem() argument
816 ret = xsk_umem__create(&umem->umem, buffer, size, &umem->fq, &umem->cq, in xsk_configure_umem()
821 umem->buffer = buffer; in xsk_configure_umem()
1207 char *pkt = xsk_umem__get_data(xsk->umem->buffer, addr); in rx_drop()
1372 char *pkt = xsk_umem__get_data(xsk->umem->buffer, addr); in l2fwd()
/kernel/linux/linux-5.10/fs/jffs2/
H A Dreadinode.c36 unsigned char *buffer; in check_node_data() local
67 err = mtd_point(c->mtd, ofs, len, &retlen, (void **)&buffer, NULL); in check_node_data()
79 buffer = kmalloc(len, GFP_KERNEL); in check_node_data()
80 if (unlikely(!buffer)) in check_node_data()
85 err = jffs2_flash_read(c, ofs, len, &retlen, buffer); in check_node_data()
99 crc = crc32(tn->partial_crc, buffer, len); in check_node_data()
101 kfree(buffer); in check_node_data()
137 kfree(buffer); in check_node_data()
/kernel/linux/linux-5.10/drivers/staging/media/omap4iss/
H A Diss_video.c322 struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb); in iss_video_buf_cleanup() local
324 if (buffer->iss_addr) in iss_video_buf_cleanup()
325 buffer->iss_addr = 0; in iss_video_buf_cleanup()
332 struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb); in iss_video_buf_prepare() local
348 buffer->iss_addr = addr; in iss_video_buf_prepare()
357 struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb); in iss_video_buf_queue() local
365 * Mark the buffer is faulty and give it back to the queue immediately in iss_video_buf_queue()
367 * check when preparing the buffer, but that is inherently racy, so we in iss_video_buf_queue()
377 list_add_tail(&buffer->list, &video->dmaqueue); in iss_video_buf_queue()
392 video->ops->queue(video, buffer); in iss_video_buf_queue()
[all...]
/kernel/linux/linux-5.10/drivers/staging/pi433/
H A Dpi433_if.c86 char buffer[MAX_MSG_SIZE]; member
609 /* prime buffer */ in pi433_tx_thread()
610 memset(device->buffer, 0, size); in pi433_tx_thread()
619 device->buffer[position++] = size - 1; in pi433_tx_thread()
623 device->buffer[position++] = tx_cfg.address_byte; in pi433_tx_thread()
626 retval = kfifo_out(&device->tx_fifo, &device->buffer[position], in pi433_tx_thread()
627 sizeof(device->buffer) - position); in pi433_tx_thread()
711 &device->buffer[position], in pi433_tx_thread()
719 &device->buffer[position], in pi433_tx_thread()
770 /* check, whether internal buffer i in pi433_read()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Drx_common.c70 * only be added if this is the final RX buffer, to prevent pages being used in
81 /* Only recycle the page after processing the final buffer. */ in efx_recycle_rx_page()
177 /* Release the page reference we hold for the buffer. */ in efx_fini_rx_buffer()
181 /* If this is the last buffer in a page, unmap and free it. */ in efx_fini_rx_buffer()
206 rx_queue->buffer = kcalloc(entries, sizeof(*rx_queue->buffer), in efx_probe_rx_queue()
208 if (!rx_queue->buffer) in efx_probe_rx_queue()
213 kfree(rx_queue->buffer); in efx_probe_rx_queue()
214 rx_queue->buffer = NULL; in efx_probe_rx_queue()
289 if (rx_queue->buffer) { in efx_fini_rx_queue()
[all...]
/kernel/linux/linux-6.6/drivers/base/firmware_loader/
H A Dmain.c121 /* For a partial read, the buffer must be preallocated. */ in __allocate_fw_priv()
292 /* one pages buffer should be mapped/unmapped only once */ in fw_map_paged_buf()
384 /* single-shot decompression onto the pre-allocated buffer */
410 /* decompression on paged buffer and map it */
461 /* if the buffer is pre-allocated, we can perform in single-shot mode */ in fw_decompress_xz()
500 void *buffer = NULL; in fw_get_filesystem_firmware() local
502 /* Already populated data member means we're loading into a buffer */ in fw_get_filesystem_firmware()
504 buffer = fw_priv->data; in fw_get_filesystem_firmware()
544 if ((fw_priv->opt_flags & FW_OPT_PARTIAL) && buffer) in fw_get_filesystem_firmware()
549 &buffer, msiz in fw_get_filesystem_firmware()
[all...]
/kernel/linux/linux-6.6/fs/jffs2/
H A Dreadinode.c36 unsigned char *buffer; in check_node_data() local
67 err = mtd_point(c->mtd, ofs, len, &retlen, (void **)&buffer, NULL); in check_node_data()
79 buffer = kmalloc(len, GFP_KERNEL); in check_node_data()
80 if (unlikely(!buffer)) in check_node_data()
85 err = jffs2_flash_read(c, ofs, len, &retlen, buffer); in check_node_data()
99 crc = crc32(tn->partial_crc, buffer, len); in check_node_data()
101 kfree(buffer); in check_node_data()
137 kfree(buffer); in check_node_data()
/kernel/linux/linux-6.6/drivers/scsi/aic94xx/
H A Daic94xx_sds.c110 * @buffer: where to write the read data
116 static int asd_read_ocm_seg(struct asd_ha_struct *asd_ha, void *buffer, in asd_read_ocm_seg() argument
119 u8 *p = buffer; in asd_read_ocm_seg()
121 asd_read_reg_string(asd_ha, buffer, offs+OCM_BASE_ADDR, size); in asd_read_ocm_seg()
155 * @buffer: where to read the write data
161 static void asd_write_ocm_seg(struct asd_ha_struct *asd_ha, void *buffer, in asd_write_ocm_seg() argument
164 u8 *p = buffer; in asd_write_ocm_seg()
166 asd_write_reg_string(asd_ha, buffer, offs+OCM_BASE_ADDR, size); in asd_write_ocm_seg()
579 void *buffer, u32 offs, int size) in asd_read_flash_seg()
581 asd_read_reg_string(asd_ha, buffer, asd_h in asd_read_flash_seg()
578 asd_read_flash_seg(struct asd_ha_struct *asd_ha, void *buffer, u32 offs, int size) asd_read_flash_seg() argument
[all...]
/kernel/linux/linux-6.6/drivers/staging/media/omap4iss/
H A Diss_video.c315 struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb); in iss_video_buf_cleanup() local
317 if (buffer->iss_addr) in iss_video_buf_cleanup()
318 buffer->iss_addr = 0; in iss_video_buf_cleanup()
325 struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb); in iss_video_buf_prepare() local
341 buffer->iss_addr = addr; in iss_video_buf_prepare()
350 struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb); in iss_video_buf_queue() local
358 * Mark the buffer is faulty and give it back to the queue immediately in iss_video_buf_queue()
360 * check when preparing the buffer, but that is inherently racy, so we in iss_video_buf_queue()
370 list_add_tail(&buffer->list, &video->dmaqueue); in iss_video_buf_queue()
385 video->ops->queue(video, buffer); in iss_video_buf_queue()
[all...]
/kernel/linux/linux-6.6/drivers/staging/pi433/
H A Dpi433_if.c88 char buffer[MAX_MSG_SIZE]; member
611 /* prime buffer */ in pi433_tx_thread()
612 memset(device->buffer, 0, size); in pi433_tx_thread()
621 device->buffer[position++] = size - 1; in pi433_tx_thread()
625 device->buffer[position++] = tx_cfg.address_byte; in pi433_tx_thread()
628 retval = kfifo_out(&device->tx_fifo, &device->buffer[position], in pi433_tx_thread()
629 sizeof(device->buffer) - position); in pi433_tx_thread()
713 &device->buffer[position], in pi433_tx_thread()
721 &device->buffer[position], in pi433_tx_thread()
772 /* check, whether internal buffer i in pi433_read()
[all...]
/kernel/linux/linux-6.6/drivers/thunderbolt/
H A Dtb.h153 * @credit_allocation: Are the below buffer allocation parameters valid
632 static inline int tb_sw_read(struct tb_switch *sw, void *buffer, in tb_sw_read() argument
638 buffer, in tb_sw_read()
646 static inline int tb_sw_write(struct tb_switch *sw, const void *buffer, in tb_sw_write() argument
652 buffer, in tb_sw_write()
660 static inline int tb_port_read(struct tb_port *port, void *buffer, in tb_port_read() argument
666 buffer, in tb_port_read()
674 static inline int tb_port_write(struct tb_port *port, const void *buffer, in tb_port_write() argument
680 buffer, in tb_port_write()
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/i2c/
H A Datomisp-mt9m114.c250 __be16 *data16 = (void *)&ctrl->buffer.addr; in __mt9m114_flush_reg_array()
259 *data16 = cpu_to_be16(ctrl->buffer.addr); in __mt9m114_flush_reg_array()
260 msg.buf = (u8 *)&ctrl->buffer; in __mt9m114_flush_reg_array()
292 /* Insufficient buffer? Let's flush and get more free space. */ in __mt9m114_buf_reg_array()
301 ctrl->buffer.data[ctrl->index] = (u8)next->val; in __mt9m114_buf_reg_array()
304 data16 = (__be16 *)&ctrl->buffer.data[ctrl->index]; in __mt9m114_buf_reg_array()
308 data32 = (__be32 *)&ctrl->buffer.data[ctrl->index]; in __mt9m114_buf_reg_array()
317 ctrl->buffer.addr = next->reg; in __mt9m114_buf_reg_array()
332 return ctrl->buffer.addr + ctrl->index == next->reg; in __mt9m114_write_reg_is_consecutive()
341 * are found in a row on the list, this function creates a buffer an
[all...]
/kernel/linux/linux-6.6/drivers/platform/surface/
H A Dsurface_dtx.c183 struct mutex read_lock; /* Guards FIFO buffer read access. */
184 DECLARE_KFIFO(buffer, u8, 512);
415 INIT_KFIFO(client->buffer); in surface_dtx_open()
478 if (kfifo_is_empty(&client->buffer)) { in surface_dtx_read()
485 !kfifo_is_empty(&client->buffer) || in surface_dtx_read()
507 status = kfifo_to_user(&client->buffer, buf, count, &copied); in surface_dtx_read()
536 if (!kfifo_is_empty(&client->buffer)) in surface_dtx_poll()
609 if (likely(kfifo_avail(&client->buffer) >= len)) in sdtx_push_event()
610 kfifo_in(&client->buffer, (const u8 *)evt, len); in sdtx_push_event()
612 dev_warn(ddev->dev, "event buffer overru in sdtx_push_event()
[all...]
/kernel/linux/linux-6.6/drivers/usb/serial/
H A Dgarmin_gps.c58 /* size of a buffer able to hold a complete (no stuffing) packet
62 * should be increased accordingly, so the input buffer is always
66 /* size of a buffer able to hold a complete (incl. stuffing) packet */
378 * count - number of bytes in the input buffer including space reserved for
451 * Copy it into our local buffer, until an etx is seen (or an error
621 dev_dbg(dev, "%s - %d bytes in buffer, %d bytes in pkt.\n", __func__, k, i); in gsp_send()
658 of buffer ... */ in gsp_send()
745 /* if buffer contains header, copy rest of data */ in nat_receive()
971 /* free up the transfer buffer, as usb_free_urb() does not do this */ in garmin_write_bulk_callback()
984 unsigned char *buffer; in garmin_write_bulk() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_object.c46 * This defines the interfaces to operate on an &amdgpu_bo buffer object which
49 * to create/destroy/set buffer object which are then managed by the kernel TTM
98 * amdgpu_bo_is_amdgpu_bo - check if the buffer object is an &amdgpu_bo
99 * @bo: buffer object to be checked
118 * amdgpu_bo_placement_from_domain - set buffer's placement
119 * @abo: &amdgpu_bo buffer object whose placement is to be set
122 * Sets buffer's placement according to requested domain and the buffer's
533 * amdgpu_bo_create - create an &amdgpu_bo buffer object
535 * @bp: parameters to be used for the buffer objec
1178 void *buffer; amdgpu_bo_set_metadata() local
1221 amdgpu_bo_get_metadata(struct amdgpu_bo *bo, void *buffer, size_t buffer_size, uint32_t *metadata_size, uint64_t *flags) amdgpu_bo_get_metadata() argument
[all...]
/kernel/linux/linux-6.6/drivers/crypto/
H A Dimg-hash.c107 /* Zero length buffer must remain last member of struct */
108 u8 buffer[] __aligned(sizeof(u32));
195 const u32 *buffer = (const u32 *)buf; in img_hash_xmit_cpu() local
205 writel_relaxed(buffer[count], hdev->cpu_addr); in img_hash_xmit_cpu()
216 img_hash_xmit_cpu(hdev, ctx->buffer, ctx->bufcnt, 0); in img_hash_dma_callback()
259 ctx->buffer, hdev->req->nbytes); in img_hash_write_via_cpu()
268 return img_hash_xmit_cpu(hdev, ctx->buffer, ctx->total, 1); in img_hash_write_via_cpu()
406 ctx->buffer, bleft, ctx->sent); in img_hash_dma_task()
414 ctx->buffer + ctx->bufcnt, len, in img_hash_dma_task()

Completed in 39 milliseconds

1...<<111112113114115116117118119120>>...267