Lines Matching refs:devHandle
54 if (acm->devHandle == NULL) { in UsbIoThread()
60 ret = UsbRawHandleRequests(acm->devHandle); in UsbIoThread()
144 static int32_t UsbGetConfigDescriptor(UsbRawHandle *devHandle, struct UsbRawConfigDescriptor **conf… in UsbGetConfigDescriptor() argument
150 if (devHandle == NULL) { in UsbGetConfigDescriptor()
155 ret = UsbRawGetConfiguration(devHandle, &activeConfig); in UsbGetConfigDescriptor()
161 dev = UsbRawGetDevice(devHandle); in UsbGetConfigDescriptor()
248 int32_t ret = UsbRawClaimInterface(acm->devHandle, interfaceIndex); in UsbParseConfigDescriptor()
262 if ((acm == NULL) || (acm->devHandle == NULL)) { in UsbReleaseInterfaces()
267 (void)UsbRawReleaseInterface(acm->devHandle, acm->ctrlIface); in UsbReleaseInterfaces()
268 (void)UsbRawReleaseInterface(acm->devHandle, acm->dataIface); in UsbReleaseInterfaces()
290 snd->request = UsbRawAllocRequest(acm->devHandle, 0, acm->dataOutEp->maxPacketSize); in UsbAllocWriteRequests()
375 if ((acm == NULL) || (wb == NULL) || (acm->dataOutEp == NULL) || (acm->devHandle == NULL) || in AcmStartWb()
390 ret = UsbRawFillBulkRequest(wb->request, acm->devHandle, &reqData); in AcmStartWb()
471 acm->ctrlReq = UsbRawAllocRequest(acm->devHandle, 0, USB_CTRL_REQ_SIZE); in SerialSendCtrlMsg()
486 ret = UsbRawSendControlRequest(acm->ctrlReq, acm->devHandle, &ctrlReq); in SerialSendCtrlMsg()
784 ret = UsbRawSendBulkRequest(wb->request, acm->devHandle, &requestData); in AcmStartWbSync()
858 g_syncRequest = UsbRawAllocRequest(acm->devHandle, 0, acm->dataInEp->maxPacketSize); in UsbSerialReadSync()
872 ret = UsbRawSendBulkRequest(g_syncRequest, acm->devHandle, &requestData); in UsbSerialReadSync()
1159 acm->readReq[i] = UsbRawAllocRequest(acm->devHandle, 0, size); in UsbAllocReadRequests()
1172 int32_t ret = UsbRawFillBulkRequest(acm->readReq[i], acm->devHandle, &reqData); in UsbAllocReadRequests()
1209 acm->notifyReq = UsbRawAllocRequest(acm->devHandle, 0, size); in UsbAllocNotifyRequest()
1222 ret = UsbRawFillInterruptRequest(acm->notifyReq, acm->devHandle, &fillRequestData); in UsbAllocNotifyRequest()
1305 UsbRawHandle *devHandle = NULL; in UsbSerialInit() local
1317 devHandle = UsbRawOpenDevice(session, acm->busNum, acm->devAddr); in UsbSerialInit()
1318 if (devHandle == NULL) { in UsbSerialInit()
1323 acm->devHandle = devHandle; in UsbSerialInit()
1324 ret = UsbGetConfigDescriptor(devHandle, &acm->config); in UsbSerialInit()
1344 (void)UsbRawCloseDevice(devHandle); in UsbSerialInit()
1368 (void)UsbRawCloseDevice(acm->devHandle); in UsbSerialRelease()