| /linux-6.15/drivers/media/platform/verisilicon/ |
| H A D | hantro_hw.h | 53 struct hantro_ctx; 363 void (*enable)(struct hantro_ctx *ctx); 364 void (*disable)(struct hantro_ctx *ctx); 383 int (*init)(struct hantro_ctx *ctx); 384 void (*exit)(struct hantro_ctx *ctx); 385 int (*run)(struct hantro_ctx *ctx); 386 void (*done)(struct hantro_ctx *ctx); 387 void (*reset)(struct hantro_ctx *ctx); 430 void hantro_run(struct hantro_ctx *ctx); 437 void hantro_g1_reset(struct hantro_ctx *ctx); [all …]
|
| H A D | hantro.h | 30 struct hantro_ctx; 247 struct hantro_ctx { struct 385 return container_of(fh, struct hantro_ctx, fh); in fh_to_ctx() 464 void *hantro_get_ctrl(struct hantro_ctx *ctx, u32 id); 468 hantro_get_src_buf(struct hantro_ctx *ctx) in hantro_get_src_buf() 474 hantro_get_dst_buf(struct hantro_ctx *ctx) in hantro_get_dst_buf() 479 bool hantro_needs_postproc(const struct hantro_ctx *ctx, 499 void hantro_postproc_disable(struct hantro_ctx *ctx); 500 void hantro_postproc_enable(struct hantro_ctx *ctx); 501 int hantro_postproc_init(struct hantro_ctx *ctx); [all …]
|
| H A D | hantro_postproc.c | 55 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() 177 void hantro_postproc_free(struct hantro_ctx *ctx) in hantro_postproc_free() 243 int hantro_postproc_init(struct hantro_ctx *ctx) in hantro_postproc_init() 288 static void hantro_postproc_g1_disable(struct hantro_ctx *ctx) in hantro_postproc_g1_disable() 295 static void hantro_postproc_g2_disable(struct hantro_ctx *ctx) in hantro_postproc_g2_disable() 302 void hantro_postproc_disable(struct hantro_ctx *ctx) in hantro_postproc_disable() 310 void hantro_postproc_enable(struct hantro_ctx *ctx) in hantro_postproc_enable() [all …]
|
| H A D | hantro_v4l2.c | 33 static int hantro_set_fmt_out(struct hantro_ctx *ctx, 36 static int hantro_set_fmt_cap(struct hantro_ctx *ctx, 187 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_enum_framesizes() 219 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_enum_fmt() 299 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_g_fmt_out_mplane() 312 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_g_fmt_cap_mplane() 476 void hantro_reset_fmts(struct hantro_ctx *ctx) in hantro_reset_fmts() 662 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_g_selection() 693 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_s_selection() 740 struct hantro_ctx *ctx = fh_to_ctx(priv); in vidioc_encoder_cmd() [all …]
|
| H A D | hantro_g2.c | 48 size_t hantro_g2_chroma_offset(struct hantro_ctx *ctx) in hantro_g2_chroma_offset() 53 size_t hantro_g2_motion_vectors_offset(struct hantro_ctx *ctx) in hantro_g2_motion_vectors_offset() 60 static size_t hantro_g2_mv_size(struct hantro_ctx *ctx) in hantro_g2_mv_size() 77 size_t hantro_g2_luma_compress_offset(struct hantro_ctx *ctx) in hantro_g2_luma_compress_offset() 83 size_t hantro_g2_chroma_compress_offset(struct hantro_ctx *ctx) in hantro_g2_chroma_compress_offset()
|
| H A D | hantro_v4l2.h | 27 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 D | hantro_hevc.c | 33 void hantro_hevc_ref_init(struct hantro_ctx *ctx) in hantro_hevc_ref_init() 40 dma_addr_t hantro_hevc_get_ref_buf(struct hantro_ctx *ctx, in hantro_hevc_get_ref_buf() 57 int hantro_hevc_add_ref_buf(struct hantro_ctx *ctx, int poc, dma_addr_t addr) in hantro_hevc_add_ref_buf() 75 static int tile_buffer_reallocate(struct hantro_ctx *ctx) in tile_buffer_reallocate() 157 static int hantro_hevc_validate_sps(struct hantro_ctx *ctx, const struct v4l2_ctrl_hevc_sps *sps) in hantro_hevc_validate_sps() 176 int hantro_hevc_dec_prepare_run(struct hantro_ctx *ctx) in hantro_hevc_dec_prepare_run() 215 void hantro_hevc_dec_exit(struct hantro_ctx *ctx) in hantro_hevc_dec_exit() 251 int hantro_hevc_dec_init(struct hantro_ctx *ctx) in hantro_hevc_dec_init()
|
| H A D | hantro_drv.c | 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() 172 struct hantro_ctx *ctx = priv; in device_run() 293 struct hantro_ctx *ctx; in hantro_jpeg_s_ctrl() 313 struct hantro_ctx *ctx; in hantro_vp9_s_ctrl() 336 struct hantro_ctx *ctx; in hantro_hevc_s_ctrl() 360 struct hantro_ctx *ctx; in hantro_av1_s_ctrl() 631 struct hantro_ctx *ctx; in hantro_open() [all …]
|
| H A D | hantro_h264.c | 202 assemble_scaling_list(struct hantro_ctx *ctx) in assemble_scaling_list() 232 static void prepare_table(struct hantro_ctx *ctx) in prepare_table() 296 static void update_dpb(struct hantro_ctx *ctx) in update_dpb() 356 dma_addr_t hantro_h264_get_ref_buf(struct hantro_ctx *ctx, in hantro_h264_get_ref_buf() 388 u16 hantro_h264_get_ref_nbr(struct hantro_ctx *ctx, unsigned int dpb_idx) in hantro_h264_get_ref_nbr() 438 int hantro_h264_dec_prepare_run(struct hantro_ctx *ctx) in hantro_h264_dec_prepare_run() 495 void hantro_h264_dec_exit(struct hantro_ctx *ctx) in hantro_h264_dec_exit() 504 int hantro_h264_dec_init(struct hantro_ctx *ctx) in hantro_h264_dec_init()
|
| H A D | hantro_g2_vp9_dec.c | 128 static void config_output(struct hantro_ctx *ctx, in config_output() 159 static void config_ref(struct hantro_ctx *ctx, in config_ref() 186 static void config_ref_registers(struct hantro_ctx *ctx, in config_ref_registers() 252 recompute_tile_rc_info(struct hantro_ctx *ctx, in recompute_tile_rc_info() 279 fill_tile_info(struct hantro_ctx *ctx, in fill_tile_info() 306 config_tiles(struct hantro_ctx *ctx, in config_tiles() 577 config_compound_reference(struct hantro_ctx *ctx, in config_compound_reference() 740 static void config_counts(struct hantro_ctx *ctx) in config_counts() 749 static void config_seg_map(struct hantro_ctx *ctx, in config_seg_map() 889 int hantro_g2_vp9_dec_run(struct hantro_ctx *ctx) in hantro_g2_vp9_dec_run() [all …]
|
| H A D | hantro_h1_jpeg_enc.c | 19 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 D | rockchip_vpu2_hw_jpeg_enc.c | 36 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 D | hantro_g1_vp8_dec.c | 134 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 D | rockchip_vpu981_hw_av1_dec.c | 143 static int rockchip_vpu981_av1_dec_frame_ref(struct hantro_ctx *ctx, in rockchip_vpu981_av1_dec_frame_ref() 185 static void rockchip_vpu981_av1_dec_clean_refs(struct hantro_ctx *ctx) in rockchip_vpu981_av1_dec_clean_refs() 221 static void rockchip_vpu981_av1_dec_tiles_free(struct hantro_ctx *ctx) in rockchip_vpu981_av1_dec_tiles_free() 320 void rockchip_vpu981_av1_dec_exit(struct hantro_ctx *ctx) in rockchip_vpu981_av1_dec_exit() 362 int rockchip_vpu981_av1_dec_init(struct hantro_ctx *ctx) in rockchip_vpu981_av1_dec_init() 635 static int rockchip_vpu981_av1_dec_get_dist(struct hantro_ctx *ctx, in rockchip_vpu981_av1_dec_get_dist() 1153 void rockchip_vpu981_av1_dec_done(struct hantro_ctx *ctx) in rockchip_vpu981_av1_dec_done() 1430 static void rockchip_vpu981_av1_dec_set_lr(struct hantro_ctx *ctx) in rockchip_vpu981_av1_dec_set_lr() 2047 rockchip_vpu981_av1_dec_set_input_buffer(struct hantro_ctx *ctx, in rockchip_vpu981_av1_dec_set_input_buffer() 2074 rockchip_vpu981_av1_dec_set_output_buffer(struct hantro_ctx *ctx) in rockchip_vpu981_av1_dec_set_output_buffer() [all …]
|
| H A D | rockchip_vpu2_hw_vp8_dec.c | 275 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()
|
| H A D | hantro_mpeg2.c | 38 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 D | hantro_g1_h264_dec.c | 22 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()
|
| H A D | hantro_g2_hevc_dec.c | 11 static void prepare_tile_info_buffer(struct hantro_ctx *ctx) in prepare_tile_info_buffer() 106 static int compute_header_skip_length(struct hantro_ctx *ctx) in compute_header_skip_length() 141 static void set_params(struct hantro_ctx *ctx) in set_params() 286 static void set_ref_pic_list(struct hantro_ctx *ctx) in set_ref_pic_list() 363 static int set_ref(struct hantro_ctx *ctx) in set_ref() 503 static void set_buffers(struct hantro_ctx *ctx) in set_buffers() 530 static void prepare_scaling_list_buffer(struct hantro_ctx *ctx) in prepare_scaling_list_buffer() 580 int hantro_g2_hevc_dec_run(struct hantro_ctx *ctx) in hantro_g2_hevc_dec_run()
|
| H A D | hantro_vp8.c | 49 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()
|
| H A D | rockchip_av1_entropymode.h | 8 struct hantro_ctx; 265 void rockchip_av1_store_cdfs(struct hantro_ctx *ctx, 267 void rockchip_av1_get_cdfs(struct hantro_ctx *ctx, u32 ref_idx);
|
| H A D | hantro_vp9.c | 117 static void init_v4l2_vp9_count_tbl(struct hantro_ctx *ctx) in init_v4l2_vp9_count_tbl() 158 int hantro_vp9_dec_init(struct hantro_ctx *ctx) in hantro_vp9_dec_init() 229 void hantro_vp9_dec_exit(struct hantro_ctx *ctx) in hantro_vp9_dec_exit()
|
| H A D | rockchip_vpu2_hw_mpeg2_dec.c | 84 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()
|
| H A D | hantro_g1_mpeg2_dec.c | 82 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()
|
| H A D | hantro_g1.c | 32 void hantro_g1_reset(struct hantro_ctx *ctx) in hantro_g1_reset()
|
| H A D | rockchip_vpu_hw.c | 457 static void rk3066_vpu_dec_reset(struct hantro_ctx *ctx) in rk3066_vpu_dec_reset() 465 static void rockchip_vpu1_enc_reset(struct hantro_ctx *ctx) in rockchip_vpu1_enc_reset() 474 static void rockchip_vpu2_dec_reset(struct hantro_ctx *ctx) in rockchip_vpu2_dec_reset() 483 static void rockchip_vpu2_enc_reset(struct hantro_ctx *ctx) in rockchip_vpu2_enc_reset()
|