Lines Matching refs:ss_phy
204 struct samsung_ufs_phy *ss_phy = get_samsung_ufs_phy(phy); in samsung_ufs_phy_init() local
207 ss_phy->lane_cnt = phy->attrs.bus_width; in samsung_ufs_phy_init()
208 ss_phy->ufs_phy_state = CFG_PRE_INIT; in samsung_ufs_phy_init()
210 if (ss_phy->drvdata->has_symbol_clk) { in samsung_ufs_phy_init()
211 ret = samsung_ufs_phy_symbol_clk_init(ss_phy); in samsung_ufs_phy_init()
213 dev_err(ss_phy->dev, "failed to set ufs phy symbol clocks\n"); in samsung_ufs_phy_init()
216 ret = samsung_ufs_phy_clks_init(ss_phy); in samsung_ufs_phy_init()
218 dev_err(ss_phy->dev, "failed to set ufs phy clocks\n"); in samsung_ufs_phy_init()
222 dev_err(ss_phy->dev, "ufs phy calibration failed\n"); in samsung_ufs_phy_init()
229 struct samsung_ufs_phy *ss_phy = get_samsung_ufs_phy(phy); in samsung_ufs_phy_power_on() local
231 samsung_ufs_phy_ctrl_isol(ss_phy, false); in samsung_ufs_phy_power_on()
237 struct samsung_ufs_phy *ss_phy = get_samsung_ufs_phy(phy); in samsung_ufs_phy_power_off() local
239 samsung_ufs_phy_ctrl_isol(ss_phy, true); in samsung_ufs_phy_power_off()
246 struct samsung_ufs_phy *ss_phy = get_samsung_ufs_phy(generic_phy); in samsung_ufs_phy_set_mode() local
248 ss_phy->mode = PHY_MODE_INVALID; in samsung_ufs_phy_set_mode()
251 ss_phy->mode = mode; in samsung_ufs_phy_set_mode()
258 struct samsung_ufs_phy *ss_phy = get_samsung_ufs_phy(phy); in samsung_ufs_phy_exit() local
260 clk_disable_unprepare(ss_phy->ref_clk); in samsung_ufs_phy_exit()
262 if (ss_phy->drvdata->has_symbol_clk) { in samsung_ufs_phy_exit()
263 clk_disable_unprepare(ss_phy->tx0_symbol_clk); in samsung_ufs_phy_exit()
264 clk_disable_unprepare(ss_phy->rx0_symbol_clk); in samsung_ufs_phy_exit()
265 clk_disable_unprepare(ss_phy->rx1_symbol_clk); in samsung_ufs_phy_exit()