Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/media/platform/qcom/venus/
Dhelpers.h11 struct venus_inst;
14 bool venus_helper_check_codec(struct venus_inst *inst, u32 v4l2_pixfmt);
15 struct vb2_v4l2_buffer *venus_helper_find_buf(struct venus_inst *inst,
17 void venus_helper_change_dpb_owner(struct venus_inst *inst,
20 void venus_helper_buffers_done(struct venus_inst *inst, unsigned int type,
26 int venus_helper_vb2_start_streaming(struct venus_inst *inst);
27 void venus_helper_vb2_queue_error(struct venus_inst *inst);
30 int venus_helper_get_bufreq(struct venus_inst *inst, u32 type,
34 int venus_helper_set_input_resolution(struct venus_inst *inst,
36 int venus_helper_set_output_resolution(struct venus_inst *inst,
[all …]
Dhfi.h93 struct venus_inst;
100 void (*buf_done)(struct venus_inst *inst, unsigned int buf_type,
103 void (*event_notify)(struct venus_inst *inst, u32 event,
105 void (*flush_done)(struct venus_inst *inst);
114 int (*session_init)(struct venus_inst *inst, u32 session_type,
116 int (*session_end)(struct venus_inst *inst);
117 int (*session_abort)(struct venus_inst *inst);
118 int (*session_flush)(struct venus_inst *inst, u32 flush_mode);
119 int (*session_start)(struct venus_inst *inst);
120 int (*session_stop)(struct venus_inst *inst);
[all …]
Dhfi_parser.h8 u32 hfi_parser(struct venus_core *core, struct venus_inst *inst,
15 static inline u32 get_cap(struct venus_inst *inst, u32 type, u32 which) in get_cap()
50 static inline u32 cap_min(struct venus_inst *inst, u32 type) in cap_min()
55 static inline u32 cap_max(struct venus_inst *inst, u32 type) in cap_max()
60 static inline u32 cap_step(struct venus_inst *inst, u32 type) in cap_step()
65 static inline u32 frame_width_min(struct venus_inst *inst) in frame_width_min()
70 static inline u32 frame_width_max(struct venus_inst *inst) in frame_width_max()
75 static inline u32 frame_width_step(struct venus_inst *inst) in frame_width_step()
80 static inline u32 frame_height_min(struct venus_inst *inst) in frame_height_min()
85 static inline u32 frame_height_max(struct venus_inst *inst) in frame_height_max()
[all …]
Dhfi_msgs.c22 static void event_seq_changed(struct venus_core *core, struct venus_inst *inst, in event_seq_changed()
131 struct venus_inst *inst, in event_release_buffer_ref()
162 event_session_error(struct venus_core *core, struct venus_inst *inst, in event_session_error()
192 static void hfi_event_notify(struct venus_core *core, struct venus_inst *inst, in hfi_event_notify()
220 static void hfi_sys_init_done(struct venus_core *core, struct venus_inst *inst, in hfi_sys_init_done()
277 struct venus_inst *inst, void *packet) in hfi_sys_property_info()
298 struct venus_inst *inst, in hfi_sys_rel_resource_done()
307 static void hfi_sys_ping_done(struct venus_core *core, struct venus_inst *inst, in hfi_sys_ping_done()
320 static void hfi_sys_idle_done(struct venus_core *core, struct venus_inst *inst, in hfi_sys_idle_done()
327 struct venus_inst *inst, void *packet) in hfi_sys_pc_prepare_done()
[all …]
Dhelpers.c41 bool venus_helper_check_codec(struct venus_inst *inst, u32 v4l2_pixfmt) in venus_helper_check_codec()
93 static void free_dpb_buf(struct venus_inst *inst, struct intbuf *buf) in free_dpb_buf()
103 int venus_helper_queue_dpb_bufs(struct venus_inst *inst) in venus_helper_queue_dpb_bufs()
145 int venus_helper_free_dpb_bufs(struct venus_inst *inst) in venus_helper_free_dpb_bufs()
162 int venus_helper_alloc_dpb_bufs(struct venus_inst *inst) in venus_helper_alloc_dpb_bufs()
233 static int intbufs_set_buffer(struct venus_inst *inst, u32 type) in intbufs_set_buffer()
292 static int intbufs_unset_buffers(struct venus_inst *inst) in intbufs_unset_buffers()
340 int venus_helper_intbufs_alloc(struct venus_inst *inst) in venus_helper_intbufs_alloc()
371 int venus_helper_intbufs_free(struct venus_inst *inst) in venus_helper_intbufs_free()
377 int venus_helper_intbufs_realloc(struct venus_inst *inst) in venus_helper_intbufs_realloc()
[all …]
Dhfi.c164 static int wait_session_msg(struct venus_inst *inst) in wait_session_msg()
178 int hfi_session_create(struct venus_inst *inst, const struct hfi_inst_ops *ops) in hfi_session_create()
214 int hfi_session_init(struct venus_inst *inst, u32 pixfmt) in hfi_session_init()
252 void hfi_session_destroy(struct venus_inst *inst) in hfi_session_destroy()
264 int hfi_session_deinit(struct venus_inst *inst) in hfi_session_deinit()
295 int hfi_session_start(struct venus_inst *inst) in hfi_session_start()
322 int hfi_session_stop(struct venus_inst *inst) in hfi_session_stop()
349 int hfi_session_continue(struct venus_inst *inst) in hfi_session_continue()
363 int hfi_session_abort(struct venus_inst *inst) in hfi_session_abort()
385 int hfi_session_load_res(struct venus_inst *inst) in hfi_session_load_res()
[all …]
Dpm_helpers.h25 int (*coreid_power)(struct venus_inst *inst, int on);
27 int (*load_scale)(struct venus_inst *inst);
32 static inline int venus_pm_load_scale(struct venus_inst *inst) in venus_pm_load_scale()
42 static inline int venus_pm_acquire_core(struct venus_inst *inst) in venus_pm_acquire_core()
54 static inline int venus_pm_release_core(struct venus_inst *inst) in venus_pm_release_core()
Dvdec.c99 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) in find_format()
129 find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) in find_format_by_index()
167 vdec_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) in vdec_try_fmt_common()
220 struct venus_inst *inst = to_inst(file); in vdec_try_fmt()
227 static int vdec_check_src_change(struct venus_inst *inst) in vdec_check_src_change()
263 struct venus_inst *inst = to_inst(file); in vdec_g_fmt()
300 struct venus_inst *inst = to_inst(file); in vdec_s_fmt()
374 struct venus_inst *inst = to_inst(file); in vdec_g_selection()
424 struct venus_inst *inst = to_inst(file); in vdec_enum_fmt()
441 struct venus_inst *inst = to_inst(file); in vdec_s_parm()
[all …]
Dvdec.h9 struct venus_inst;
11 int vdec_ctrl_init(struct venus_inst *inst);
12 void vdec_ctrl_deinit(struct venus_inst *inst);
Dvenc.h9 struct venus_inst;
11 int venc_ctrl_init(struct venus_inst *inst);
12 void venc_ctrl_deinit(struct venus_inst *inst);
Dvenc.c63 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) in find_format()
85 find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) in find_format_by_index()
151 struct venus_inst *inst = to_inst(file); in venc_enum_fmt()
167 venc_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) in venc_try_fmt_common()
221 struct venus_inst *inst = to_inst(file); in venc_try_fmt()
230 struct venus_inst *inst = to_inst(file); in venc_s_fmt()
300 struct venus_inst *inst = to_inst(file); in venc_g_fmt()
332 struct venus_inst *inst = to_inst(file); in venc_g_selection()
360 struct venus_inst *inst = to_inst(file); in venc_s_selection()
388 struct venus_inst *inst = to_inst(file); in venc_s_parm()
[all …]
Dvdec_ctrls.c15 struct venus_inst *inst = ctrl_to_inst(ctrl); in vdec_op_s_ctrl()
51 struct venus_inst *inst = ctrl_to_inst(ctrl); in vdec_op_g_volatile_ctrl()
96 int vdec_ctrl_init(struct venus_inst *inst) in vdec_ctrl_init()
191 void vdec_ctrl_deinit(struct venus_inst *inst) in vdec_ctrl_deinit()
Dpm_helpers.c149 static u32 load_per_instance(struct venus_inst *inst) in load_per_instance()
163 struct venus_inst *inst = NULL; in load_per_type()
176 static void mbs_to_bw(struct venus_inst *inst, u32 mbs, u32 *avg, u32 *peak) in mbs_to_bw()
217 struct venus_inst *inst = NULL; in load_scale_bw()
243 static int load_scale_v1(struct venus_inst *inst) in load_scale_v1()
525 static inline int power_save_mode_enable(struct venus_inst *inst, in power_save_mode_enable()
555 struct venus_inst *inst = NULL; in move_core_to_power_save_mode()
568 min_loaded_core(struct venus_inst *inst, u32 *min_coreid, u32 *min_load, bool low_power) in min_loaded_core()
573 struct venus_inst *inst_pos; in min_loaded_core()
621 static int decide_core(struct venus_inst *inst) in decide_core()
[all …]
Dhfi_venus.c977 static int venus_session_cmd(struct venus_inst *inst, u32 pkt_type, bool sync) in venus_session_cmd()
1218 static int venus_session_init(struct venus_inst *inst, u32 session_type, in venus_session_init()
1244 static int venus_session_end(struct venus_inst *inst) in venus_session_end()
1257 static int venus_session_abort(struct venus_inst *inst) in venus_session_abort()
1266 static int venus_session_flush(struct venus_inst *inst, u32 flush_mode) in venus_session_flush()
1279 static int venus_session_start(struct venus_inst *inst) in venus_session_start()
1284 static int venus_session_stop(struct venus_inst *inst) in venus_session_stop()
1289 static int venus_session_continue(struct venus_inst *inst) in venus_session_continue()
1294 static int venus_session_etb(struct venus_inst *inst, in venus_session_etb()
1324 static int venus_session_ftb(struct venus_inst *inst, in venus_session_ftb()
[all …]
Dcore.h401 struct venus_inst { struct
477 container_of((ctrl)->handler, struct venus_inst, ctrl_handler) argument
479 static inline struct venus_inst *to_inst(struct file *filp) in to_inst()
481 return container_of(filp->private_data, struct venus_inst, fh); in to_inst()
Dhfi_parser.c203 static void parser_init(struct venus_inst *inst, u32 *codecs, u32 *domain) in parser_init()
212 static void parser_fini(struct venus_inst *inst, u32 codecs, u32 domain) in parser_fini()
231 static int hfi_platform_parser(struct venus_core *core, struct venus_inst *inst) in hfi_platform_parser()
266 u32 hfi_parser(struct venus_core *core, struct venus_inst *inst, void *buf, in hfi_parser()
Dvenc_ctrls.c72 struct venus_inst *inst = ctrl_to_inst(ctrl); in venc_op_s_ctrl()
352 struct venus_inst *inst = ctrl_to_inst(ctrl); in venc_op_g_volatile_ctrl()
375 int venc_ctrl_init(struct venus_inst *inst) in venc_ctrl_init()
639 void venc_ctrl_deinit(struct venus_inst *inst) in venc_ctrl_deinit()
Dcore.c57 struct venus_inst *inst; in venus_event_notify()
200 struct venus_inst *inst; in venus_enumerate_codecs()