Lines Matching refs:interface

44     IOUSBInterfaceInterface   **interface;  member
301 CheckInterface(IOUSBInterfaceInterface **interface, UInt16 vendor, UInt16 product) in CheckInterface() argument
311 kr = (*interface)->USBInterfaceOpen(interface); in CheckInterface()
318 kr = (*interface)->GetNumEndpoints(interface, &interfaceNumEndpoints); in CheckInterface()
325 if ((*interface)->GetInterfaceClass(interface, &interfaceClass) != kIOReturnSuccess || in CheckInterface()
326 (*interface)->GetInterfaceSubClass(interface, &interfaceSubClass) != kIOReturnSuccess || in CheckInterface()
327 (*interface)->GetInterfaceProtocol(interface, &interfaceProtocol) != kIOReturnSuccess) { in CheckInterface()
350 kr = (*interface)->GetPipeProperties(interface, endpoint, &direction, in CheckInterface()
370 handle->interface = interface; in CheckInterface()
378 (*interface)->USBInterfaceClose(interface); in CheckInterface()
448 if (NULL == handle->interface) { in usb_write()
459 (*handle->interface)->WritePipe( in usb_write()
460 handle->interface, handle->bulkOut, (void *)buf, len); in usb_write()
466 (*handle->interface)->WritePipe( in usb_write()
467 handle->interface, handle->bulkOut, (void *)buf, 0); in usb_write()
491 if (NULL == handle->interface) { in usb_read()
501 result = (*handle->interface)->ReadPipe(handle->interface, handle->bulkIn, buf, &numBytes); in usb_read()
505 (*handle->interface)->ClearPipeStall(handle->interface, handle->bulkIn); in usb_read()
506 result = (*handle->interface)->ReadPipe(handle->interface, handle->bulkIn, buf, &numBytes); in usb_read()
529 if (handle->interface) in usb_kick()
531 (*handle->interface)->USBInterfaceClose(handle->interface); in usb_kick()
532 (*handle->interface)->Release(handle->interface); in usb_kick()
533 handle->interface = 0; in usb_kick()