Lines Matching full:dev_name
79 char dev_name[64];
320 struct usb_device *usb_device_open(const char *dev_name)
324 D("usb_device_open %s\n", dev_name);
327 fd = open(dev_name, O_RDWR);
330 fd = open(dev_name, O_RDONLY);
342 D("[ usb open read-only %s fd = %d]\n", dev_name, fd);
345 struct usb_device* result = usb_device_new(dev_name, fd);
357 struct usb_device *usb_device_new(const char *dev_name, int fd)
362 D("usb_device_new %s fd: %d\n", dev_name, fd);
371 strncpy(device->dev_name, dev_name, sizeof(device->dev_name) - 1);
389 int fd = open(device->dev_name, O_RDWR);
409 return device->dev_name;
415 sscanf(device->dev_name, USB_FS_ID_SCANNER, &bus, &dev);