Lines Matching refs:entry
90 entry = {}
91 entry[self.KEY_NAME] = name
92 entry[self.KEY_VID] = int(vid, 16)
93 entry[self.KEY_PID] = int(pid, 16)
98 entry[self.KEY_SN] = None
99 entry[self.KEY_CFG] = int(cfg)
100 entry[self.KEY_INF] = int(inf)
101 entry[self.KEY_TTY] = None
103 self._device_list.append(entry)
208 for entry in dir_list:
209 if tty_re.match(entry):
210 return os.path.join(self._DEV_ROOT, entry)
273 entry = {}
274 entry[self.KEY_TTY] = tty_path
275 entry[self.KEY_INF] = inf
276 entry[self.KEY_CFG] = cfg
277 entry[self.KEY_VID] = self._read_sys_hex_attr(dev_path,
279 entry[self.KEY_PID] = self._read_sys_hex_attr(dev_path,
281 entry[self.KEY_SN] = self._read_sys_attr(dev_path,
283 entry[self.KEY_MFG] = self._read_sys_attr(dev_path,
285 entry[self.KEY_PRD] = self._read_sys_attr(dev_path,
287 entry[self.KEY_VER] = self._read_sys_attr(dev_path,
292 lab_device = self._find_lab_device_entry(entry[self.KEY_VID],
293 entry[self.KEY_PID],
294 entry[self.KEY_SN])
296 entry[self.KEY_NAME] = lab_device[self.KEY_NAME]
298 dev_list.append(entry)