Lines Matching refs:hcd
734 drv = clear->hcd->driver; in hub_tt_work()
736 (drv->clear_tt_buffer_complete)(clear->hcd, clear->ep); in hub_tt_work()
819 clear->hcd = bus_to_hcd(udev->bus); in usb_hub_clear_tt_buffer()
1029 struct usb_hcd *hcd; in hub_activate() local
1103 hcd = bus_to_hcd(hdev->bus); in hub_activate()
1104 if (hcd->driver->update_hub_device) { in hub_activate()
1105 ret = hcd->driver->update_hub_device(hcd, hdev, in hub_activate()
1355 struct usb_hcd *hcd; in hub_configure() local
1540 hcd = bus_to_hcd(hdev->bus); in hub_configure()
1542 if (hcd->power_budget > 0) in hub_configure()
1543 hdev->bus_mA = hcd->power_budget; in hub_configure()
1639 if (hcd->driver->update_hub_device) { in hub_configure()
1640 ret = hcd->driver->update_hub_device(hcd, hdev, in hub_configure()
2107 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in hub_free_dev() local
2110 if (hcd->driver->free_dev && udev->parent) in hub_free_dev()
2111 hcd->driver->free_dev(hcd, udev); in hub_free_dev()
2319 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_enumerate_device() local
2341 if (IS_ENABLED(CONFIG_USB_OTG_WHITELIST) && hcd->tpl_support && in usb_enumerate_device()
2604 struct usb_hcd *hcd; in hub_is_wusb() local
2607 hcd = container_of(hub->hdev->bus, struct usb_hcd, self); in hub_is_wusb()
2608 return hcd->wireless; in hub_is_wusb()
2827 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in hub_port_reset() local
2833 if (hcd->driver->reset_device) in hub_port_reset()
2834 hcd->driver->reset_device(hcd, udev); in hub_port_reset()
2958 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_disable_ltm() local
2961 if (!usb_device_supports_ltm(hcd->self.root_hub) || in usb_disable_ltm()
2980 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_enable_ltm() local
2983 if (!usb_device_supports_ltm(hcd->self.root_hub) || in usb_enable_ltm()
3839 static void usb_enable_link_state(struct usb_hcd *hcd, struct usb_device *udev, in usb_enable_link_state() argument
3870 timeout = hcd->driver->enable_usb3_lpm_timeout(hcd, udev, state); in usb_enable_link_state()
3888 hcd->driver->disable_usb3_lpm_timeout(hcd, udev, state); in usb_enable_link_state()
3911 static int usb_disable_link_state(struct usb_hcd *hcd, struct usb_device *udev, in usb_disable_link_state() argument
3929 if (hcd->driver->disable_usb3_lpm_timeout(hcd, udev, state)) in usb_disable_link_state()
3945 struct usb_hcd *hcd; in usb_disable_lpm() local
3953 hcd = bus_to_hcd(udev->bus); in usb_disable_lpm()
3954 if (!hcd || !hcd->driver->disable_usb3_lpm_timeout) in usb_disable_lpm()
3962 if (usb_disable_link_state(hcd, udev, USB3_LPM_U1)) in usb_disable_lpm()
3964 if (usb_disable_link_state(hcd, udev, USB3_LPM_U2)) in usb_disable_lpm()
3978 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_unlocked_disable_lpm() local
3981 if (!hcd) in usb_unlocked_disable_lpm()
3984 mutex_lock(hcd->bandwidth_mutex); in usb_unlocked_disable_lpm()
3986 mutex_unlock(hcd->bandwidth_mutex); in usb_unlocked_disable_lpm()
4002 struct usb_hcd *hcd; in usb_enable_lpm() local
4011 hcd = bus_to_hcd(udev->bus); in usb_enable_lpm()
4015 if (!hcd || !hcd->driver->enable_usb3_lpm_timeout || in usb_enable_lpm()
4016 !hcd->driver->disable_usb3_lpm_timeout) in usb_enable_lpm()
4022 usb_enable_link_state(hcd, udev, USB3_LPM_U1); in usb_enable_lpm()
4023 usb_enable_link_state(hcd, udev, USB3_LPM_U2); in usb_enable_lpm()
4030 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_unlocked_enable_lpm() local
4032 if (!hcd) in usb_unlocked_enable_lpm()
4035 mutex_lock(hcd->bandwidth_mutex); in usb_unlocked_enable_lpm()
4037 mutex_unlock(hcd->bandwidth_mutex); in usb_unlocked_enable_lpm()
4156 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in hub_set_address() local
4162 if (!hcd->driver->address_device && devnum <= 1) in hub_set_address()
4168 if (hcd->driver->address_device) in hub_set_address()
4169 retval = hcd->driver->address_device(hcd, udev); in hub_set_address()
4212 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in hub_enable_device() local
4214 if (!hcd->driver->enable_device) in hub_enable_device()
4221 return hcd->driver->enable_device(hcd, udev); in hub_enable_device()
4239 struct usb_hcd *hcd = bus_to_hcd(hdev->bus); in hub_port_init() local
4260 mutex_lock(hcd->address0_mutex); in hub_port_init()
4534 if (hcd->driver->update_device) in hub_port_init()
4535 hcd->driver->update_device(hcd, udev); in hub_port_init()
4542 mutex_unlock(hcd->address0_mutex); in hub_port_init()
4627 struct usb_hcd *hcd = bus_to_hcd(hdev->bus); in hub_port_connect() local
4634 if (hcd->usb_phy && !hdev->parent) in hub_port_connect()
4635 usb_phy_notify_disconnect(hcd->usb_phy, udev->speed); in hub_port_connect()
4793 if (hcd->usb_phy && !hdev->parent) in hub_port_connect()
4794 usb_phy_notify_connect(hcd->usb_phy, in hub_port_connect()
4819 !hcd->driver->port_handed_over || in hub_port_connect()
4820 !(hcd->driver->port_handed_over)(hcd, port1)) { in hub_port_connect()
4828 if (hcd->driver->relinquish_port && !hub->hdev->parent) in hub_port_connect()
4829 hcd->driver->relinquish_port(hcd, port1); in hub_port_connect()
5313 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_reset_and_verify_device() local
5381 mutex_lock(hcd->bandwidth_mutex); in usb_reset_and_verify_device()
5387 mutex_unlock(hcd->bandwidth_mutex); in usb_reset_and_verify_device()
5398 mutex_unlock(hcd->bandwidth_mutex); in usb_reset_and_verify_device()
5401 mutex_unlock(hcd->bandwidth_mutex); in usb_reset_and_verify_device()