Home
last modified time | relevance | path

Searched refs:num_buffers (Results 1 – 25 of 101) sorted by relevance

12345

/drivers/media/common/videobuf2/
Dvideobuf2-core.c393 unsigned int num_buffers, unsigned int num_planes, in __vb2_queue_alloc() argument
401 num_buffers = min_t(unsigned int, num_buffers, in __vb2_queue_alloc()
402 VB2_MAX_FRAME - q->num_buffers); in __vb2_queue_alloc()
404 for (buffer = 0; buffer < num_buffers; ++buffer) { in __vb2_queue_alloc()
415 vb->index = q->num_buffers + buffer; in __vb2_queue_alloc()
479 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()
523 for (buffer = q->num_buffers - buffers; buffer < q->num_buffers; in __vb2_queue_free()
540 if (q->num_buffers) { in __vb2_queue_free()
559 for (buffer = 0; buffer < q->num_buffers; ++buffer) { in __vb2_queue_free()
[all …]
Dvideobuf2-v4l2.c406 if (b->index >= q->num_buffers) { in vb2_queue_or_prepare_buf()
658 for (i = start_idx; i < q->num_buffers; i++) in vb2_find_timestamp()
689 if (b->index >= q->num_buffers) { in vb2_querybuf()
757 create->index = q->num_buffers; in vb2_create_bufs()
1018 p->index = vdev->queue->num_buffers; in vb2_ioctl_create_bufs()
/drivers/soc/fsl/dpio/
Dqbman-portal.c134 unsigned int num_buffers);
138 unsigned int num_buffers);
169 unsigned int num_buffers)
1448 const u64 *buffers, unsigned int num_buffers) in qbman_swp_release_direct() argument
1454 if (!num_buffers || (num_buffers > 7)) in qbman_swp_release_direct()
1465 for (i = 0; i < num_buffers; i++) in qbman_swp_release_direct()
1474 p->verb = d->verb | RAR_VB(rar) | num_buffers; in qbman_swp_release_direct()
1490 const u64 *buffers, unsigned int num_buffers) in qbman_swp_release_mem_back() argument
1496 if (!num_buffers || (num_buffers > 7)) in qbman_swp_release_mem_back()
1507 for (i = 0; i < num_buffers; i++) in qbman_swp_release_mem_back()
[all …]
Dqbman-portal.h185 unsigned int num_buffers);
229 unsigned int num_buffers);
618 unsigned int num_buffers) in qbman_swp_release() argument
620 return qbman_swp_release_ptr(s, d, buffers, num_buffers); in qbman_swp_release()
Ddpio-service.c552 unsigned int num_buffers) in dpaa2_io_service_release() argument
563 return qbman_swp_release(d->swp, &rd, buffers, num_buffers); in dpaa2_io_service_release()
581 unsigned int num_buffers) in dpaa2_io_service_acquire() argument
591 err = qbman_swp_acquire(d->swp, bpid, buffers, num_buffers); in dpaa2_io_service_acquire()
/drivers/staging/media/meson/vdec/
Dvdec.c166 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/
Dcore.c35 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 …]
Dconfigfs.c22 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/staging/media/hantro/
Dhantro_postproc.c126 unsigned int num_buffers = cap_queue->num_buffers; in hantro_postproc_alloc() local
134 for (i = 0; i < num_buffers; ++i) { in hantro_postproc_alloc()
/drivers/media/usb/cpia2/
Dcpia2_v4l.c41 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 …]
/drivers/media/platform/qcom/venus/
Dhfi_cmds.h84 u32 num_buffers; member
119 u32 num_buffers; member
229 u32 num_buffers; member
Dhfi_cmds.c187 pkt->num_buffers = bd->num_buffers; in pkt_session_set_buffers()
195 (bd->num_buffers * sizeof(*bi)); in pkt_session_set_buffers()
197 for (i = 0; i < pkt->num_buffers; i++) { in pkt_session_set_buffers()
204 ((bd->num_buffers - 1) * sizeof(u32)); in pkt_session_set_buffers()
205 for (i = 0; i < pkt->num_buffers; i++) in pkt_session_set_buffers()
225 pkt->num_buffers = bd->num_buffers; in pkt_session_unset_buffers()
232 for (i = 0; i < pkt->num_buffers; i++) { in pkt_session_unset_buffers()
238 sizeof(u32) + (bd->num_buffers * sizeof(*bi)); in pkt_session_unset_buffers()
240 for (i = 0; i < pkt->num_buffers; i++) in pkt_session_unset_buffers()
246 ((bd->num_buffers - 1) * sizeof(u32)); in pkt_session_unset_buffers()
Dvenc.c907 unsigned int *num_buffers, unsigned int *num_planes, in venc_queue_setup() argument
950 *num_buffers = max(*num_buffers, num); in venc_queue_setup()
951 inst->num_input_bufs = *num_buffers; in venc_queue_setup()
960 *num_buffers = max(*num_buffers, min); in venc_queue_setup()
961 inst->num_output_bufs = *num_buffers; in venc_queue_setup()
Dvdec.c839 unsigned int *num_buffers, unsigned int *num_planes, in vdec_queue_setup() argument
892 *num_buffers = max(*num_buffers, in_num); in vdec_queue_setup()
893 inst->num_input_bufs = *num_buffers; in vdec_queue_setup()
902 *num_buffers = max(*num_buffers, out_num); in vdec_queue_setup()
903 inst->num_output_bufs = *num_buffers; in vdec_queue_setup()
/drivers/usb/gadget/function/
Df_mass_storage.h52 module_param_named(num_buffers, fsg_num_buffers, uint, S_IRUGO);\
53 MODULE_PARM_DESC(num_buffers, "Number of pipeline buffers")
/drivers/media/test-drivers/vivid/
Dvivid-meta-out.c33 if (vq->num_buffers + *nbuffers < 2) in meta_out_queue_setup()
34 *nbuffers = 2 - vq->num_buffers; in meta_out_queue_setup()
Dvivid-meta-cap.c33 if (vq->num_buffers + *nbuffers < 2) in meta_cap_queue_setup()
34 *nbuffers = 2 - vq->num_buffers; in meta_cap_queue_setup()
Dvivid-vbi-out.c33 if (vq->num_buffers + *nbuffers < 2) in vbi_out_queue_setup()
34 *nbuffers = 2 - vq->num_buffers; in vbi_out_queue_setup()
/drivers/media/platform/sti/delta/
Ddelta-v4l2.c1092 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/
Dsmscoreapi.c687 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/dvb-core/
Ddvb_vb2.c184 q->num_buffers = 0; in dvb_vb2_init()
363 if (b->index >= q->num_buffers) { in dvb_vb2_querybuf()
394 if (b->index >= q->num_buffers) { in dvb_vb2_qbuf()
/drivers/media/platform/rockchip/rkisp1/
Drkisp1-stats.c92 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()
/drivers/media/pci/tw68/
Dtw68-video.c359 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/
Drcar_drif.c427 unsigned int *num_buffers, unsigned int *num_planes, in rcar_drif_queue_setup() argument
433 if (vq->num_buffers + *num_buffers < 16) in rcar_drif_queue_setup()
434 *num_buffers = 16 - vq->num_buffers; in rcar_drif_queue_setup()
438 rdrif_dbg(sdr, "num_bufs %d sizes[0] %d\n", *num_buffers, sizes[0]); in rcar_drif_queue_setup()
/drivers/staging/media/sunxi/cedrus/
Dcedrus_h265.c278 unsigned int num_buffers = in cedrus_h265_setup() local
279 run->dst->vb2_buf.vb2_queue->num_buffers; in cedrus_h265_setup()
291 ctx->codec.h265.mv_col_buf_size = num_buffers * in cedrus_h265_setup()

12345