Lines Matching defs:hba
96 static bool ufs_mtk_is_boost_crypt_enabled(struct ufs_hba *hba) in ufs_mtk_is_boost_crypt_enabled()
103 static bool ufs_mtk_is_va09_supported(struct ufs_hba *hba) in ufs_mtk_is_va09_supported()
110 static bool ufs_mtk_is_broken_vcc(struct ufs_hba *hba) in ufs_mtk_is_broken_vcc()
117 static bool ufs_mtk_is_pmc_via_fastauto(struct ufs_hba *hba) in ufs_mtk_is_pmc_via_fastauto()
124 static bool ufs_mtk_is_tx_skew_fix(struct ufs_hba *hba) in ufs_mtk_is_tx_skew_fix()
131 static bool ufs_mtk_is_rtff_mtcmos(struct ufs_hba *hba) in ufs_mtk_is_rtff_mtcmos()
138 static bool ufs_mtk_is_allow_vccqx_lpm(struct ufs_hba *hba) in ufs_mtk_is_allow_vccqx_lpm()
145 static bool ufs_mtk_is_clk_scale_ready(struct ufs_hba *hba) in ufs_mtk_is_clk_scale_ready()
155 static void ufs_mtk_cfg_unipro_cg(struct ufs_hba *hba, bool enable) in ufs_mtk_cfg_unipro_cg()
191 static void ufs_mtk_crypto_enable(struct ufs_hba *hba) in ufs_mtk_crypto_enable()
203 static void ufs_mtk_host_reset(struct ufs_hba *hba) in ufs_mtk_host_reset()
225 static void ufs_mtk_init_reset_control(struct ufs_hba *hba, in ufs_mtk_init_reset_control()
237 static void ufs_mtk_init_reset(struct ufs_hba *hba) in ufs_mtk_init_reset()
251 static int ufs_mtk_hce_enable_notify(struct ufs_hba *hba, in ufs_mtk_hce_enable_notify()
293 static int ufs_mtk_bind_mphy(struct ufs_hba *hba) in ufs_mtk_bind_mphy()
331 static int ufs_mtk_setup_ref_clk(struct ufs_hba *hba, bool on) in ufs_mtk_setup_ref_clk()
388 static void ufs_mtk_setup_ref_clk_wait_us(struct ufs_hba *hba, in ufs_mtk_setup_ref_clk_wait_us()
403 static void ufs_mtk_dbg_sel(struct ufs_hba *hba) in ufs_mtk_dbg_sel()
418 static void ufs_mtk_wait_idle_state(struct ufs_hba *hba, in ufs_mtk_wait_idle_state()
458 static int ufs_mtk_wait_link_state(struct ufs_hba *hba, u32 state, in ufs_mtk_wait_link_state()
481 static int ufs_mtk_mphy_power_on(struct ufs_hba *hba, bool on) in ufs_mtk_mphy_power_on()
536 static void ufs_mtk_boost_crypt(struct ufs_hba *hba, bool boost) in ufs_mtk_boost_crypt()
592 static int ufs_mtk_init_host_clk(struct ufs_hba *hba, const char *name, in ufs_mtk_init_host_clk()
606 static void ufs_mtk_init_boost_crypt(struct ufs_hba *hba) in ufs_mtk_init_boost_crypt()
653 static void ufs_mtk_init_va09_pwr_ctrl(struct ufs_hba *hba) in ufs_mtk_init_va09_pwr_ctrl()
664 static void ufs_mtk_init_host_caps(struct ufs_hba *hba) in ufs_mtk_init_host_caps()
699 static void ufs_mtk_scale_perf(struct ufs_hba *hba, bool scale_up) in ufs_mtk_scale_perf()
704 static void ufs_mtk_pwr_ctrl(struct ufs_hba *hba, bool on) in ufs_mtk_pwr_ctrl()
721 static void ufs_mtk_mcq_disable_irq(struct ufs_hba *hba) in ufs_mtk_mcq_disable_irq()
739 static void ufs_mtk_mcq_enable_irq(struct ufs_hba *hba) in ufs_mtk_mcq_enable_irq()
768 static int ufs_mtk_setup_clocks(struct ufs_hba *hba, bool on, in ufs_mtk_setup_clocks()
812 static u32 ufs_mtk_mcq_get_irq(struct ufs_hba *hba, unsigned int cpu) in ufs_mtk_mcq_get_irq()
830 static void ufs_mtk_mcq_set_irq_affinity(struct ufs_hba *hba, unsigned int cpu) in ufs_mtk_mcq_set_irq_affinity()
852 static bool ufs_mtk_is_legacy_chipset(struct ufs_hba *hba, u32 hw_ip_ver) in ufs_mtk_is_legacy_chipset()
879 static void ufs_mtk_get_hw_ip_version(struct ufs_hba *hba) in ufs_mtk_get_hw_ip_version()
897 static void ufs_mtk_get_controller_version(struct ufs_hba *hba) in ufs_mtk_get_controller_version()
922 static u32 ufs_mtk_get_ufs_hci_version(struct ufs_hba *hba) in ufs_mtk_get_ufs_hci_version()
932 static void ufs_mtk_init_clocks(struct ufs_hba *hba) in ufs_mtk_init_clocks()
1012 static int ufs_mtk_vreg_fix_vcc(struct ufs_hba *hba) in ufs_mtk_vreg_fix_vcc()
1054 static void ufs_mtk_vreg_fix_vccqx(struct ufs_hba *hba) in ufs_mtk_vreg_fix_vccqx()
1078 static void ufs_mtk_init_mcq_irq(struct ufs_hba *hba) in ufs_mtk_init_mcq_irq()
1122 static int ufs_mtk_init(struct ufs_hba *hba) in ufs_mtk_init()
1226 static bool ufs_mtk_pmc_via_fastauto(struct ufs_hba *hba, in ufs_mtk_pmc_via_fastauto()
1246 static int ufs_mtk_pre_pwr_change(struct ufs_hba *hba, in ufs_mtk_pre_pwr_change()
1299 static int ufs_mtk_pwr_change_notify(struct ufs_hba *hba, in ufs_mtk_pwr_change_notify()
1321 static int ufs_mtk_unipro_set_lpm(struct ufs_hba *hba, bool lpm) in ufs_mtk_unipro_set_lpm()
1341 static int ufs_mtk_pre_link(struct ufs_hba *hba) in ufs_mtk_pre_link()
1373 static void ufs_mtk_setup_clk_gating(struct ufs_hba *hba) in ufs_mtk_setup_clk_gating()
1387 static void ufs_mtk_post_link(struct ufs_hba *hba) in ufs_mtk_post_link()
1400 static int ufs_mtk_link_startup_notify(struct ufs_hba *hba, in ufs_mtk_link_startup_notify()
1420 static int ufs_mtk_device_reset(struct ufs_hba *hba) in ufs_mtk_device_reset()
1448 static int ufs_mtk_link_set_hpm(struct ufs_hba *hba) in ufs_mtk_link_set_hpm()
1487 static int ufs_mtk_link_set_lpm(struct ufs_hba *hba) in ufs_mtk_link_set_lpm()
1506 static void ufs_mtk_vccqx_set_lpm(struct ufs_hba *hba, bool lpm) in ufs_mtk_vccqx_set_lpm()
1519 static void ufs_mtk_vsx_set_lpm(struct ufs_hba *hba, bool lpm) in ufs_mtk_vsx_set_lpm()
1528 static void ufs_mtk_dev_vreg_set_lpm(struct ufs_hba *hba, bool lpm) in ufs_mtk_dev_vreg_set_lpm()
1564 static void ufs_mtk_auto_hibern8_disable(struct ufs_hba *hba) in ufs_mtk_auto_hibern8_disable()
1579 static int ufs_mtk_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op, in ufs_mtk_suspend()
1624 static int ufs_mtk_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op) in ufs_mtk_resume()
1649 static void ufs_mtk_dbg_register_dump(struct ufs_hba *hba) in ufs_mtk_dbg_register_dump()
1667 static int ufs_mtk_apply_dev_quirks(struct ufs_hba *hba) in ufs_mtk_apply_dev_quirks()
1712 static void ufs_mtk_fixup_dev_quirks(struct ufs_hba *hba) in ufs_mtk_fixup_dev_quirks()
1731 static void ufs_mtk_event_notify(struct ufs_hba *hba, in ufs_mtk_event_notify()
1759 static void ufs_mtk_config_scaling_param(struct ufs_hba *hba, in ufs_mtk_config_scaling_param()
1771 static void _ufs_mtk_clk_scale(struct ufs_hba *hba, bool scale_up) in _ufs_mtk_clk_scale()
1884 static void ufs_mtk_clk_scale(struct ufs_hba *hba, bool scale_up) in ufs_mtk_clk_scale()
1909 static int ufs_mtk_clk_scale_notify(struct ufs_hba *hba, bool scale_up, in ufs_mtk_clk_scale_notify()
1927 static int ufs_mtk_get_hba_mac(struct ufs_hba *hba) in ufs_mtk_get_hba_mac()
1938 static int ufs_mtk_op_runtime_config(struct ufs_hba *hba) in ufs_mtk_op_runtime_config()
1957 static int ufs_mtk_mcq_config_resource(struct ufs_hba *hba) in ufs_mtk_mcq_config_resource()
1974 struct ufs_hba *hba = mcq_intr_info->hba; in ufs_mtk_mcq_intr() local
1991 static int ufs_mtk_config_mcq_irq(struct ufs_hba *hba) in ufs_mtk_config_mcq_irq()
2019 static int ufs_mtk_config_mcq(struct ufs_hba *hba, bool irq) in ufs_mtk_config_mcq()
2043 static int ufs_mtk_config_esi(struct ufs_hba *hba) in ufs_mtk_config_esi()
2050 struct ufs_hba *hba = shost_priv(sdev->host); in ufs_mtk_config_scsi_dev() local
2153 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_mtk_system_suspend() local
2171 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_mtk_system_resume() local
2186 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_mtk_runtime_suspend() local
2204 struct ufs_hba *hba = dev_get_drvdata(dev); in ufs_mtk_runtime_resume() local