Lines Matching refs:_phy
160 static void sun4i_usb_phy0_update_iscr(struct phy *_phy, u32 clr, u32 set) in sun4i_usb_phy0_update_iscr() argument
162 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy0_update_iscr()
268 static int sun4i_usb_phy_init(struct phy *_phy) in sun4i_usb_phy_init() argument
270 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy_init()
325 sun4i_usb_phy0_update_iscr(_phy, 0, ISCR_DPDM_PULLUP_EN); in sun4i_usb_phy_init()
326 sun4i_usb_phy0_update_iscr(_phy, 0, ISCR_ID_PULLUP_EN); in sun4i_usb_phy_init()
337 static int sun4i_usb_phy_exit(struct phy *_phy) in sun4i_usb_phy_exit() argument
339 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy_exit()
352 sun4i_usb_phy0_update_iscr(_phy, ISCR_DPDM_PULLUP_EN, 0); in sun4i_usb_phy_exit()
353 sun4i_usb_phy0_update_iscr(_phy, ISCR_ID_PULLUP_EN, 0); in sun4i_usb_phy_exit()
425 static int sun4i_usb_phy_power_on(struct phy *_phy) in sun4i_usb_phy_power_on() argument
427 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy_power_on()
437 dev_warn(&_phy->dev, "External vbus detected, not enabling our own vbus\n"); in sun4i_usb_phy_power_on()
454 static int sun4i_usb_phy_power_off(struct phy *_phy) in sun4i_usb_phy_power_off() argument
456 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy_power_off()
475 static int sun4i_usb_phy_set_mode(struct phy *_phy, in sun4i_usb_phy_set_mode() argument
478 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy_set_mode()
503 dev_info(&_phy->dev, "Changing dr_mode to %d\n", new_mode); in sun4i_usb_phy_set_mode()
514 void sun4i_usb_phy_set_squelch_detect(struct phy *_phy, bool enabled) in sun4i_usb_phy_set_squelch_detect() argument
516 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy_set_squelch_detect()