Lines Matching refs:dev_name
92 static int is_known_device(const char* dev_name) {
95 if (usb->path == dev_name) {
153 std::string dev_name = bus_name + "/" + de->d_name;
154 if (is_known_device(dev_name.c_str())) {
158 int fd = unix_open(dev_name.c_str(), O_RDONLY | O_CLOEXEC);
183 DBGX("[ %s is V:%04x P:%04x ]\n", dev_name.c_str(), vid, pid);
287 register_device_callback(dev_name.c_str(), devpath, local_ep_in,
507 static void register_device(const char* dev_name, const char* dev_path, unsigned char ep_in,
510 // Since Linux will not reassign the device ID (and dev_name) as long as the
520 if (usb->path == dev_name) {
526 D("[ usb located new device %s (%d/%d/%d) ]", dev_name, ep_in, ep_out, interface);
528 usb->path = dev_name;