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()
820 clear->hcd = bus_to_hcd(udev->bus); in usb_hub_clear_tt_buffer()
1030 struct usb_hcd *hcd; in hub_activate() local
1104 hcd = bus_to_hcd(hdev->bus); in hub_activate()
1105 if (hcd->driver->update_hub_device) { in hub_activate()
1106 ret = hcd->driver->update_hub_device(hcd, hdev, in hub_activate()
1356 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()
2329 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_enumerate_device() local
2351 if (IS_ENABLED(CONFIG_USB_OTG_WHITELIST) && hcd->tpl_support && in usb_enumerate_device()
2619 struct usb_hcd *hcd; in hub_is_wusb() local
2622 hcd = container_of(hub->hdev->bus, struct usb_hcd, self); in hub_is_wusb()
2623 return hcd->wireless; in hub_is_wusb()
2842 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in hub_port_reset() local
2848 if (hcd->driver->reset_device) in hub_port_reset()
2849 hcd->driver->reset_device(hcd, udev); in hub_port_reset()
2973 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_disable_ltm() local
2976 if (!usb_device_supports_ltm(hcd->self.root_hub) || in usb_disable_ltm()
2995 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_enable_ltm() local
2998 if (!usb_device_supports_ltm(hcd->self.root_hub) || in usb_enable_ltm()
3854 static void usb_enable_link_state(struct usb_hcd *hcd, struct usb_device *udev, in usb_enable_link_state() argument
3885 timeout = hcd->driver->enable_usb3_lpm_timeout(hcd, udev, state); in usb_enable_link_state()
3903 hcd->driver->disable_usb3_lpm_timeout(hcd, udev, state); in usb_enable_link_state()
3939 static int usb_disable_link_state(struct usb_hcd *hcd, struct usb_device *udev, in usb_disable_link_state() argument
3957 if (hcd->driver->disable_usb3_lpm_timeout(hcd, udev, state)) in usb_disable_link_state()
3985 struct usb_hcd *hcd; in usb_disable_lpm() local
3993 hcd = bus_to_hcd(udev->bus); in usb_disable_lpm()
3994 if (!hcd || !hcd->driver->disable_usb3_lpm_timeout) in usb_disable_lpm()
4002 if (usb_disable_link_state(hcd, udev, USB3_LPM_U1)) in usb_disable_lpm()
4004 if (usb_disable_link_state(hcd, udev, USB3_LPM_U2)) in usb_disable_lpm()
4018 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_unlocked_disable_lpm() local
4021 if (!hcd) in usb_unlocked_disable_lpm()
4024 mutex_lock(hcd->bandwidth_mutex); in usb_unlocked_disable_lpm()
4026 mutex_unlock(hcd->bandwidth_mutex); in usb_unlocked_disable_lpm()
4042 struct usb_hcd *hcd; in usb_enable_lpm() local
4051 hcd = bus_to_hcd(udev->bus); in usb_enable_lpm()
4055 if (!hcd || !hcd->driver->enable_usb3_lpm_timeout || in usb_enable_lpm()
4056 !hcd->driver->disable_usb3_lpm_timeout) in usb_enable_lpm()
4062 usb_enable_link_state(hcd, udev, USB3_LPM_U1); in usb_enable_lpm()
4063 usb_enable_link_state(hcd, udev, USB3_LPM_U2); in usb_enable_lpm()
4070 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_unlocked_enable_lpm() local
4072 if (!hcd) in usb_unlocked_enable_lpm()
4075 mutex_lock(hcd->bandwidth_mutex); in usb_unlocked_enable_lpm()
4077 mutex_unlock(hcd->bandwidth_mutex); in usb_unlocked_enable_lpm()
4196 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in hub_set_address() local
4202 if (!hcd->driver->address_device && devnum <= 1) in hub_set_address()
4208 if (hcd->driver->address_device) in hub_set_address()
4209 retval = hcd->driver->address_device(hcd, udev); in hub_set_address()
4252 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in hub_enable_device() local
4254 if (!hcd->driver->enable_device) in hub_enable_device()
4261 return hcd->driver->enable_device(hcd, udev); in hub_enable_device()
4279 struct usb_hcd *hcd = bus_to_hcd(hdev->bus); in hub_port_init() local
4574 if (hcd->driver->update_device) in hub_port_init()
4575 hcd->driver->update_device(hcd, udev); in hub_port_init()
4667 struct usb_hcd *hcd = bus_to_hcd(hdev->bus); in hub_port_connect() local
4674 if (hcd->usb_phy && !hdev->parent) in hub_port_connect()
4675 usb_phy_notify_disconnect(hcd->usb_phy, udev->speed); in hub_port_connect()
4833 if (hcd->usb_phy && !hdev->parent) in hub_port_connect()
4834 usb_phy_notify_connect(hcd->usb_phy, in hub_port_connect()
4859 !hcd->driver->port_handed_over || in hub_port_connect()
4860 !(hcd->driver->port_handed_over)(hcd, port1)) { in hub_port_connect()
4868 if (hcd->driver->relinquish_port && !hub->hdev->parent) in hub_port_connect()
4869 hcd->driver->relinquish_port(hcd, port1); in hub_port_connect()
5353 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_reset_and_verify_device() local
5421 mutex_lock(hcd->bandwidth_mutex); in usb_reset_and_verify_device()
5427 mutex_unlock(hcd->bandwidth_mutex); in usb_reset_and_verify_device()
5438 mutex_unlock(hcd->bandwidth_mutex); in usb_reset_and_verify_device()
5441 mutex_unlock(hcd->bandwidth_mutex); in usb_reset_and_verify_device()