Lines Matching refs:ufs_qcom_phy
16 int ufs_qcom_phy_calibrate(struct ufs_qcom_phy *ufs_qcom_phy, in ufs_qcom_phy_calibrate() argument
26 dev_err(ufs_qcom_phy->dev, "%s: tbl_A is NULL", __func__); in ufs_qcom_phy_calibrate()
33 ufs_qcom_phy->mmio + tbl_A[i].reg_offset); in ufs_qcom_phy_calibrate()
43 dev_err(ufs_qcom_phy->dev, "%s: tbl_B is NULL", in ufs_qcom_phy_calibrate()
51 ufs_qcom_phy->mmio + tbl_B[i].reg_offset); in ufs_qcom_phy_calibrate()
68 struct ufs_qcom_phy *get_ufs_qcom_phy(struct phy *generic_phy) in get_ufs_qcom_phy()
70 return (struct ufs_qcom_phy *)phy_get_drvdata(generic_phy); in get_ufs_qcom_phy()
76 struct ufs_qcom_phy *phy_common) in ufs_qcom_phy_base_init()
103 struct ufs_qcom_phy *common_cfg, in ufs_qcom_phy_generic_probe()
141 static int ufs_qcom_phy_get_reset(struct ufs_qcom_phy *phy_common) in ufs_qcom_phy_get_reset()
180 int ufs_qcom_phy_init_clks(struct ufs_qcom_phy *phy_common) in ufs_qcom_phy_init_clks()
268 int ufs_qcom_phy_init_vregulators(struct ufs_qcom_phy *phy_common) in ufs_qcom_phy_init_vregulators()
353 static int ufs_qcom_phy_enable_ref_clk(struct ufs_qcom_phy *phy) in ufs_qcom_phy_enable_ref_clk()
425 static void ufs_qcom_phy_disable_ref_clk(struct ufs_qcom_phy *phy) in ufs_qcom_phy_disable_ref_clk()
441 static int ufs_qcom_phy_enable_iface_clk(struct ufs_qcom_phy *phy) in ufs_qcom_phy_enable_iface_clk()
468 static void ufs_qcom_phy_disable_iface_clk(struct ufs_qcom_phy *phy) in ufs_qcom_phy_disable_iface_clk()
477 static int ufs_qcom_phy_start_serdes(struct ufs_qcom_phy *ufs_qcom_phy) in ufs_qcom_phy_start_serdes() argument
481 if (!ufs_qcom_phy->phy_spec_ops->start_serdes) { in ufs_qcom_phy_start_serdes()
482 dev_err(ufs_qcom_phy->dev, "%s: start_serdes() callback is not supported\n", in ufs_qcom_phy_start_serdes()
486 ufs_qcom_phy->phy_spec_ops->start_serdes(ufs_qcom_phy); in ufs_qcom_phy_start_serdes()
494 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_set_tx_lane_enable() local
497 if (!ufs_qcom_phy->phy_spec_ops->set_tx_lane_enable) { in ufs_qcom_phy_set_tx_lane_enable()
498 dev_err(ufs_qcom_phy->dev, "%s: set_tx_lane_enable() callback is not supported\n", in ufs_qcom_phy_set_tx_lane_enable()
502 ufs_qcom_phy->phy_spec_ops->set_tx_lane_enable(ufs_qcom_phy, in ufs_qcom_phy_set_tx_lane_enable()
513 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_save_controller_version() local
515 ufs_qcom_phy->host_ctrl_rev_major = major; in ufs_qcom_phy_save_controller_version()
516 ufs_qcom_phy->host_ctrl_rev_minor = minor; in ufs_qcom_phy_save_controller_version()
517 ufs_qcom_phy->host_ctrl_rev_step = step; in ufs_qcom_phy_save_controller_version()
521 static int ufs_qcom_phy_is_pcs_ready(struct ufs_qcom_phy *ufs_qcom_phy) in ufs_qcom_phy_is_pcs_ready() argument
523 if (!ufs_qcom_phy->phy_spec_ops->is_physical_coding_sublayer_ready) { in ufs_qcom_phy_is_pcs_ready()
524 dev_err(ufs_qcom_phy->dev, "%s: is_physical_coding_sublayer_ready() callback is not supported\n", in ufs_qcom_phy_is_pcs_ready()
529 return ufs_qcom_phy->phy_spec_ops-> in ufs_qcom_phy_is_pcs_ready()
530 is_physical_coding_sublayer_ready(ufs_qcom_phy); in ufs_qcom_phy_is_pcs_ready()
535 struct ufs_qcom_phy *phy_common = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_power_on()
628 struct ufs_qcom_phy *phy_common = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_power_off()