Home
last modified time | relevance | path

Searched refs:vb2_plane_size (Results 1 – 25 of 36) sorted by relevance

12

/linux/drivers/media/platform/verisilicon/
H A Dhantro_h1_jpeg_enc.c49 size_left = vb2_plane_size(dst_buf, 0) - ctx->vpu_dst_fmt->header_size; in hantro_h1_jpeg_enc_set_buffers()
50 if (WARN_ON(vb2_plane_size(dst_buf, 0) < ctx->vpu_dst_fmt->header_size)) in hantro_h1_jpeg_enc_set_buffers()
H A Drockchip_vpu2_hw_jpeg_enc.c76 size_left = vb2_plane_size(dst_buf, 0) - ctx->vpu_dst_fmt->header_size; in rockchip_vpu2_jpeg_enc_set_buffers()
77 if (WARN_ON(vb2_plane_size(dst_buf, 0) < ctx->vpu_dst_fmt->header_size)) in rockchip_vpu2_jpeg_enc_set_buffers()
H A Dhantro_v4l2.c828 i, vb2_plane_size(vb, i), sz); in hantro_buf_plane_check()
829 if (vb2_plane_size(vb, i) < sz) { in hantro_buf_plane_check()
H A Dhantro_g2_hevc_dec.c515 src_buf_len = vb2_plane_size(&src_buf->vb2_buf, 0); in set_buffers()
/linux/drivers/staging/media/meson/vdec/
H A Desparser.c96 if (dsize == vb2_plane_size(buf, 0)) { in vp9_update_header()
135 if (new_frame_size >= vb2_plane_size(buf, 0)) { in vp9_update_header()
201 vb2_plane_size(vb, 0)) { in esparser_pad_start_code()
/linux/drivers/media/dvb-core/
H A Ddvb_vb2.c55 if (vb2_plane_size(vb, 0) < size) { in _buffer_prepare()
57 ctx->name, vb2_plane_size(vb, 0), size); in _buffer_prepare()
281 ctx->remain = vb2_plane_size(&ctx->buf->vb, 0); in dvb_vb2_fill_buffer()
/linux/drivers/staging/media/atomisp/pci/
H A Datomisp_fops.c84 if (frame->data_bytes > vb2_plane_size(vb, 0)) { in atomisp_buf_init()
86 frame->data_bytes, vb2_plane_size(vb, 0)); in atomisp_buf_init()
90 frame->data = hmm_create_from_vmalloc_buf(vb2_plane_size(vb, 0), in atomisp_buf_init()
/linux/drivers/media/platform/chips-media/coda/
H A Dcoda-jpeg.c508 val = DIV_ROUND_UP(vb2_plane_size(buf, 0), 256) + 3; in coda9_jpeg_dec_bbc_gbu_setup()
1089 vb2_plane_size(&src_buf->vb2_buf, 0)); in coda9_jpeg_prepare_encode()
1101 end_addr = start_addr + vb2_plane_size(&dst_buf->vb2_buf, 0); in coda9_jpeg_prepare_encode()
1118 vb2_plane_size(&dst_buf->vb2_buf, 0), in coda9_jpeg_prepare_encode()
1350 vb2_plane_size(&src_buf->vb2_buf, 0)); in coda9_jpeg_prepare_decode()
/linux/include/media/
H A Dvideobuf2-core.h1258 vb2_plane_size(struct vb2_buffer *vb, unsigned int plane_no) in vb2_plane_size() function
/linux/drivers/media/platform/nvidia/tegra-vde/
H A Dh264.c680 if (offset + min_size > vb2_plane_size(vb, plane_id)) { in tegra_vde_validate_vb_size()
682 plane_id, vb2_plane_size(vb, plane_id), offset, min_size); in tegra_vde_validate_vb_size()
/linux/drivers/media/platform/mediatek/jpeg/
H A Dmtk_jpeg_enc_hw.c110 size = vb2_plane_size(dst_buf, 0); in mtk_jpeg_set_enc_dst()
/linux/drivers/input/touchscreen/
H A Dsur40.c873 if (vb2_plane_size(vb, 0) < size) { in sur40_buffer_prepare()
875 vb2_plane_size(vb, 0), size); in sur40_buffer_prepare()
/linux/drivers/media/pci/mgb4/
H A Dmgb4_vout.c152 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare()
154 vb2_plane_size(vb, 0), size); in buffer_prepare()
H A Dmgb4_vin.c237 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare()
239 vb2_plane_size(vb, 0), size); in buffer_prepare()
/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec.c816 if (vb2_plane_size(vb, i) < q_data->sizeimage[i]) { in vb2ops_vdec_buf_prepare()
818 i, vb2_plane_size(vb, i), q_data->sizeimage[i]); in vb2ops_vdec_buf_prepare()
/linux/drivers/media/platform/renesas/vsp1/
H A Dvsp1_video.c225 vb2_plane_size(&done->buf.vb2_buf, i)); in vsp1_video_complete_buffer()
636 if (vb2_plane_size(vb, i) < format->plane_fmt[i].sizeimage) in vsp1_video_buffer_prepare()
/linux/drivers/media/platform/atmel/
H A Datmel-isi.c316 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare()
318 __func__, vb2_plane_size(vb, 0), size); in buffer_prepare()
/linux/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_vp8.c679 reg = vb2_plane_size(src_buf, 0) * 8; in cedrus_vp8_setup()
/linux/drivers/media/platform/rockchip/rkisp1/
H A Drkisp1-stats.c123 if (vb2_plane_size(vb, 0) < sizeof(struct rkisp1_stat_buffer)) in rkisp1_stats_vb2_buf_prepare()
/linux/drivers/media/platform/qcom/venus/
H A Dhelpers.c1450 buf->size = vb2_plane_size(vb, 0); in venus_helper_vb2_buf_init()
1477 vb2_plane_size(vb, 0) < out_buf_size) in venus_helper_vb2_buf_prepare()
1480 vb2_plane_size(vb, 0) < inst->input_buf_size) in venus_helper_vb2_buf_prepare()
/linux/drivers/staging/vc04_services/bcm2835-camera/
H A Dbcm2835-camera.c275 buf->mmal.buffer_size = vb2_plane_size(&buf->vb.vb2_buf, 0); in buffer_init()
292 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare()
295 __func__, vb2_plane_size(vb, 0), size); in buffer_prepare()
/linux/drivers/media/pci/cx88/
H A Dcx88-mpeg.c224 if (vb2_plane_size(&buf->vb.vb2_buf, 0) < size) in cx8802_buf_prepare()
/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_opr_v5.c1241 dst_size = vb2_plane_size(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_enc_frame()
1278 dst_size = vb2_plane_size(&dst_mb->b->vb2_buf, 0); in s5p_mfc_run_init_enc()
/linux/drivers/media/platform/qcom/camss/
H A Dcamss-video.c185 if (format->plane_fmt[i].sizeimage > vb2_plane_size(vb, i)) in video_buf_prepare()
/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-core.c2933 fileio->bufs[i].size = vb2_plane_size(vb, 0); in __vb2_init_fileio()
3076 : vb2_plane_size(b, 0); in __vb2_perform_fileio()
3147 buf->size = vb2_plane_size(b, 0); in __vb2_perform_fileio()

12