Lines Matching refs:_phy
165 static void sun4i_usb_phy0_update_iscr(struct phy *_phy, u32 clr, u32 set) in sun4i_usb_phy0_update_iscr() argument
167 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy0_update_iscr()
273 static int sun4i_usb_phy_init(struct phy *_phy) in sun4i_usb_phy_init() argument
275 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy_init()
328 sun4i_usb_phy0_update_iscr(_phy, 0, ISCR_DPDM_PULLUP_EN); in sun4i_usb_phy_init()
329 sun4i_usb_phy0_update_iscr(_phy, 0, ISCR_ID_PULLUP_EN); in sun4i_usb_phy_init()
340 static int sun4i_usb_phy_exit(struct phy *_phy) in sun4i_usb_phy_exit() argument
342 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy_exit()
354 sun4i_usb_phy0_update_iscr(_phy, ISCR_DPDM_PULLUP_EN, 0); in sun4i_usb_phy_exit()
355 sun4i_usb_phy0_update_iscr(_phy, ISCR_ID_PULLUP_EN, 0); in sun4i_usb_phy_exit()
427 static int sun4i_usb_phy_power_on(struct phy *_phy) in sun4i_usb_phy_power_on() argument
429 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy_power_on()
439 dev_warn(&_phy->dev, "External vbus detected, not enabling our own vbus\n"); in sun4i_usb_phy_power_on()
456 static int sun4i_usb_phy_power_off(struct phy *_phy) in sun4i_usb_phy_power_off() argument
458 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy_power_off()
477 static int sun4i_usb_phy_set_mode(struct phy *_phy, enum phy_mode mode) in sun4i_usb_phy_set_mode() argument
479 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy_set_mode()
501 dev_info(&_phy->dev, "Changing dr_mode to %d\n", new_mode); in sun4i_usb_phy_set_mode()
512 void sun4i_usb_phy_set_squelch_detect(struct phy *_phy, bool enabled) in sun4i_usb_phy_set_squelch_detect() argument
514 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy_set_squelch_detect()