Lines Matching refs:hdev
79 struct usb_device *hdev = to_usb_device(dev->parent->parent); in usb_port_runtime_resume() local
81 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in usb_port_runtime_resume()
102 retval = usb_hub_set_port_power(hdev, hub, port1, true); in usb_port_runtime_resume()
116 if (hub_is_superspeed(hdev)) in usb_port_runtime_resume()
135 struct usb_device *hdev = to_usb_device(dev->parent->parent); in usb_port_runtime_suspend() local
137 struct usb_hub *hub = usb_hub_to_struct_hub(hdev); in usb_port_runtime_suspend()
155 retval = usb_hub_set_port_power(hdev, hub, port1, false); in usb_port_runtime_suspend()
156 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_CONNECTION); in usb_port_runtime_suspend()
158 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_ENABLE); in usb_port_runtime_suspend()
321 struct usb_device *hdev = to_usb_device(port_dev->dev.parent->parent); in match_location() local
326 hcd = bus_to_hcd(hdev->bus); in match_location()
351 struct usb_device *hdev = hub->hdev; in find_and_link_peer() local
365 } else if (!hdev->parent) { in find_and_link_peer()
366 struct usb_hcd *hcd = bus_to_hcd(hdev->bus); in find_and_link_peer()
375 struct usb_device *parent = hdev->parent; in find_and_link_peer()
381 upstream = parent_hub->ports[hdev->portnum - 1]; in find_and_link_peer()
423 if (hub_is_superspeed(hub->hdev)) in usb_hub_create_port_device()
425 dev_set_name(&port_dev->dev, "%s-port%d", dev_name(&hub->hdev->dev), in usb_hub_create_port_device()