/openbmc/linux/include/media/ |
H A D | videobuf2-core.h | 49 struct vb2_buffer; 119 void *(*alloc)(struct vb2_buffer *vb, 123 struct dma_buf *(*get_dmabuf)(struct vb2_buffer *vb, 127 void *(*get_userptr)(struct vb2_buffer *vb, 136 void *(*attach_dmabuf)(struct vb2_buffer *vb, 144 void *(*vaddr)(struct vb2_buffer *vb, void *buf_priv); 145 void *(*cookie)(struct vb2_buffer *vb, void *buf_priv); 249 struct vb2_buffer { struct 439 int (*buf_out_validate)(struct vb2_buffer *vb); 440 int (*buf_init)(struct vb2_buffer *vb); [all …]
|
/openbmc/linux/drivers/staging/media/sunxi/sun6i-isp/ |
H A D | sun6i_isp_params.c | 202 struct vb2_buffer *vb2_buffer; in sun6i_isp_params_state_cleanup() local 208 vb2_buffer = &state->pending->v4l2_buffer.vb2_buf; in sun6i_isp_params_state_cleanup() 209 vb2_buffer_done(vb2_buffer, error ? VB2_BUF_STATE_ERROR : in sun6i_isp_params_state_cleanup() 216 vb2_buffer = &isp_buffer->v4l2_buffer.vb2_buf; in sun6i_isp_params_state_cleanup() 217 vb2_buffer_done(vb2_buffer, error ? VB2_BUF_STATE_ERROR : in sun6i_isp_params_state_cleanup() 231 struct vb2_buffer *vb2_buffer; in sun6i_isp_params_state_update() local 246 vb2_buffer = &isp_buffer->v4l2_buffer.vb2_buf; in sun6i_isp_params_state_update() 247 config = vb2_plane_vaddr(vb2_buffer, 0); in sun6i_isp_params_state_update() 266 struct vb2_buffer *vb2_buffer; in sun6i_isp_params_state_complete() local 275 vb2_buffer = &isp_buffer->v4l2_buffer.vb2_buf; in sun6i_isp_params_state_complete() [all …]
|
H A D | sun6i_isp_capture.c | 69 struct vb2_buffer *vb2_buffer; in sun6i_isp_capture_buffer_configure() local 75 vb2_buffer = &isp_buffer->v4l2_buffer.vb2_buf; in sun6i_isp_capture_buffer_configure() 76 address = vb2_dma_contig_plane_dma_addr(vb2_buffer, 0); in sun6i_isp_capture_buffer_configure() 157 struct vb2_buffer *vb2_buffer; in sun6i_isp_capture_state_cleanup() local 168 vb2_buffer = &isp_buffer->v4l2_buffer.vb2_buf; in sun6i_isp_capture_state_cleanup() 169 vb2_buffer_done(vb2_buffer, error ? VB2_BUF_STATE_ERROR : in sun6i_isp_capture_state_cleanup() 176 vb2_buffer = &isp_buffer->v4l2_buffer.vb2_buf; in sun6i_isp_capture_state_cleanup() 177 vb2_buffer_done(vb2_buffer, error ? VB2_BUF_STATE_ERROR : in sun6i_isp_capture_state_cleanup() 233 struct vb2_buffer *vb2_buffer = in sun6i_isp_capture_state_complete() local 236 vb2_buffer->timestamp = ktime_get_ns(); in sun6i_isp_capture_state_complete() [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | vb2.h | 12 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 47 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 52 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 57 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 62 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
|
H A D | v4l2.h | 182 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 246 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 251 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 256 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 261 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
|
/openbmc/linux/drivers/media/common/videobuf2/ |
H A D | videobuf2-core.c | 192 static void __enqueue_in_driver(struct vb2_buffer *vb); 214 static int __vb2_buf_mem_alloc(struct vb2_buffer *vb) in __vb2_buf_mem_alloc() 261 static void __vb2_buf_mem_free(struct vb2_buffer *vb) in __vb2_buf_mem_free() 277 static void __vb2_buf_userptr_put(struct vb2_buffer *vb) in __vb2_buf_userptr_put() 292 static void __vb2_plane_dmabuf_put(struct vb2_buffer *vb, struct vb2_plane *p) in __vb2_plane_dmabuf_put() 315 static void __vb2_buf_dmabuf_put(struct vb2_buffer *vb) in __vb2_buf_dmabuf_put() 327 static void __vb2_buf_mem_prepare(struct vb2_buffer *vb) in __vb2_buf_mem_prepare() 343 static void __vb2_buf_mem_finish(struct vb2_buffer *vb) in __vb2_buf_mem_finish() 359 static void __setup_offsets(struct vb2_buffer *vb) in __setup_offsets() 366 struct vb2_buffer *prev = q->bufs[vb->index - 1]; in __setup_offsets() [all …]
|
H A D | videobuf2-vmalloc.c | 37 static void *vb2_vmalloc_alloc(struct vb2_buffer *vb, struct device *dev, in vb2_vmalloc_alloc() 73 static void *vb2_vmalloc_get_userptr(struct vb2_buffer *vb, struct device *dev, in vb2_vmalloc_get_userptr() 150 static void *vb2_vmalloc_vaddr(struct vb2_buffer *vb, void *buf_priv) in vb2_vmalloc_vaddr() 334 static struct dma_buf *vb2_vmalloc_get_dmabuf(struct vb2_buffer *vb, in vb2_vmalloc_get_dmabuf() 400 static void *vb2_vmalloc_attach_dmabuf(struct vb2_buffer *vb, in vb2_vmalloc_attach_dmabuf()
|
H A D | videobuf2-v4l2.c | 64 static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_buffer *b) in __verify_planes_array() 86 static int __verify_planes_array_core(struct vb2_buffer *vb, const void *pb) in __verify_planes_array_core() 95 static int __verify_length(struct vb2_buffer *vb, const struct v4l2_buffer *b) in __verify_length() 134 static void __init_vb2_v4l2_buffer(struct vb2_buffer *vb) in __init_vb2_v4l2_buffer() 141 static void __copy_timestamp(struct vb2_buffer *vb, const void *pb) in __copy_timestamp() 160 static void vb2_warn_zero_bytesused(struct vb2_buffer *vb) in vb2_warn_zero_bytesused() 176 static int vb2_fill_vb2_v4l2_buffer(struct vb2_buffer *vb, struct v4l2_buffer *b) in vb2_fill_vb2_v4l2_buffer() 345 struct vb2_buffer *vb, in set_buffer_cache_hints() 373 struct vb2_buffer *vb; in vb2_queue_or_prepare_buf() 492 static void __fill_v4l2_buffer(struct vb2_buffer *vb, void *pb) in __fill_v4l2_buffer() [all …]
|
H A D | videobuf2-dma-sg.c | 55 struct vb2_buffer *vb; 101 static void *vb2_dma_sg_alloc(struct vb2_buffer *vb, struct device *dev, in vb2_dma_sg_alloc() 223 static void *vb2_dma_sg_get_userptr(struct vb2_buffer *vb, struct device *dev, in vb2_dma_sg_get_userptr() 304 static void *vb2_dma_sg_vaddr(struct vb2_buffer *vb, void *buf_priv) in vb2_dma_sg_vaddr() 521 static struct dma_buf *vb2_dma_sg_get_dmabuf(struct vb2_buffer *vb, in vb2_dma_sg_get_dmabuf() 617 static void *vb2_dma_sg_attach_dmabuf(struct vb2_buffer *vb, struct device *dev, in vb2_dma_sg_attach_dmabuf() 650 static void *vb2_dma_sg_cookie(struct vb2_buffer *vb, void *buf_priv) in vb2_dma_sg_cookie()
|
H A D | videobuf2-dma-contig.c | 45 struct vb2_buffer *vb; 73 static void *vb2_dc_cookie(struct vb2_buffer *vb, void *buf_priv) in vb2_dc_cookie() 94 static void *vb2_dc_vaddr(struct vb2_buffer *vb, void *buf_priv) in vb2_dc_vaddr() 231 static void *vb2_dc_alloc(struct vb2_buffer *vb, in vb2_dc_alloc() 498 static struct dma_buf *vb2_dc_get_dmabuf(struct vb2_buffer *vb, in vb2_dc_get_dmabuf() 562 static void *vb2_dc_get_userptr(struct vb2_buffer *vb, struct device *dev, in vb2_dc_get_userptr() 768 static void *vb2_dc_attach_dmabuf(struct vb2_buffer *vb, struct device *dev, in vb2_dc_attach_dmabuf()
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | mtk_vcodec_dec.h | 96 int vb2ops_vdec_buf_prepare(struct vb2_buffer *vb); 97 void vb2ops_vdec_buf_finish(struct vb2_buffer *vb); 98 int vb2ops_vdec_buf_init(struct vb2_buffer *vb);
|
/openbmc/linux/drivers/media/platform/sunxi/sun6i-csi/ |
H A D | sun6i_csi_capture.c | 338 struct vb2_buffer *vb2_buffer; in sun6i_csi_capture_buffer_configure() local 343 vb2_buffer = &csi_buffer->v4l2_buffer.vb2_buf; in sun6i_csi_capture_buffer_configure() 344 address = vb2_dma_contig_plane_dma_addr(vb2_buffer, 0); in sun6i_csi_capture_buffer_configure() 446 struct vb2_buffer *vb2_buffer; in sun6i_csi_capture_state_cleanup() local 457 vb2_buffer = &csi_buffer->v4l2_buffer.vb2_buf; in sun6i_csi_capture_state_cleanup() 458 vb2_buffer_done(vb2_buffer, error ? VB2_BUF_STATE_ERROR : in sun6i_csi_capture_state_cleanup() 465 vb2_buffer = &csi_buffer->v4l2_buffer.vb2_buf; in sun6i_csi_capture_state_cleanup() 466 vb2_buffer_done(vb2_buffer, error ? VB2_BUF_STATE_ERROR : in sun6i_csi_capture_state_cleanup() 518 struct vb2_buffer *vb2_buffer = in sun6i_csi_capture_state_complete() local 521 vb2_buffer->timestamp = ktime_get_ns(); in sun6i_csi_capture_state_complete() [all …]
|
/openbmc/linux/drivers/media/test-drivers/visl/ |
H A D | visl-dec.c | 22 static void *plane_vaddr(struct tpg_data *tpg, struct vb2_buffer *buf, in plane_vaddr() 53 struct vb2_buffer *vb2_buf; in visl_get_ref_frames() 64 struct vb2_buffer *b_ref; in visl_get_ref_frames() 65 struct vb2_buffer *f_ref; in visl_get_ref_frames() 81 struct vb2_buffer *last; in visl_get_ref_frames() 82 struct vb2_buffer *golden; in visl_get_ref_frames() 83 struct vb2_buffer *alt; in visl_get_ref_frames() 103 struct vb2_buffer *last; in visl_get_ref_frames() 104 struct vb2_buffer *golden; in visl_get_ref_frames() 105 struct vb2_buffer *alt; in visl_get_ref_frames() [all …]
|
/openbmc/linux/drivers/media/platform/ti/omap/ |
H A D | omap_vout_vrfb.h | 23 struct vb2_buffer *vb); 35 struct vb2_buffer *vb) in omap_vout_prepare_vrfb()
|
/openbmc/linux/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus.h | 223 static inline dma_addr_t cedrus_buf_addr(struct vb2_buffer *buf, in cedrus_buf_addr() 234 struct vb2_buffer *buf, in cedrus_dst_buf_addr() 247 struct vb2_buffer *buf = vb2_find_buffer(q, timestamp); in cedrus_write_ref_buf_addr() 260 vb2_to_cedrus_buffer(const struct vb2_buffer *p) in vb2_to_cedrus_buffer()
|
/openbmc/linux/drivers/media/platform/qcom/venus/ |
H A D | helpers.h | 22 int venus_helper_vb2_buf_init(struct vb2_buffer *vb); 23 int venus_helper_vb2_buf_prepare(struct vb2_buffer *vb); 24 void venus_helper_vb2_buf_queue(struct vb2_buffer *vb);
|
/openbmc/linux/drivers/media/platform/rockchip/rga/ |
H A D | rga-buf.c | 38 static int rga_buf_prepare(struct vb2_buffer *vb) in rga_buf_prepare() 51 static void rga_buf_queue(struct vb2_buffer *vb) in rga_buf_queue() 113 void rga_buf_map(struct vb2_buffer *vb) in rga_buf_map()
|
/openbmc/linux/drivers/media/platform/mediatek/jpeg/ |
H A D | mtk_jpeg_enc_hw.h | 86 struct vb2_buffer *src_buf); 88 struct vb2_buffer *dst_buf);
|
/openbmc/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-meta-out.c | 40 static int meta_out_buf_prepare(struct vb2_buffer *vb) in meta_out_buf_prepare() 65 static void meta_out_buf_queue(struct vb2_buffer *vb) in meta_out_buf_queue() 114 static void meta_out_buf_request_complete(struct vb2_buffer *vb) in meta_out_buf_request_complete()
|
H A D | vivid-meta-cap.c | 40 static int meta_cap_buf_prepare(struct vb2_buffer *vb) in meta_cap_buf_prepare() 65 static void meta_cap_buf_queue(struct vb2_buffer *vb) in meta_cap_buf_queue() 114 static void meta_cap_buf_request_complete(struct vb2_buffer *vb) in meta_cap_buf_request_complete()
|
/openbmc/linux/drivers/media/usb/au0828/ |
H A D | au0828-vbi.c | 35 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() 53 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue()
|
/openbmc/linux/drivers/media/usb/em28xx/ |
H A D | em28xx-vbi.c | 44 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() 64 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue()
|
/openbmc/linux/drivers/media/platform/amphion/ |
H A D | vpu_v4l2.h | 35 dma_addr_t vpu_get_vb_phy_addr(struct vb2_buffer *vb, u32 plane_no); 36 unsigned int vpu_get_vb_length(struct vb2_buffer *vb, u32 plane_no);
|
/openbmc/linux/drivers/media/usb/uvc/ |
H A D | uvc_queue.c | 98 static int uvc_buffer_prepare(struct vb2_buffer *vb) in uvc_buffer_prepare() 126 static void uvc_buffer_queue(struct vb2_buffer *vb) in uvc_buffer_queue() 149 static void uvc_buffer_finish(struct vb2_buffer *vb) in uvc_buffer_finish() 476 struct vb2_buffer *vb = &buf->buf.vb2_buf; in uvc_queue_buffer_complete()
|
/openbmc/linux/drivers/media/pci/cx88/ |
H A D | cx88-vbi.c | 129 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() 153 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() 166 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue()
|