Lines Matching refs:device
10 _COULDNT_OPEN_ERROR_RE = re.compile(r'Couldn\'t open device.*')
12 _LSUSB_BUS_DEVICE_RE = re.compile(r'^Bus (\d{3}) Device (\d{3}): (.*)')
18 """Calls lsusb -v on device."""
22 device = {'bus': bus_id, 'device': dev_id}
23 depth_stack = [device]
30 # Filter out error mesage about opening device.
33 # Find start of device information.
42 device['desc'] = m.group(3)
79 return device
94 # Will be blacklisted if it is in expected device file, but times out.
101 def get_lsusb_serial(device):
103 return device['Device Descriptor']['iSerial']['_desc']