Lines Matching refs:usbphyc_phy
211 struct stm32_usbphyc_phy *usbphyc_phy = phy_get_drvdata(phy); in stm32_usbphyc_phy_init() local
212 struct stm32_usbphyc *usbphyc = usbphyc_phy->usbphyc; in stm32_usbphyc_phy_init()
219 usbphyc_phy->active = true; in stm32_usbphyc_phy_init()
226 struct stm32_usbphyc_phy *usbphyc_phy = phy_get_drvdata(phy); in stm32_usbphyc_phy_exit() local
227 struct stm32_usbphyc *usbphyc = usbphyc_phy->usbphyc; in stm32_usbphyc_phy_exit()
229 usbphyc_phy->active = false; in stm32_usbphyc_phy_exit()
236 struct stm32_usbphyc_phy *usbphyc_phy = phy_get_drvdata(phy); in stm32_usbphyc_phy_power_on() local
238 return regulator_bulk_enable(NUM_SUPPLIES, usbphyc_phy->supplies); in stm32_usbphyc_phy_power_on()
243 struct stm32_usbphyc_phy *usbphyc_phy = phy_get_drvdata(phy); in stm32_usbphyc_phy_power_off() local
245 return regulator_bulk_disable(NUM_SUPPLIES, usbphyc_phy->supplies); in stm32_usbphyc_phy_power_off()
272 struct stm32_usbphyc_phy *usbphyc_phy = NULL; in stm32_usbphyc_of_xlate() local
278 usbphyc_phy = usbphyc->phys[port]; in stm32_usbphyc_of_xlate()
282 if (!usbphyc_phy) { in stm32_usbphyc_of_xlate()
287 if (((usbphyc_phy->index == 0) && (args->args_count != 0)) || in stm32_usbphyc_of_xlate()
288 ((usbphyc_phy->index == 1) && (args->args_count != 1))) { in stm32_usbphyc_of_xlate()
290 usbphyc_phy->index); in stm32_usbphyc_of_xlate()
295 if (usbphyc_phy->index == 1) { in stm32_usbphyc_of_xlate()
306 return usbphyc_phy->phy; in stm32_usbphyc_of_xlate()
360 struct stm32_usbphyc_phy *usbphyc_phy; in stm32_usbphyc_probe() local
374 usbphyc_phy = devm_kzalloc(dev, sizeof(*usbphyc_phy), in stm32_usbphyc_probe()
376 if (!usbphyc_phy) { in stm32_usbphyc_probe()
382 usbphyc_phy->supplies[i].supply = supplies_names[i]; in stm32_usbphyc_probe()
385 usbphyc_phy->supplies); in stm32_usbphyc_probe()
401 usbphyc->phys[port] = usbphyc_phy; in stm32_usbphyc_probe()
403 phy_set_drvdata(phy, usbphyc_phy); in stm32_usbphyc_probe()