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()
200 kr = (*interface) in try_interfaces()
201 ->GetEndpointProperties(interface, 0, endpoint, in try_interfaces()
215 kr = (*interface)->GetPipeProperties(interface, endpoint, in try_interfaces()
246 handle->interface = interface; in try_interfaces()
256 kr = (*interface)->ClearPipeStallBothEnds(interface, in try_interfaces()
264 kr = (*interface)->ClearPipeStallBothEnds(interface, in try_interfaces()
275 (*interface)->USBInterfaceClose(interface); in try_interfaces()
276 (*interface)->Release(interface); in try_interfaces()
386 handle->info.interface[0] = 0; in try_device()
523 if (handle_->interface == nullptr) { in Read()
534 result = (*handle_->interface) in Read()
535 ->ReadPipe(handle_->interface, handle_->bulkIn, data, &numBytes); in Read()
537 result = (*handle_->interface) in Read()
538 ->ReadPipeTO(handle_->interface, handle_->bulkIn, data, &numBytes, in Read()
562 if (handle_->interface == NULL) { in Write()
573 result = (*handle_->interface)->WritePipe( in Write()
574 handle_->interface, handle_->bulkOut, (void *)data, len); in Write()
588 result = (*handle_->interface) in Write()
589 ->WritePipe(handle_->interface, handle_->bulkOut, (void*)data, in Write()
592 result = (*handle_->interface) in Write()
593 ->WritePipeTO(handle_->interface, handle_->bulkOut, (void*)data, in Write()
608 result = (*handle_->interface)->WritePipe( in Write()
609 handle_->interface, handle_->bulkOut, (void *)data, 0); in Write()