Lines Matching refs:phys
70 struct stm32_usbphyc_phy **phys; member
401 if (phynode == usbphyc->phys[port]->phy->dev.of_node) { in stm32_usbphyc_of_xlate()
402 usbphyc_phy = usbphyc->phys[port]; in stm32_usbphyc_of_xlate()
488 usbphyc->phys = devm_kcalloc(dev, usbphyc->nphys, in stm32_usbphyc_probe()
489 sizeof(*usbphyc->phys), GFP_KERNEL); in stm32_usbphyc_probe()
490 if (!usbphyc->phys) { in stm32_usbphyc_probe()
540 usbphyc->phys[port] = usbphyc_phy; in stm32_usbphyc_probe()
544 usbphyc->phys[port]->phy = phy; in stm32_usbphyc_probe()
545 usbphyc->phys[port]->usbphyc = usbphyc; in stm32_usbphyc_probe()
546 usbphyc->phys[port]->index = index; in stm32_usbphyc_probe()
547 usbphyc->phys[port]->active = false; in stm32_usbphyc_probe()
549 usbphyc->phys[port]->vbus = devm_regulator_get_optional(&phy->dev, "vbus"); in stm32_usbphyc_probe()
550 if (IS_ERR(usbphyc->phys[port]->vbus)) { in stm32_usbphyc_probe()
551 ret = PTR_ERR(usbphyc->phys[port]->vbus); in stm32_usbphyc_probe()
554 usbphyc->phys[port]->vbus = NULL; in stm32_usbphyc_probe()
595 if (usbphyc->phys[port]->active) in stm32_usbphyc_remove()
596 stm32_usbphyc_phy_exit(usbphyc->phys[port]->phy); in stm32_usbphyc_remove()