Searched refs:infPtr (Results 1 – 2 of 2) sorted by relevance
394 auto infPtr = reinterpret_cast<UsbDdkInterfaceDescriptor *>(usbInterface.altsetting + i); in ClearInterface() local395 if (infPtr == nullptr) { in ClearInterface()400 if (infPtr->extra != nullptr) { in ClearInterface()401 delete[] (infPtr->extra); in ClearInterface()402 infPtr->extra = nullptr; in ClearInterface()405 if (infPtr->endPoint != nullptr) { in ClearInterface()406 for (j = 0; j < infPtr->interfaceDescriptor.bNumEndpoints; j++) { in ClearInterface()407 ClearEndpoint(reinterpret_cast<UsbDdkEndpointDescriptor *>(infPtr->endPoint + j)); in ClearInterface()410 delete[] (infPtr->endPoint); in ClearInterface()411 infPtr->endPoint = nullptr; in ClearInterface()
363 struct UsbRawInterfaceDescriptor *infPtr = NULL; in ClearInterface() local378 infPtr = (struct UsbRawInterfaceDescriptor *)(usbInterface->altsetting + i); in ClearInterface()379 if (infPtr == NULL) { in ClearInterface()384 if (infPtr->extra != NULL) { in ClearInterface()385 RawUsbMemFree((void *)infPtr->extra); in ClearInterface()386 infPtr->extra = NULL; in ClearInterface()389 if (infPtr->endPoint != NULL) { in ClearInterface()390 for (j = 0; j < infPtr->interfaceDescriptor.bNumEndpoints; j++) { in ClearInterface()391 ClearEndpoint((struct UsbRawEndpointDescriptor *)infPtr->endPoint + j); in ClearInterface()394 RawUsbMemFree((void *)infPtr->endPoint); in ClearInterface()[all …]