Lines Matching refs:dev_name
100 static int is_known_device(std::string_view dev_name) { in is_known_device() argument
103 if (usb->path == dev_name) { in is_known_device()
160 std::string dev_name = bus_name + "/" + de->d_name; in find_usb_device() local
161 if (is_known_device(dev_name)) { in find_usb_device()
165 int fd = unix_open(dev_name, O_RDONLY | O_CLOEXEC); in find_usb_device()
188 DBGX("[ %s is V:%04x P:%04x ]\n", dev_name.c_str(), device->idVendor, in find_usb_device()
293 register_device_callback(dev_name.c_str(), devpath, local_ep_in, in find_usb_device()
544 static void register_device(const char* dev_name, const char* dev_path, unsigned char ep_in, in register_device() argument
575 if (usb->path == dev_name) { in register_device()
581 D("[ usb located new device %s (%d/%d/%d) ]", dev_name, ep_in, ep_out, interface); in register_device()
583 usb->path = dev_name; in register_device()