Lines Matching refs:_phy
148 static void sun4i_usb_phy0_update_iscr(struct phy *_phy, u32 clr, u32 set)
150 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);
257 static int sun4i_usb_phy_init(struct phy *_phy)
259 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);
357 sun4i_usb_phy0_update_iscr(_phy, 0, ISCR_DPDM_PULLUP_EN);
358 sun4i_usb_phy0_update_iscr(_phy, 0, ISCR_ID_PULLUP_EN);
369 static int sun4i_usb_phy_exit(struct phy *_phy)
371 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);
383 sun4i_usb_phy0_update_iscr(_phy, ISCR_DPDM_PULLUP_EN, 0);
384 sun4i_usb_phy0_update_iscr(_phy, ISCR_ID_PULLUP_EN, 0);
462 static int sun4i_usb_phy_power_on(struct phy *_phy)
464 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);
474 dev_warn(&_phy->dev, "External vbus detected, not enabling our own vbus\n");
491 static int sun4i_usb_phy_power_off(struct phy *_phy)
493 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);
512 static int sun4i_usb_phy_set_mode(struct phy *_phy,
515 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);
540 dev_info(&_phy->dev, "Changing dr_mode to %d\n", new_mode);
551 void sun4i_usb_phy_set_squelch_detect(struct phy *_phy, bool enabled)
553 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy);