Lines Matching refs:_phy
159 static void sun4i_usb_phy0_update_iscr(struct phy *_phy, u32 clr, u32 set)
161 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);
267 static int sun4i_usb_phy_init(struct phy *_phy)
269 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);
323 sun4i_usb_phy0_update_iscr(_phy, 0, ISCR_DPDM_PULLUP_EN);
324 sun4i_usb_phy0_update_iscr(_phy, 0, ISCR_ID_PULLUP_EN);
335 static int sun4i_usb_phy_exit(struct phy *_phy)
337 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);
350 sun4i_usb_phy0_update_iscr(_phy, ISCR_DPDM_PULLUP_EN, 0);
351 sun4i_usb_phy0_update_iscr(_phy, ISCR_ID_PULLUP_EN, 0);
423 static int sun4i_usb_phy_power_on(struct phy *_phy)
425 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);
435 dev_warn(&_phy->dev, "External vbus detected, not enabling our own vbus\n");
452 static int sun4i_usb_phy_power_off(struct phy *_phy)
454 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);
473 static int sun4i_usb_phy_set_mode(struct phy *_phy,
476 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);
501 dev_info(&_phy->dev, "Changing dr_mode to %d\n", new_mode);
512 void sun4i_usb_phy_set_squelch_detect(struct phy *_phy, bool enabled)
514 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);