Home | History | Annotate | Download | only in accessorychat

Lines Matching refs:dev_name

62     char dev_name[64];
203 struct usb_device *usb_device_open(const char *dev_name)
207 D("usb_device_open %s\n", dev_name);
210 fd = open(dev_name, O_RDWR);
213 fd = open(dev_name, O_RDONLY);
225 D("[ usb open read-only %s fd = %d]\n", dev_name, fd);
228 struct usb_device* result = usb_device_new(dev_name, fd);
240 struct usb_device *usb_device_new(const char *dev_name, int fd)
245 D("usb_device_new %s fd: %d\n", dev_name, fd);
254 strncpy(device->dev_name, dev_name, sizeof(device->dev_name) - 1);
272 int fd = open(device->dev_name, O_RDWR);
292 return device->dev_name;
298 sscanf(device->dev_name, USB_FS_ID_SCANNER, &bus, &dev);