Lines Matching defs:interface_number
620 static int auto_claim(struct libusb_transfer *transfer, int *interface_number, int api_type)
626 int current_interface = *interface_number;
657 *interface_number = current_interface;
671 if (handle_priv->autoclaim_count[transfer_priv->interface_number] > 0) {
672 handle_priv->autoclaim_count[transfer_priv->interface_number]--;
673 if (handle_priv->autoclaim_count[transfer_priv->interface_number] == 0) {
674 r = libusb_release_interface(dev_handle, transfer_priv->interface_number);
676 usbi_dbg("auto-released interface %d", transfer_priv->interface_number);
679 transfer_priv->interface_number, libusb_error_name((enum libusb_error)r));
1125 int interface_number;
1135 interface_number = 0;
1139 interface_number = (device_id[i++] - '0')*10;
1140 interface_number += device_id[i] - '0';
1147 device_id, interface_number);
1150 if (priv->usb_interface[interface_number].path != NULL) {
1151 usbi_warn(ctx, "interface[%d] already set - ignoring: %s", interface_number, device_id);
1155 usbi_dbg("interface[%d] = %s", interface_number, dev_interface_path);
1156 priv->usb_interface[interface_number].path = dev_interface_path;
1157 priv->usb_interface[interface_number].apib = &usb_api_backend[api];
2606 transfer_priv->interface_number = (uint8_t)current_interface;
2688 transfer_priv->interface_number = (uint8_t)current_interface;
2743 current_interface = transfer_priv->interface_number;
2745 usbi_err(ctx, "program assertion failed: invalid interface_number");
2958 return priv->usb_interface[transfer_priv->interface_number].apib->abort_control(itransfer);
2967 return priv->usb_interface[transfer_priv->interface_number].apib->abort_transfers(itransfer);
2995 return priv->usb_interface[transfer_priv->interface_number].apib->copy_transfer_data(itransfer, io_size);