Lines Matching refs:sdev

577 	struct snd_sof_dev *sdev;  member
600 bool hda_is_chain_dma_supported(struct snd_sof_dev *sdev, u32 dai_type);
605 int hda_dsp_probe_early(struct snd_sof_dev *sdev);
606 int hda_dsp_probe(struct snd_sof_dev *sdev);
607 void hda_dsp_remove(struct snd_sof_dev *sdev);
608 void hda_dsp_remove_late(struct snd_sof_dev *sdev);
609 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask);
610 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask);
611 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask);
612 int hda_dsp_core_reset_power_down(struct snd_sof_dev *sdev,
614 int hda_power_down_dsp(struct snd_sof_dev *sdev);
615 int hda_dsp_core_get(struct snd_sof_dev *sdev, int core);
616 void hda_dsp_ipc_int_enable(struct snd_sof_dev *sdev);
617 void hda_dsp_ipc_int_disable(struct snd_sof_dev *sdev);
618 bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, unsigned int core_mask);
620 int hda_dsp_set_power_state_ipc3(struct snd_sof_dev *sdev,
622 int hda_dsp_set_power_state_ipc4(struct snd_sof_dev *sdev,
625 int hda_dsp_suspend(struct snd_sof_dev *sdev, u32 target_state);
626 int hda_dsp_resume(struct snd_sof_dev *sdev);
627 int hda_dsp_runtime_suspend(struct snd_sof_dev *sdev);
628 int hda_dsp_runtime_resume(struct snd_sof_dev *sdev);
629 int hda_dsp_runtime_idle(struct snd_sof_dev *sdev);
630 int hda_dsp_shutdown_dma_flush(struct snd_sof_dev *sdev);
631 int hda_dsp_shutdown(struct snd_sof_dev *sdev);
632 int hda_dsp_set_hw_params_upon_resume(struct snd_sof_dev *sdev);
633 void hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags);
634 void hda_ipc4_dsp_dump(struct snd_sof_dev *sdev, u32 flags);
635 void hda_ipc_dump(struct snd_sof_dev *sdev);
636 void hda_ipc_irq_dump(struct snd_sof_dev *sdev);
638 int hda_dsp_disable_interrupts(struct snd_sof_dev *sdev);
639 bool hda_check_ipc_irq(struct snd_sof_dev *sdev);
640 u32 hda_get_interface_mask(struct snd_sof_dev *sdev);
645 u32 hda_dsp_get_mult_div(struct snd_sof_dev *sdev, int rate);
646 u32 hda_dsp_get_bits(struct snd_sof_dev *sdev, int sample_bits);
647 int hda_dsp_pcm_open(struct snd_sof_dev *sdev,
649 int hda_dsp_pcm_close(struct snd_sof_dev *sdev,
651 int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev,
655 int hda_dsp_stream_hw_free(struct snd_sof_dev *sdev,
657 int hda_dsp_pcm_trigger(struct snd_sof_dev *sdev,
659 snd_pcm_uframes_t hda_dsp_pcm_pointer(struct snd_sof_dev *sdev,
661 int hda_dsp_pcm_ack(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream);
667 int hda_dsp_stream_init(struct snd_sof_dev *sdev);
668 void hda_dsp_stream_free(struct snd_sof_dev *sdev);
669 int hda_dsp_stream_hw_params(struct snd_sof_dev *sdev,
673 int hda_dsp_iccmax_stream_hw_params(struct snd_sof_dev *sdev,
677 int hda_dsp_stream_trigger(struct snd_sof_dev *sdev,
680 int hda_dsp_stream_setup_bdl(struct snd_sof_dev *sdev,
683 bool hda_dsp_check_ipc_irq(struct snd_sof_dev *sdev);
684 bool hda_dsp_check_stream_irq(struct snd_sof_dev *sdev);
688 u64 hda_dsp_get_stream_llp(struct snd_sof_dev *sdev,
691 u64 hda_dsp_get_stream_ldp(struct snd_sof_dev *sdev,
696 hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction, u32 flags);
697 int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag);
698 int hda_dsp_stream_spib_config(struct snd_sof_dev *sdev,
702 int hda_ipc_msg_data(struct snd_sof_dev *sdev,
705 int hda_set_stream_data_offset(struct snd_sof_dev *sdev,
712 int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev,
714 void hda_dsp_ipc_get_reply(struct snd_sof_dev *sdev);
715 int hda_dsp_ipc_get_mailbox_offset(struct snd_sof_dev *sdev);
716 int hda_dsp_ipc_get_window_offset(struct snd_sof_dev *sdev, u32 id);
719 int hda_dsp_ipc_cmd_done(struct snd_sof_dev *sdev, int dir);
721 void hda_dsp_get_state(struct snd_sof_dev *sdev, const char *level);
722 void hda_dsp_dump_ext_rom_status(struct snd_sof_dev *sdev, const char *level,
728 int hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev);
729 int hda_dsp_cl_boot_firmware_iccmax(struct snd_sof_dev *sdev);
730 int hda_cl_copy_fw(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream);
740 int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot);
744 int hda_dsp_pre_fw_run(struct snd_sof_dev *sdev);
745 int hda_dsp_post_fw_run(struct snd_sof_dev *sdev);
748 int hda_dsp_ext_man_get_cavs_config_data(struct snd_sof_dev *sdev,
754 int hda_dsp_ctrl_get_caps(struct snd_sof_dev *sdev);
755 void hda_dsp_ctrl_ppcap_enable(struct snd_sof_dev *sdev, bool enable);
756 void hda_dsp_ctrl_ppcap_int_enable(struct snd_sof_dev *sdev, bool enable);
757 int hda_dsp_ctrl_link_reset(struct snd_sof_dev *sdev, bool reset);
758 void hda_dsp_ctrl_misc_clock_gating(struct snd_sof_dev *sdev, bool enable);
759 int hda_dsp_ctrl_clock_power_gating(struct snd_sof_dev *sdev, bool enable);
760 int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev);
761 void hda_dsp_ctrl_stop_chip(struct snd_sof_dev *sdev);
765 void sof_hda_bus_init(struct snd_sof_dev *sdev, struct device *dev);
766 void sof_hda_bus_exit(struct snd_sof_dev *sdev);
772 void hda_codec_probe_bus(struct snd_sof_dev *sdev);
773 void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev, bool enable);
774 void hda_codec_jack_check(struct snd_sof_dev *sdev);
775 void hda_codec_check_for_state_change(struct snd_sof_dev *sdev);
776 void hda_codec_init_cmd_io(struct snd_sof_dev *sdev);
777 void hda_codec_resume_cmd_io(struct snd_sof_dev *sdev);
778 void hda_codec_stop_cmd_io(struct snd_sof_dev *sdev);
779 void hda_codec_suspend_cmd_io(struct snd_sof_dev *sdev);
780 void hda_codec_detect_mask(struct snd_sof_dev *sdev);
781 void hda_codec_rirb_status_clear(struct snd_sof_dev *sdev);
782 bool hda_codec_check_rirb_status(struct snd_sof_dev *sdev);
783 void hda_codec_set_codec_wakeup(struct snd_sof_dev *sdev, bool status);
784 void hda_codec_device_remove(struct snd_sof_dev *sdev);
788 static inline void hda_codec_probe_bus(struct snd_sof_dev *sdev) { } in hda_codec_probe_bus() argument
789 static inline void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev, bool enable) { } in hda_codec_jack_wake_enable() argument
790 static inline void hda_codec_jack_check(struct snd_sof_dev *sdev) { } in hda_codec_jack_check() argument
791 static inline void hda_codec_check_for_state_change(struct snd_sof_dev *sdev) { } in hda_codec_check_for_state_change() argument
792 static inline void hda_codec_init_cmd_io(struct snd_sof_dev *sdev) { } in hda_codec_init_cmd_io() argument
793 static inline void hda_codec_resume_cmd_io(struct snd_sof_dev *sdev) { } in hda_codec_resume_cmd_io() argument
794 static inline void hda_codec_stop_cmd_io(struct snd_sof_dev *sdev) { } in hda_codec_stop_cmd_io() argument
795 static inline void hda_codec_suspend_cmd_io(struct snd_sof_dev *sdev) { } in hda_codec_suspend_cmd_io() argument
796 static inline void hda_codec_detect_mask(struct snd_sof_dev *sdev) { } in hda_codec_detect_mask() argument
797 static inline void hda_codec_rirb_status_clear(struct snd_sof_dev *sdev) { } in hda_codec_rirb_status_clear() argument
798 static inline bool hda_codec_check_rirb_status(struct snd_sof_dev *sdev) { return false; } in hda_codec_check_rirb_status() argument
799 static inline void hda_codec_set_codec_wakeup(struct snd_sof_dev *sdev, bool status) { } in hda_codec_set_codec_wakeup() argument
800 static inline void hda_codec_device_remove(struct snd_sof_dev *sdev) { } in hda_codec_device_remove() argument
806 void hda_codec_i915_display_power(struct snd_sof_dev *sdev, bool enable);
807 int hda_codec_i915_init(struct snd_sof_dev *sdev);
808 int hda_codec_i915_exit(struct snd_sof_dev *sdev);
812 static inline void hda_codec_i915_display_power(struct snd_sof_dev *sdev, bool enable) { } in hda_codec_i915_display_power() argument
813 static inline int hda_codec_i915_init(struct snd_sof_dev *sdev) { return 0; } in hda_codec_i915_init() argument
814 static inline int hda_codec_i915_exit(struct snd_sof_dev *sdev) { return 0; } in hda_codec_i915_exit() argument
821 int hda_dsp_trace_init(struct snd_sof_dev *sdev, struct snd_dma_buffer *dmab,
823 int hda_dsp_trace_release(struct snd_sof_dev *sdev);
824 int hda_dsp_trace_trigger(struct snd_sof_dev *sdev, int cmd);
831 int hda_sdw_check_lcount_common(struct snd_sof_dev *sdev);
832 int hda_sdw_check_lcount_ext(struct snd_sof_dev *sdev);
833 int hda_sdw_check_lcount(struct snd_sof_dev *sdev);
834 int hda_sdw_startup(struct snd_sof_dev *sdev);
835 void hda_common_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable);
836 void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable);
837 bool hda_sdw_check_wakeen_irq_common(struct snd_sof_dev *sdev);
838 void hda_sdw_process_wakeen_common(struct snd_sof_dev *sdev);
839 void hda_sdw_process_wakeen(struct snd_sof_dev *sdev);
840 bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev);
844 static inline int hda_sdw_check_lcount_common(struct snd_sof_dev *sdev) in hda_sdw_check_lcount_common() argument
849 static inline int hda_sdw_check_lcount_ext(struct snd_sof_dev *sdev) in hda_sdw_check_lcount_ext() argument
854 static inline int hda_sdw_check_lcount(struct snd_sof_dev *sdev) in hda_sdw_check_lcount() argument
859 static inline int hda_sdw_startup(struct snd_sof_dev *sdev) in hda_sdw_startup() argument
864 static inline void hda_common_enable_sdw_irq(struct snd_sof_dev *sdev, bool enable) in hda_common_enable_sdw_irq() argument
868 static inline void hda_sdw_int_enable(struct snd_sof_dev *sdev, bool enable) in hda_sdw_int_enable() argument
872 static inline bool hda_sdw_check_wakeen_irq_common(struct snd_sof_dev *sdev) in hda_sdw_check_wakeen_irq_common() argument
877 static inline void hda_sdw_process_wakeen_common(struct snd_sof_dev *sdev) in hda_sdw_process_wakeen_common() argument
881 static inline void hda_sdw_process_wakeen(struct snd_sof_dev *sdev) in hda_sdw_process_wakeen() argument
885 static inline bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev) in hda_common_check_sdw_irq() argument
907 int hda_dsp_dais_suspend(struct snd_sof_dev *sdev);
915 int sof_skl_ops_init(struct snd_sof_dev *sdev);
917 int sof_apl_ops_init(struct snd_sof_dev *sdev);
919 int sof_cnl_ops_init(struct snd_sof_dev *sdev);
921 int sof_tgl_ops_init(struct snd_sof_dev *sdev);
923 int sof_icl_ops_init(struct snd_sof_dev *sdev);
942 int hda_probes_register(struct snd_sof_dev *sdev);
943 void hda_probes_unregister(struct snd_sof_dev *sdev);
945 static inline int hda_probes_register(struct snd_sof_dev *sdev) in hda_probes_register() argument
950 static inline void hda_probes_unregister(struct snd_sof_dev *sdev) in hda_probes_unregister() argument
956 int hda_register_clients(struct snd_sof_dev *sdev);
957 void hda_unregister_clients(struct snd_sof_dev *sdev);
960 struct snd_soc_acpi_mach *hda_machine_select(struct snd_sof_dev *sdev);
962 struct snd_sof_dev *sdev);
976 void hda_set_dai_drv_ops(struct snd_sof_dev *sdev, struct snd_sof_dsp_ops *ops);
977 void hda_ops_free(struct snd_sof_dev *sdev);
980 int hda_dsp_cl_boot_firmware_skl(struct snd_sof_dev *sdev);
981 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask);
985 int cnl_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg);
987 bool hda_ipc4_tx_is_busy(struct snd_sof_dev *sdev);
990 int hda_dsp_ipc4_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg);
991 void hda_ipc4_dump(struct snd_sof_dev *sdev);
995 int hda_dsp_ipc4_load_library(struct snd_sof_dev *sdev,
1015 struct hdac_ext_stream *(*get_hext_stream)(struct snd_sof_dev *sdev,
1018 struct hdac_ext_stream *(*assign_hext_stream)(struct snd_sof_dev *sdev,
1021 void (*release_hext_stream)(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
1023 void (*setup_hext_stream)(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_stream,
1025 void (*reset_hext_stream)(struct snd_sof_dev *sdev, struct hdac_ext_stream *hext_sream);
1026 int (*pre_trigger)(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
1028 int (*trigger)(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
1030 int (*post_trigger)(struct snd_sof_dev *sdev, struct snd_soc_dai *cpu_dai,
1032 void (*codec_dai_set_stream)(struct snd_sof_dev *sdev,
1035 unsigned int (*calc_stream_format)(struct snd_sof_dev *sdev,
1038 struct hdac_ext_link * (*get_hlink)(struct snd_sof_dev *sdev,
1043 hda_select_dai_widget_ops(struct snd_sof_dev *sdev, struct snd_sof_widget *swidget);