Lines Matching refs:lvs
49 struct lvs_rh *lvs = usb_get_intfdata(intf); in create_lvs_device() local
51 if (!lvs->present) { in create_lvs_device()
59 udev = usb_alloc_dev(hdev, hdev->bus, lvs->portnum); in create_lvs_device()
111 struct lvs_rh *lvs = usb_get_intfdata(intf); in u3_entry_store() local
121 ret = lvs_rh_set_port_feature(hdev, lvs->portnum, in u3_entry_store()
140 struct lvs_rh *lvs = usb_get_intfdata(intf); in u3_exit_store() local
150 ret = lvs_rh_clear_port_feature(hdev, lvs->portnum, in u3_exit_store()
169 struct lvs_rh *lvs = usb_get_intfdata(intf); in hot_reset_store() local
172 ret = lvs_rh_set_port_feature(hdev, lvs->portnum, in hot_reset_store()
188 struct lvs_rh *lvs = usb_get_intfdata(intf); in u2_timeout_store() local
201 ret = lvs_rh_set_port_feature(hdev, lvs->portnum | (val << 8), in u2_timeout_store()
217 struct lvs_rh *lvs = usb_get_intfdata(intf); in u1_timeout_store() local
230 ret = lvs_rh_set_port_feature(hdev, lvs->portnum | (val << 8), in u1_timeout_store()
297 struct lvs_rh *lvs = container_of(work, struct lvs_rh, rh_work); in lvs_rh_work() local
298 struct usb_interface *intf = lvs->intf; in lvs_rh_work()
301 struct usb_hub_descriptor *descriptor = &lvs->descriptor; in lvs_rh_work()
302 struct usb_port_status *port_status = &lvs->port_status; in lvs_rh_work()
334 lvs->present = true; in lvs_rh_work()
335 lvs->portnum = i; in lvs_rh_work()
340 lvs->present = false; in lvs_rh_work()
349 ret = usb_submit_urb(lvs->urb, GFP_KERNEL); in lvs_rh_work()
356 struct lvs_rh *lvs = urb->context; in lvs_rh_irq() local
358 queue_work(lvs->rh_queue, &lvs->rh_work); in lvs_rh_irq()
367 struct lvs_rh *lvs; in lvs_rh_probe() local
381 lvs = devm_kzalloc(&intf->dev, sizeof(*lvs), GFP_KERNEL); in lvs_rh_probe()
382 if (!lvs) in lvs_rh_probe()
385 lvs->intf = intf; in lvs_rh_probe()
386 usb_set_intfdata(intf, lvs); in lvs_rh_probe()
391 USB_DT_SS_HUB << 8, 0, &lvs->descriptor, in lvs_rh_probe()
399 lvs->urb = usb_alloc_urb(0, GFP_KERNEL); in lvs_rh_probe()
400 if (!lvs->urb) { in lvs_rh_probe()
405 lvs->rh_queue = create_singlethread_workqueue("lvs_rh_queue"); in lvs_rh_probe()
406 if (!lvs->rh_queue) { in lvs_rh_probe()
412 INIT_WORK(&lvs->rh_work, lvs_rh_work); in lvs_rh_probe()
422 usb_fill_int_urb(lvs->urb, hdev, pipe, &lvs->buffer[0], maxp, in lvs_rh_probe()
423 lvs_rh_irq, lvs, endpoint->bInterval); in lvs_rh_probe()
425 ret = usb_submit_urb(lvs->urb, GFP_KERNEL); in lvs_rh_probe()
436 destroy_workqueue(lvs->rh_queue); in lvs_rh_probe()
438 usb_free_urb(lvs->urb); in lvs_rh_probe()
444 struct lvs_rh *lvs = usb_get_intfdata(intf); in lvs_rh_disconnect() local
447 destroy_workqueue(lvs->rh_queue); in lvs_rh_disconnect()
448 usb_free_urb(lvs->urb); in lvs_rh_disconnect()