/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() 512 for (buffer = q->num_buffers - buffers; buffer < q->num_buffers; in __vb2_queue_free() 529 if (q->num_buffers) { in __vb2_queue_free() 553 for (buffer = 0; buffer < q->num_buffers; ++buffer) { in __vb2_queue_free() 592 for (buffer = q->num_buffers - buffers; buffer < q->num_buffers; in __vb2_queue_free() [all …]
|
D | videobuf2-v4l2.c | 381 if (b->index >= q->num_buffers) { in vb2_queue_or_prepare_buf() 632 for (i = 0; i < q->num_buffers; i++) in vb2_find_buffer() 663 if (b->index >= q->num_buffers) { in vb2_querybuf() 752 create->index = q->num_buffers; in vb2_create_bufs() 1011 p->index = vdev->queue->num_buffers; in vb2_ioctl_create_bufs()
|
/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()
|
/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()
|
/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);
|
/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); 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 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 buffer_info, bd->num_buffers); in pkt_session_unset_buffers()
|
D | venc.c | 1058 unsigned int *num_buffers, unsigned int *num_planes, in venc_queue_setup() argument 1120 *num_buffers = max(*num_buffers, num); in venc_queue_setup() 1121 inst->num_input_bufs = *num_buffers; in venc_queue_setup() 1130 *num_buffers = max(*num_buffers, min); in venc_queue_setup() 1131 inst->num_output_bufs = *num_buffers; in venc_queue_setup()
|
/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")
|
/drivers/media/platform/verisilicon/ |
D | hantro_postproc.c | 198 unsigned int num_buffers = cap_queue->num_buffers; in hantro_postproc_alloc() local 224 for (i = 0; i < num_buffers; ++i) { in hantro_postproc_alloc()
|
/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 …]
|
/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()
|
/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()
|
D | vivid-vbi-cap.c | 137 if (vq->num_buffers + *nbuffers < 2) in vbi_cap_queue_setup() 138 *nbuffers = 2 - vq->num_buffers; in vbi_cap_queue_setup()
|
D | vivid-touch-cap.c | 26 if (vq->num_buffers + *nbuffers < 2) in touch_cap_queue_setup() 27 *nbuffers = 2 - vq->num_buffers; in touch_cap_queue_setup()
|
/drivers/media/platform/amphion/ |
D | vpu_dbg.c | 90 vq->num_buffers, in vpu_dbg_instance() 114 vq->num_buffers, in vpu_dbg_instance() 142 for (i = 0; i < vq->num_buffers; i++) { in vpu_dbg_instance() 157 for (i = 0; i < vq->num_buffers; i++) { in vpu_dbg_instance()
|
/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()
|
/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()
|
/drivers/media/platform/renesas/ |
D | rcar_drif.c | 423 unsigned int *num_buffers, unsigned int *num_planes, in rcar_drif_queue_setup() argument 429 if (vq->num_buffers + *num_buffers < 16) in rcar_drif_queue_setup() 430 *num_buffers = 16 - vq->num_buffers; in rcar_drif_queue_setup() 434 rdrif_dbg(sdr, "num_bufs %d sizes[0] %d\n", *num_buffers, sizes[0]); in rcar_drif_queue_setup()
|
/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-stats.c | 92 unsigned int *num_buffers, in rkisp1_stats_vb2_queue_setup() argument 99 *num_buffers = clamp_t(u32, *num_buffers, RKISP1_ISP_STATS_REQ_BUFS_MIN, in rkisp1_stats_vb2_queue_setup()
|