Lines Matching refs:interface

42     IOUSBInterfaceInterface   **interface;
78 //* adb interface
88 //* Match based on vendor id, interface subclass and protocol
134 //* Create an intermediate interface plugin
141 DBG("ERR: Unable to create an interface plug-in (%08x)\n", kr);
145 //* This gets us the interface object
149 //* We only needed the plugin to get the interface, so discard it
152 DBG("ERR: Couldn't query the interface (%08x)\n", (int) result);
157 //* device; after getting a plugin, and querying the interface, of
162 DBG("ERR: Couldn't grab device from interface (%08x)\n", kr);
185 DBG("ERR: Couldn't create a device interface (%08x)\n",
191 //* the interface that matched our criteria
253 DBG("ERR: Could not find device interface: %08x\n", kr);
293 //* TODO: simplify this further since we only register to get ADB interface
296 CheckInterface(IOUSBInterfaceInterface **interface, UInt16 vendor, UInt16 product)
304 //* Now open the interface. This will cause the pipes associated with
305 //* the endpoints in the interface descriptor to be instantiated
306 kr = (*interface)->USBInterfaceOpen(interface);
308 DBG("ERR: Could not open interface: (%08x)\n", kr);
312 //* Get the number of endpoints associated with this interface
313 kr = (*interface)->GetNumEndpoints(interface, &interfaceNumEndpoints);
319 //* Get interface class, subclass and protocol
320 if ((*interface)->GetInterfaceClass(interface, &interfaceClass) != kIOReturnSuccess ||
321 (*interface)->GetInterfaceSubClass(interface, &interfaceSubClass) != kIOReturnSuccess ||
322 (*interface)->GetInterfaceProtocol(interface, &interfaceProtocol) != kIOReturnSuccess) {
323 DBG("ERR: Unable to get interface class, subclass and protocol\n");
327 //* check to make sure interface class, subclass and protocol match ADB
335 //* Iterate over the endpoints for this interface and find the first
344 kr = (*interface)->GetPipeProperties(interface, endpoint, &direction,
364 handle->interface = interface;
372 (*interface)->USBInterfaceClose(interface);
454 if (NULL == handle->interface) {
455 DBG("ERR: usb_write interface was null\n");
465 (*handle->interface)->WritePipe(
466 handle->interface, handle->bulkOut, (void *)buf, len);
472 (*handle->interface)->WritePipe(
473 handle->interface, handle->bulkOut, (void *)buf, 0);
497 if (NULL == handle->interface) {
498 DBG("ERR: usb_read interface was null\n");
508 (*handle->interface)->ReadPipe(handle->interface,
527 /* release the interface */
531 if (handle->interface)
533 (*handle->interface)->USBInterfaceClose(handle->interface);
534 (*handle->interface)->Release(handle->interface);
535 handle->interface = 0;