| /Linux-v4.19/drivers/media/platform/mtk-vcodec/ |
| D | mtk_vcodec_util.c | 32 void __iomem *mtk_vcodec_get_reg_addr(struct mtk_vcodec_ctx *data, in mtk_vcodec_get_reg_addr() 35 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; in mtk_vcodec_get_reg_addr() 45 int mtk_vcodec_mem_alloc(struct mtk_vcodec_ctx *data, in mtk_vcodec_mem_alloc() 49 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; in mtk_vcodec_mem_alloc() 71 void mtk_vcodec_mem_free(struct mtk_vcodec_ctx *data, in mtk_vcodec_mem_free() 75 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; in mtk_vcodec_mem_free() 97 struct mtk_vcodec_ctx *ctx) in mtk_vcodec_set_curr_ctx() 107 struct mtk_vcodec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dev *dev) in mtk_vcodec_get_curr_ctx() 110 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_get_curr_ctx()
|
| D | mtk_vcodec_util.h | 28 struct mtk_vcodec_ctx; 41 ((struct mtk_vcodec_ctx *)h->ctx)->id, __func__, ##args) 60 ((struct mtk_vcodec_ctx *)h->ctx)->id, \ 79 void __iomem *mtk_vcodec_get_reg_addr(struct mtk_vcodec_ctx *data, 81 int mtk_vcodec_mem_alloc(struct mtk_vcodec_ctx *data, 83 void mtk_vcodec_mem_free(struct mtk_vcodec_ctx *data, 86 struct mtk_vcodec_ctx *ctx); 87 struct mtk_vcodec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dev *dev);
|
| D | mtk_vcodec_enc.h | 50 int mtk_venc_unlock(struct mtk_vcodec_ctx *ctx); 51 int mtk_venc_lock(struct mtk_vcodec_ctx *ctx); 54 void mtk_vcodec_enc_release(struct mtk_vcodec_ctx *ctx); 55 int mtk_vcodec_enc_ctrls_setup(struct mtk_vcodec_ctx *ctx); 56 void mtk_vcodec_enc_set_default_params(struct mtk_vcodec_ctx *ctx);
|
| D | mtk_vcodec_dec.h | 81 void mtk_vdec_unlock(struct mtk_vcodec_ctx *ctx); 82 void mtk_vdec_lock(struct mtk_vcodec_ctx *ctx); 85 void mtk_vcodec_dec_set_default_params(struct mtk_vcodec_ctx *ctx); 86 void mtk_vcodec_dec_release(struct mtk_vcodec_ctx *ctx); 87 int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx);
|
| D | vdec_drv_if.h | 70 int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc); 77 void vdec_if_deinit(struct mtk_vcodec_ctx *ctx); 91 int vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs, 100 int vdec_if_get_param(struct mtk_vcodec_ctx *ctx, enum vdec_get_param_type type,
|
| D | venc_drv_if.h | 128 int venc_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc); 135 int venc_if_deinit(struct mtk_vcodec_ctx *ctx); 144 int venc_if_set_param(struct mtk_vcodec_ctx *ctx, 157 int venc_if_encode(struct mtk_vcodec_ctx *ctx,
|
| D | mtk_vcodec_drv.h | 266 struct mtk_vcodec_ctx { struct 354 struct mtk_vcodec_ctx *curr_ctx; 378 static inline struct mtk_vcodec_ctx *fh_to_ctx(struct v4l2_fh *fh) in fh_to_ctx() 380 return container_of(fh, struct mtk_vcodec_ctx, fh); in fh_to_ctx() 383 static inline struct mtk_vcodec_ctx *ctrl_to_ctx(struct v4l2_ctrl *ctrl) in ctrl_to_ctx() 385 return container_of(ctrl->handler, struct mtk_vcodec_ctx, ctrl_hdl); in ctrl_to_ctx()
|
| D | mtk_vcodec_enc.c | 92 struct mtk_vcodec_ctx *ctx = ctrl_to_ctx(ctrl); in vidioc_venc_s_ctrl() 235 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_s_parm() 254 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_g_parm() 268 static struct mtk_q_data *mtk_venc_get_q_data(struct mtk_vcodec_ctx *ctx, in mtk_venc_get_q_data() 376 static void mtk_venc_set_param(struct mtk_vcodec_ctx *ctx, in mtk_venc_set_param() 426 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_s_fmt_cap() 488 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_s_fmt_out() 556 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_g_fmt() 592 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_try_fmt_vid_cap_mplane() 630 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_g_selection() [all …]
|
| D | mtk_vcodec_dec.c | 93 static struct mtk_q_data *mtk_vdec_get_q_data(struct mtk_vcodec_ctx *ctx, in mtk_vdec_get_q_data() 108 static struct vb2_buffer *get_display_buffer(struct mtk_vcodec_ctx *ctx) in get_display_buffer() 159 static struct vb2_buffer *get_free_buffer(struct mtk_vcodec_ctx *ctx) in get_free_buffer() 238 static void clean_display_buffer(struct mtk_vcodec_ctx *ctx) in clean_display_buffer() 247 static void clean_free_buffer(struct mtk_vcodec_ctx *ctx) in clean_free_buffer() 256 static void mtk_vdec_queue_res_chg_event(struct mtk_vcodec_ctx *ctx) in mtk_vdec_queue_res_chg_event() 268 static void mtk_vdec_flush_decoder(struct mtk_vcodec_ctx *ctx) in mtk_vdec_flush_decoder() 281 static int mtk_vdec_pic_info_update(struct mtk_vcodec_ctx *ctx) in mtk_vdec_pic_info_update() 325 struct mtk_vcodec_ctx *ctx = container_of(work, struct mtk_vcodec_ctx, in mtk_vdec_worker() 486 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_decoder_cmd() [all …]
|
| D | vdec_drv_if.c | 30 int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) in vdec_if_init() 57 int vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs, in vdec_if_decode() 95 int vdec_if_get_param(struct mtk_vcodec_ctx *ctx, enum vdec_get_param_type type, in vdec_if_get_param() 110 void vdec_if_deinit(struct mtk_vcodec_ctx *ctx) in vdec_if_deinit()
|
| D | venc_drv_if.c | 32 int venc_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) in venc_if_init() 56 int venc_if_set_param(struct mtk_vcodec_ctx *ctx, in venc_if_set_param() 70 int venc_if_encode(struct mtk_vcodec_ctx *ctx, in venc_if_encode() 97 int venc_if_deinit(struct mtk_vcodec_ctx *ctx) in venc_if_deinit()
|
| D | mtk_vcodec_intr.h | 20 struct mtk_vcodec_ctx; 23 int mtk_vcodec_wait_for_done_ctx(struct mtk_vcodec_ctx *data, int command,
|
| D | mtk_vcodec_enc_drv.c | 38 static void wake_up_ctx(struct mtk_vcodec_ctx *ctx, unsigned int reason) in wake_up_ctx() 69 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_enc_irq_handler() 92 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_enc_lt_irq_handler() 115 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_enc_reset_handler() 131 struct mtk_vcodec_ctx *ctx = NULL; in fops_vcodec_open() 215 struct mtk_vcodec_ctx *ctx = fh_to_ctx(file->private_data); in fops_vcodec_release()
|
| D | mtk_vcodec_dec_drv.c | 42 static void wake_up_ctx(struct mtk_vcodec_ctx *ctx) in wake_up_ctx() 51 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_dec_irq_handler() 91 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_dec_reset_handler() 107 struct mtk_vcodec_ctx *ctx = NULL; in fops_vcodec_open() 198 struct mtk_vcodec_ctx *ctx = fh_to_ctx(file->private_data); in fops_vcodec_release()
|
| D | vdec_drv_base.h | 28 int (*init)(struct mtk_vcodec_ctx *ctx, unsigned long *h_vdec);
|
| D | venc_drv_base.h | 31 int (*init)(struct mtk_vcodec_ctx *ctx, unsigned long *handle);
|
| D | vdec_vpu_if.h | 39 struct mtk_vcodec_ctx *ctx;
|
| D | venc_vpu_if.h | 47 struct mtk_vcodec_ctx *ctx;
|
| D | mtk_vcodec_intr.c | 22 int mtk_vcodec_wait_for_done_ctx(struct mtk_vcodec_ctx *ctx, int command, in mtk_vcodec_wait_for_done_ctx()
|
| /Linux-v4.19/drivers/media/platform/mtk-vcodec/venc/ |
| D | venc_vp8_if.c | 142 struct mtk_vcodec_ctx *ctx; 230 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)inst->ctx; in vp8_enc_wait_venc_done() 335 static int vp8_enc_init(struct mtk_vcodec_ctx *ctx, unsigned long *handle) in vp8_enc_init() 374 struct mtk_vcodec_ctx *ctx = inst->ctx; in vp8_enc_encode()
|
| D | venc_h264_if.c | 154 struct mtk_vcodec_ctx *ctx; 325 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)inst->ctx; in h264_enc_wait_venc_done() 470 static int h264_enc_init(struct mtk_vcodec_ctx *ctx, unsigned long *handle) in h264_enc_init() 509 struct mtk_vcodec_ctx *ctx = inst->ctx; in h264_enc_encode()
|
| /Linux-v4.19/drivers/media/platform/mtk-vcodec/vdec/ |
| D | vdec_vp9_if.c | 203 struct mtk_vcodec_ctx *ctx; 542 struct mtk_vcodec_ctx *ctx = inst->ctx; in vp9_wait_dec_end() 554 static struct vdec_vp9_inst *vp9_alloc_inst(struct mtk_vcodec_ctx *ctx) in vp9_alloc_inst() 791 static int vdec_vp9_init(struct mtk_vcodec_ctx *ctx, unsigned long *h_vdec) in vdec_vp9_init()
|
| D | vdec_h264_if.c | 133 struct mtk_vcodec_ctx *ctx; 277 static int vdec_h264_init(struct mtk_vcodec_ctx *ctx, unsigned long *h_vdec) in vdec_h264_init()
|
| D | vdec_vp8_if.c | 171 struct mtk_vcodec_ctx *ctx; 399 static int vdec_vp8_init(struct mtk_vcodec_ctx *ctx, unsigned long *h_vdec) in vdec_vp8_init()
|