Lines Matching full:gphy
111 static int brcm_usb_phy_init(struct phy *gphy) in brcm_usb_phy_init() argument
113 struct brcm_usb_phy *phy = phy_get_drvdata(gphy); in brcm_usb_phy_init()
137 dev_dbg(&gphy->dev, "INIT, id: %d, total: %d\n", phy->id, in brcm_usb_phy_init()
143 static int brcm_usb_phy_exit(struct phy *gphy) in brcm_usb_phy_exit() argument
145 struct brcm_usb_phy *phy = phy_get_drvdata(gphy); in brcm_usb_phy_exit()
152 dev_dbg(&gphy->dev, "EXIT\n"); in brcm_usb_phy_exit()
392 struct phy *gphy = NULL; in brcm_usb_phy_dvr_init() local
407 gphy = devm_phy_create(dev, NULL, &brcm_usb_phy_ops); in brcm_usb_phy_dvr_init()
408 if (IS_ERR(gphy)) { in brcm_usb_phy_dvr_init()
410 return PTR_ERR(gphy); in brcm_usb_phy_dvr_init()
412 priv->phys[BRCM_USB_PHY_2_0].phy = gphy; in brcm_usb_phy_dvr_init()
414 phy_set_drvdata(gphy, &priv->phys[BRCM_USB_PHY_2_0]); in brcm_usb_phy_dvr_init()
418 gphy = devm_phy_create(dev, NULL, &brcm_usb_phy_ops); in brcm_usb_phy_dvr_init()
419 if (IS_ERR(gphy)) { in brcm_usb_phy_dvr_init()
421 return PTR_ERR(gphy); in brcm_usb_phy_dvr_init()
423 priv->phys[BRCM_USB_PHY_3_0].phy = gphy; in brcm_usb_phy_dvr_init()
425 phy_set_drvdata(gphy, &priv->phys[BRCM_USB_PHY_3_0]); in brcm_usb_phy_dvr_init()