Lines Matching refs:hba
23 static int cdns_ufs_link_startup_notify(struct ufs_hba *hba, in cdns_ufs_link_startup_notify() argument
26 hba->quirks |= UFSHCD_QUIRK_BROKEN_LCC; in cdns_ufs_link_startup_notify()
29 return ufshcd_dme_set(hba, in cdns_ufs_link_startup_notify()
39 static int cdns_ufs_set_hclkdiv(struct ufs_hba *hba) in cdns_ufs_set_hclkdiv() argument
46 ret = clk_get_by_name(hba->dev, "core_clk", &clk); in cdns_ufs_set_hclkdiv()
48 dev_err(hba->dev, "failed to get core_clk clock\n"); in cdns_ufs_set_hclkdiv()
54 dev_err(hba->dev, "%s: unable to find core_clk rate\n", in cdns_ufs_set_hclkdiv()
60 ufshcd_writel(hba, core_clk_div, CDNS_UFS_REG_HCLKDIV); in cdns_ufs_set_hclkdiv()
65 static int cdns_ufs_hce_enable_notify(struct ufs_hba *hba, in cdns_ufs_hce_enable_notify() argument
70 return cdns_ufs_set_hclkdiv(hba); in cdns_ufs_hce_enable_notify()
78 static int cdns_ufs_init(struct ufs_hba *hba) in cdns_ufs_init() argument
83 data = ufshcd_readl(hba, CDNS_UFS_REG_PHY_XCFGD1); in cdns_ufs_init()
85 ufshcd_writel(hba, data, CDNS_UFS_REG_PHY_XCFGD1); in cdns_ufs_init()