Lines Matching refs:dev_name
76 char dev_name[64];
316 struct usb_device *usb_device_open(const char *dev_name)
320 D("usb_device_open %s\n", dev_name);
323 fd = open(dev_name, O_RDWR);
326 fd = open(dev_name, O_RDONLY);
338 D("[ usb open read-only %s fd = %d]\n", dev_name, fd);
341 struct usb_device* result = usb_device_new(dev_name, fd);
353 struct usb_device *usb_device_new(const char *dev_name, int fd)
358 D("usb_device_new %s fd: %d\n", dev_name, fd);
367 strncpy(device->dev_name, dev_name, sizeof(device->dev_name) - 1);
385 int fd = open(device->dev_name, O_RDWR);
405 return device->dev_name;
411 sscanf(device->dev_name, USB_FS_ID_SCANNER, &bus, &dev);