Lines Matching refs:ufs_qcom_phy
25 int ufs_qcom_phy_calibrate(struct ufs_qcom_phy *ufs_qcom_phy, in ufs_qcom_phy_calibrate() argument
35 dev_err(ufs_qcom_phy->dev, "%s: tbl_A is NULL", __func__); in ufs_qcom_phy_calibrate()
42 ufs_qcom_phy->mmio + tbl_A[i].reg_offset); in ufs_qcom_phy_calibrate()
52 dev_err(ufs_qcom_phy->dev, "%s: tbl_B is NULL", in ufs_qcom_phy_calibrate()
60 ufs_qcom_phy->mmio + tbl_B[i].reg_offset); in ufs_qcom_phy_calibrate()
77 struct ufs_qcom_phy *get_ufs_qcom_phy(struct phy *generic_phy) in get_ufs_qcom_phy()
79 return (struct ufs_qcom_phy *)phy_get_drvdata(generic_phy); in get_ufs_qcom_phy()
85 struct ufs_qcom_phy *phy_common) in ufs_qcom_phy_base_init()
112 struct ufs_qcom_phy *common_cfg, in ufs_qcom_phy_generic_probe()
174 int ufs_qcom_phy_init_clks(struct ufs_qcom_phy *phy_common) in ufs_qcom_phy_init_clks()
262 int ufs_qcom_phy_init_vregulators(struct ufs_qcom_phy *phy_common) in ufs_qcom_phy_init_vregulators()
347 static int ufs_qcom_phy_enable_ref_clk(struct ufs_qcom_phy *phy) in ufs_qcom_phy_enable_ref_clk()
419 static void ufs_qcom_phy_disable_ref_clk(struct ufs_qcom_phy *phy) in ufs_qcom_phy_disable_ref_clk()
438 struct ufs_qcom_phy *phy = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_dev_ref_clk_ctrl()
485 static int ufs_qcom_phy_enable_iface_clk(struct ufs_qcom_phy *phy) in ufs_qcom_phy_enable_iface_clk()
512 void ufs_qcom_phy_disable_iface_clk(struct ufs_qcom_phy *phy) in ufs_qcom_phy_disable_iface_clk()
521 static int ufs_qcom_phy_start_serdes(struct ufs_qcom_phy *ufs_qcom_phy) in ufs_qcom_phy_start_serdes() argument
525 if (!ufs_qcom_phy->phy_spec_ops->start_serdes) { in ufs_qcom_phy_start_serdes()
526 dev_err(ufs_qcom_phy->dev, "%s: start_serdes() callback is not supported\n", in ufs_qcom_phy_start_serdes()
530 ufs_qcom_phy->phy_spec_ops->start_serdes(ufs_qcom_phy); in ufs_qcom_phy_start_serdes()
538 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_set_tx_lane_enable() local
541 if (!ufs_qcom_phy->phy_spec_ops->set_tx_lane_enable) { in ufs_qcom_phy_set_tx_lane_enable()
542 dev_err(ufs_qcom_phy->dev, "%s: set_tx_lane_enable() callback is not supported\n", in ufs_qcom_phy_set_tx_lane_enable()
546 ufs_qcom_phy->phy_spec_ops->set_tx_lane_enable(ufs_qcom_phy, in ufs_qcom_phy_set_tx_lane_enable()
557 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_save_controller_version() local
559 ufs_qcom_phy->host_ctrl_rev_major = major; in ufs_qcom_phy_save_controller_version()
560 ufs_qcom_phy->host_ctrl_rev_minor = minor; in ufs_qcom_phy_save_controller_version()
561 ufs_qcom_phy->host_ctrl_rev_step = step; in ufs_qcom_phy_save_controller_version()
565 static int ufs_qcom_phy_is_pcs_ready(struct ufs_qcom_phy *ufs_qcom_phy) in ufs_qcom_phy_is_pcs_ready() argument
567 if (!ufs_qcom_phy->phy_spec_ops->is_physical_coding_sublayer_ready) { in ufs_qcom_phy_is_pcs_ready()
568 dev_err(ufs_qcom_phy->dev, "%s: is_physical_coding_sublayer_ready() callback is not supported\n", in ufs_qcom_phy_is_pcs_ready()
573 return ufs_qcom_phy->phy_spec_ops-> in ufs_qcom_phy_is_pcs_ready()
574 is_physical_coding_sublayer_ready(ufs_qcom_phy); in ufs_qcom_phy_is_pcs_ready()
579 struct ufs_qcom_phy *phy_common = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_power_on()
658 struct ufs_qcom_phy *phy_common = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_power_off()