Lines Matching refs:interface

61     IOUSBInterfaceInterface190 **interface;
73 IOUSBInterfaceInterface190 **interface = NULL;
99 ERR("Couldn't create a device interface iterator: (%08x)\n", kr);
120 // Now create the interface interface for the interface
124 (LPVOID) &interface);
129 if (result || !interface) {
130 ERR("Couldn't create interface interface: (%08x)\n",
132 // continue so we can try the next interface
137 * Now open the interface. This will cause the pipes
138 * associated with the endpoints in the interface descriptor
144 * idea to just open any interface, because opening "mass
146 * out if an interface does bulk in or out is to open it, and
149 * use the interface. Maybe something needs to be done about
153 kr = (*interface)->USBInterfaceOpen(interface);
156 WARN("Could not open interface: (%08x)\n", kr);
157 (void) (*interface)->Release(interface);
158 // continue so we can try the next interface
162 // Get the number of endpoints associated with this interface.
163 kr = (*interface)->GetNumEndpoints(interface, &interfaceNumEndpoints);
170 // Get interface class, subclass and protocol
171 if ((*interface)->GetInterfaceClass(interface, &handle->info.ifc_class) != 0 ||
172 (*interface)->GetInterfaceSubClass(interface, &handle->info.ifc_subclass) != 0 ||
173 (*interface)->GetInterfaceProtocol(interface, &handle->info.ifc_protocol) != 0)
175 ERR("Unable to get interface class, subclass and protocol\n");
182 // Iterate over the endpoints for this interface and see if there
191 kr = (*interface)->GetPipeProperties(interface, endpoint,
221 handle->interface = interface;
231 kr = (*interface)->ClearPipeStallBothEnds(interface,
239 kr = (*interface)->ClearPipeStallBothEnds(interface,
250 (*interface)->USBInterfaceClose(interface);
251 (*interface)->Release(interface);
280 // Now create the device interface.
284 ERR("Couldn't create a device interface (%08x)\n", (int) result);
289 * We don't need the intermediate interface after the device interface
482 if (h->interface == NULL) {
483 ERR("usb_read interface was null\n");
492 result = (*h->interface)->ReadPipe(
493 h->interface, h->bulkIn, data, &numBytes);
515 if (h->interface == NULL) {
516 ERR("usb_write interface was null\n");
526 result = (*h->interface)->WritePipe(
527 h->interface, h->bulkOut, (void *)data, len);
540 result = (*h->interface)->WritePipe(
541 h->interface, h->bulkOut, (void *)data, lenToSend);
553 result = (*h->interface)->WritePipe(
554 h->interface, h->bulkOut, (void *)data, 0);