Lines Matching refs:interface
64 IOUSBInterfaceInterface500** interface; member
95 IOUSBInterfaceInterface500** interface = NULL; in try_interfaces() local
134 (LPVOID*)&interface); in try_interfaces()
139 if (result || !interface) { in try_interfaces()
163 kr = (*interface)->USBInterfaceOpen(interface); in try_interfaces()
167 (void) (*interface)->Release(interface); in try_interfaces()
173 kr = (*interface)->GetNumEndpoints(interface, &interfaceNumEndpoints); in try_interfaces()
181 if ((*interface)->GetInterfaceClass(interface, &handle->info.ifc_class) != 0 || in try_interfaces()
182 (*interface)->GetInterfaceSubClass(interface, &handle->info.ifc_subclass) != 0 || in try_interfaces()
183 (*interface)->GetInterfaceProtocol(interface, &handle->info.ifc_protocol) != 0) in try_interfaces()
201 kr = (*interface)->GetPipeProperties(interface, endpoint, in try_interfaces()
231 handle->interface = interface; in try_interfaces()
241 kr = (*interface)->ClearPipeStallBothEnds(interface, in try_interfaces()
249 kr = (*interface)->ClearPipeStallBothEnds(interface, in try_interfaces()
260 (*interface)->USBInterfaceClose(interface); in try_interfaces()
261 (*interface)->Release(interface); in try_interfaces()
371 handle->info.interface[0] = 0; in try_device()
509 if (handle_->interface == nullptr) { in Read()
520 result = (*handle_->interface) in Read()
521 ->ReadPipe(handle_->interface, handle_->bulkIn, data, &numBytes); in Read()
523 result = (*handle_->interface) in Read()
524 ->ReadPipeTO(handle_->interface, handle_->bulkIn, data, &numBytes, in Read()
548 if (handle_->interface == NULL) { in Write()
559 result = (*handle_->interface)->WritePipe( in Write()
560 handle_->interface, handle_->bulkOut, (void *)data, len); in Write()
574 result = (*handle_->interface) in Write()
575 ->WritePipe(handle_->interface, handle_->bulkOut, (void*)data, in Write()
578 result = (*handle_->interface) in Write()
579 ->WritePipeTO(handle_->interface, handle_->bulkOut, (void*)data, in Write()
594 result = (*handle_->interface)->WritePipe( in Write()
595 handle_->interface, handle_->bulkOut, (void *)data, 0); in Write()