Lines Matching refs:hdev

51 	struct usb_device *hdev = to_usb_device(dev->parent->parent);  in disable_show()  local
52 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in disable_show()
76 usb_lock_device(hdev); in disable_show()
86 usb_unlock_device(hdev); in disable_show()
103 struct usb_device *hdev = to_usb_device(dev->parent->parent); in disable_store() local
104 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in disable_store()
131 usb_lock_device(hdev); in disable_store()
140 rc = usb_hub_set_port_power(hdev, hub, port1, !disabled); in disable_store()
143 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_CONNECTION); in disable_store()
145 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_ENABLE); in disable_store()
152 usb_unlock_device(hdev); in disable_store()
351 struct usb_device *hdev = to_usb_device(dev->parent->parent); in usb_port_runtime_resume() local
353 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in usb_port_runtime_resume()
377 retval = usb_hub_set_port_power(hdev, hub, port1, true); in usb_port_runtime_resume()
391 if (hub_is_superspeed(hdev)) in usb_port_runtime_resume()
410 struct usb_device *hdev = to_usb_device(dev->parent->parent); in usb_port_runtime_suspend() local
412 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in usb_port_runtime_suspend()
433 retval = usb_hub_set_port_power(hdev, hub, port1, false); in usb_port_runtime_suspend()
434 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_CONNECTION); in usb_port_runtime_suspend()
436 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_ENABLE); in usb_port_runtime_suspend()
610 struct usb_device *hdev = to_usb_device(port_dev->dev.parent->parent); in match_location() local
615 hcd = bus_to_hcd(hdev->bus); in match_location()
641 struct usb_device *hdev = hub->hdev; in find_and_link_peer() local
655 } else if (!hdev->parent) { in find_and_link_peer()
656 struct usb_hcd *hcd = bus_to_hcd(hdev->bus); in find_and_link_peer()
665 struct usb_device *parent = hdev->parent; in find_and_link_peer()
671 upstream = parent_hub->ports[hdev->portnum - 1]; in find_and_link_peer()
720 struct usb_device *hdev = hub->hdev; in usb_hub_create_port_device() local
737 if (hub_is_superspeed(hdev)) { in usb_hub_create_port_device()
745 if (hub_is_superspeed(hub->hdev)) in usb_hub_create_port_device()
747 dev_set_name(&port_dev->dev, "%s-port%d", dev_name(&hub->hdev->dev), in usb_hub_create_port_device()