/linux/include/media/ |
H A D | videobuf2-core.h | 1224 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 D | videobuf2-dma-sg.h | 19 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 D | videobuf2-dma-contig.h | 20 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 D | vpu_helpers.c | 151 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 D | vpu_v4l2.h | 20 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 D | vpu_v4l2.c | 37 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 D | vpu_helpers.h | 22 u32 vpu_helper_get_plane_size(u32 fmt, u32 width, u32 height, int plane_no,
|
/linux/drivers/media/platform/nxp/imx-jpeg/ |
H A D | mxc-jpeg.c | 593 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 D | videobuf2-core.c | 1163 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()
|