Lines Matching refs:phy_common

30 				  struct ufs_qcom_phy *phy_common);
131 struct ufs_qcom_phy *phy_common) in ufs_qcom_phy_base_init() argument
138 phy_common->mmio = devm_ioremap_resource(dev, res); in ufs_qcom_phy_base_init()
139 if (IS_ERR((void const *)phy_common->mmio)) { in ufs_qcom_phy_base_init()
140 err = PTR_ERR((void const *)phy_common->mmio); in ufs_qcom_phy_base_init()
141 phy_common->mmio = NULL; in ufs_qcom_phy_base_init()
150 phy_common->dev_ref_clk_ctrl_mmio = devm_ioremap_resource(dev, res); in ufs_qcom_phy_base_init()
151 if (IS_ERR((void const *)phy_common->dev_ref_clk_ctrl_mmio)) in ufs_qcom_phy_base_init()
152 phy_common->dev_ref_clk_ctrl_mmio = NULL; in ufs_qcom_phy_base_init()
186 struct ufs_qcom_phy *phy_common) in ufs_qcom_phy_init_clks() argument
191 &phy_common->tx_iface_clk); in ufs_qcom_phy_init_clks()
196 &phy_common->rx_iface_clk); in ufs_qcom_phy_init_clks()
201 &phy_common->ref_clk_src); in ufs_qcom_phy_init_clks()
210 &phy_common->ref_clk_parent, false); in ufs_qcom_phy_init_clks()
213 &phy_common->ref_clk); in ufs_qcom_phy_init_clks()
222 struct ufs_qcom_phy *phy_common) in ufs_qcom_phy_init_vregulators() argument
226 err = ufs_qcom_phy_init_vreg(generic_phy, &phy_common->vdda_pll, in ufs_qcom_phy_init_vregulators()
231 err = ufs_qcom_phy_init_vreg(generic_phy, &phy_common->vdda_phy, in ufs_qcom_phy_init_vregulators()
238 __ufs_qcom_phy_init_vreg(generic_phy, &phy_common->vddp_ref_clk, in ufs_qcom_phy_init_vregulators()
679 struct ufs_qcom_phy *phy_common = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_power_on() local
680 struct device *dev = phy_common->dev; in ufs_qcom_phy_power_on()
683 err = ufs_qcom_phy_enable_vreg(generic_phy, &phy_common->vdda_phy); in ufs_qcom_phy_power_on()
690 phy_common->phy_spec_ops->power_control(phy_common, true); in ufs_qcom_phy_power_on()
693 err = ufs_qcom_phy_enable_vreg(generic_phy, &phy_common->vdda_pll); in ufs_qcom_phy_power_on()
708 if (phy_common->vddp_ref_clk.reg) { in ufs_qcom_phy_power_on()
710 &phy_common->vddp_ref_clk); in ufs_qcom_phy_power_on()
718 phy_common->is_powered_on = true; in ufs_qcom_phy_power_on()
724 ufs_qcom_phy_disable_vreg(generic_phy, &phy_common->vdda_pll); in ufs_qcom_phy_power_on()
726 ufs_qcom_phy_disable_vreg(generic_phy, &phy_common->vdda_phy); in ufs_qcom_phy_power_on()
734 struct ufs_qcom_phy *phy_common = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_power_off() local
736 phy_common->phy_spec_ops->power_control(phy_common, false); in ufs_qcom_phy_power_off()
738 if (phy_common->vddp_ref_clk.reg) in ufs_qcom_phy_power_off()
740 &phy_common->vddp_ref_clk); in ufs_qcom_phy_power_off()
743 ufs_qcom_phy_disable_vreg(generic_phy, &phy_common->vdda_pll); in ufs_qcom_phy_power_off()
744 ufs_qcom_phy_disable_vreg(generic_phy, &phy_common->vdda_phy); in ufs_qcom_phy_power_off()
745 phy_common->is_powered_on = false; in ufs_qcom_phy_power_off()