Home
last modified time | relevance | path

Searched refs:hantro_ctx (Results 1 - 25 of 48) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/staging/media/hantro/
H A Dhantro_hw.h26 struct hantro_ctx;
136 int (*init)(struct hantro_ctx *ctx);
137 void (*exit)(struct hantro_ctx *ctx);
138 void (*run)(struct hantro_ctx *ctx);
139 void (*done)(struct hantro_ctx *ctx);
140 void (*reset)(struct hantro_ctx *ctx);
163 void hantro_run(struct hantro_ctx *ctx);
166 void hantro_start_prepare_run(struct hantro_ctx *ctx);
167 void hantro_end_prepare_run(struct hantro_ctx *ctx);
169 void hantro_h1_jpeg_enc_run(struct hantro_ctx *ct
[all...]
H A 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()
68 hantro_find_format(const struct hantro_ctx *ctx, u32 fourcc) in hantro_find_format()
86 hantro_get_default_fmt(const struct hantro_ctx *ctx, bool bitstream) in hantro_get_default_fmt()
116 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_enum_framesizes()
146 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_enum_fmt()
213 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_g_fmt_out_mplane()
226 struct hantro_ctx *ct in vidioc_g_fmt_cap_mplane()
[all...]
H A Dhantro.h29 struct hantro_ctx;
198 * struct hantro_ctx - Context (instance) private data.
221 struct hantro_ctx { struct
323 static inline struct hantro_ctx *fh_to_ctx(struct v4l2_fh *fh) in fh_to_ctx()
325 return container_of(fh, struct hantro_ctx, fh); in fh_to_ctx()
397 void *hantro_get_ctrl(struct hantro_ctx *ctx, u32 id);
398 dma_addr_t hantro_get_ref(struct hantro_ctx *ctx, u64 ts);
401 hantro_get_src_buf(struct hantro_ctx *ctx) in hantro_get_src_buf()
407 hantro_get_dst_buf(struct hantro_ctx *ctx) in hantro_get_dst_buf()
413 hantro_needs_postproc(const struct hantro_ctx *ct
[all...]
H A 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 *ct in queue_init()
[all...]
H A 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 void hantro_h1_jpeg_enc_run(struct hantro_ctx *ctx) in hantro_h1_jpeg_enc_run()
141 void hantro_jpeg_enc_done(struct hantro_ctx *ctx) in hantro_jpeg_enc_done()
H A Dhantro_postproc.c53 void hantro_postproc_enable(struct hantro_ctx *ctx) in hantro_postproc_enable()
97 void hantro_postproc_free(struct hantro_ctx *ctx) in hantro_postproc_free()
113 int hantro_postproc_alloc(struct hantro_ctx *ctx) in hantro_postproc_alloc()
142 void hantro_postproc_disable(struct hantro_ctx *ctx) in hantro_postproc_disable()
H A 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()
408 static void cfg_buffers(struct hantro_ctx *ctx, in cfg_buffers()
436 void hantro_g1_vp8_dec_run(struct hantro_ctx *ctx) in hantro_g1_vp8_dec_run()
H A 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()
H A Drk3399_vpu_hw_jpeg_enc.c36 struct hantro_ctx *ctx) in rk3399_vpu_set_src_img_ctrl()
63 struct hantro_ctx *ctx, in rk3399_vpu_jpeg_enc_set_buffers()
121 void rk3399_vpu_jpeg_enc_run(struct hantro_ctx *ctx) in rk3399_vpu_jpeg_enc_run()
H A 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()
485 static void cfg_buffers(struct hantro_ctx *ctx, in cfg_buffers()
514 void rk3399_vpu_vp8_dec_run(struct hantro_ctx *ctx) in rk3399_vpu_vp8_dec_run()
/kernel/linux/linux-6.6/drivers/media/platform/verisilicon/
H A Dhantro_hw.h44 struct hantro_ctx;
352 void (*enable)(struct hantro_ctx *ctx);
353 void (*disable)(struct hantro_ctx *ctx);
354 int (*enum_framesizes)(struct hantro_ctx *ctx, struct v4l2_frmsizeenum *fsize);
372 int (*init)(struct hantro_ctx *ctx);
373 void (*exit)(struct hantro_ctx *ctx);
374 int (*run)(struct hantro_ctx *ctx);
375 void (*done)(struct hantro_ctx *ctx);
376 void (*reset)(struct hantro_ctx *ctx);
417 void hantro_run(struct hantro_ctx *ct
[all...]
H A Dhantro.h30 struct hantro_ctx;
217 * struct hantro_ctx - Context (instance) private data.
247 struct hantro_ctx { struct
373 static __always_inline struct hantro_ctx *fh_to_ctx(struct v4l2_fh *fh) in fh_to_ctx()
375 return container_of(fh, struct hantro_ctx, fh); in fh_to_ctx()
454 void *hantro_get_ctrl(struct hantro_ctx *ctx, u32 id);
455 dma_addr_t hantro_get_ref(struct hantro_ctx *ctx, u64 ts);
458 hantro_get_src_buf(struct hantro_ctx *ctx) in hantro_get_src_buf()
464 hantro_get_dst_buf(struct hantro_ctx *ctx) in hantro_get_dst_buf()
469 bool hantro_needs_postproc(const struct hantro_ctx *ct
[all...]
H A Dhantro_v4l2.c33 static int hantro_set_fmt_out(struct hantro_ctx *ctx,
36 static int hantro_set_fmt_cap(struct hantro_ctx *ctx,
40 hantro_get_formats(const struct hantro_ctx *ctx, unsigned int *num_fmts, bool need_postproc) in hantro_get_formats()
61 hantro_get_postproc_formats(const struct hantro_ctx *ctx, in hantro_get_postproc_formats()
112 hantro_find_format(const struct hantro_ctx *ctx, u32 fourcc) in hantro_find_format()
130 hantro_get_default_fmt(const struct hantro_ctx *ctx, bool bitstream, in hantro_get_default_fmt()
169 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_enum_framesizes()
201 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_enum_fmt()
273 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_g_fmt_out_mplane()
286 struct hantro_ctx *ct in vidioc_g_fmt_cap_mplane()
[all...]
H A Dhantro_postproc.c55 bool hantro_needs_postproc(const struct hantro_ctx *ctx, in hantro_needs_postproc()
67 static void hantro_postproc_g1_enable(struct hantro_ctx *ctx) in hantro_postproc_g1_enable()
108 static int down_scale_factor(struct hantro_ctx *ctx) in down_scale_factor()
116 static void hantro_postproc_g2_enable(struct hantro_ctx *ctx) in hantro_postproc_g2_enable()
157 static int hantro_postproc_g2_enum_framesizes(struct hantro_ctx *ctx, in hantro_postproc_g2_enum_framesizes()
177 void hantro_postproc_free(struct hantro_ctx *ctx) in hantro_postproc_free()
193 int hantro_postproc_alloc(struct hantro_ctx *ctx) in hantro_postproc_alloc()
241 static void hantro_postproc_g1_disable(struct hantro_ctx *ctx) in hantro_postproc_g1_disable()
248 static void hantro_postproc_g2_disable(struct hantro_ctx *ctx) in hantro_postproc_g2_disable()
255 void hantro_postproc_disable(struct hantro_ctx *ct
[all...]
H A Dhantro_v4l2.h27 int hantro_reset_raw_fmt(struct hantro_ctx *ctx, int bit_depth, bool need_postproc);
28 void hantro_reset_fmts(struct hantro_ctx *ctx);
31 hantro_get_default_fmt(const struct hantro_ctx *ctx, bool bitstream,
H A Dhantro_hevc.c28 void hantro_hevc_ref_init(struct hantro_ctx *ctx) in hantro_hevc_ref_init()
35 dma_addr_t hantro_hevc_get_ref_buf(struct hantro_ctx *ctx, in hantro_hevc_get_ref_buf()
52 int hantro_hevc_add_ref_buf(struct hantro_ctx *ctx, int poc, dma_addr_t addr) in hantro_hevc_add_ref_buf()
70 static int tile_buffer_reallocate(struct hantro_ctx *ctx) in tile_buffer_reallocate()
152 static int hantro_hevc_validate_sps(struct hantro_ctx *ctx, const struct v4l2_ctrl_hevc_sps *sps) in hantro_hevc_validate_sps()
171 int hantro_hevc_dec_prepare_run(struct hantro_ctx *ctx) in hantro_hevc_dec_prepare_run()
210 void hantro_hevc_dec_exit(struct hantro_ctx *ctx) in hantro_hevc_dec_exit()
246 int hantro_hevc_dec_init(struct hantro_ctx *ctx) in hantro_hevc_dec_init()
H A Dhantro_g2_vp9_dec.c29 static int start_prepare_run(struct hantro_ctx *ctx, const struct v4l2_ctrl_vp9_frame **dec_params) in start_prepare_run()
93 static size_t chroma_offset(const struct hantro_ctx *ctx, in chroma_offset()
101 static size_t mv_offset(const struct hantro_ctx *ctx, in mv_offset()
110 get_ref_buf(struct hantro_ctx *ctx, struct vb2_v4l2_buffer *dst, u64 timestamp) in get_ref_buf()
146 static void config_output(struct hantro_ctx *ctx, in config_output()
175 static void config_ref(struct hantro_ctx *ctx, in config_ref()
202 static void config_ref_registers(struct hantro_ctx *ctx, in config_ref_registers()
268 recompute_tile_rc_info(struct hantro_ctx *ctx, in recompute_tile_rc_info()
295 fill_tile_info(struct hantro_ctx *ctx, in fill_tile_info()
322 config_tiles(struct hantro_ctx *ct
[all...]
H A 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()
62 struct hantro_ctx *ctx, in hantro_job_finish_no_pm()
89 struct hantro_ctx *ctx, in hantro_job_finish()
103 struct hantro_ctx *ctx = in hantro_irq_done()
121 struct hantro_ctx *ctx; in hantro_watchdog()
134 void hantro_start_prepare_run(struct hantro_ctx *ctx) in hantro_start_prepare_run()
150 void hantro_end_prepare_run(struct hantro_ctx *ctx) in hantro_end_prepare_run()
172 struct hantro_ctx *ctx = priv; in device_run()
205 struct hantro_ctx *ct in queue_init()
[all...]
H A Drockchip_vpu2_hw_jpeg_enc.c36 struct hantro_ctx *ctx) in rockchip_vpu2_set_src_img_ctrl()
68 struct hantro_ctx *ctx, in rockchip_vpu2_jpeg_enc_set_buffers()
132 int rockchip_vpu2_jpeg_enc_run(struct hantro_ctx *ctx) in rockchip_vpu2_jpeg_enc_run()
189 void rockchip_vpu2_jpeg_enc_done(struct hantro_ctx *ctx) in rockchip_vpu2_jpeg_enc_done()
H A Dhantro_h1_jpeg_enc.c19 struct hantro_ctx *ctx) in hantro_h1_set_src_img_ctrl()
41 struct hantro_ctx *ctx, in hantro_h1_jpeg_enc_set_buffers()
106 int hantro_h1_jpeg_enc_run(struct hantro_ctx *ctx) in hantro_h1_jpeg_enc_run()
158 void hantro_h1_jpeg_enc_done(struct hantro_ctx *ctx) in hantro_h1_jpeg_enc_done()
H A Drockchip_vpu981_hw_av1_dec.c110 static int rockchip_vpu981_get_frame_index(struct hantro_ctx *ctx, int ref) in rockchip_vpu981_get_frame_index()
132 static int rockchip_vpu981_get_order_hint(struct hantro_ctx *ctx, int ref) in rockchip_vpu981_get_order_hint()
143 static int rockchip_vpu981_av1_dec_frame_ref(struct hantro_ctx *ctx, in rockchip_vpu981_av1_dec_frame_ref()
178 static void rockchip_vpu981_av1_dec_frame_unref(struct hantro_ctx *ctx, int idx) in rockchip_vpu981_av1_dec_frame_unref()
186 static void rockchip_vpu981_av1_dec_clean_refs(struct hantro_ctx *ctx) in rockchip_vpu981_av1_dec_clean_refs()
210 static size_t rockchip_vpu981_av1_dec_luma_size(struct hantro_ctx *ctx) in rockchip_vpu981_av1_dec_luma_size()
215 static size_t rockchip_vpu981_av1_dec_chroma_size(struct hantro_ctx *ctx) in rockchip_vpu981_av1_dec_chroma_size()
222 static void rockchip_vpu981_av1_dec_tiles_free(struct hantro_ctx *ctx) in rockchip_vpu981_av1_dec_tiles_free()
255 static int rockchip_vpu981_av1_dec_tiles_reallocate(struct hantro_ctx *ctx) in rockchip_vpu981_av1_dec_tiles_reallocate()
320 void rockchip_vpu981_av1_dec_exit(struct hantro_ctx *ct
[all...]
H A 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()
H A 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()
H A Dhantro_g2_hevc_dec.c13 static size_t hantro_hevc_chroma_offset(struct hantro_ctx *ctx) in hantro_hevc_chroma_offset()
18 static size_t hantro_hevc_motion_vectors_offset(struct hantro_ctx *ctx) in hantro_hevc_motion_vectors_offset()
25 static void prepare_tile_info_buffer(struct hantro_ctx *ctx) in prepare_tile_info_buffer()
120 static int compute_header_skip_length(struct hantro_ctx *ctx) in compute_header_skip_length()
155 static void set_params(struct hantro_ctx *ctx) in set_params()
300 static void set_ref_pic_list(struct hantro_ctx *ctx) in set_ref_pic_list()
377 static int set_ref(struct hantro_ctx *ctx) in set_ref()
502 static void set_buffers(struct hantro_ctx *ctx) in set_buffers()
528 static void prepare_scaling_list_buffer(struct hantro_ctx *ctx) in prepare_scaling_list_buffer()
578 int hantro_g2_hevc_dec_run(struct hantro_ctx *ct
[all...]
H A 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()

Completed in 16 milliseconds

12