Home
last modified time | relevance | path

Searched refs:bufs (Results 51 – 75 of 117) sorted by relevance

12345

/linux/drivers/dma-buf/
H A DKconfig40 A driver to let userspace turn memfd regions into dma-bufs.
75 allows userspace to allocate dma-bufs that can be shared
/linux/drivers/media/pci/intel/ipu3/
H A Dipu3-cio2.c563 b = q->bufs[q->bufs_first]; in cio2_buffer_done()
569 q->bufs[q->bufs_first] = NULL; in cio2_buffer_done()
788 if (q->bufs[i]) { in cio2_vb2_return_all_buffers()
790 vb2_buffer_done(&q->bufs[i]->vbb.vb2_buf, in cio2_vb2_return_all_buffers()
792 q->bufs[i] = NULL; in cio2_vb2_return_all_buffers()
823 q->bufs[i] = NULL; in cio2_vb2_queue_setup()
941 if (!q->bufs[next]) { in cio2_vb2_buf_queue()
942 q->bufs[next] = b; in cio2_vb2_buf_queue()
1885 if (q->bufs[j]) in cio2_fbpt_rearrange()
1894 arrange(q->bufs, sizeof(struct cio2_buffer *), in cio2_fbpt_rearrange()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ddp.h457 int ice_update_pkg_no_lock(struct ice_hw *hw, struct ice_buf *bufs, u32 count);
458 int ice_update_pkg(struct ice_hw *hw, struct ice_buf *bufs, u32 count);
/linux/drivers/staging/media/rkvdec/
H A Drkvdec.c673 run->bufs.src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in rkvdec_run_preamble()
674 run->bufs.dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in rkvdec_run_preamble()
677 src_req = run->bufs.src->vb2_buf.req_obj.req; in rkvdec_run_preamble()
681 v4l2_m2m_buf_copy_metadata(run->bufs.src, run->bufs.dst, true); in rkvdec_run_preamble()
686 struct media_request *src_req = run->bufs.src->vb2_buf.req_obj.req; in rkvdec_run_postamble()
H A Drkvdec.h40 } bufs; member
/linux/drivers/scsi/csiostor/
H A Dcsio_wr.c120 struct csio_dma_buf *buf = &flq->un.fl.bufs[0]; in csio_wr_fill_fl()
281 flq->un.fl.bufs = kcalloc(flq->credits, in csio_wr_alloc_q()
284 if (!flq->un.fl.bufs) { in csio_wr_alloc_q()
1074 buf = &flq->un.fl.bufs[flq->cidx]; in csio_wr_process_fl()
1698 if (!q->un.fl.bufs) in csio_wrm_exit()
1701 buf = &q->un.fl.bufs[j]; in csio_wrm_exit()
1708 kfree(q->un.fl.bufs); in csio_wrm_exit()
/linux/drivers/media/usb/usbtv/
H A Dusbtv.h101 struct list_head bufs; member
/linux/tools/testing/selftests/bpf/
H A Dxskxceiver.c292 void *bufs; in ifobj_zc_avail()
295 bufs = mmap(NULL, umem_sz, PROT_READ | PROT_WRITE, mmap_flags, -1, 0); in ifobj_zc_avail()
296 if (bufs == MAP_FAILED) in ifobj_zc_avail()
301 munmap(bufs, umem_sz); in ifobj_zc_avail()
305 ret = xsk_configure_umem(ifobject, umem, bufs, umem_sz); in ifobj_zc_avail()
1688 void *bufs; in thread_common_ops()
1698 bufs = mmap(NULL, umem_sz, PROT_READ | PROT_WRITE, mmap_flags, -1, 0); in thread_common_ops()
1699 if (bufs == MAP_FAILED) in thread_common_ops()
1702 ret = xsk_configure_umem(ifobject, ifobject->umem, bufs, umem_sz); in thread_common_ops()
2338 void *bufs; in hugepages_present()
291 void *bufs; ifobj_zc_avail() local
1687 void *bufs; thread_common_ops() local
2337 void *bufs; hugepages_present() local
[all...]
/linux/drivers/media/pci/pt1/
H A Dpt1.c60 struct pt1_buffer bufs[PT1_NR_BUFS]; member
508 page = pt1->tables[pt1->table_index].bufs[pt1->buf_index].page; in pt1_thread()
581 pt1_cleanup_buffer(pt1, &table->bufs[i]); in pt1_cleanup_table()
599 ret = pt1_init_buffer(pt1, &table->bufs[i], &buf_pfn); in pt1_init_table()
613 pt1_cleanup_buffer(pt1, &table->bufs[i]); in pt1_init_table()
1285 pt1->tables[i].bufs[j].page->upackets[PT1_NR_UPACKETS-1] in pt1_resume()
/linux/sound/oss/dmasound/
H A Ddmasound_core.c953 static int set_queue_frags(struct sound_queue *sq, int bufs, int size)
968 if (bufs <= 0) in set_queue_frags()
970 if (bufs > sq->numBufs) /* the user is allowed say "don't care" with 0x7fff */ in set_queue_frags()
971 bufs = sq->numBufs ; in set_queue_frags()
979 sq->max_active = bufs ; in set_queue_frags()
954 set_queue_frags(struct sound_queue * sq,int bufs,int size) set_queue_frags() argument
/linux/drivers/md/
H A Ddm-verity-fec.h57 u8 *bufs[DM_VERITY_FEC_BUF_MAX]; /* bufs for deinterleaving */ member
/linux/sound/core/
H A Dpcm_native.c3236 void *bufs __free(kfree) = NULL; in snd_pcm_xfern_frames_ioctl()
3248 bufs = memdup_user(xfern.bufs, sizeof(void *) * runtime->channels); in snd_pcm_xfern_frames_ioctl()
3249 if (IS_ERR(bufs)) in snd_pcm_xfern_frames_ioctl()
3250 return PTR_ERR(bufs); in snd_pcm_xfern_frames_ioctl()
3252 result = snd_pcm_lib_writev(substream, bufs, xfern.frames); in snd_pcm_xfern_frames_ioctl()
3254 result = snd_pcm_lib_readv(substream, bufs, xfern.frames); in snd_pcm_xfern_frames_ioctl()
3522 void __user **bufs __free(kfree) = NULL; in snd_pcm_readv()
3541 bufs = kmalloc_array(to->nr_segs, sizeof(void *), GFP_KERNEL); in snd_pcm_readv()
3542 if (bufs in snd_pcm_readv()
[all...]
/linux/arch/x86/include/asm/xen/
H A Dhypercall.h495 domid_t dom, unsigned int nr_bufs, struct xen_dm_op_buf *bufs) in HYPERVISOR_dm_op() argument
499 ret = _hypercall3(int, dm_op, dom, nr_bufs, bufs); in HYPERVISOR_dm_op()
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_dev.h207 struct ionic_buf_info bufs[MAX_SKB_FRAGS + 1]; member
212 struct ionic_buf_info bufs[IONIC_RX_MAX_FRAGS]; member
/linux/drivers/acpi/
H A Dproperty.c426 props->bufs = (void *)(props + 1); in acpi_data_add_buffer_props()
427 props->properties = (void *)(props->bufs + properties->package.count); in acpi_data_add_buffer_props()
486 props->bufs[i] = buf.pointer; in acpi_data_add_buffer_props()
609 if (props->bufs) in acpi_free_device_properties()
611 ACPI_FREE(props->bufs[i]); in acpi_free_device_properties()
/linux/drivers/media/pci/cobalt/
H A Dcobalt-v4l2.c112 list_for_each_entry(cb, &s->bufs, list) { in chain_all_buffers()
134 list_add_tail(&cb->list, &s->bufs); in cobalt_buf_queue()
272 cb = list_first_entry(&s->bufs, struct cobalt_buffer, list); in cobalt_dma_start_streaming()
367 list_for_each_entry(cb, &s->bufs, list) { in cobalt_dma_stop_streaming()
400 list_for_each_safe(p, safe, &s->bufs) { in cobalt_stop_streaming()
1253 INIT_LIST_HEAD(&s->bufs); in cobalt_node_register()
/linux/drivers/s390/net/
H A Dqeth_core_main.c197 for (i = 0; i < ARRAY_SIZE(queue->bufs); i++) in qeth_clear_working_pool_list()
198 queue->bufs[i].pool_entry = NULL; in qeth_clear_working_pool_list()
340 q->bufs[i].buffer = q->qdio_bufs[i]; in qeth_alloc_qdio_queue()
1354 QETH_TXQ_STAT_INC(queue, bufs); in qeth_tx_complete_buf()
1464 if (!q->bufs[j]) in qeth_drain_output_queue()
1467 qeth_clear_output_buffer(q, q->bufs[j], true, 0); in qeth_drain_output_queue()
1469 qeth_free_out_buf(q->bufs[j]); in qeth_drain_output_queue()
1470 q->bufs[j] = NULL; in qeth_drain_output_queue()
2579 q->bufs[bidx] = newbuf; in qeth_alloc_out_buf()
2613 qeth_free_out_buf(q->bufs[--i]); in qeth_alloc_output_queue()
[all …]
/linux/drivers/staging/media/ipu3/
H A Dipu3-css.h99 struct list_head bufs; member
/linux/drivers/scsi/snic/
H A Dvnic_wq.h65 struct vnic_wq_buf *bufs[VNIC_WQ_BUF_BLKS_MAX]; member
/linux/drivers/scsi/fnic/
H A Dvnic_wq.h80 struct vnic_wq_buf *bufs[VNIC_WQ_BUF_BLKS_MAX]; member
H A Dvnic_rq.h85 struct vnic_rq_buf *bufs[VNIC_RQ_BUF_BLKS_MAX]; member
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_txrx.c34 stack->bufs[stack->top++] = buf; in idpf_buf_lifo_push()
48 return stack->bufs[--stack->top]; in idpf_buf_lifo_pop()
103 if (!buf_stack->bufs) in idpf_tx_buf_rel_all()
121 kfree(buf_stack->bufs[i]); in idpf_tx_buf_rel_all()
123 kfree(buf_stack->bufs); in idpf_tx_buf_rel_all()
124 buf_stack->bufs = NULL; in idpf_tx_buf_rel_all()
217 buf_stack->bufs = kcalloc(tx_q->desc_count, sizeof(*buf_stack->bufs), in idpf_tx_buf_alloc_all()
219 if (!buf_stack->bufs) in idpf_tx_buf_alloc_all()
226 buf_stack->bufs[i] = kzalloc(sizeof(*buf_stack->bufs[i]), in idpf_tx_buf_alloc_all()
228 if (!buf_stack->bufs[i]) in idpf_tx_buf_alloc_all()
/linux/drivers/net/ethernet/cisco/enic/
H A Dvnic_wq.h72 struct vnic_wq_buf *bufs[VNIC_WQ_BUF_BLKS_MAX]; member
H A Dvnic_rq.h77 struct vnic_rq_buf *bufs[VNIC_RQ_BUF_BLKS_MAX]; member
/linux/io_uring/
H A Dkbuf.h128 #define io_ring_head_to_buf(br, head, mask) &(br)->bufs[(head) & (mask)]

12345