Lines Matching refs:info
122 struct usb_ifc_info info;
140 info.dev_vendor = dev->idVendor;
141 info.dev_product = dev->idProduct;
142 info.dev_class = dev->bDeviceClass;
143 info.dev_subclass = dev->bDeviceSubClass;
144 info.dev_protocol = dev->bDeviceProtocol;
145 info.writable = writable;
147 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", sysfs_name);
155 info.serial_number[0] = '\0';
166 int chars_read = read(fd, info.serial_number,
167 sizeof(info.serial_number) - 1);
171 info.serial_number[0] = '\0';
172 else if (info.serial_number[chars_read - 1] == '\n') {
174 info.serial_number[chars_read - 1] = '\0';
198 info.ifc_class = ifc->bInterfaceClass;
199 info.ifc_subclass = ifc->bInterfaceSubClass;
200 info.ifc_protocol = ifc->bInterfaceProtocol;
228 info.has_bulk_in = (in != -1);
229 info.has_bulk_out = (out != -1);
231 if(callback(&info) == 0) {