Home
last modified time | relevance | path

Searched refs:plane_no (Results 1 – 9 of 9) sorted by relevance

/linux/include/media/
H A Dvideobuf2-core.h1224 unsigned int plane_no, unsigned long size) in vb2_set_plane_payload() argument
1230 if (plane_no < vb->num_planes) { in vb2_set_plane_payload()
1231 if (WARN_ON_ONCE(size > vb->planes[plane_no].length)) in vb2_set_plane_payload()
1232 size = vb->planes[plane_no].length; in vb2_set_plane_payload()
1233 vb->planes[plane_no].bytesused = size; in vb2_set_plane_payload()
1244 unsigned int plane_no) in vb2_get_plane_payload() argument
1246 if (plane_no < vb->num_planes) in vb2_get_plane_payload()
1247 return vb->planes[plane_no].bytesused; in vb2_get_plane_payload()
1258 vb2_plane_size(struct vb2_buffer *vb, unsigned int plane_no) in vb2_plane_size() argument
1260 if (plane_no < vb->num_planes) in vb2_plane_size()
[all …]
H A Dvideobuf2-dma-sg.h19 struct vb2_buffer *vb, unsigned int plane_no) in vb2_dma_sg_plane_desc() argument
21 return (struct sg_table *)vb2_plane_cookie(vb, plane_no); in vb2_dma_sg_plane_desc()
H A Dvideobuf2-dma-contig.h20 vb2_dma_contig_plane_dma_addr(struct vb2_buffer *vb, unsigned int plane_no) in vb2_dma_contig_plane_dma_addr() argument
22 dma_addr_t *addr = vb2_plane_cookie(vb, plane_no); in vb2_dma_contig_plane_dma_addr()
/linux/drivers/media/platform/amphion/
H A Dvpu_helpers.c151 static u32 get_nv12_plane_size(u32 width, u32 height, int plane_no, in get_nv12_plane_size() argument
162 if (plane_no == 0) in get_nv12_plane_size()
164 else if (plane_no == 1) in get_nv12_plane_size()
191 if (plane_no == 0) in get_tiled_8l128_plane_size()
193 else if (plane_no == 1) in get_tiled_8l128_plane_size()
201 static u32 get_default_plane_size(u32 width, u32 height, int plane_no, in get_default_plane_size() argument
211 if (plane_no == 0) in get_default_plane_size()
219 u32 vpu_helper_get_plane_size(u32 fmt, u32 w, u32 h, int plane_no, in vpu_helper_get_plane_size() argument
225 return get_nv12_plane_size(w, h, plane_no, stride, interlaced, pbl); in vpu_helper_get_plane_size()
230 return get_tiled_8l128_plane_size(fmt, w, h, plane_no, stride, interlaced, pbl); in vpu_helper_get_plane_size()
[all …]
H A Dvpu_v4l2.h20 u32 vpu_get_fmt_plane_size(struct vpu_format *fmt, u32 plane_no);
36 dma_addr_t vpu_get_vb_phy_addr(struct vb2_buffer *vb, u32 plane_no);
37 unsigned int vpu_get_vb_length(struct vb2_buffer *vb, u32 plane_no);
H A Dvpu_v4l2.c37 dma_addr_t vpu_get_vb_phy_addr(struct vb2_buffer *vb, u32 plane_no) in vpu_get_vb_phy_addr() argument
39 if (plane_no >= vb->num_planes) in vpu_get_vb_phy_addr()
41 return vb2_dma_contig_plane_dma_addr(vb, plane_no) + in vpu_get_vb_phy_addr()
42 vb->planes[plane_no].data_offset; in vpu_get_vb_phy_addr()
47 if (plane_no >= vb->num_planes) in vpu_get_vb_length()
49 return vb2_plane_size(vb, plane_no) - vb->planes[plane_no].data_offset; in vpu_get_vb_length()
221 if (plane_no >= fmt->mem_planes) in vpu_get_fmt_plane_size()
225 return fmt->sizeimage[plane_no]; in vpu_get_fmt_plane_size()
226 if (plane_no < fmt->mem_planes - 1) in vpu_get_fmt_plane_size()
227 return fmt->sizeimage[plane_no]; in vpu_get_fmt_plane_size()
[all …]
H A Dvpu_helpers.h22 u32 vpu_helper_get_plane_size(u32 fmt, u32 width, u32 height, int plane_no,
/linux/drivers/media/platform/nxp/imx-jpeg/
H A Dmxc-jpeg.c593 unsigned int plane_no; in print_mxc_buf() local
601 for (plane_no = 0; plane_no < buf->num_planes; plane_no++) { in print_mxc_buf()
602 payload = vb2_get_plane_payload(buf, plane_no); in print_mxc_buf()
605 dma_addr = vb2_dma_contig_plane_dma_addr(buf, plane_no); in print_mxc_buf()
606 vaddr = vb2_plane_vaddr(buf, plane_no); in print_mxc_buf()
609 plane_no, vaddr, dma_addr, payload); in print_mxc_buf()
853 static u32 mxc_jpeg_get_plane_size(struct mxc_jpeg_q_data *q_data, u32 plane_no) in mxc_jpeg_get_plane_size() argument
859 if (plane_no >= fmt->mem_planes) in mxc_jpeg_get_plane_size()
863 return q_data->sizeimage[plane_no]; in mxc_jpeg_get_plane_size()
865 if (plane_no < fmt->mem_planes - 1) in mxc_jpeg_get_plane_size()
[all …]
/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-core.c1163 void *vb2_plane_vaddr(struct vb2_buffer *vb, unsigned int plane_no) in vb2_plane_vaddr() argument
1165 if (plane_no >= vb->num_planes || !vb->planes[plane_no].mem_priv) in vb2_plane_vaddr()
1168 return call_ptr_memop(vaddr, vb, vb->planes[plane_no].mem_priv); in vb2_plane_vaddr()
1173 void *vb2_plane_cookie(struct vb2_buffer *vb, unsigned int plane_no) in vb2_plane_cookie() argument
1175 if (plane_no >= vb->num_planes || !vb->planes[plane_no].mem_priv) in vb2_plane_cookie()
1178 return call_ptr_memop(cookie, vb, vb->planes[plane_no].mem_priv); in vb2_plane_cookie()