Lines Matching defs:hdev
22 struct usb_device *hdev;
129 extern int usb_hub_set_port_power(struct usb_device *hdev, struct usb_hub *hub,
131 extern struct usb_hub *usb_hub_to_struct_hub(struct usb_device *hdev);
136 extern int usb_clear_port_feature(struct usb_device *hdev,
152 static inline int hub_is_superspeed(struct usb_device *hdev)
154 return hdev->descriptor.bDeviceProtocol == USB_HUB_PR_SS;
157 static inline int hub_is_superspeedplus(struct usb_device *hdev)
159 return (hdev->descriptor.bDeviceProtocol == USB_HUB_PR_SS &&
160 le16_to_cpu(hdev->descriptor.bcdUSB) >= 0x0310 &&
161 hdev->bos && hdev->bos->ssp_cap);
168 if (!hub->hdev->parent) /* root hub */