Lines Matching refs:phy_roothub
50 struct usb_phy_roothub *phy_roothub; in usb_phy_roothub_alloc() local
61 phy_roothub = devm_kzalloc(dev, sizeof(*phy_roothub), GFP_KERNEL); in usb_phy_roothub_alloc()
62 if (!phy_roothub) in usb_phy_roothub_alloc()
65 INIT_LIST_HEAD(&phy_roothub->list); in usb_phy_roothub_alloc()
68 err = usb_phy_roothub_add_phy(dev, i, &phy_roothub->list); in usb_phy_roothub_alloc()
73 return phy_roothub; in usb_phy_roothub_alloc()
77 int usb_phy_roothub_init(struct usb_phy_roothub *phy_roothub) in usb_phy_roothub_init() argument
83 if (!phy_roothub) in usb_phy_roothub_init()
86 head = &phy_roothub->list; in usb_phy_roothub_init()
104 int usb_phy_roothub_exit(struct usb_phy_roothub *phy_roothub) in usb_phy_roothub_exit() argument
110 if (!phy_roothub) in usb_phy_roothub_exit()
113 head = &phy_roothub->list; in usb_phy_roothub_exit()
125 int usb_phy_roothub_power_on(struct usb_phy_roothub *phy_roothub) in usb_phy_roothub_power_on() argument
131 if (!phy_roothub) in usb_phy_roothub_power_on()
134 head = &phy_roothub->list; in usb_phy_roothub_power_on()
152 void usb_phy_roothub_power_off(struct usb_phy_roothub *phy_roothub) in usb_phy_roothub_power_off() argument
156 if (!phy_roothub) in usb_phy_roothub_power_off()
159 list_for_each_entry_reverse(roothub_entry, &phy_roothub->list, list) in usb_phy_roothub_power_off()
165 struct usb_phy_roothub *phy_roothub) in usb_phy_roothub_suspend() argument
167 usb_phy_roothub_power_off(phy_roothub); in usb_phy_roothub_suspend()
173 return usb_phy_roothub_exit(phy_roothub); in usb_phy_roothub_suspend()
178 struct usb_phy_roothub *phy_roothub) in usb_phy_roothub_resume() argument
184 err = usb_phy_roothub_init(phy_roothub); in usb_phy_roothub_resume()
189 err = usb_phy_roothub_power_on(phy_roothub); in usb_phy_roothub_resume()
193 usb_phy_roothub_exit(phy_roothub); in usb_phy_roothub_resume()