Lines Matching refs:interface
236 * usb_class: the generic USB class for which to retrieve interface details
237 * index: zero based index of the interface in the device info list
272 * guid: the GUID for which to retrieve interface details
273 * index: zero based index of the interface in the device info list
306 usbi_err(ctx, "Could not obtain interface data for index %u: %s",
314 // Read interface data (dummy + actual) to access the device path
318 usbi_err(ctx, "could not access interface data (dummy) for index %u: %s",
328 usbi_err(ctx, "could not allocate interface data for index %u.", _index);
335 usbi_err(ctx, "could not access interface data (actual) for index %u: %s",
547 * Populate the endpoints addresses of the device_priv interface helper structs
563 if_desc = &conf_desc->interface[iface].altsetting[altsetting];
567 usbi_dbg("no endpoints found for interface %d", iface);
579 usbi_dbg("(re)assigned endpoint %02X to interface %d", priv->usb_interface[iface].endpoint[i], iface);
630 if (current_interface < 0) // No serviceable interface was found
633 // Must claim an interface of the same API type
636 usbi_dbg("auto-claimed interface %d for control request", current_interface);
645 usbi_err(ctx, "could not auto-claim any interface");
649 // If we have a valid interface that was autoclaimed, we must increment
676 usbi_dbg("auto-released interface %d", transfer_priv->interface_number);
678 usbi_dbg("failed to auto-release interface %d (%s)",
1134 // interface number from the path's MI value
1146 usbi_warn(ctx, "failure to read interface number for %s. Using default value %d",
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);
1204 // and list additional USB device interface GUIDs to explore
1205 // PASS 4 : (re)enumerate master USB devices that have a device interface
1266 usbi_warn(ctx, "could not sanitize device interface path for '%s'", dev_interface_details->DevicePath);
1323 // ...and to add the additional device interface GUIDs
1444 // For other devices, the first interface is the same as the device
1449 usbi_warn(ctx, "could not duplicate interface path '%s'", priv->path);
1476 usbi_dbg("setting composite interface for [%lX]:", parent_dev->session_data);
1482 // interface has already been set => make sure dev_interface_path is freed then
1751 // When auto claim is in use, attempt to release the auto-claimed interface
2312 // NB: open and close must ensure that they only handle interface of
2326 // WinUSB requires a seperate handle for each interface
2333 usbi_err(ctx, "could not open device %s (interface %d): %s", priv->usb_interface[i].path, i, windows_error_str(0));
2425 // or if it's the first WinUSB interface, we get a handle through WinUsb_Initialize().
2427 // composite device (independent interfaces) or interface 0
2434 usbi_err(ctx, "could not access interface %d: %s", iface, windows_error_str(0));
2441 usbi_err(ctx, "could not claim interface %d: %s", iface, windows_error_str(0));
2449 // It is a requirement for multiple interface devices using WinUSB that you
2450 // must first claim the first interface before you claim any other
2455 usbi_warn(ctx, "auto-claimed interface 0 (required to claim %d with WinUSB)", iface);
2457 usbi_warn(ctx, "failed to auto-claim interface 0 (required to claim %d with WinUSB)", iface);
2472 usbi_err(ctx, "could not claim interface %d: %s", iface, windows_error_str(0));
2477 usbi_dbg("claimed interface %d", iface);
2502 * Return the first valid interface (of the same API type), for control transfers
2521 * Lookup interface by endpoint address. -1 if not found
2572 usbi_dbg("will use interface %d", current_interface);
2625 usbi_err(ctx, "interface must be claimed first");
2655 usbi_err(ctx, "unable to match endpoint to an open interface - cancelling transfer");
2659 usbi_dbg("matched endpoint %02X with interface %d", transfer->endpoint, current_interface);
2705 usbi_err(ctx, "unable to match endpoint to an open interface - cannot clear");
2709 usbi_dbg("matched endpoint %02X with interface %d", endpoint, current_interface);
2748 usbi_dbg("will use interface %d", current_interface);
2895 usbi_dbg("using interface %d", i);
2913 usbi_err(ctx, "unable to match endpoint to an open interface - cancelling transfer");
2929 usbi_err(ctx, "unable to match endpoint to an open interface - cancelling transfer");
2945 usbi_err(ctx, "unable to match endpoint to an open interface - cannot clear");