/linux-6.1.9/drivers/media/common/videobuf2/ |
D | videobuf2-core.c | 408 unsigned int num_buffers, unsigned int num_planes, in __vb2_queue_alloc() argument 416 num_buffers = min_t(unsigned int, num_buffers, in __vb2_queue_alloc() 417 VB2_MAX_FRAME - q->num_buffers); in __vb2_queue_alloc() 419 for (buffer = 0; buffer < num_buffers; ++buffer) { in __vb2_queue_alloc() 430 vb->index = q->num_buffers + buffer; in __vb2_queue_alloc() 484 for (buffer = q->num_buffers - buffers; buffer < q->num_buffers; in __vb2_free_mem() 517 for (buffer = q->num_buffers - buffers; buffer < q->num_buffers; in __vb2_queue_free() 528 for (buffer = q->num_buffers - buffers; buffer < q->num_buffers; in __vb2_queue_free() 545 if (q->num_buffers) { in __vb2_queue_free() 564 for (buffer = 0; buffer < q->num_buffers; ++buffer) { in __vb2_queue_free() [all …]
|
/linux-6.1.9/drivers/soc/fsl/dpio/ |
D | qbman-portal.c | 136 unsigned int num_buffers); 140 unsigned int num_buffers); 171 unsigned int num_buffers) 1453 const u64 *buffers, unsigned int num_buffers) in qbman_swp_release_direct() argument 1459 if (!num_buffers || (num_buffers > 7)) in qbman_swp_release_direct() 1470 for (i = 0; i < num_buffers; i++) in qbman_swp_release_direct() 1479 p->verb = d->verb | RAR_VB(rar) | num_buffers; in qbman_swp_release_direct() 1495 const u64 *buffers, unsigned int num_buffers) in qbman_swp_release_mem_back() argument 1501 if (!num_buffers || (num_buffers > 7)) in qbman_swp_release_mem_back() 1512 for (i = 0; i < num_buffers; i++) in qbman_swp_release_mem_back() [all …]
|
D | qbman-portal.h | 192 unsigned int num_buffers); 236 unsigned int num_buffers); 625 unsigned int num_buffers) in qbman_swp_release() argument 627 return qbman_swp_release_ptr(s, d, buffers, num_buffers); in qbman_swp_release()
|
D | dpio-service.c | 590 unsigned int num_buffers) in dpaa2_io_service_release() argument 601 return qbman_swp_release(d->swp, &rd, buffers, num_buffers); in dpaa2_io_service_release() 619 unsigned int num_buffers) in dpaa2_io_service_acquire() argument 629 err = qbman_swp_acquire(d->swp, bpid, buffers, num_buffers); in dpaa2_io_service_acquire()
|
/linux-6.1.9/drivers/staging/media/meson/vdec/ |
D | vdec.c | 166 unsigned int *num_buffers, in process_num_buffers() argument 170 unsigned int buffers_total = q->num_buffers + *num_buffers; in process_num_buffers() 173 if (q->num_buffers + *num_buffers < min_buf_capture) in process_num_buffers() 174 *num_buffers = min_buf_capture - q->num_buffers; in process_num_buffers() 176 *num_buffers = fmt_out->min_buffers - q->num_buffers; in process_num_buffers() 178 *num_buffers = fmt_out->max_buffers - q->num_buffers; in process_num_buffers() 185 sess->num_dst_bufs = q->num_buffers + *num_buffers; in process_num_buffers() 189 static int vdec_queue_setup(struct vb2_queue *q, unsigned int *num_buffers, in vdec_queue_setup() argument 222 process_num_buffers(q, sess, num_buffers, false); in vdec_queue_setup() 251 process_num_buffers(q, sess, num_buffers, true); in vdec_queue_setup()
|
/linux-6.1.9/drivers/most/ |
D | core.c | 35 int num_buffers; member 263 return snprintf(buf, PAGE_SIZE, "%d\n", c->cfg.num_buffers); in set_number_of_buffers_show() 612 c->cfg.num_buffers = val; in most_set_cfg_num_buffers() 882 for (i = 0; i < c->cfg.num_buffers; i++) { in arm_mbo_chain() 911 return c->cfg.num_buffers; in arm_mbo_chain() 964 ((comp == c->pipe0.comp && c->pipe0.num_buffers <= 0) || in channel_has_mbo() 965 (comp == c->pipe1.comp && c->pipe1.num_buffers <= 0))) in channel_has_mbo() 997 ((comp == c->pipe0.comp && c->pipe0.num_buffers <= 0) || in most_get_mbo() 998 (comp == c->pipe1.comp && c->pipe1.num_buffers <= 0))) in most_get_mbo() 1002 num_buffers_ptr = &c->pipe0.num_buffers; in most_get_mbo() [all …]
|
D | configfs.c | 22 u16 num_buffers; member 59 link->num_buffers); in set_cfg_num_buffers() 261 to_mdev_link(item)->num_buffers); in mdev_link_num_buffers_show() 270 ret = kstrtou16(page, 0, &mdev_link->num_buffers); in mdev_link_num_buffers_store() 355 CONFIGFS_ATTR(mdev_link_, num_buffers);
|
/linux-6.1.9/drivers/staging/media/deprecated/cpia2/ |
D | cpia2_v4l.c | 41 static int num_buffers = 3; variable 42 module_param(num_buffers, int, 0); 43 MODULE_PARM_DESC(num_buffers, "Number of frame buffers (1-" 988 cam->num_frames = num_buffers; in reset_camera_struct_v4l() 1176 if (num_buffers < 1) { in check_parameters() 1177 num_buffers = 1; in check_parameters() 1178 LOG("num_buffers too small, setting to %d\n", num_buffers); in check_parameters() 1179 } else if (num_buffers > VIDEO_MAX_FRAME) { in check_parameters() 1180 num_buffers = VIDEO_MAX_FRAME; in check_parameters() 1181 LOG("num_buffers too large, setting to %d\n", num_buffers); in check_parameters() [all …]
|
/linux-6.1.9/include/media/ |
D | videobuf2-core.h | 423 unsigned int *num_buffers, unsigned int *num_planes, 611 unsigned int num_buffers; member 1136 return (q->num_buffers > 0); in vb2_is_busy() 1228 if (index < q->num_buffers) in vb2_get_buffer()
|
/linux-6.1.9/include/soc/fsl/ |
D | dpaa2-io.h | 121 const u64 *buffers, unsigned int num_buffers); 123 u64 *buffers, unsigned int num_buffers);
|
/linux-6.1.9/drivers/media/platform/qcom/venus/ |
D | hfi_cmds.h | 84 u32 num_buffers; member 119 u32 num_buffers; member 229 u32 num_buffers; member
|
D | hfi_cmds.c | 196 pkt->num_buffers = bd->num_buffers; in pkt_session_set_buffers() 204 (bd->num_buffers * sizeof(*bi)); in pkt_session_set_buffers() 206 for (i = 0; i < pkt->num_buffers; i++) { in pkt_session_set_buffers() 213 ((bd->num_buffers - 1) * sizeof(u32)); in pkt_session_set_buffers() 214 for (i = 0; i < pkt->num_buffers; i++) in pkt_session_set_buffers() 234 pkt->num_buffers = bd->num_buffers; in pkt_session_unset_buffers() 241 for (i = 0; i < pkt->num_buffers; i++) { in pkt_session_unset_buffers() 247 sizeof(u32) + (bd->num_buffers * sizeof(*bi)); in pkt_session_unset_buffers() 249 for (i = 0; i < pkt->num_buffers; i++) in pkt_session_unset_buffers() 255 ((bd->num_buffers - 1) * sizeof(u32)); in pkt_session_unset_buffers()
|
/linux-6.1.9/drivers/usb/gadget/function/ |
D | f_mass_storage.h | 52 module_param_named(num_buffers, fsg_num_buffers, uint, S_IRUGO);\ 53 MODULE_PARM_DESC(num_buffers, "Number of pipeline buffers")
|
/linux-6.1.9/include/uapi/linux/ |
D | virtio_net.h | 157 __virtio16 num_buffers; /* Number of merged rx buffers */ member 197 __virtio16 num_buffers; /* Number of merged rx buffers */ member
|
/linux-6.1.9/Documentation/ABI/testing/ |
D | configfs-most | 26 num_buffers 81 num_buffers 136 num_buffers 202 num_buffers
|
/linux-6.1.9/drivers/media/test-drivers/vivid/ |
D | vivid-meta-out.c | 33 if (vq->num_buffers + *nbuffers < 2) in meta_out_queue_setup() 34 *nbuffers = 2 - vq->num_buffers; in meta_out_queue_setup()
|
D | vivid-meta-cap.c | 33 if (vq->num_buffers + *nbuffers < 2) in meta_cap_queue_setup() 34 *nbuffers = 2 - vq->num_buffers; in meta_cap_queue_setup()
|
D | vivid-vbi-out.c | 33 if (vq->num_buffers + *nbuffers < 2) in vbi_out_queue_setup() 34 *nbuffers = 2 - vq->num_buffers; in vbi_out_queue_setup()
|
/linux-6.1.9/drivers/media/platform/verisilicon/ |
D | hantro_postproc.c | 194 unsigned int num_buffers = cap_queue->num_buffers; in hantro_postproc_alloc() local 217 for (i = 0; i < num_buffers; ++i) { in hantro_postproc_alloc()
|
/linux-6.1.9/drivers/media/platform/st/sti/delta/ |
D | delta-v4l2.c | 1092 unsigned int *num_buffers, in delta_vb2_au_queue_setup() argument 1104 if (*num_buffers < 1) in delta_vb2_au_queue_setup() 1105 *num_buffers = 1; in delta_vb2_au_queue_setup() 1106 if (*num_buffers > DELTA_MAX_AUS) in delta_vb2_au_queue_setup() 1107 *num_buffers = DELTA_MAX_AUS; in delta_vb2_au_queue_setup() 1414 unsigned int *num_buffers, in delta_vb2_frame_queue_setup() argument 1431 if (*num_buffers < DELTA_MIN_FRAME_USER) { in delta_vb2_frame_queue_setup() 1434 ctx->name, *num_buffers, DELTA_MIN_FRAME_USER); in delta_vb2_frame_queue_setup() 1435 *num_buffers = DELTA_MIN_FRAME_USER; in delta_vb2_frame_queue_setup() 1438 *num_buffers += streaminfo->dpb + DELTA_PEAK_FRAME_SMOOTHING; in delta_vb2_frame_queue_setup() [all …]
|
/linux-6.1.9/drivers/media/common/siano/ |
D | smscoreapi.c | 687 dev->common_buffer_size = params->buffer_size * params->num_buffers; in smscore_register_device() 702 for (; dev->num_buffers < params->num_buffers; in smscore_register_device() 703 dev->num_buffers++, buffer += params->buffer_size) { in smscore_register_device() 716 pr_debug("allocated %d buffers\n", dev->num_buffers); in smscore_register_device() 1193 int num_buffers = 0; in smscore_unregister_device() local 1212 num_buffers++; in smscore_unregister_device() 1214 if (num_buffers == coredev->num_buffers) in smscore_unregister_device() 1222 coredev->num_buffers - num_buffers); in smscore_unregister_device() 1228 pr_debug("freed %d buffers\n", num_buffers); in smscore_unregister_device()
|
/linux-6.1.9/drivers/media/platform/amphion/ |
D | vpu_dbg.c | 83 vq->num_buffers, in vpu_dbg_instance() 107 vq->num_buffers, in vpu_dbg_instance() 135 for (i = 0; i < vq->num_buffers; i++) { in vpu_dbg_instance() 150 for (i = 0; i < vq->num_buffers; i++) { in vpu_dbg_instance()
|
/linux-6.1.9/drivers/media/dvb-core/ |
D | dvb_vb2.c | 180 q->num_buffers = 0; in dvb_vb2_init() 359 if (b->index >= q->num_buffers) { in dvb_vb2_querybuf() 390 if (b->index >= q->num_buffers) { in dvb_vb2_qbuf()
|
/linux-6.1.9/Documentation/admin-guide/media/ |
D | cpia2.rst | 70 num_buffers Number of frame buffers (1-32, default 3) 84 options cpia2 num_buffers=3 buffer_size=65535 89 cpia2.num_buffers=3 cpia2.buffer_size=65535
|
/linux-6.1.9/drivers/media/pci/tw68/ |
D | tw68-video.c | 359 unsigned int *num_buffers, unsigned int *num_planes, in tw68_queue_setup() argument 363 unsigned tot_bufs = q->num_buffers + *num_buffers; in tw68_queue_setup() 369 *num_buffers = tot_bufs - q->num_buffers; in tw68_queue_setup()
|