Lines Matching refs:usb_scan
426 static int usb_scan_port(struct usb_device_scan *usb_scan) in usb_scan_port() argument
436 dev = usb_scan->dev; in usb_scan_port()
437 hub = usb_scan->hub; in usb_scan_port()
438 i = usb_scan->port; in usb_scan_port()
454 list_del(&usb_scan->list); in usb_scan_port()
455 free(usb_scan); in usb_scan_port()
478 list_del(&usb_scan->list); in usb_scan_port()
479 free(usb_scan); in usb_scan_port()
554 list_del(&usb_scan->list); in usb_scan_port()
555 free(usb_scan); in usb_scan_port()
562 struct usb_device_scan *usb_scan; in usb_device_list_scan() local
578 list_for_each_entry_safe(usb_scan, tmp, &usb_scan_list, list) { in usb_device_list_scan()
582 ret = usb_scan_port(usb_scan); in usb_device_list_scan()
857 struct usb_device_scan *usb_scan; in usb_hub_configure() local
859 usb_scan = calloc(1, sizeof(*usb_scan)); in usb_hub_configure()
860 if (!usb_scan) { in usb_hub_configure()
864 usb_scan->dev = dev; in usb_hub_configure()
865 usb_scan->hub = hub; in usb_hub_configure()
866 usb_scan->port = i; in usb_hub_configure()
867 list_add_tail(&usb_scan->list, &usb_scan_list); in usb_hub_configure()