/linux/drivers/media/platform/mtk-vcodec/ |
A D | mtk_vcodec_util.c | 23 void __iomem *mtk_vcodec_get_reg_addr(struct mtk_vcodec_ctx *data, in mtk_vcodec_get_reg_addr() 26 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; in mtk_vcodec_get_reg_addr() 36 int mtk_vcodec_mem_alloc(struct mtk_vcodec_ctx *data, in mtk_vcodec_mem_alloc() 40 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; in mtk_vcodec_mem_alloc() 59 void mtk_vcodec_mem_free(struct mtk_vcodec_ctx *data, in mtk_vcodec_mem_free() 63 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; in mtk_vcodec_mem_free() 85 struct mtk_vcodec_ctx *ctx) in mtk_vcodec_set_curr_ctx() 95 struct mtk_vcodec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dev *dev) in mtk_vcodec_get_curr_ctx() 98 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_get_curr_ctx()
|
A D | mtk_vcodec_util.h | 25 struct mtk_vcodec_ctx; 38 ((struct mtk_vcodec_ctx *)h->ctx)->id, __func__, ##args) 57 ((struct mtk_vcodec_ctx *)h->ctx)->id, \ 76 void __iomem *mtk_vcodec_get_reg_addr(struct mtk_vcodec_ctx *data, 78 int mtk_vcodec_mem_alloc(struct mtk_vcodec_ctx *data, 80 void mtk_vcodec_mem_free(struct mtk_vcodec_ctx *data, 83 struct mtk_vcodec_ctx *ctx); 84 struct mtk_vcodec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dev *dev);
|
A D | mtk_vcodec_drv.h | 266 struct mtk_vcodec_ctx { struct 340 void (*init_vdec_params)(struct mtk_vcodec_ctx *ctx); 341 int (*ctrls_setup)(struct mtk_vcodec_ctx *ctx); 343 int (*flush_decoder)(struct mtk_vcodec_ctx *ctx); 439 struct mtk_vcodec_ctx *curr_ctx; 466 static inline struct mtk_vcodec_ctx *fh_to_ctx(struct v4l2_fh *fh) in fh_to_ctx() 468 return container_of(fh, struct mtk_vcodec_ctx, fh); in fh_to_ctx() 471 static inline struct mtk_vcodec_ctx *ctrl_to_ctx(struct v4l2_ctrl *ctrl) in ctrl_to_ctx() 473 return container_of(ctrl->handler, struct mtk_vcodec_ctx, ctrl_hdl); in ctrl_to_ctx()
|
A D | mtk_vcodec_enc.h | 42 int mtk_venc_unlock(struct mtk_vcodec_ctx *ctx); 43 int mtk_venc_lock(struct mtk_vcodec_ctx *ctx); 46 void mtk_vcodec_enc_release(struct mtk_vcodec_ctx *ctx); 47 int mtk_vcodec_enc_ctrls_setup(struct mtk_vcodec_ctx *ctx); 48 void mtk_vcodec_enc_set_default_params(struct mtk_vcodec_ctx *ctx);
|
A D | mtk_vcodec_dec.c | 50 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_try_decoder_cmd() 64 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_decoder_cmd() 106 void mtk_vdec_unlock(struct mtk_vcodec_ctx *ctx) in mtk_vdec_unlock() 111 void mtk_vdec_lock(struct mtk_vcodec_ctx *ctx) in mtk_vdec_lock() 172 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_vdec_qbuf() 186 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_vdec_dqbuf() 287 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_try_fmt_vid_cap_mplane() 851 struct mtk_vcodec_ctx *ctx = priv; in m2mops_vdec_device_run() 859 struct mtk_vcodec_ctx *ctx = m2m_priv; in m2mops_vdec_job_ready() 878 struct mtk_vcodec_ctx *ctx = priv; in m2mops_vdec_job_abort() [all …]
|
A D | mtk_vcodec_enc.c | 49 struct mtk_vcodec_ctx *ctx = ctrl_to_ctx(ctrl); in vidioc_venc_s_ctrl() 161 struct mtk_vcodec_ctx *ctx = fh_to_ctx(fh); in vidioc_enum_framesizes() 214 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_s_parm() 237 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_g_parm() 398 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_s_fmt_cap() 1043 struct mtk_vcodec_ctx *ctx = priv; in mtk_venc_encode_header() 1171 struct mtk_vcodec_ctx *ctx = container_of(work, struct mtk_vcodec_ctx, in mtk_venc_worker() 1255 struct mtk_vcodec_ctx *ctx = priv; in m2mops_venc_device_run() 1271 struct mtk_vcodec_ctx *ctx = m2m_priv; in m2mops_venc_job_ready() 1284 struct mtk_vcodec_ctx *ctx = priv; in m2mops_venc_job_abort() [all …]
|
A D | vdec_drv_if.h | 67 int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc); 74 void vdec_if_deinit(struct mtk_vcodec_ctx *ctx); 88 int vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs, 97 int vdec_if_get_param(struct mtk_vcodec_ctx *ctx, enum vdec_get_param_type type,
|
A D | venc_drv_if.h | 135 int venc_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc); 142 int venc_if_deinit(struct mtk_vcodec_ctx *ctx); 151 int venc_if_set_param(struct mtk_vcodec_ctx *ctx, 164 int venc_if_encode(struct mtk_vcodec_ctx *ctx,
|
A D | mtk_vcodec_dec.h | 78 void mtk_vdec_unlock(struct mtk_vcodec_ctx *ctx); 79 void mtk_vdec_lock(struct mtk_vcodec_ctx *ctx); 82 void mtk_vcodec_dec_set_default_params(struct mtk_vcodec_ctx *ctx); 83 void mtk_vcodec_dec_release(struct mtk_vcodec_ctx *ctx);
|
A D | mtk_vcodec_dec_stateless.c | 111 static void mtk_vdec_stateless_set_dst_payload(struct mtk_vcodec_ctx *ctx, in mtk_vdec_stateless_set_dst_payload() 128 static struct vdec_fb *vdec_get_cap_buffer(struct mtk_vcodec_ctx *ctx, in vdec_get_cap_buffer() 156 struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_buf_request_complete() 163 struct mtk_vcodec_ctx *ctx = in mtk_vdec_worker() 164 container_of(work, struct mtk_vcodec_ctx, decode_work); in mtk_vdec_worker() 234 struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_stateless_buf_queue() 254 static int mtk_vdec_flush_decoder(struct mtk_vcodec_ctx *ctx) in mtk_vdec_flush_decoder() 261 static int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_dec_ctrls_setup() 311 static void mtk_init_vdec_params(struct mtk_vcodec_ctx *ctx) in mtk_init_vdec_params()
|
A D | mtk_vcodec_dec_stateful.c | 192 static void clean_display_buffer(struct mtk_vcodec_ctx *ctx) in clean_display_buffer() 198 static void clean_free_buffer(struct mtk_vcodec_ctx *ctx) in clean_free_buffer() 215 static int mtk_vdec_flush_decoder(struct mtk_vcodec_ctx *ctx) in mtk_vdec_flush_decoder() 230 static void mtk_vdec_update_fmt(struct mtk_vcodec_ctx *ctx, in mtk_vdec_update_fmt() 251 static int mtk_vdec_pic_info_update(struct mtk_vcodec_ctx *ctx) in mtk_vdec_pic_info_update() 295 struct mtk_vcodec_ctx *ctx = in mtk_vdec_worker() 296 container_of(work, struct mtk_vcodec_ctx, decode_work); in mtk_vdec_worker() 437 struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_stateful_buf_queue() 545 struct mtk_vcodec_ctx *ctx = ctrl_to_ctx(ctrl); in mtk_vdec_g_v_ctrl() 567 static int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_dec_ctrls_setup() [all …]
|
A D | venc_drv_if.c | 19 int venc_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) in venc_if_init() 43 int venc_if_set_param(struct mtk_vcodec_ctx *ctx, in venc_if_set_param() 57 int venc_if_encode(struct mtk_vcodec_ctx *ctx, in venc_if_encode() 84 int venc_if_deinit(struct mtk_vcodec_ctx *ctx) in venc_if_deinit()
|
A D | vdec_drv_if.c | 17 int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) in vdec_if_init() 47 int vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs, in vdec_if_decode() 85 int vdec_if_get_param(struct mtk_vcodec_ctx *ctx, enum vdec_get_param_type type, in vdec_if_get_param() 100 void vdec_if_deinit(struct mtk_vcodec_ctx *ctx) in vdec_if_deinit()
|
A D | mtk_vcodec_intr.h | 12 struct mtk_vcodec_ctx; 15 int mtk_vcodec_wait_for_done_ctx(struct mtk_vcodec_ctx *data, int command,
|
A D | vdec_vpu_if.h | 12 struct mtk_vcodec_ctx; 38 struct mtk_vcodec_ctx *ctx;
|
A D | mtk_vcodec_dec_drv.c | 35 static void wake_up_ctx(struct mtk_vcodec_ctx *ctx) in wake_up_ctx() 44 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_dec_irq_handler() 84 struct mtk_vcodec_ctx *ctx = NULL; in fops_vcodec_open() 167 struct mtk_vcodec_ctx *ctx = fh_to_ctx(file->private_data); in fops_vcodec_release()
|
A D | mtk_vcodec_enc_drv.c | 69 static void wake_up_ctx(struct mtk_vcodec_ctx *ctx, unsigned int reason) in wake_up_ctx() 100 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_enc_irq_handler() 124 struct mtk_vcodec_ctx *ctx = NULL; in fops_vcodec_open() 212 struct mtk_vcodec_ctx *ctx = fh_to_ctx(file->private_data); in fops_vcodec_release()
|
A D | vdec_drv_base.h | 18 int (*init)(struct mtk_vcodec_ctx *ctx);
|
A D | venc_drv_base.h | 22 int (*init)(struct mtk_vcodec_ctx *ctx);
|
A D | venc_vpu_if.h | 38 struct mtk_vcodec_ctx *ctx;
|
A D | mtk_vcodec_intr.c | 14 int mtk_vcodec_wait_for_done_ctx(struct mtk_vcodec_ctx *ctx, int command, in mtk_vcodec_wait_for_done_ctx()
|
/linux/drivers/media/platform/mtk-vcodec/venc/ |
A D | venc_vp8_if.c | 132 struct mtk_vcodec_ctx *ctx; 222 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)inst->ctx; in vp8_enc_wait_venc_done() 328 static int vp8_enc_init(struct mtk_vcodec_ctx *ctx) in vp8_enc_init() 366 struct mtk_vcodec_ctx *ctx = inst->ctx; in vp8_enc_encode()
|
A D | venc_h264_if.c | 155 struct mtk_vcodec_ctx *ctx; 335 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)inst->ctx; in h264_enc_wait_venc_done() 504 static int h264_enc_init(struct mtk_vcodec_ctx *ctx) in h264_enc_init() 543 struct mtk_vcodec_ctx *ctx = inst->ctx; in h264_enc_encode()
|
/linux/drivers/media/platform/mtk-vcodec/vdec/ |
A D | vdec_h264_req_if.c | 205 struct mtk_vcodec_ctx *ctx; 215 static void *get_ctrl_ptr(struct mtk_vcodec_ctx *ctx, int id) in get_ctrl_ptr() 563 struct mtk_vcodec_ctx *ctx = inst->ctx; in get_pic_info() 612 static int vdec_h264_slice_init(struct mtk_vcodec_ctx *ctx) in vdec_h264_slice_init()
|
A D | vdec_vp9_if.c | 199 struct mtk_vcodec_ctx *ctx; 538 struct mtk_vcodec_ctx *ctx = inst->ctx; in vp9_wait_dec_end() 550 static struct vdec_vp9_inst *vp9_alloc_inst(struct mtk_vcodec_ctx *ctx) in vp9_alloc_inst() 786 static int vdec_vp9_init(struct mtk_vcodec_ctx *ctx) in vdec_vp9_init()
|