Lines Matching refs:hUSB
229 if (hs->hUSB == nullptr) { in EnumUSBDeviceRegister()
266 if (hs->hUSB == nullptr) { in QueryUSBDeviceRegister()
269 if (hs->hUSB->devId != devId || hs->hUSB->busId != busId) { in QueryUSBDeviceRegister()
368 HUSB hUSB = new HdcUSB(); in MallocSessionByConnectType() local
369 if (!hUSB) { in MallocSessionByConnectType()
373 hSession->hUSB = hUSB; in MallocSessionByConnectType()
374 hSession->hUSB->wMaxPacketSizeSend = MAX_PACKET_SIZE_HISPEED; in MallocSessionByConnectType()
492 if (!hSession->hUSB) { in FreeSessionByConnectType()
495 HUSB hUSB = hSession->hUSB; in FreeSessionByConnectType() local
496 if (!hUSB) { in FreeSessionByConnectType()
500 if (hUSB->devHandle) { in FreeSessionByConnectType()
501 libusb_release_interface(hUSB->devHandle, hUSB->interfaceNumber); in FreeSessionByConnectType()
502 libusb_close(hUSB->devHandle); in FreeSessionByConnectType()
503 hUSB->devHandle = nullptr; in FreeSessionByConnectType()
506 Base::CloseFd(hUSB->bulkIn); in FreeSessionByConnectType()
507 Base::CloseFd(hUSB->bulkOut); in FreeSessionByConnectType()
509 delete hSession->hUSB; in FreeSessionByConnectType()
510 hSession->hUSB = nullptr; in FreeSessionByConnectType()
602 if (hSession->hUSB != nullptr in FreeSessionOpeate()
603 && (!hSession->hUSB->hostBulkIn.isShutdown || !hSession->hUSB->hostBulkOut.isShutdown)) { in FreeSessionOpeate()