Lines Matching refs:hcd

25 #include <linux/usb/hcd.h>
652 struct usb_hcd *hcd = bus_to_hcd(hdev->bus);
659 usb_phy_roothub_notify_connect(hcd->phy_roothub, port1 - 1);
661 usb_phy_roothub_notify_disconnect(hcd->phy_roothub, port1 - 1);
861 drv = clear->hcd->driver;
863 (drv->clear_tt_buffer_complete)(clear->hcd, clear->ep);
947 clear->hcd = bus_to_hcd(udev->bus);
1079 struct usb_hcd *hcd;
1150 hcd = bus_to_hcd(hdev->bus);
1151 if (hcd->driver->update_hub_device) {
1152 ret = hcd->driver->update_hub_device(hcd, hdev,
1428 struct usb_hcd *hcd;
1632 hcd = bus_to_hcd(hdev->bus);
1634 if (hcd->power_budget > 0)
1635 hdev->bus_mA = hcd->power_budget;
1687 * maxpktsize is defined in hcd.c's fake endpoint descriptors
1731 if (hcd->driver->update_hub_device) {
1732 ret = hcd->driver->update_hub_device(hcd, hdev,
2238 struct usb_hcd *hcd = bus_to_hcd(udev->bus);
2241 if (hcd->driver->free_dev && udev->parent)
2242 hcd->driver->free_dev(hcd, udev);
2299 /* deallocate hcd/hardware state ... nuking all pending urbs and
2480 struct usb_hcd *hcd = bus_to_hcd(udev->bus);
2502 if (IS_ENABLED(CONFIG_USB_OTG_PRODUCTLIST) && hcd->tpl_support &&
3123 struct usb_hcd *hcd = bus_to_hcd(udev->bus);
3129 if (hcd->driver->reset_device)
3130 hcd->driver->reset_device(hcd, udev);
3305 struct usb_hcd *hcd = bus_to_hcd(udev->bus);
3308 if (!usb_device_supports_ltm(hcd->self.root_hub) ||
3327 struct usb_hcd *hcd = bus_to_hcd(udev->bus);
3330 if (!usb_device_supports_ltm(hcd->self.root_hub) ||
3971 struct usb_hcd *hcd;
3978 hcd = bus_to_hcd(hdev->bus);
3979 if (hcd->driver->get_resuming_ports) {
3989 resuming_ports = hcd->driver->get_resuming_ports(hcd);
4282 static void usb_enable_link_state(struct usb_hcd *hcd, struct usb_device *udev,
4309 timeout = hcd->driver->enable_usb3_lpm_timeout(hcd, udev, state);
4327 hcd->driver->disable_usb3_lpm_timeout(hcd, udev, state);
4342 hcd->driver->disable_usb3_lpm_timeout(hcd, udev, state);
4367 static int usb_disable_link_state(struct usb_hcd *hcd, struct usb_device *udev,
4385 if (hcd->driver->disable_usb3_lpm_timeout(hcd, udev, state))
4413 struct usb_hcd *hcd;
4421 hcd = bus_to_hcd(udev->bus);
4422 if (!hcd || !hcd->driver->disable_usb3_lpm_timeout)
4430 if (usb_disable_link_state(hcd, udev, USB3_LPM_U1))
4432 if (usb_disable_link_state(hcd, udev, USB3_LPM_U2))
4446 struct usb_hcd *hcd = bus_to_hcd(udev->bus);
4449 if (!hcd)
4452 mutex_lock(hcd->bandwidth_mutex);
4454 mutex_unlock(hcd->bandwidth_mutex);
4470 struct usb_hcd *hcd;
4481 hcd = bus_to_hcd(udev->bus);
4485 if (!hcd || !hcd->driver->enable_usb3_lpm_timeout ||
4486 !hcd->driver->disable_usb3_lpm_timeout)
4499 usb_enable_link_state(hcd, udev, USB3_LPM_U1);
4502 usb_enable_link_state(hcd, udev, USB3_LPM_U2);
4509 struct usb_hcd *hcd = bus_to_hcd(udev->bus);
4511 if (!hcd)
4514 mutex_lock(hcd->bandwidth_mutex);
4516 mutex_unlock(hcd->bandwidth_mutex);
4705 struct usb_hcd *hcd = bus_to_hcd(udev->bus);
4715 if (!hcd->driver->address_device && devnum <= 1)
4721 if (hcd->driver->address_device)
4722 retval = hcd->driver->address_device(hcd, udev, timeout_ms);
4765 struct usb_hcd *hcd = bus_to_hcd(udev->bus);
4767 if (!hcd->driver->enable_device)
4774 return hcd->driver->enable_device(hcd, udev);
4860 struct usb_hcd *hcd = bus_to_hcd(hdev->bus);
5172 if (hcd->driver->update_device)
5173 hcd->driver->update_device(hcd, udev);
5351 struct usb_hcd *hcd = bus_to_hcd(hdev->bus);
5359 if (hcd->usb_phy && !hdev->parent)
5360 usb_phy_notify_disconnect(hcd->usb_phy, udev->speed);
5419 mutex_lock(hcd->address0_mutex);
5428 mutex_unlock(hcd->address0_mutex);
5454 mutex_unlock(hcd->address0_mutex);
5529 if (hcd->usb_phy && !hdev->parent)
5530 usb_phy_notify_connect(hcd->usb_phy,
5551 mutex_unlock(hcd->address0_mutex);
5568 !hcd->driver->port_handed_over ||
5569 !(hcd->driver->port_handed_over)(hcd, port1)) {
5577 if (hcd->driver->relinquish_port && !hub->hdev->parent) {
5579 hcd->driver->relinquish_port(hcd, port1);
6094 struct usb_hcd *hcd = bus_to_hcd(udev->bus);
6120 mutex_lock(hcd->address0_mutex);
6135 mutex_unlock(hcd->address0_mutex);
6150 mutex_lock(hcd->bandwidth_mutex);
6156 mutex_unlock(hcd->bandwidth_mutex);
6167 mutex_unlock(hcd->bandwidth_mutex);
6170 mutex_unlock(hcd->bandwidth_mutex);
6270 /* this requires hcd-specific logic; see ohci_restart() */