/drivers/media/platform/mtk-vcodec/ |
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()
|
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);
|
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);
|
D | mtk_vcodec_dec.h | 70 void mtk_vdec_unlock(struct mtk_vcodec_ctx *ctx); 71 void mtk_vdec_lock(struct mtk_vcodec_ctx *ctx); 74 void mtk_vcodec_dec_set_default_params(struct mtk_vcodec_ctx *ctx); 75 void mtk_vcodec_dec_release(struct mtk_vcodec_ctx *ctx); 76 int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx);
|
D | mtk_vcodec_enc.c | 41 struct mtk_vcodec_ctx *ctx = ctrl_to_ctx(ctrl); in vidioc_venc_s_ctrl() 202 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_s_parm() 225 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_g_parm() 239 static struct mtk_q_data *mtk_venc_get_q_data(struct mtk_vcodec_ctx *ctx, in mtk_venc_get_q_data() 334 static void mtk_venc_set_param(struct mtk_vcodec_ctx *ctx, in mtk_venc_set_param() 384 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_s_fmt_cap() 447 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_s_fmt_out() 516 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_g_fmt() 552 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_try_fmt_vid_cap_mplane() 572 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_try_fmt_vid_out_mplane() [all …]
|
D | mtk_vcodec_dec.c | 88 static struct mtk_q_data *mtk_vdec_get_q_data(struct mtk_vcodec_ctx *ctx, in mtk_vdec_get_q_data() 103 static struct vb2_buffer *get_display_buffer(struct mtk_vcodec_ctx *ctx) in get_display_buffer() 155 static struct vb2_buffer *get_free_buffer(struct mtk_vcodec_ctx *ctx) in get_free_buffer() 235 static void clean_display_buffer(struct mtk_vcodec_ctx *ctx) in clean_display_buffer() 244 static void clean_free_buffer(struct mtk_vcodec_ctx *ctx) in clean_free_buffer() 253 static void mtk_vdec_queue_res_chg_event(struct mtk_vcodec_ctx *ctx) in mtk_vdec_queue_res_chg_event() 265 static void mtk_vdec_flush_decoder(struct mtk_vcodec_ctx *ctx) in mtk_vdec_flush_decoder() 278 static void mtk_vdec_update_fmt(struct mtk_vcodec_ctx *ctx, in mtk_vdec_update_fmt() 299 static int mtk_vdec_pic_info_update(struct mtk_vcodec_ctx *ctx) in mtk_vdec_pic_info_update() 347 struct mtk_vcodec_ctx *ctx = container_of(work, struct mtk_vcodec_ctx, in mtk_vdec_worker() [all …]
|
D | vdec_drv_if.h | 66 int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc); 73 void vdec_if_deinit(struct mtk_vcodec_ctx *ctx); 87 int vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs, 96 int vdec_if_get_param(struct mtk_vcodec_ctx *ctx, enum vdec_get_param_type type,
|
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,
|
D | mtk_vcodec_drv.h | 262 struct mtk_vcodec_ctx { struct 383 struct mtk_vcodec_ctx *curr_ctx; 410 static inline struct mtk_vcodec_ctx *fh_to_ctx(struct v4l2_fh *fh) in fh_to_ctx() 412 return container_of(fh, struct mtk_vcodec_ctx, fh); in fh_to_ctx() 415 static inline struct mtk_vcodec_ctx *ctrl_to_ctx(struct v4l2_ctrl *ctrl) in ctrl_to_ctx() 417 return container_of(ctrl->handler, struct mtk_vcodec_ctx, ctrl_hdl); in ctrl_to_ctx()
|
D | vdec_drv_if.c | 17 int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) in vdec_if_init() 44 int vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs, in vdec_if_decode() 82 int vdec_if_get_param(struct mtk_vcodec_ctx *ctx, enum vdec_get_param_type type, in vdec_if_get_param() 97 void vdec_if_deinit(struct mtk_vcodec_ctx *ctx) in vdec_if_deinit()
|
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()
|
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,
|
D | vdec_vpu_if.h | 12 struct mtk_vcodec_ctx; 33 struct mtk_vcodec_ctx *ctx;
|
D | mtk_vcodec_enc_drv.c | 74 static void wake_up_ctx(struct mtk_vcodec_ctx *ctx, unsigned int reason) in wake_up_ctx() 105 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_enc_irq_handler() 128 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_enc_lt_irq_handler() 151 struct mtk_vcodec_ctx *ctx = NULL; in fops_vcodec_open() 235 struct mtk_vcodec_ctx *ctx = fh_to_ctx(file->private_data); in fops_vcodec_release()
|
D | mtk_vcodec_dec_drv.c | 34 static void wake_up_ctx(struct mtk_vcodec_ctx *ctx) in wake_up_ctx() 43 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_dec_irq_handler() 83 struct mtk_vcodec_ctx *ctx = NULL; in fops_vcodec_open() 175 struct mtk_vcodec_ctx *ctx = fh_to_ctx(file->private_data); in fops_vcodec_release()
|
D | vdec_drv_base.h | 18 int (*init)(struct mtk_vcodec_ctx *ctx);
|
D | venc_drv_base.h | 22 int (*init)(struct mtk_vcodec_ctx *ctx);
|
D | venc_vpu_if.h | 38 struct mtk_vcodec_ctx *ctx;
|
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()
|
D | mtk_vcodec_fw_vpu.c | 57 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_vpu_reset_handler()
|
/drivers/media/platform/mtk-vcodec/venc/ |
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()
|
D | venc_h264_if.c | 155 struct mtk_vcodec_ctx *ctx; 331 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)inst->ctx; in h264_enc_wait_venc_done() 500 static int h264_enc_init(struct mtk_vcodec_ctx *ctx) in h264_enc_init() 539 struct mtk_vcodec_ctx *ctx = inst->ctx; in h264_enc_encode()
|
/drivers/media/platform/mtk-vcodec/vdec/ |
D | vdec_vp9_if.c | 199 struct mtk_vcodec_ctx *ctx; 539 struct mtk_vcodec_ctx *ctx = inst->ctx; in vp9_wait_dec_end() 551 static struct vdec_vp9_inst *vp9_alloc_inst(struct mtk_vcodec_ctx *ctx) in vp9_alloc_inst() 787 static int vdec_vp9_init(struct mtk_vcodec_ctx *ctx) in vdec_vp9_init()
|
D | vdec_h264_if.c | 128 struct mtk_vcodec_ctx *ctx; 272 static int vdec_h264_init(struct mtk_vcodec_ctx *ctx) in vdec_h264_init()
|
D | vdec_vp8_if.c | 163 struct mtk_vcodec_ctx *ctx; 391 static int vdec_vp8_init(struct mtk_vcodec_ctx *ctx) in vdec_vp8_init()
|