/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/ |
D | hfi.h | 92 struct venus_core; 96 void (*event_notify)(struct venus_core *core, u32 event); 109 int (*core_init)(struct venus_core *core); 110 int (*core_deinit)(struct venus_core *core); 111 int (*core_ping)(struct venus_core *core, u32 cookie); 112 int (*core_trigger_ssr)(struct venus_core *core, u32 trigger_type); 138 int (*resume)(struct venus_core *core); 139 int (*suspend)(struct venus_core *core); 142 irqreturn_t (*isr)(struct venus_core *core); 143 irqreturn_t (*isr_thread)(struct venus_core *core); [all …]
|
D | firmware.h | 10 int venus_firmware_init(struct venus_core *core); 11 void venus_firmware_deinit(struct venus_core *core); 12 int venus_boot(struct venus_core *core); 13 int venus_shutdown(struct venus_core *core); 14 int venus_set_hw_state(struct venus_core *core, bool suspend); 16 static inline int venus_set_hw_state_suspend(struct venus_core *core) in venus_set_hw_state_suspend() 21 static inline int venus_set_hw_state_resume(struct venus_core *core) in venus_set_hw_state_resume()
|
D | pm_helpers.h | 7 struct venus_core; 13 int (*core_get)(struct venus_core *core); 14 void (*core_put)(struct venus_core *core); 15 int (*core_power)(struct venus_core *core, int on); 34 struct venus_core *core = inst->core; in venus_pm_load_scale() 44 struct venus_core *core = inst->core; in venus_pm_acquire_core() 56 struct venus_core *core = inst->core; in venus_pm_release_core()
|
D | pm_helpers.c | 24 static int core_clks_get(struct venus_core *core) in core_clks_get() 39 static int core_clks_enable(struct venus_core *core) in core_clks_enable() 59 static void core_clks_disable(struct venus_core *core) in core_clks_disable() 68 static int core_clks_set_rate(struct venus_core *core, unsigned long freq) in core_clks_set_rate() 87 static int vcodec_clks_get(struct venus_core *core, struct device *dev, in vcodec_clks_get() 104 static int vcodec_clks_enable(struct venus_core *core, struct clk **clks) in vcodec_clks_enable() 124 static void vcodec_clks_disable(struct venus_core *core, struct clk **clks) in vcodec_clks_disable() 145 static u32 load_per_type(struct venus_core *core, u32 session_type) in load_per_type() 199 static int load_scale_bw(struct venus_core *core) in load_scale_bw() 229 struct venus_core *core = inst->core; in load_scale_v1() [all …]
|
D | hfi_msgs.c | 17 static void event_seq_changed(struct venus_core *core, struct venus_inst *inst, in event_seq_changed() 118 static void event_release_buffer_ref(struct venus_core *core, in event_release_buffer_ref() 137 static void event_sys_error(struct venus_core *core, u32 event, in event_sys_error() 150 event_session_error(struct venus_core *core, struct venus_inst *inst, in event_session_error() 180 static void hfi_event_notify(struct venus_core *core, struct venus_inst *inst, in hfi_event_notify() 208 static void hfi_sys_init_done(struct venus_core *core, struct venus_inst *inst, in hfi_sys_init_done() 253 static void hfi_sys_property_info(struct venus_core *core, in hfi_sys_property_info() 274 static void hfi_sys_rel_resource_done(struct venus_core *core, in hfi_sys_rel_resource_done() 284 static void hfi_sys_ping_done(struct venus_core *core, struct venus_inst *inst, in hfi_sys_ping_done() 297 static void hfi_sys_idle_done(struct venus_core *core, struct venus_inst *inst, in hfi_sys_idle_done() [all …]
|
D | hfi_venus.h | 9 struct venus_core; 11 void venus_hfi_destroy(struct venus_core *core); 12 int venus_hfi_create(struct venus_core *core); 13 void venus_hfi_queues_reinit(struct venus_core *core);
|
D | hfi.c | 50 int hfi_core_init(struct venus_core *core) in hfi_core_init() 84 int hfi_core_deinit(struct venus_core *core, bool blocking) in hfi_core_deinit() 117 int hfi_core_suspend(struct venus_core *core) in hfi_core_suspend() 125 int hfi_core_resume(struct venus_core *core, bool force) in hfi_core_resume() 133 int hfi_core_trigger_ssr(struct venus_core *core, u32 type) in hfi_core_trigger_ssr() 138 int hfi_core_ping(struct venus_core *core) in hfi_core_ping() 177 struct venus_core *core = inst->core; in hfi_session_create() 197 struct venus_core *core = inst->core; in hfi_session_init() 223 struct venus_core *core = inst->core; in hfi_session_destroy() 310 struct venus_core *core = inst->core; in hfi_session_continue() [all …]
|
D | dbgfs.h | 7 struct venus_core; 9 void venus_dbgfs_init(struct venus_core *core); 10 void venus_dbgfs_deinit(struct venus_core *core);
|
D | firmware.c | 27 static void venus_reset_cpu(struct venus_core *core) in venus_reset_cpu() 45 int venus_set_hw_state(struct venus_core *core, bool resume) in venus_set_hw_state() 64 static int venus_load_fw(struct venus_core *core, const char *fwname, in venus_load_fw() 129 static int venus_boot_no_tz(struct venus_core *core, phys_addr_t mem_phys, in venus_boot_no_tz() 155 static int venus_shutdown_no_tz(struct venus_core *core) in venus_shutdown_no_tz() 181 int venus_boot(struct venus_core *core) in venus_boot() 223 int venus_shutdown(struct venus_core *core) in venus_shutdown() 235 int venus_firmware_init(struct venus_core *core) in venus_firmware_init() 298 void venus_firmware_deinit(struct venus_core *core) in venus_firmware_deinit()
|
D | hfi_parser.c | 17 static void init_codecs(struct venus_core *core) in init_codecs() 63 parse_alloc_mode(struct venus_core *core, u32 codecs, u32 domain, void *data) in parse_alloc_mode() 94 parse_profile_level(struct venus_core *core, u32 codecs, u32 domain, void *data) in parse_profile_level() 119 parse_caps(struct venus_core *core, u32 codecs, u32 domain, void *data) in parse_caps() 145 parse_raw_formats(struct venus_core *core, u32 codecs, u32 domain, void *data) in parse_raw_formats() 174 static void parse_codecs(struct venus_core *core, void *data) in parse_codecs() 188 static void parse_max_sessions(struct venus_core *core, const void *data) in parse_max_sessions() 231 u32 hfi_parser(struct venus_core *core, struct venus_inst *inst, void *buf, in hfi_parser()
|
D | dbgfs.c | 10 void venus_dbgfs_init(struct venus_core *core) in venus_dbgfs_init() 16 void venus_dbgfs_deinit(struct venus_core *core) in venus_dbgfs_deinit()
|
D | core.c | 25 static void venus_event_notify(struct venus_core *core, u32 event) in venus_event_notify() 55 struct venus_core *core = in venus_sys_error_handler() 56 container_of(work, struct venus_core, work.work); in venus_sys_error_handler() 163 static int venus_enumerate_codecs(struct venus_core *core, u32 type) in venus_enumerate_codecs() 216 struct venus_core *core; in venus_probe() 352 struct venus_core *core = platform_get_drvdata(pdev); in venus_remove() 387 struct venus_core *core = dev_get_drvdata(dev); in venus_runtime_suspend() 422 struct venus_core *core = dev_get_drvdata(dev); in venus_runtime_resume()
|
D | hfi_venus.c | 115 struct venus_core *core; 414 static int venus_hfi_core_set_resource(struct venus_core *core, u32 id, in venus_hfi_core_set_resource() 992 static irqreturn_t venus_isr_thread(struct venus_core *core) in venus_isr_thread() 1034 static irqreturn_t venus_isr(struct venus_core *core) in venus_isr() 1055 static int venus_core_init(struct venus_core *core) in venus_core_init() 1084 static int venus_core_deinit(struct venus_core *core) in venus_core_deinit() 1095 static int venus_core_ping(struct venus_core *core, u32 cookie) in venus_core_ping() 1105 static int venus_core_trigger_ssr(struct venus_core *core, u32 trigger_type) in venus_core_trigger_ssr() 1358 static int venus_resume(struct venus_core *core) in venus_resume() 1379 static int venus_suspend_1xx(struct venus_core *core) in venus_suspend_1xx() [all …]
|
D | hfi_msgs.h | 268 struct venus_core; 271 void hfi_process_watchdog_timeout(struct venus_core *core); 272 u32 hfi_process_msg_packet(struct venus_core *core, struct hfi_pkt_hdr *hdr);
|
D | core.h | 153 struct venus_core { struct 356 struct venus_core *core; 428 static inline void *to_hfi_priv(struct venus_core *core) in to_hfi_priv() 434 venus_caps_by_codec(struct venus_core *core, u32 codec, u32 domain) in venus_caps_by_codec()
|
D | hfi_parser.h | 8 u32 hfi_parser(struct venus_core *core, struct venus_inst *inst, 17 struct venus_core *core = inst->core; in get_cap()
|
D | vdec.c | 558 struct venus_core *core = inst->core; in vdec_pm_get() 571 struct venus_core *core = inst->core; in vdec_pm_put() 589 struct venus_core *core = inst->core; in vdec_pm_get_put() 635 struct venus_core *core = inst->core; in vdec_output_conf() 1144 struct venus_core *core = inst->core; in vdec_session_release() 1366 struct venus_core *core = inst->core; in vdec_event_notify() 1467 struct venus_core *core = video_drvdata(file); in vdec_open() 1571 struct venus_core *core; in vdec_probe() 1622 struct venus_core *core = dev_get_drvdata(pdev->dev.parent); in vdec_remove() 1635 struct venus_core *core = dev_get_drvdata(dev); in vdec_runtime_suspend() [all …]
|
D | helpers.h | 12 struct venus_core;
|
D | helpers.c | 30 struct venus_core *core = inst->core; in venus_helper_check_codec() 122 struct venus_core *core = inst->core; in venus_helper_alloc_dpb_bufs() 183 struct venus_core *core = inst->core; in intbufs_set_buffer() 482 struct venus_core *core = inst->core; in is_dynamic_bufmode() 520 struct venus_core *core = inst->core; in session_register_bufs() 1389 struct venus_core *core = inst->core; in venus_helper_vb2_stop_streaming() 1558 struct venus_core *core = inst->core; in venus_helper_get_out_fmts()
|
D | venc.c | 1047 struct venus_core *core = video_drvdata(file); in venc_open() 1150 struct venus_core *core; in venc_probe() 1199 struct venus_core *core = dev_get_drvdata(pdev->dev.parent); in venc_remove() 1212 struct venus_core *core = dev_get_drvdata(dev); in venc_runtime_suspend() 1224 struct venus_core *core = dev_get_drvdata(dev); in venc_runtime_resume()
|