Lines Matching full:phy0

82 /* A83T specific control bits for PHY0 */
141 /* phy0 / otg related variables */
434 /* For phy0 only turn on Vbus if we don't have an ext. Vbus */ in sun4i_usb_phy_power_on()
466 * phy0 vbus typically slowly discharges, sometimes this causes the in sun4i_usb_phy_power_off()
537 /* Host mode. Route phy0 to EHCI/OHCI */ in sun4i_usb_phy0_reroute()
540 /* Peripheral mode. Route phy0 to MUSB */ in sun4i_usb_phy0_reroute()
550 struct phy *phy0 = data->phys[0].phy; in sun4i_usb_phy0_id_vbus_det_scan() local
555 if (!phy0) in sun4i_usb_phy0_id_vbus_det_scan()
558 phy = phy_get_drvdata(phy0); in sun4i_usb_phy0_id_vbus_det_scan()
562 mutex_lock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
565 mutex_unlock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
580 sun4i_usb_phy0_set_vbus_detect(phy0, 0); in sun4i_usb_phy0_id_vbus_det_scan()
582 sun4i_usb_phy0_set_vbus_detect(phy0, 1); in sun4i_usb_phy0_id_vbus_det_scan()
584 sun4i_usb_phy0_set_id_detect(phy0, id_det); in sun4i_usb_phy0_id_vbus_det_scan()
590 sun4i_usb_phy0_set_vbus_detect(phy0, vbus_det); in sun4i_usb_phy0_id_vbus_det_scan()
595 mutex_unlock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
602 mutex_lock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
603 sun4i_usb_phy0_set_vbus_detect(phy0, 0); in sun4i_usb_phy0_id_vbus_det_scan()
605 sun4i_usb_phy0_set_vbus_detect(phy0, 1); in sun4i_usb_phy0_id_vbus_det_scan()
606 mutex_unlock(&phy0->mutex); in sun4i_usb_phy0_id_vbus_det_scan()
609 /* Enable PHY0 passby for host mode only. */ in sun4i_usb_phy0_id_vbus_det_scan()
612 /* Re-route PHY0 if necessary */ in sun4i_usb_phy0_id_vbus_det_scan()