• Home
  • Raw
  • Download

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
385 lvs = devm_kzalloc(&intf->dev, sizeof(*lvs), GFP_KERNEL); in lvs_rh_probe()
386 if (!lvs) in lvs_rh_probe()
389 lvs->intf = intf; in lvs_rh_probe()
390 usb_set_intfdata(intf, lvs); in lvs_rh_probe()
395 USB_DT_SS_HUB << 8, 0, &lvs->descriptor, in lvs_rh_probe()
403 lvs->urb = usb_alloc_urb(0, GFP_KERNEL); in lvs_rh_probe()
404 if (!lvs->urb) { in lvs_rh_probe()
409 lvs->rh_queue = create_singlethread_workqueue("lvs_rh_queue"); in lvs_rh_probe()
410 if (!lvs->rh_queue) { in lvs_rh_probe()
416 INIT_WORK(&lvs->rh_work, lvs_rh_work); in lvs_rh_probe()
426 usb_fill_int_urb(lvs->urb, hdev, pipe, &lvs->buffer[0], maxp, in lvs_rh_probe()
427 lvs_rh_irq, lvs, endpoint->bInterval); in lvs_rh_probe()
429 ret = usb_submit_urb(lvs->urb, GFP_KERNEL); in lvs_rh_probe()
440 destroy_workqueue(lvs->rh_queue); in lvs_rh_probe()
442 usb_free_urb(lvs->urb); in lvs_rh_probe()
448 struct lvs_rh *lvs = usb_get_intfdata(intf); in lvs_rh_disconnect() local
451 destroy_workqueue(lvs->rh_queue); in lvs_rh_disconnect()
452 usb_free_urb(lvs->urb); in lvs_rh_disconnect()