Lines Matching refs:port
99 HostDevice *port = nullptr; in FindDevFromService() local
105 port = reinterpret_cast<HostDevice *>(HdfSListIteratorNext(&it)); in FindDevFromService()
106 if (port == nullptr) { in FindDevFromService()
109 if (port->busNum == busNum && port->devAddr == devAddr) { in FindDevFromService()
118 return port; in FindDevFromService()
233 int32_t UsbImpl::ReOpenDevice(HostDevice *port) in ReOpenDevice() argument
235 if (port == nullptr) { in ReOpenDevice()
240 uint8_t busNum = port->busNum; in ReOpenDevice()
241 uint8_t devAddr = port->devAddr; in ReOpenDevice()
242 UsbdDispatcher::UsbdRelease(port); in ReOpenDevice()
243 port->busNum = busNum; in ReOpenDevice()
244 port->devAddr = devAddr; in ReOpenDevice()
245 OsalMutexInit(&port->writeLock); in ReOpenDevice()
246 OsalMutexInit(&port->readLock); in ReOpenDevice()
247 OsalMutexInit(&port->lock); in ReOpenDevice()
248 OsalMutexInit(&port->requestLock); in ReOpenDevice()
249 OsalMutexInit(&port->reqSyncLock); in ReOpenDevice()
250 OsalMutexInit(&port->reqASyncLock); in ReOpenDevice()
251 HdfSListInit(&port->requestQueue); in ReOpenDevice()
252 HdfSListInit(&port->reqSyncList); in ReOpenDevice()
253 HdfSListInit(&port->reqASyncList); in ReOpenDevice()
254 int32_t ret = UsbdDispatcher::UsbdInit(port); in ReOpenDevice()
257 UsbdDispatcher::UsbdRelease(port); in ReOpenDevice()
258 UsbdDispatcher::RemoveDevFromService(port->service, port); in ReOpenDevice()
259 OsalMemFree(port); in ReOpenDevice()
263 DataFifoReset(&port->readFifo); in ReOpenDevice()
264 port->initFlag = true; in ReOpenDevice()
283 int32_t UsbImpl::UsbdRequestSyncReleaseList(HostDevice *port) in UsbdRequestSyncReleaseList() argument
285 if (port == nullptr) { in UsbdRequestSyncReleaseList()
291 OsalMutexLock(&port->reqSyncLock); in UsbdRequestSyncReleaseList()
292 HdfSListIteratorInit(&it, &port->reqSyncList); in UsbdRequestSyncReleaseList()
304 OsalMutexUnlock(&port->reqSyncLock); in UsbdRequestSyncReleaseList()
309 int32_t UsbImpl::UsbdRequestASyncReleaseList(HostDevice *port) in UsbdRequestASyncReleaseList() argument
311 if (port == nullptr) { in UsbdRequestASyncReleaseList()
317 OsalMutexLock(&port->reqASyncLock); in UsbdRequestASyncReleaseList()
318 HdfSListIteratorInit(&it, &port->reqASyncList); in UsbdRequestASyncReleaseList()
330 OsalMutexUnlock(&port->reqASyncLock); in UsbdRequestASyncReleaseList()
335 int32_t UsbImpl::UsbdBulkASyncListReleasePort(HostDevice *port) in UsbdBulkASyncListReleasePort() argument
337 if (port == nullptr || port->bulkASyncList == nullptr) { in UsbdBulkASyncListReleasePort()
343 while (port->bulkASyncList) { in UsbdBulkASyncListReleasePort()
344 list = port->bulkASyncList; in UsbdBulkASyncListReleasePort()
345 port->bulkASyncList = list->next; in UsbdBulkASyncListReleasePort()
353 HostDevice *port, uint8_t interfaceId, uint8_t pipeAddr, UsbdRequestSync **request) in UsbdFindRequestSyncAndCreat() argument
355 if (port == nullptr || request == nullptr) { in UsbdFindRequestSyncAndCreat()
361 UsbdRequestSync *requestSync = UsbdDispatcher::UsbdFindRequestSync(port, interfaceId, pipeAddr); in UsbdFindRequestSyncAndCreat()
373 int32_t ret = UsbdDispatcher::GetPipe(port, interfaceId, pipeAddr, &pipe); in UsbdFindRequestSyncAndCreat()
379 UsbInterfaceHandle *ifHandle = InterfaceIdToHandle(port, interfaceId); in UsbdFindRequestSyncAndCreat()
391 ret = UsbdDispatcher::UsbdRequestSyncInit(port, ifHandle, &pipe, requestSync); in UsbdFindRequestSyncAndCreat()
405 int32_t UsbImpl::UsbdFindRequestSyncAndCreatwithLength(HostDevice *port, uint8_t interfaceId, in UsbdFindRequestSyncAndCreatwithLength() argument
408 if (port == nullptr || request == nullptr) { in UsbdFindRequestSyncAndCreatwithLength()
414 UsbdRequestSync *requestSync = UsbdDispatcher::UsbdFindRequestSync(port, interfaceId, pipeAddr); in UsbdFindRequestSyncAndCreatwithLength()
421 UsbdRequestSyncReleaseList(port); in UsbdFindRequestSyncAndCreatwithLength()
433 int32_t ret = UsbdDispatcher::GetPipe(port, interfaceId, pipeAddr, &pipe); in UsbdFindRequestSyncAndCreatwithLength()
439 UsbInterfaceHandle *ifHandle = InterfaceIdToHandle(port, interfaceId); in UsbdFindRequestSyncAndCreatwithLength()
451 ret = UsbdDispatcher::UsbdRequestSyncInitwithLength(port, ifHandle, &pipe, length, requestSync); in UsbdFindRequestSyncAndCreatwithLength()
505 …HostDevice *port, UsbdRequestSync *requestSync, const uint8_t *buffer, uint32_t length, int32_t ti… in UsbdBulkWriteSyncBase() argument
507 if (port == nullptr || requestSync == nullptr || buffer == nullptr || length < 1) { in UsbdBulkWriteSyncBase()
517 requestSync->params.userData = port; in UsbdBulkWriteSyncBase()
542 UsbdRequestASync *UsbImpl::UsbdFindRequestASync(HostDevice *port, uint8_t interfaceId, uint8_t pipe… in UsbdFindRequestASync() argument
544 if (port == nullptr) { in UsbdFindRequestASync()
554 OsalMutexLock(&port->reqASyncLock); in UsbdFindRequestASync()
555 HdfSListIteratorInit(&it, &port->reqASyncList); in UsbdFindRequestASync()
571 OsalMutexUnlock(&port->reqASyncLock); in UsbdFindRequestASync()
582 req = UsbdDispatcher::UsbdRequestASyncCreatAndInsert(port, interfaceId, pipeAddr); in UsbdFindRequestASync()
595 HostDevice *port, UsbdRequestASync *reqAsync, const uint8_t *buffer, uint32_t length) in FunRequestQueueFillAndSubmit() argument
597 if (port == nullptr || reqAsync == nullptr) { in FunRequestQueueFillAndSubmit()
620 OsalMutexLock(&port->requestLock); in FunRequestQueueFillAndSubmit()
621 HdfSListAddTail(&port->requestQueue, &reqAsync->qNode); in FunRequestQueueFillAndSubmit()
622 OsalMutexUnlock(&port->requestLock); in FunRequestQueueFillAndSubmit()
636 int32_t UsbImpl::GetRequestMsgFromQueue(HostDevice *port, UsbdRequestASync **reqMsg) in GetRequestMsgFromQueue() argument
638 if (port == nullptr || reqMsg == nullptr) { in GetRequestMsgFromQueue()
644 OsalMutexLock(&port->requestLock); in GetRequestMsgFromQueue()
645 if (!HdfSListIsEmpty(&port->requestQueue)) { in GetRequestMsgFromQueue()
646 requestNode = HdfSListPop(&port->requestQueue); in GetRequestMsgFromQueue()
648 OsalMutexUnlock(&port->requestLock); in GetRequestMsgFromQueue()
662 HostDevice *port, UsbdRequestASync *reqMsg, int32_t timeout, uint8_t **buffer, uint32_t *length) in GetRequestMsgData() argument
664 if (port == nullptr || reqMsg == nullptr || reqMsg->reqMsg.request == nullptr) { in GetRequestMsgData()
675 OsalMutexLock(&port->requestLock); in GetRequestMsgData()
676 HdfSListAdd(&port->requestQueue, &reqMsg->qNode); in GetRequestMsgData()
677 OsalMutexUnlock(&port->requestLock); in GetRequestMsgData()
715 UsbdBulkASyncList *UsbImpl::UsbdBulkASyncListFind(HostDevice *port, uint8_t ifId, uint8_t epId) in UsbdBulkASyncListFind() argument
717 if (port == nullptr) { in UsbdBulkASyncListFind()
722 UsbdBulkASyncList *list = port->bulkASyncList; in UsbdBulkASyncListFind()
732 UsbdBulkASyncList *UsbImpl::UsbdBulkASyncListInit(HostDevice *port, uint8_t ifId, uint8_t epId) in UsbdBulkASyncListInit() argument
734 UsbdBulkASyncList *list = UsbdBulkASyncListFind(port, ifId, epId); in UsbdBulkASyncListInit()
736 list = UsbdDispatcher::UsbdBulkASyncListAlloc(port, ifId, epId); in UsbdBulkASyncListInit()
738 list->next = port->bulkASyncList; in UsbdBulkASyncListInit()
739 port->bulkASyncList = list; in UsbdBulkASyncListInit()
1077 HostDevice *port = reinterpret_cast<HostDevice *>(HdfSListPop(&devList_)); in UsbdReleaseDevices() local
1078 if (port != nullptr) { in UsbdReleaseDevices()
1079 UsbdDispatcher::UsbdRelease(port); in UsbdReleaseDevices()
1080 OsalMemFree(port); in UsbdReleaseDevices()
1089 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in OpenDevice() local
1090 if (port == nullptr) { in OpenDevice()
1095 port->initFlag = true; in OpenDevice()
1096 if (port->ctrDevHandle == nullptr && port->ctrIface != nullptr) { in OpenDevice()
1099 port->ctrDevHandle = UsbOpenInterface(port->ctrIface); in OpenDevice()
1100 if (port->ctrDevHandle == nullptr) { in OpenDevice()
1110 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in CloseDevice() local
1111 if (port == nullptr) { in CloseDevice()
1115 if (!port->initFlag) { in CloseDevice()
1121 if (port->ctrDevHandle != nullptr && usbOpenCount_ == 0) { in CloseDevice()
1123 if (port->iface[interfaceId] != nullptr) { in CloseDevice()
1124 ReleaseInterfaceByPort(port, interfaceId); in CloseDevice()
1126 port->iface[interfaceId] = nullptr; in CloseDevice()
1128 RawUsbCloseCtlProcess(port->ctrDevHandle); in CloseDevice()
1129 ret = UsbCloseInterface(port->ctrDevHandle, true); in CloseDevice()
1134 port->ctrDevHandle = nullptr; in CloseDevice()
1135 port->initFlag = false; in CloseDevice()
1142 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in GetDeviceDescriptor() local
1143 if (port == nullptr) { in GetDeviceDescriptor()
1152 int32_t ret = UsbControlTransferEx(port, &controlParams, USB_CTRL_SET_TIMEOUT); in GetDeviceDescriptor()
1164 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in GetStringDescriptor() local
1165 if (port == nullptr) { in GetStringDescriptor()
1176 int32_t ret = UsbControlTransferEx(port, &controlParams, GET_STRING_SET_TIMEOUT); in GetStringDescriptor()
1189 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in GetConfigDescriptor() local
1190 if (port == nullptr) { in GetConfigDescriptor()
1200 int32_t ret = UsbControlTransferEx(port, &controlParams, USB_CTRL_SET_TIMEOUT); in GetConfigDescriptor()
1213 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in GetRawDescriptor() local
1214 if (port == nullptr || port->ctrDevHandle == nullptr) { in GetRawDescriptor()
1219 …UsbInterfaceHandleEntity *handle = reinterpret_cast<UsbInterfaceHandleEntity *>(port->ctrDevHandle… in GetRawDescriptor()
1231 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in GetFileDescriptor() local
1232 if (port == nullptr || port->ctrDevHandle == nullptr) { in GetFileDescriptor()
1237 …UsbInterfaceHandleEntity *handle = reinterpret_cast<UsbInterfaceHandleEntity *>(port->ctrDevHandle… in GetFileDescriptor()
1246 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in GetDeviceFileDescriptor() local
1247 if (port == nullptr || port->ctrDevHandle == nullptr) { in GetDeviceFileDescriptor()
1252 …UsbInterfaceHandleEntity *handle = reinterpret_cast<UsbInterfaceHandleEntity *>(port->ctrDevHandle… in GetDeviceFileDescriptor()
1261 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in SetConfig() local
1262 if (port == nullptr) { in SetConfig()
1266 if (!port->initFlag) { in SetConfig()
1276 int32_t ret = UsbControlTransferEx(port, &controlParams, USB_CTRL_SET_TIMEOUT); in SetConfig()
1289 ret = UsbControlTransferEx(port, &controlParams, USB_CTRL_SET_TIMEOUT); in SetConfig()
1297 ret = UsbControlTransferEx(port, &controlParams, USB_CTRL_SET_TIMEOUT); in SetConfig()
1305 ret = ReOpenDevice(port); in SetConfig()
1316 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in GetConfig() local
1317 if (port == nullptr) { in GetConfig()
1325 int32_t ret = UsbControlTransferEx(port, &controlParams, USB_CTRL_SET_TIMEOUT); in GetConfig()
1335 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in ClaimInterface() local
1336 if (port == nullptr) { in ClaimInterface()
1340 if (!port->initFlag) { in ClaimInterface()
1349 if (port->iface[interfaceId] == nullptr) { in ClaimInterface()
1351 port->iface[interfaceId] = in ClaimInterface()
1352 … UsbClaimInterface(port->service->session_, port->busNum, port->devAddr, interfaceId); in ClaimInterface()
1354 port->iface[interfaceId] = in ClaimInterface()
1355 … UsbClaimInterfaceUnforce(port->service->session_, port->busNum, port->devAddr, interfaceId); in ClaimInterface()
1357 if (port->iface[interfaceId] == nullptr) { in ClaimInterface()
1359 port->busNum, port->devAddr); in ClaimInterface()
1363 if (port->devHandle[interfaceId] == nullptr) { in ClaimInterface()
1364 port->devHandle[interfaceId] = UsbOpenInterface(port->iface[interfaceId]); in ClaimInterface()
1365 if (port->devHandle[interfaceId] == nullptr) { in ClaimInterface()
1375 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in ManageInterface() local
1376 if (port == nullptr) { in ManageInterface()
1385 port->iface[interfaceId] = in ManageInterface()
1386 … UsbManageInterface(port->service->session_, port->busNum, port->devAddr, interfaceId, disable); in ManageInterface()
1387 if (port->iface[interfaceId] == nullptr) { in ManageInterface()
1389 port->busNum, port->devAddr); in ManageInterface()
1397 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in ReleaseInterface() local
1398 if (port == nullptr) { in ReleaseInterface()
1404 if (port->devHandle[interfaceId] == nullptr || port->iface[interfaceId] == nullptr) { in ReleaseInterface()
1408 if (HdfSListCount(&port->reqSyncList) > 0) { in ReleaseInterface()
1409 UsbdRequestSyncReleaseList(port); in ReleaseInterface()
1412 if (HdfSListCount(&port->reqASyncList) > 0) { in ReleaseInterface()
1413 UsbdRequestASyncReleaseList(port); in ReleaseInterface()
1416 int32_t ret = UsbdBulkASyncListReleasePort(port); in ReleaseInterface()
1420 UsbCloseInterface(port->devHandle[interfaceId], false); in ReleaseInterface()
1421 port->devHandle[interfaceId] = nullptr; in ReleaseInterface()
1422 UsbReleaseInterface(port->iface[interfaceId]); in ReleaseInterface()
1423 port->iface[interfaceId] = nullptr; in ReleaseInterface()
1427 port->busNum, port->devAddr, interfaceId); in ReleaseInterface()
1434 int32_t UsbImpl::ReleaseInterfaceByPort(HostDevice *port, uint8_t interfaceId) in ReleaseInterfaceByPort() argument
1436 if (port == nullptr) { in ReleaseInterfaceByPort()
1440 if (!port->initFlag) { in ReleaseInterfaceByPort()
1446 if (port->devHandle[interfaceId] == nullptr || port->iface[interfaceId] == nullptr) { in ReleaseInterfaceByPort()
1450 if (HdfSListCount(&port->reqSyncList) > 0) { in ReleaseInterfaceByPort()
1451 UsbdRequestSyncReleaseList(port); in ReleaseInterfaceByPort()
1454 if (HdfSListCount(&port->reqASyncList) > 0) { in ReleaseInterfaceByPort()
1455 UsbdRequestASyncReleaseList(port); in ReleaseInterfaceByPort()
1458 int32_t ret = UsbdBulkASyncListReleasePort(port); in ReleaseInterfaceByPort()
1462 UsbCloseInterface(port->devHandle[interfaceId], false); in ReleaseInterfaceByPort()
1463 port->devHandle[interfaceId] = nullptr; in ReleaseInterfaceByPort()
1464 UsbReleaseInterface(port->iface[interfaceId]); in ReleaseInterfaceByPort()
1465 port->iface[interfaceId] = nullptr; in ReleaseInterfaceByPort()
1469 port->busNum, port->devAddr, interfaceId); in ReleaseInterfaceByPort()
1478 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in SetInterface() local
1479 if (port == nullptr) { in SetInterface()
1483 if (!port->initFlag) { in SetInterface()
1488 UsbInterfaceHandle *interfaceHandle = InterfaceIdToHandle(port, interfaceId); in SetInterface()
1491 port->busNum, port->devAddr, interfaceId); in SetInterface()
1495 int32_t ret = UsbSelectInterfaceSetting(interfaceHandle, altIndex, &port->iface[interfaceId]); in SetInterface()
1497 UsbdRequestSyncReleaseList(port); in SetInterface()
1498 UsbdRequestASyncReleaseList(port); in SetInterface()
1499 UsbdBulkASyncListReleasePort(port); in SetInterface()
1506 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in BulkTransferRead() local
1507 if (port == nullptr) { in BulkTransferRead()
1516 int32_t ret = UsbdFindRequestSyncAndCreat(port, pipe.intfId, pipe.endpointId, &requestSync); in BulkTransferRead()
1545 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in BulkTransferReadwithLength() local
1546 if (port == nullptr) { in BulkTransferReadwithLength()
1560 …int32_t ret = UsbdFindRequestSyncAndCreatwithLength(port, pipe.intfId, pipe.endpointId, length, &r… in BulkTransferReadwithLength()
1591 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in BulkTransferWrite() local
1592 if (port == nullptr) { in BulkTransferWrite()
1598 int32_t ret = UsbdFindRequestSyncAndCreat(port, pipe.intfId, pipe.endpointId, &requestSync); in BulkTransferWrite()
1608 ret = UsbdBulkWriteSyncBase(port, requestSync, data.data(), data.size(), timeout); in BulkTransferWrite()
1619 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in ControlTransferRead() local
1620 if (port == nullptr || port->ctrDevHandle == nullptr) { in ControlTransferRead()
1643 int32_t ret = UsbControlTransferEx(port, &controlParams, ctrl.timeout); in ControlTransferRead()
1661 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in ControlTransferWrite() local
1662 if (port == nullptr || port->ctrDevHandle == nullptr) { in ControlTransferWrite()
1681 int32_t ret = UsbControlTransferEx(port, &controlParams, ctrl.timeout); in ControlTransferWrite()
1696 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in ControlTransferReadwithLength() local
1697 if (port == nullptr || port->ctrDevHandle == nullptr) { in ControlTransferReadwithLength()
1721 int32_t ret = UsbControlTransferEx(port, &controlParams, ctrlParams.timeout); in ControlTransferReadwithLength()
1735 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in InterruptTransferRead() local
1736 if (port == nullptr) { in InterruptTransferRead()
1745 int32_t ret = UsbdFindRequestSyncAndCreat(port, pipe.intfId, pipe.endpointId, &requestSync); in InterruptTransferRead()
1769 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in InterruptTransferWrite() local
1770 if (port == nullptr) { in InterruptTransferWrite()
1776 int32_t ret = UsbdFindRequestSyncAndCreat(port, pipe.intfId, pipe.endpointId, &requestSync); in InterruptTransferWrite()
1785 ret = UsbdBulkWriteSyncBase(port, requestSync, data.data(), data.size(), timeout); in InterruptTransferWrite()
1791 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in IsoTransferRead() local
1792 if (port == nullptr) { in IsoTransferRead()
1801 int32_t ret = UsbdFindRequestSyncAndCreat(port, pipe.intfId, pipe.endpointId, &requestSync); in IsoTransferRead()
1827 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in IsoTransferWrite() local
1828 if (port == nullptr) { in IsoTransferWrite()
1834 int32_t ret = UsbdFindRequestSyncAndCreat(port, pipe.intfId, pipe.endpointId, &requestSync); in IsoTransferWrite()
1845 ret = UsbdBulkWriteSyncBase(port, requestSync, data.data(), data.size(), timeout); in IsoTransferWrite()
1852 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in RequestQueue() local
1853 if (port == nullptr) { in RequestQueue()
1858 UsbdRequestASync *reqAsync = UsbdFindRequestASync(port, pipe.intfId, pipe.endpointId); in RequestQueue()
1882 ret = FunRequestQueueFillAndSubmit(port, reqAsync, bufferAddr, sizeof(uint8_t) * buffer.size()); in RequestQueue()
1897 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in RequestWait() local
1898 if (port == nullptr) { in RequestWait()
1904 int32_t ret = GetRequestMsgFromQueue(port, &reqMsg); in RequestWait()
1915 OsalMutexLock(&port->requestLock); in RequestWait()
1916 HdfSListAdd(&port->requestQueue, &reqMsg->qNode); in RequestWait()
1917 OsalMutexUnlock(&port->requestLock); in RequestWait()
1924 ret = GetRequestMsgData(port, reqMsg, timeout, &buf, &length); in RequestWait()
1940 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in RequestCancel() local
1941 if (port == nullptr) { in RequestCancel()
1947 while (GetRequestMsgFromQueue(port, &reqMsg) == HDF_SUCCESS) { in RequestCancel()
2132 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in RegBulkCallback() local
2133 if (port == nullptr) { in RegBulkCallback()
2138 UsbdBulkASyncList *list = UsbdBulkASyncListInit(port, pipe.intfId, pipe.endpointId); in RegBulkCallback()
2154 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in UnRegBulkCallback() local
2155 if (port == nullptr) { in UnRegBulkCallback()
2160 UsbdBulkASyncList *list = UsbdBulkASyncListFind(port, pipe.intfId, pipe.endpointId); in UnRegBulkCallback()
2171 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in BulkRead() local
2172 if (port == nullptr) { in BulkRead()
2177 UsbdBulkASyncList *list = UsbdBulkASyncListInit(port, pipe.intfId, pipe.endpointId); in BulkRead()
2204 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in BulkWrite() local
2205 if (port == nullptr) { in BulkWrite()
2210 UsbdBulkASyncList *list = UsbdBulkASyncListInit(port, pipe.intfId, pipe.endpointId); in BulkWrite()
2237 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in BulkCancel() local
2238 if (port == nullptr) { in BulkCancel()
2243 UsbdBulkASyncList *list = UsbdBulkASyncListFind(port, pipe.intfId, pipe.endpointId); in BulkCancel()
2259 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in GetInterfaceActiveStatus() local
2260 if (port == nullptr) { in GetInterfaceActiveStatus()
2269 …unactivated = UsbGetInterfaceActiveStatus(port->service->session_, port->busNum, port->devAddr, in… in GetInterfaceActiveStatus()
2275 HostDevice *port = FindDevFromService(dev.busNum, dev.devAddr); in GetDeviceSpeed() local
2276 if (port == nullptr) { in GetDeviceSpeed()
2280 …UsbInterfaceHandleEntity *handle = reinterpret_cast<UsbInterfaceHandleEntity *>(port->ctrDevHandle… in GetDeviceSpeed()