Lines Matching refs:hdev
47 struct usb_device *udev, *hdev; in create_lvs_device() local
56 hdev = interface_to_usbdev(intf); in create_lvs_device()
57 hcd = bus_to_hcd(hdev->bus); in create_lvs_device()
59 udev = usb_alloc_dev(hdev, hdev->bus, lvs->portnum); in create_lvs_device()
81 struct usb_device *hdev = udev->parent; in destroy_lvs_device() local
82 struct usb_hcd *hcd = bus_to_hcd(hdev->bus); in destroy_lvs_device()
90 static int lvs_rh_clear_port_feature(struct usb_device *hdev, in lvs_rh_clear_port_feature() argument
93 return usb_control_msg(hdev, usb_sndctrlpipe(hdev, 0), in lvs_rh_clear_port_feature()
98 static int lvs_rh_set_port_feature(struct usb_device *hdev, in lvs_rh_set_port_feature() argument
101 return usb_control_msg(hdev, usb_sndctrlpipe(hdev, 0), in lvs_rh_set_port_feature()
110 struct usb_device *hdev = interface_to_usbdev(intf); in u3_entry_store() local
121 ret = lvs_rh_set_port_feature(hdev, lvs->portnum, in u3_entry_store()
139 struct usb_device *hdev = interface_to_usbdev(intf); in u3_exit_store() local
150 ret = lvs_rh_clear_port_feature(hdev, lvs->portnum, in u3_exit_store()
168 struct usb_device *hdev = interface_to_usbdev(intf); in hot_reset_store() local
172 ret = lvs_rh_set_port_feature(hdev, lvs->portnum, in hot_reset_store()
187 struct usb_device *hdev = interface_to_usbdev(intf); in u2_timeout_store() local
201 ret = lvs_rh_set_port_feature(hdev, lvs->portnum | (val << 8), in u2_timeout_store()
216 struct usb_device *hdev = interface_to_usbdev(intf); in u1_timeout_store() local
230 ret = lvs_rh_set_port_feature(hdev, lvs->portnum | (val << 8), in u1_timeout_store()
299 struct usb_device *hdev = interface_to_usbdev(intf); in lvs_rh_work() local
300 struct usb_hcd *hcd = bus_to_hcd(hdev->bus); in lvs_rh_work()
308 ret = usb_control_msg(hdev, usb_rcvctrlpipe(hdev, 0), in lvs_rh_work()
317 lvs_rh_clear_port_feature(hdev, i, in lvs_rh_work()
320 lvs_rh_clear_port_feature(hdev, i, in lvs_rh_work()
323 lvs_rh_clear_port_feature(hdev, i, in lvs_rh_work()
326 lvs_rh_clear_port_feature(hdev, i, in lvs_rh_work()
329 lvs_rh_clear_port_feature(hdev, i, in lvs_rh_work()
364 struct usb_device *hdev; in lvs_rh_probe() local
371 hdev = interface_to_usbdev(intf); in lvs_rh_probe()
376 if (hdev->descriptor.bDeviceProtocol != USB_HUB_PR_SS || hdev->parent) { in lvs_rh_probe()
389 ret = usb_control_msg(hdev, usb_rcvctrlpipe(hdev, 0), in lvs_rh_probe()
394 dev_err(&hdev->dev, "wrong root hub descriptor read %d\n", ret); in lvs_rh_probe()
420 pipe = usb_rcvintpipe(hdev, endpoint->bEndpointAddress); in lvs_rh_probe()
421 maxp = usb_maxpacket(hdev, pipe, usb_pipeout(pipe)); in lvs_rh_probe()
422 usb_fill_int_urb(lvs->urb, hdev, pipe, &lvs->buffer[0], maxp, in lvs_rh_probe()