Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/staging/media/hantro/
Dhantro_hw.h22 struct hantro_ctx;
126 int (*init)(struct hantro_ctx *ctx);
127 void (*exit)(struct hantro_ctx *ctx);
128 void (*run)(struct hantro_ctx *ctx);
129 void (*done)(struct hantro_ctx *ctx, enum vb2_buffer_state);
130 void (*reset)(struct hantro_ctx *ctx);
150 void hantro_run(struct hantro_ctx *ctx);
153 void hantro_prepare_run(struct hantro_ctx *ctx);
154 void hantro_finish_run(struct hantro_ctx *ctx);
156 void hantro_h1_jpeg_enc_run(struct hantro_ctx *ctx);
[all …]
Dhantro_v4l2.c34 hantro_get_formats(const struct hantro_ctx *ctx, unsigned int *num_fmts) in hantro_get_formats()
91 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_enum_framesizes()
123 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_enum_fmt()
172 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_g_fmt_out_mplane()
185 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_g_fmt_cap_mplane()
197 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_try_fmt()
291 hantro_reset_encoded_fmt(struct hantro_ctx *ctx) in hantro_reset_encoded_fmt()
317 hantro_reset_raw_fmt(struct hantro_ctx *ctx) in hantro_reset_raw_fmt()
342 void hantro_reset_fmts(struct hantro_ctx *ctx) in hantro_reset_fmts()
349 hantro_update_requires_request(struct hantro_ctx *ctx, u32 fourcc) in hantro_update_requires_request()
[all …]
Dhantro.h45 struct hantro_ctx;
232 struct hantro_ctx { struct
247 int (*buf_finish)(struct hantro_ctx *ctx, argument
319 static inline struct hantro_ctx *fh_to_ctx(struct v4l2_fh *fh) in fh_to_ctx()
321 return container_of(fh, struct hantro_ctx, fh); in fh_to_ctx()
379 bool hantro_is_encoder_ctx(const struct hantro_ctx *ctx);
381 void *hantro_get_ctrl(struct hantro_ctx *ctx, u32 id);
385 hantro_get_src_buf(struct hantro_ctx *ctx) in hantro_get_src_buf()
391 hantro_get_dst_buf(struct hantro_ctx *ctx) in hantro_get_dst_buf()
Dhantro_drv.c38 void *hantro_get_ctrl(struct hantro_ctx *ctx, u32 id) in hantro_get_ctrl()
59 hantro_enc_buf_finish(struct hantro_ctx *ctx, struct vb2_buffer *buf, in hantro_enc_buf_finish()
83 hantro_dec_buf_finish(struct hantro_ctx *ctx, struct vb2_buffer *buf, in hantro_dec_buf_finish()
92 struct hantro_ctx *ctx, in hantro_job_finish()
127 struct hantro_ctx *ctx = in hantro_irq_done()
142 struct hantro_ctx *ctx; in hantro_watchdog()
154 void hantro_prepare_run(struct hantro_ctx *ctx) in hantro_prepare_run()
163 void hantro_finish_run(struct hantro_ctx *ctx) in hantro_finish_run()
178 struct hantro_ctx *ctx = priv; in device_run()
201 bool hantro_is_encoder_ctx(const struct hantro_ctx *ctx) in hantro_is_encoder_ctx()
[all …]
Dhantro_h264.c215 reorder_scaling_list(struct hantro_ctx *ctx) in reorder_scaling_list()
251 static void prepare_table(struct hantro_ctx *ctx) in prepare_table()
294 init_reflist_builder(struct hantro_ctx *ctx, in init_reflist_builder()
479 static void update_dpb(struct hantro_ctx *ctx) in update_dpb()
540 struct vb2_buffer *hantro_h264_get_ref_buf(struct hantro_ctx *ctx, in hantro_h264_get_ref_buf()
568 int hantro_h264_dec_prepare_run(struct hantro_ctx *ctx) in hantro_h264_dec_prepare_run()
615 void hantro_h264_dec_exit(struct hantro_ctx *ctx) in hantro_h264_dec_exit()
624 int hantro_h264_dec_init(struct hantro_ctx *ctx) in hantro_h264_dec_init()
Dhantro_g1_vp8_dec.c135 static void cfg_lf(struct hantro_ctx *ctx, in cfg_lf()
177 static void cfg_qp(struct hantro_ctx *ctx, in cfg_qp()
232 static void cfg_parts(struct hantro_ctx *ctx, in cfg_parts()
330 static void cfg_tap(struct hantro_ctx *ctx, in cfg_tap()
370 static void cfg_ref(struct hantro_ctx *ctx, in cfg_ref()
402 static void cfg_buffers(struct hantro_ctx *ctx, in cfg_buffers()
430 void hantro_g1_vp8_dec_run(struct hantro_ctx *ctx) in hantro_g1_vp8_dec_run()
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()
80 void hantro_h1_jpeg_enc_run(struct hantro_ctx *ctx) in hantro_h1_jpeg_enc_run()
Drk3399_vpu_hw_jpeg_enc.c37 struct hantro_ctx *ctx) in rk3399_vpu_set_src_img_ctrl()
64 struct hantro_ctx *ctx, in rk3399_vpu_jpeg_enc_set_buffers()
111 void rk3399_vpu_jpeg_enc_run(struct hantro_ctx *ctx) in rk3399_vpu_jpeg_enc_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()
Drk3399_vpu_hw_vp8_dec.c276 static void cfg_lf(struct hantro_ctx *ctx, in cfg_lf()
315 static void cfg_qp(struct hantro_ctx *ctx, in cfg_qp()
345 static void cfg_parts(struct hantro_ctx *ctx, in cfg_parts()
428 static void cfg_tap(struct hantro_ctx *ctx, in cfg_tap()
447 static void cfg_ref(struct hantro_ctx *ctx, in cfg_ref()
480 static void cfg_buffers(struct hantro_ctx *ctx, in cfg_buffers()
509 void rk3399_vpu_vp8_dec_run(struct hantro_ctx *ctx) in rk3399_vpu_vp8_dec_run()
Dhantro_g1_h264_dec.c22 static void set_params(struct hantro_ctx *ctx) in set_params()
128 static void set_ref(struct hantro_ctx *ctx) in set_ref()
230 static void set_buffers(struct hantro_ctx *ctx) in set_buffers()
264 void hantro_g1_h264_dec_run(struct hantro_ctx *ctx) in hantro_g1_h264_dec_run()
Dhantro_jpeg.c294 int hantro_jpeg_enc_init(struct hantro_ctx *ctx) in hantro_jpeg_enc_init()
312 void hantro_jpeg_enc_exit(struct hantro_ctx *ctx) in hantro_jpeg_enc_exit()
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_v4l2.h24 void hantro_reset_fmts(struct hantro_ctx *ctx);
Drk3288_vpu_hw.c149 static void rk3288_vpu_enc_reset(struct hantro_ctx *ctx) in rk3288_vpu_enc_reset()
158 static void rk3288_vpu_dec_reset(struct hantro_ctx *ctx) in rk3288_vpu_dec_reset()
Drk3399_vpu_hw.c135 static void rk3399_vpu_enc_reset(struct hantro_ctx *ctx) in rk3399_vpu_enc_reset()
144 static void rk3399_vpu_dec_reset(struct hantro_ctx *ctx) in rk3399_vpu_dec_reset()
Dhantro_g1_mpeg2_dec.c86 struct hantro_ctx *ctx) in hantro_g1_mpeg2_dec_set_quantization()
99 hantro_g1_mpeg2_dec_set_buffers(struct hantro_dev *vpu, struct hantro_ctx *ctx, in hantro_g1_mpeg2_dec_set_buffers()
161 void hantro_g1_mpeg2_dec_run(struct hantro_ctx *ctx) in hantro_g1_mpeg2_dec_run()
Drk3399_vpu_hw_mpeg2_dec.c88 struct hantro_ctx *ctx) in rk3399_vpu_mpeg2_dec_set_quantization()
101 struct hantro_ctx *ctx, in rk3399_vpu_mpeg2_dec_set_buffers()
163 void rk3399_vpu_mpeg2_dec_run(struct hantro_ctx *ctx) in rk3399_vpu_mpeg2_dec_run()