Lines Matching defs:phy
51 #include <dev/extres/phy/phy_usb.h>
130 { "allwinner,sun4i-a10-usb-phy", (uintptr_t)&a10_usbphy_conf },
131 { "allwinner,sun5i-a13-usb-phy", (uintptr_t)&a13_usbphy_conf },
132 { "allwinner,sun6i-a31-usb-phy", (uintptr_t)&a31_usbphy_conf },
133 { "allwinner,sun7i-a20-usb-phy", (uintptr_t)&a20_usbphy_conf },
134 { "allwinner,sun8i-h3-usb-phy", (uintptr_t)&h3_usbphy_conf },
135 { "allwinner,sun50i-a64-usb-phy", (uintptr_t)&a64_usbphy_conf },
136 { "allwinner,sun8i-a83t-usb-phy", (uintptr_t)&a83t_usbphy_conf },
137 { "allwinner,sun50i-h6-usb-phy", (uintptr_t)&h6_usbphy_conf },
154 static int awusbphy_phy_enable(struct phynode *phy, bool enable);
155 static int awusbphy_get_mode(struct phynode *phy, int *mode);
156 static int awusbphy_set_mode(struct phynode *phy, int mode);
232 device_printf(dev, "Cannot locate phy control resource\n");
341 intptr_t phy;
347 phy = phynode_get_id(phynode);
350 if (phy < 0 || phy >= sc->phy_conf->num_phys)
354 awusbphy_configure(dev, phy);
357 reg = sc->reg[phy];
361 if (phy == 0) {
362 /* If an external vbus is detected, do not enable phy 0 */
384 "couldn't %s regulator for phy %jd\n",
385 enable ? "enable" : "disable", (intmax_t)phy);
410 intptr_t phy;
416 phy = phynode_get_id(phynode);
419 if (phy != 0) {