Searched refs:ufs_qcom_phy (Results 1 - 6 of 6) sorted by relevance
/linux-4.1.27/drivers/phy/ |
H A D | phy-qcom-ufs.c | 30 struct ufs_qcom_phy *phy_common); 32 int ufs_qcom_phy_calibrate(struct ufs_qcom_phy *ufs_qcom_phy, ufs_qcom_phy_calibrate() argument 42 dev_err(ufs_qcom_phy->dev, "%s: tbl_A is NULL", __func__); ufs_qcom_phy_calibrate() 49 ufs_qcom_phy->mmio + tbl_A[i].reg_offset); ufs_qcom_phy_calibrate() 59 dev_err(ufs_qcom_phy->dev, "%s: tbl_B is NULL", ufs_qcom_phy_calibrate() 67 ufs_qcom_phy->mmio + tbl_B[i].reg_offset); ufs_qcom_phy_calibrate() 79 struct ufs_qcom_phy *common_cfg, ufs_qcom_phy_generic_probe() 119 * struct ufs_qcom_phy. In order to function properly it's crucial 120 * to keep the embedded struct "struct ufs_qcom_phy common_cfg" 123 struct ufs_qcom_phy *get_ufs_qcom_phy(struct phy *generic_phy) get_ufs_qcom_phy() 125 return (struct ufs_qcom_phy *)phy_get_drvdata(generic_phy); get_ufs_qcom_phy() 131 struct ufs_qcom_phy *phy_common) ufs_qcom_phy_base_init() 162 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(phy); __ufs_qcom_phy_clk_get() local 163 struct device *dev = ufs_qcom_phy->dev; __ufs_qcom_phy_clk_get() 186 struct ufs_qcom_phy *phy_common) ufs_qcom_phy_init_clks() 222 struct ufs_qcom_phy *phy_common) ufs_qcom_phy_init_vregulators() 249 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(phy); __ufs_qcom_phy_init_vreg() local 250 struct device *dev = ufs_qcom_phy->dev; __ufs_qcom_phy_init_vreg() 324 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(phy); ufs_qcom_phy_cfg_vreg() local 325 struct device *dev = ufs_qcom_phy->dev; ufs_qcom_phy_cfg_vreg() 359 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(phy); ufs_qcom_phy_enable_vreg() local 360 struct device *dev = ufs_qcom_phy->dev; ufs_qcom_phy_enable_vreg() 388 struct ufs_qcom_phy *phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_enable_ref_clk() 440 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(phy); ufs_qcom_phy_disable_vreg() local 441 struct device *dev = ufs_qcom_phy->dev; ufs_qcom_phy_disable_vreg() 463 struct ufs_qcom_phy *phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_disable_ref_clk() 482 struct ufs_qcom_phy *phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_dev_ref_clk_ctrl() 529 struct ufs_qcom_phy *phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_enable_iface_clk() 557 struct ufs_qcom_phy *phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_disable_iface_clk() 568 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_start_serdes() local 571 if (!ufs_qcom_phy->phy_spec_ops->start_serdes) { ufs_qcom_phy_start_serdes() 572 dev_err(ufs_qcom_phy->dev, "%s: start_serdes() callback is not supported\n", ufs_qcom_phy_start_serdes() 576 ufs_qcom_phy->phy_spec_ops->start_serdes(ufs_qcom_phy); ufs_qcom_phy_start_serdes() 584 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_set_tx_lane_enable() local 587 if (!ufs_qcom_phy->phy_spec_ops->set_tx_lane_enable) { ufs_qcom_phy_set_tx_lane_enable() 588 dev_err(ufs_qcom_phy->dev, "%s: set_tx_lane_enable() callback is not supported\n", ufs_qcom_phy_set_tx_lane_enable() 592 ufs_qcom_phy->phy_spec_ops->set_tx_lane_enable(ufs_qcom_phy, ufs_qcom_phy_set_tx_lane_enable() 602 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_save_controller_version() local 604 ufs_qcom_phy->host_ctrl_rev_major = major; ufs_qcom_phy_save_controller_version() 605 ufs_qcom_phy->host_ctrl_rev_minor = minor; ufs_qcom_phy_save_controller_version() 606 ufs_qcom_phy->host_ctrl_rev_step = step; ufs_qcom_phy_save_controller_version() 611 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_calibrate_phy() local 614 if (!ufs_qcom_phy->phy_spec_ops->calibrate_phy) { ufs_qcom_phy_calibrate_phy() 615 dev_err(ufs_qcom_phy->dev, "%s: calibrate_phy() callback is not supported\n", ufs_qcom_phy_calibrate_phy() 619 ret = ufs_qcom_phy->phy_spec_ops-> ufs_qcom_phy_calibrate_phy() 620 calibrate_phy(ufs_qcom_phy, is_rate_B); ufs_qcom_phy_calibrate_phy() 622 dev_err(ufs_qcom_phy->dev, "%s: calibrate_phy() failed %d\n", ufs_qcom_phy_calibrate_phy() 630 struct ufs_qcom_phy *ufs_qcom_phy) ufs_qcom_phy_remove() 634 kfree(ufs_qcom_phy->vdda_pll.name); ufs_qcom_phy_remove() 635 kfree(ufs_qcom_phy->vdda_phy.name); ufs_qcom_phy_remove() 643 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_exit() local 645 if (ufs_qcom_phy->is_powered_on) ufs_qcom_phy_exit() 654 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_is_pcs_ready() local 656 if (!ufs_qcom_phy->phy_spec_ops->is_physical_coding_sublayer_ready) { ufs_qcom_phy_is_pcs_ready() 657 dev_err(ufs_qcom_phy->dev, "%s: is_physical_coding_sublayer_ready() callback is not supported\n", ufs_qcom_phy_is_pcs_ready() 662 return ufs_qcom_phy->phy_spec_ops-> ufs_qcom_phy_is_pcs_ready() 663 is_physical_coding_sublayer_ready(ufs_qcom_phy); ufs_qcom_phy_is_pcs_ready() 668 struct ufs_qcom_phy *phy_common = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_power_on() 723 struct ufs_qcom_phy *phy_common = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_power_off() 629 ufs_qcom_phy_remove(struct phy *generic_phy, struct ufs_qcom_phy *ufs_qcom_phy) ufs_qcom_phy_remove() argument
|
H A D | phy-qcom-ufs-qmp-20nm.c | 20 int ufs_qcom_phy_qmp_20nm_phy_calibrate(struct ufs_qcom_phy *ufs_qcom_phy, ufs_qcom_phy_qmp_20nm_phy_calibrate() argument 25 u8 major = ufs_qcom_phy->host_ctrl_rev_major; ufs_qcom_phy_qmp_20nm_phy_calibrate() 26 u16 minor = ufs_qcom_phy->host_ctrl_rev_minor; ufs_qcom_phy_qmp_20nm_phy_calibrate() 27 u16 step = ufs_qcom_phy->host_ctrl_rev_step; ufs_qcom_phy_qmp_20nm_phy_calibrate() 37 dev_err(ufs_qcom_phy->dev, "%s: Unknown UFS-PHY version, no calibration values\n", ufs_qcom_phy_qmp_20nm_phy_calibrate() 46 err = ufs_qcom_phy_calibrate(ufs_qcom_phy, tbl_A, tbl_size_A, ufs_qcom_phy_qmp_20nm_phy_calibrate() 50 dev_err(ufs_qcom_phy->dev, "%s: ufs_qcom_phy_calibrate() failed %d\n", ufs_qcom_phy_qmp_20nm_phy_calibrate() 58 void ufs_qcom_phy_qmp_20nm_advertise_quirks(struct ufs_qcom_phy *phy_common) ufs_qcom_phy_qmp_20nm_advertise_quirks() 67 struct ufs_qcom_phy *phy_common = &phy->common_cfg; ufs_qcom_phy_qmp_20nm_init() 91 void ufs_qcom_phy_qmp_20nm_power_control(struct ufs_qcom_phy *phy, bool val) ufs_qcom_phy_qmp_20nm_power_control() 143 void ufs_qcom_phy_qmp_20nm_set_tx_lane_enable(struct ufs_qcom_phy *phy, u32 val) ufs_qcom_phy_qmp_20nm_set_tx_lane_enable() 150 static inline void ufs_qcom_phy_qmp_20nm_start_serdes(struct ufs_qcom_phy *phy) ufs_qcom_phy_qmp_20nm_start_serdes() 161 static int ufs_qcom_phy_qmp_20nm_is_pcs_ready(struct ufs_qcom_phy *phy_common) ufs_qcom_phy_qmp_20nm_is_pcs_ready() 227 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_qmp_20nm_remove() local 230 err = ufs_qcom_phy_remove(generic_phy, ufs_qcom_phy); ufs_qcom_phy_qmp_20nm_remove()
|
H A D | phy-qcom-ufs-i.h | 83 struct ufs_qcom_phy { struct 134 int (*calibrate_phy)(struct ufs_qcom_phy *phy, bool is_rate_B); 135 void (*start_serdes)(struct ufs_qcom_phy *phy); 136 int (*is_physical_coding_sublayer_ready)(struct ufs_qcom_phy *phy); 137 void (*set_tx_lane_enable)(struct ufs_qcom_phy *phy, u32 val); 138 void (*power_control)(struct ufs_qcom_phy *phy, bool val); 141 struct ufs_qcom_phy *get_ufs_qcom_phy(struct phy *generic_phy); 146 struct ufs_qcom_phy *phy_common); 148 struct ufs_qcom_phy *phy_common); 150 struct ufs_qcom_phy *ufs_qcom_phy); 152 struct ufs_qcom_phy *common_cfg, 155 int ufs_qcom_phy_calibrate(struct ufs_qcom_phy *ufs_qcom_phy,
|
H A D | phy-qcom-ufs-qmp-14nm.c | 21 int ufs_qcom_phy_qmp_14nm_phy_calibrate(struct ufs_qcom_phy *ufs_qcom_phy, ufs_qcom_phy_qmp_14nm_phy_calibrate() argument 28 err = ufs_qcom_phy_calibrate(ufs_qcom_phy, phy_cal_table_rate_A, ufs_qcom_phy_qmp_14nm_phy_calibrate() 32 dev_err(ufs_qcom_phy->dev, ufs_qcom_phy_qmp_14nm_phy_calibrate() 39 void ufs_qcom_phy_qmp_14nm_advertise_quirks(struct ufs_qcom_phy *phy_common) ufs_qcom_phy_qmp_14nm_advertise_quirks() 48 struct ufs_qcom_phy *phy_common = &phy->common_cfg; ufs_qcom_phy_qmp_14nm_init() 74 void ufs_qcom_phy_qmp_14nm_power_control(struct ufs_qcom_phy *phy, bool val) ufs_qcom_phy_qmp_14nm_power_control() 85 void ufs_qcom_phy_qmp_14nm_set_tx_lane_enable(struct ufs_qcom_phy *phy, u32 val) ufs_qcom_phy_qmp_14nm_set_tx_lane_enable() 93 static inline void ufs_qcom_phy_qmp_14nm_start_serdes(struct ufs_qcom_phy *phy) ufs_qcom_phy_qmp_14nm_start_serdes() 105 static int ufs_qcom_phy_qmp_14nm_is_pcs_ready(struct ufs_qcom_phy *phy_common) ufs_qcom_phy_qmp_14nm_is_pcs_ready() 171 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); ufs_qcom_phy_qmp_14nm_remove() local 174 err = ufs_qcom_phy_remove(generic_phy, ufs_qcom_phy); ufs_qcom_phy_qmp_14nm_remove()
|
H A D | phy-qcom-ufs-qmp-14nm.h | 101 * common phy structure (struct ufs_qcom_phy) out of it 105 struct ufs_qcom_phy common_cfg;
|
H A D | phy-qcom-ufs-qmp-20nm.h | 127 * common phy structure (struct ufs_qcom_phy) out of it 131 struct ufs_qcom_phy common_cfg;
|
Completed in 103 milliseconds