Home
last modified time | relevance | path

Searched refs:hantro_ctx (Results 1 – 23 of 23) sorted by relevance

/drivers/staging/media/hantro/
Dhantro_hw.h26 struct hantro_ctx;
188 int (*init)(struct hantro_ctx *ctx);
189 void (*exit)(struct hantro_ctx *ctx);
190 int (*run)(struct hantro_ctx *ctx);
191 void (*done)(struct hantro_ctx *ctx);
192 void (*reset)(struct hantro_ctx *ctx);
225 void hantro_run(struct hantro_ctx *ctx);
228 void hantro_start_prepare_run(struct hantro_ctx *ctx);
229 void hantro_end_prepare_run(struct hantro_ctx *ctx);
232 void hantro_g1_reset(struct hantro_ctx *ctx);
[all …]
Dhantro.h29 struct hantro_ctx;
226 struct hantro_ctx { struct
331 static inline struct hantro_ctx *fh_to_ctx(struct v4l2_fh *fh) in fh_to_ctx()
333 return container_of(fh, struct hantro_ctx, fh); in fh_to_ctx()
405 void *hantro_get_ctrl(struct hantro_ctx *ctx, u32 id);
406 dma_addr_t hantro_get_ref(struct hantro_ctx *ctx, u64 ts);
409 hantro_get_src_buf(struct hantro_ctx *ctx) in hantro_get_src_buf()
415 hantro_get_dst_buf(struct hantro_ctx *ctx) in hantro_get_dst_buf()
420 bool hantro_needs_postproc(const struct hantro_ctx *ctx,
424 hantro_get_dec_buf_addr(struct hantro_ctx *ctx, struct vb2_buffer *vb) in hantro_get_dec_buf_addr()
[all …]
Dhantro_v4l2.c33 static int hantro_set_fmt_out(struct hantro_ctx *ctx,
35 static int hantro_set_fmt_cap(struct hantro_ctx *ctx,
39 hantro_get_formats(const struct hantro_ctx *ctx, unsigned int *num_fmts) in hantro_get_formats()
55 hantro_get_postproc_formats(const struct hantro_ctx *ctx, in hantro_get_postproc_formats()
70 hantro_find_format(const struct hantro_ctx *ctx, u32 fourcc) in hantro_find_format()
88 hantro_get_default_fmt(const struct hantro_ctx *ctx, bool bitstream) in hantro_get_default_fmt()
118 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_enum_framesizes()
148 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_enum_fmt()
215 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_g_fmt_out_mplane()
228 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_g_fmt_cap_mplane()
[all …]
Dhantro_h264.c196 assemble_scaling_list(struct hantro_ctx *ctx) in assemble_scaling_list()
226 static void prepare_table(struct hantro_ctx *ctx) in prepare_table()
265 static void update_dpb(struct hantro_ctx *ctx) in update_dpb()
326 dma_addr_t hantro_h264_get_ref_buf(struct hantro_ctx *ctx, in hantro_h264_get_ref_buf()
351 u16 hantro_h264_get_ref_nbr(struct hantro_ctx *ctx, unsigned int dpb_idx) in hantro_h264_get_ref_nbr()
360 int hantro_h264_dec_prepare_run(struct hantro_ctx *ctx) in hantro_h264_dec_prepare_run()
403 void hantro_h264_dec_exit(struct hantro_ctx *ctx) in hantro_h264_dec_exit()
412 int hantro_h264_dec_init(struct hantro_ctx *ctx) in hantro_h264_dec_init()
Dhantro_hevc.c64 static size_t hantro_hevc_ref_size(struct hantro_ctx *ctx) in hantro_hevc_ref_size()
72 static void hantro_hevc_ref_free(struct hantro_ctx *ctx) in hantro_hevc_ref_free()
86 static void hantro_hevc_ref_init(struct hantro_ctx *ctx) in hantro_hevc_ref_init()
95 dma_addr_t hantro_hevc_get_ref_buf(struct hantro_ctx *ctx, in hantro_hevc_get_ref_buf()
142 void hantro_hevc_ref_remove_unused(struct hantro_ctx *ctx) in hantro_hevc_ref_remove_unused()
159 static int tile_buffer_reallocate(struct hantro_ctx *ctx) in tile_buffer_reallocate()
246 int hantro_hevc_dec_prepare_run(struct hantro_ctx *ctx) in hantro_hevc_dec_prepare_run()
276 void hantro_hevc_dec_exit(struct hantro_ctx *ctx) in hantro_hevc_dec_exit()
308 int hantro_hevc_dec_init(struct hantro_ctx *ctx) in hantro_hevc_dec_init()
Dhantro_drv.c38 void *hantro_get_ctrl(struct hantro_ctx *ctx, u32 id) in hantro_get_ctrl()
46 dma_addr_t hantro_get_ref(struct hantro_ctx *ctx, u64 ts) in hantro_get_ref()
60 struct hantro_ctx *ctx, in hantro_job_finish_no_pm()
81 struct hantro_ctx *ctx, in hantro_job_finish()
95 struct hantro_ctx *ctx = in hantro_irq_done()
113 struct hantro_ctx *ctx; in hantro_watchdog()
125 void hantro_start_prepare_run(struct hantro_ctx *ctx) in hantro_start_prepare_run()
141 void hantro_end_prepare_run(struct hantro_ctx *ctx) in hantro_end_prepare_run()
156 struct hantro_ctx *ctx = priv; in device_run()
189 struct hantro_ctx *ctx = priv; in queue_init()
[all …]
Dhantro_postproc.c53 bool hantro_needs_postproc(const struct hantro_ctx *ctx, in hantro_needs_postproc()
61 void hantro_postproc_enable(struct hantro_ctx *ctx) in hantro_postproc_enable()
105 void hantro_postproc_free(struct hantro_ctx *ctx) in hantro_postproc_free()
121 int hantro_postproc_alloc(struct hantro_ctx *ctx) in hantro_postproc_alloc()
151 void hantro_postproc_disable(struct hantro_ctx *ctx) in hantro_postproc_disable()
Dhantro_h1_jpeg_enc.c19 struct hantro_ctx *ctx) in hantro_h1_set_src_img_ctrl()
32 struct hantro_ctx *ctx, in hantro_h1_jpeg_enc_set_buffers()
91 int hantro_h1_jpeg_enc_run(struct hantro_ctx *ctx) in hantro_h1_jpeg_enc_run()
143 void hantro_h1_jpeg_enc_done(struct hantro_ctx *ctx) in hantro_h1_jpeg_enc_done()
Drockchip_vpu2_hw_jpeg_enc.c36 struct hantro_ctx *ctx) in rockchip_vpu2_set_src_img_ctrl()
63 struct hantro_ctx *ctx, in rockchip_vpu2_jpeg_enc_set_buffers()
121 int rockchip_vpu2_jpeg_enc_run(struct hantro_ctx *ctx) in rockchip_vpu2_jpeg_enc_run()
175 void rockchip_vpu2_jpeg_enc_done(struct hantro_ctx *ctx) in rockchip_vpu2_jpeg_enc_done()
Dhantro_g1_vp8_dec.c134 static void cfg_lf(struct hantro_ctx *ctx, in cfg_lf()
176 static void cfg_qp(struct hantro_ctx *ctx, in cfg_qp()
231 static void cfg_parts(struct hantro_ctx *ctx, in cfg_parts()
329 static void cfg_tap(struct hantro_ctx *ctx, in cfg_tap()
369 static void cfg_ref(struct hantro_ctx *ctx, in cfg_ref()
406 static void cfg_buffers(struct hantro_ctx *ctx, in cfg_buffers()
432 int hantro_g1_vp8_dec_run(struct hantro_ctx *ctx) in hantro_g1_vp8_dec_run()
Drockchip_vpu2_hw_vp8_dec.c275 static void cfg_lf(struct hantro_ctx *ctx, in cfg_lf()
314 static void cfg_qp(struct hantro_ctx *ctx, in cfg_qp()
344 static void cfg_parts(struct hantro_ctx *ctx, in cfg_parts()
427 static void cfg_tap(struct hantro_ctx *ctx, in cfg_tap()
446 static void cfg_ref(struct hantro_ctx *ctx, in cfg_ref()
482 static void cfg_buffers(struct hantro_ctx *ctx, in cfg_buffers()
509 int rockchip_vpu2_vp8_dec_run(struct hantro_ctx *ctx) in rockchip_vpu2_vp8_dec_run()
Dhantro_mpeg2.c38 int hantro_mpeg2_dec_init(struct hantro_ctx *ctx) in hantro_mpeg2_dec_init()
53 void hantro_mpeg2_dec_exit(struct hantro_ctx *ctx) in hantro_mpeg2_dec_exit()
Dhantro_g1_h264_dec.c22 static void set_params(struct hantro_ctx *ctx, struct vb2_v4l2_buffer *src_buf) in set_params()
127 static void set_ref(struct hantro_ctx *ctx) in set_ref()
205 static void set_buffers(struct hantro_ctx *ctx, struct vb2_v4l2_buffer *src_buf) in set_buffers()
250 int hantro_g1_h264_dec_run(struct hantro_ctx *ctx) in hantro_g1_h264_dec_run()
Dhantro_vp8.c49 void hantro_vp8_prob_update(struct hantro_ctx *ctx, in hantro_vp8_prob_update()
145 int hantro_vp8_dec_init(struct hantro_ctx *ctx) in hantro_vp8_dec_init()
192 void hantro_vp8_dec_exit(struct hantro_ctx *ctx) in hantro_vp8_dec_exit()
Dhantro_jpeg.c330 int hantro_jpeg_enc_init(struct hantro_ctx *ctx) in hantro_jpeg_enc_init()
348 void hantro_jpeg_enc_exit(struct hantro_ctx *ctx) in hantro_jpeg_enc_exit()
Dhantro_g2_hevc_dec.c25 static void prepare_tile_info_buffer(struct hantro_ctx *ctx) in prepare_tile_info_buffer()
120 static void set_params(struct hantro_ctx *ctx) in set_params()
267 static void set_ref_pic_list(struct hantro_ctx *ctx) in set_ref_pic_list()
344 static int set_ref(struct hantro_ctx *ctx) in set_ref()
466 static void set_buffers(struct hantro_ctx *ctx) in set_buffers()
518 int hantro_g2_hevc_dec_run(struct hantro_ctx *ctx) in hantro_g2_hevc_dec_run()
Drockchip_vpu_hw.c283 static void rk3066_vpu_dec_reset(struct hantro_ctx *ctx) in rk3066_vpu_dec_reset()
291 static void rockchip_vpu1_enc_reset(struct hantro_ctx *ctx) in rockchip_vpu1_enc_reset()
300 static void rockchip_vpu2_dec_reset(struct hantro_ctx *ctx) in rockchip_vpu2_dec_reset()
309 static void rockchip_vpu2_enc_reset(struct hantro_ctx *ctx) in rockchip_vpu2_enc_reset()
Drockchip_vpu2_hw_mpeg2_dec.c84 struct hantro_ctx *ctx) in rockchip_vpu2_mpeg2_dec_set_quantisation()
95 struct hantro_ctx *ctx, in rockchip_vpu2_mpeg2_dec_set_buffers()
151 int rockchip_vpu2_mpeg2_dec_run(struct hantro_ctx *ctx) in rockchip_vpu2_mpeg2_dec_run()
Dhantro_g1_mpeg2_dec.c82 struct hantro_ctx *ctx) in hantro_g1_mpeg2_dec_set_quantisation()
92 hantro_g1_mpeg2_dec_set_buffers(struct hantro_dev *vpu, struct hantro_ctx *ctx, in hantro_g1_mpeg2_dec_set_buffers()
148 int hantro_g1_mpeg2_dec_run(struct hantro_ctx *ctx) in hantro_g1_mpeg2_dec_run()
Dhantro_v4l2.h24 void hantro_reset_fmts(struct hantro_ctx *ctx);
Dimx8m_vpu_hw.c198 static void imx8m_vpu_g1_reset(struct hantro_ctx *ctx) in imx8m_vpu_g1_reset()
205 static void imx8m_vpu_g2_reset(struct hantro_ctx *ctx) in imx8m_vpu_g2_reset()
Dhantro_g1.c32 void hantro_g1_reset(struct hantro_ctx *ctx) in hantro_g1_reset()
Drockchip_vpu2_hw_h264_dec.c193 static void set_params(struct hantro_ctx *ctx, struct vb2_v4l2_buffer *src_buf) in set_params()
299 static void set_ref(struct hantro_ctx *ctx) in set_ref()
422 static void set_buffers(struct hantro_ctx *ctx, struct vb2_v4l2_buffer *src_buf) in set_buffers()
467 int rockchip_vpu2_h264_dec_run(struct hantro_ctx *ctx) in rockchip_vpu2_h264_dec_run()