Lines Matching refs:phys
149 struct stm32_usbphyc_phy **phys; member
462 struct stm32_usbphyc_phy *usbphyc_phy = usbphyc->phys[index]; in stm32_usbphyc_phy_tuning()
581 if (phynode == usbphyc->phys[port]->phy->dev.of_node) { in stm32_usbphyc_of_xlate()
582 usbphyc_phy = usbphyc->phys[port]; in stm32_usbphyc_of_xlate()
668 usbphyc->phys = devm_kcalloc(dev, usbphyc->nphys, in stm32_usbphyc_probe()
669 sizeof(*usbphyc->phys), GFP_KERNEL); in stm32_usbphyc_probe()
670 if (!usbphyc->phys) { in stm32_usbphyc_probe()
718 usbphyc->phys[port] = usbphyc_phy; in stm32_usbphyc_probe()
722 usbphyc->phys[port]->phy = phy; in stm32_usbphyc_probe()
723 usbphyc->phys[port]->usbphyc = usbphyc; in stm32_usbphyc_probe()
724 usbphyc->phys[port]->index = index; in stm32_usbphyc_probe()
725 usbphyc->phys[port]->active = false; in stm32_usbphyc_probe()
727 usbphyc->phys[port]->vbus = devm_regulator_get_optional(&phy->dev, "vbus"); in stm32_usbphyc_probe()
728 if (IS_ERR(usbphyc->phys[port]->vbus)) { in stm32_usbphyc_probe()
729 ret = PTR_ERR(usbphyc->phys[port]->vbus); in stm32_usbphyc_probe()
732 usbphyc->phys[port]->vbus = NULL; in stm32_usbphyc_probe()
776 if (usbphyc->phys[port]->active) in stm32_usbphyc_remove()
777 stm32_usbphyc_phy_exit(usbphyc->phys[port]->phy); in stm32_usbphyc_remove()
796 usbphyc_phy = usbphyc->phys[port]; in stm32_usbphyc_resume()