Lines Matching refs:lvs

44 	struct lvs_rh *lvs = usb_get_intfdata(intf);  in create_lvs_device()  local
46 if (!lvs->present) { in create_lvs_device()
54 udev = usb_alloc_dev(hdev, hdev->bus, lvs->portnum); in create_lvs_device()
106 struct lvs_rh *lvs = usb_get_intfdata(intf); in u3_entry_store() local
116 ret = lvs_rh_set_port_feature(hdev, lvs->portnum, in u3_entry_store()
135 struct lvs_rh *lvs = usb_get_intfdata(intf); in u3_exit_store() local
145 ret = lvs_rh_clear_port_feature(hdev, lvs->portnum, in u3_exit_store()
164 struct lvs_rh *lvs = usb_get_intfdata(intf); in hot_reset_store() local
167 ret = lvs_rh_set_port_feature(hdev, lvs->portnum, in hot_reset_store()
183 struct lvs_rh *lvs = usb_get_intfdata(intf); in warm_reset_store() local
186 ret = lvs_rh_set_port_feature(hdev, lvs->portnum, in warm_reset_store()
202 struct lvs_rh *lvs = usb_get_intfdata(intf); in u2_timeout_store() local
215 ret = lvs_rh_set_port_feature(hdev, lvs->portnum | (val << 8), in u2_timeout_store()
231 struct lvs_rh *lvs = usb_get_intfdata(intf); in u1_timeout_store() local
244 ret = lvs_rh_set_port_feature(hdev, lvs->portnum | (val << 8), in u1_timeout_store()
298 struct lvs_rh *lvs = usb_get_intfdata(intf); in enable_compliance_store() local
302 lvs->portnum | USB_SS_PORT_LS_COMP_MOD << 3, in enable_compliance_store()
324 ATTRIBUTE_GROUPS(lvs);
328 struct lvs_rh *lvs = container_of(work, struct lvs_rh, rh_work); in lvs_rh_work() local
329 struct usb_interface *intf = lvs->intf; in lvs_rh_work()
332 struct usb_hub_descriptor *descriptor = &lvs->descriptor; in lvs_rh_work()
333 struct usb_port_status *port_status = &lvs->port_status; in lvs_rh_work()
365 lvs->present = true; in lvs_rh_work()
366 lvs->portnum = i; in lvs_rh_work()
371 lvs->present = false; in lvs_rh_work()
380 ret = usb_submit_urb(lvs->urb, GFP_KERNEL); in lvs_rh_work()
387 struct lvs_rh *lvs = urb->context; in lvs_rh_irq() local
389 schedule_work(&lvs->rh_work); in lvs_rh_irq()
398 struct lvs_rh *lvs; in lvs_rh_probe() local
415 lvs = devm_kzalloc(&intf->dev, sizeof(*lvs), GFP_KERNEL); in lvs_rh_probe()
416 if (!lvs) in lvs_rh_probe()
419 lvs->intf = intf; in lvs_rh_probe()
420 usb_set_intfdata(intf, lvs); in lvs_rh_probe()
425 USB_DT_SS_HUB << 8, 0, &lvs->descriptor, in lvs_rh_probe()
433 lvs->urb = usb_alloc_urb(0, GFP_KERNEL); in lvs_rh_probe()
434 if (!lvs->urb) in lvs_rh_probe()
437 INIT_WORK(&lvs->rh_work, lvs_rh_work); in lvs_rh_probe()
441 usb_fill_int_urb(lvs->urb, hdev, pipe, &lvs->buffer[0], maxp, in lvs_rh_probe()
442 lvs_rh_irq, lvs, endpoint->bInterval); in lvs_rh_probe()
444 ret = usb_submit_urb(lvs->urb, GFP_KERNEL); in lvs_rh_probe()
453 usb_free_urb(lvs->urb); in lvs_rh_probe()
459 struct lvs_rh *lvs = usb_get_intfdata(intf); in lvs_rh_disconnect() local
461 usb_poison_urb(lvs->urb); /* used in scheduled work */ in lvs_rh_disconnect()
462 flush_work(&lvs->rh_work); in lvs_rh_disconnect()
463 usb_free_urb(lvs->urb); in lvs_rh_disconnect()