Home
last modified time | relevance | path

Searched refs:readReq (Results 1 – 21 of 21) sorted by relevance

/drivers/peripheral/usb/test/unittest/host_sdk/
Dusb_host_sdk_if_test_io.cpp188 g_acm->readReq[i] = UsbAllocRequest(g_acm->data_devHandle, 0, g_acm->readSize); in AcmGetRequest()
189 EXPECT_NE(nullptr, g_acm->readReq[i]); in AcmGetRequest()
228 ret = UsbFillRequest(g_acm->readReq[i], g_acm->data_devHandle, &readParmas); in AcmFillReadRequest()
372 ret = UsbSubmitRequestSync(g_acm->readReq[i]);
439 ret = UsbSubmitRequestAsync(g_acm->readReq[i]);
455 ret = UsbCancelRequest(g_acm->readReq[i]);
530 ret = UsbSubmitRequestAsync(g_acm->readReq[0]);
545 ret = UsbSubmitRequestAsync(g_acm->readReq[0]);
Dusb_raw_sdk_if_test_io.cpp329 g_acm->readReq[i] = UsbRawAllocRequest(g_acm->devHandle, 0, g_acm->dataInEp->maxPacketSize); in AcmRawAllocRequest()
330 EXPECT_NE(nullptr, g_acm->readReq[i]); in AcmRawAllocRequest()
392 ret = UsbRawFillBulkRequest(g_acm->readReq[i], g_acm->devHandle, &reqData); in AcmRawFillReadReq()
691 reqData.data = ((UsbRawRequest *)g_acm->readReq[i])->buffer;
697 ret = UsbRawSendBulkRequest(g_acm->readReq[i], g_acm->devHandle, &reqData);
719 reqData.data = ((UsbRawRequest *)g_acm->readReq[i])->buffer;
747 reqData.data = ((UsbRawRequest *)g_acm->readReq[i])->buffer;
753 ret = UsbRawSendBulkRequest(g_acm->readReq[i], NULL, &reqData);
771 ret = UsbRawSendBulkRequest(g_acm->readReq[i], g_acm->devHandle, NULL);
917 ret = UsbRawFillBulkRequest(g_acm->readReq[i], g_acm->devHandle, &reqData);
[all …]
Dusb_host_sdk_if_test.h94 struct UsbRequest *readReq[ACM_NR]; member
Dusb_raw_sdk_if_test.cpp1195 g_acm->readReq[i] = UsbRawAllocRequest(NULL, 0, g_acm->dataInEp->maxPacketSize);
1196 EXPECT_EQ(nullptr, g_acm->readReq[i]);
1211 g_acm->readReq[i] = UsbRawAllocRequest(g_acm->devHandle, 0, g_acm->dataInEp->maxPacketSize);
1212 …((struct UsbHostRequest *)(g_acm->readReq[i]))->devHandle = (struct UsbDeviceHandle *)g_acm->devHa…
1213 EXPECT_NE(nullptr, g_acm->readReq[i]);
1298 ret = UsbRawFreeRequest(g_acm->readReq[i]);
1362 g_acm->readReq[i] = UsbRawAllocRequest(g_acm->devHandle, 0, g_acm->dataInEp->maxPacketSize);
1363 EXPECT_NE(nullptr, g_acm->readReq[i]);
1693 ret = UsbRawFillBulkRequest(g_acm->readReq[i], g_acm->devHandle, &reqData);
2065 ret = UsbRawFillBulkRequest(g_acm->readReq[i], g_acm->devHandle, &reqData);
Dusb_raw_sdk_if_test.h97 struct UsbRawRequest *readReq[ACM_NR]; member
Dusb_host_sdk_if_test.cpp1076 g_acm->readReq[i] = UsbAllocRequest(NULL, 0, g_acm->readSize);
1077 EXPECT_EQ(nullptr, g_acm->readReq[i]);
1094 g_acm->readReq[i] = UsbAllocRequest(g_acm->data_devHandle, 0, g_acm->readSize);
1095 EXPECT_NE(nullptr, g_acm->readReq[i]);
1111 ret = UsbFreeRequest(g_acm->readReq[i]);
1283 g_acm->readReq[i] = UsbAllocRequest(g_acm->data_devHandle, 0, g_acm->readSize);
1284 EXPECT_NE(nullptr, g_acm->readReq[i]);
1337 ret = UsbFillRequest(g_acm->readReq[i], g_acm->data_devHandle, &readParmas);
1467 ret = UsbFillRequest(g_acm->readReq[i], g_acm->data_devHandle, &readParmas);
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/
Dusb_raw_test.c191 rawAcm->readReq[i] = UsbRawAllocRequest(NULL, 0, rawAcm->dataInEp.maxPacketSize); in CheckRawSdkIfAllocRequest003()
192 if (rawAcm->readReq[i]) { in CheckRawSdkIfAllocRequest003()
207 … rawAcm->readReq[i] = UsbRawAllocRequest(rawAcm->devHandle, 0, rawAcm->dataInEp.maxPacketSize); in CheckRawSdkIfAllocRequest004()
208 if (rawAcm->readReq[i] == NULL) { in CheckRawSdkIfAllocRequest004()
212 …((struct UsbHostRequest *)(rawAcm->readReq[i]))->devHandle = (struct UsbDeviceHandle *)rawAcm->dev… in CheckRawSdkIfAllocRequest004()
449 int32_t ret = UsbRawFreeRequest(rawAcm->readReq[i]); in CheckRawSdkIfFreeRequest002()
454 rawAcm->readReq[i] = NULL; in CheckRawSdkIfFreeRequest002()
521 … rawAcm->readReq[i] = UsbRawAllocRequest(rawAcm->devHandle, 0, rawAcm->dataInEp.maxPacketSize); in CheckRawSdkIfAllocRequest009()
522 if (rawAcm->readReq[i] == NULL) { in CheckRawSdkIfAllocRequest009()
933 int32_t ret = UsbRawFillBulkRequest(rawAcm->readReq[0], rawAcm->devHandle, &reqData); in CheckRawSdkIfFillBulkRequest002()
[all …]
Dusb_test.c833 g_acm->readReq[i] = UsbAllocRequest(NULL, 0, g_acm->readSize); in CheckHostSdkIfAllocRequest001()
834 if (g_acm->readReq[i] == NULL) { in CheckHostSdkIfAllocRequest001()
847 g_acm->readReq[i] = UsbAllocRequest(g_acm->data_devHandle, 0, g_acm->readSize); in CheckHostSdkIfAllocRequest002()
848 if (g_acm->readReq[i] == NULL) { in CheckHostSdkIfAllocRequest002()
859 int32_t ret = UsbFreeRequest(g_acm->readReq[i]); in CheckHostSdkIfFreeRequest001()
864 g_acm->readReq[i] = NULL; in CheckHostSdkIfFreeRequest001()
1173 g_acm->readReq[i] = UsbAllocRequest(g_acm->data_devHandle, 0, g_acm->readSize); in CheckHostSdkIfAllocRequest009()
1174 if (g_acm->readReq[i] == NULL) { in CheckHostSdkIfAllocRequest009()
1223 int32_t ret = UsbFillRequest(g_acm->readReq[0], g_acm->data_devHandle, &readParmas); in CheckHostSdkIfFillRequest001()
1321 int32_t ret = UsbSubmitRequestSync(g_acm->readReq[0]); in CheckHostSdkIfSubmitRequestSync001()
[all …]
/drivers/peripheral/usb/sample/host/liteos_test/include/
Dusbhost_sdkraw_speed.h106 struct UsbRawRequest *readReq[ACM_NR]; member
Dusbhost_sdkapi_speed.h106 struct UsbRequest *readReq[ACM_NR]; member
Dusbhost_nosdk_speed.h103 struct UsbRequest *readReq[ACM_NR]; member
/drivers/peripheral/usb/sample/host/include/
Dusbhost_sdkraw_speed.h111 struct UsbRawRequest *readReq[ACM_NR]; member
Dusbhost_sdkapi_speed.h109 struct UsbRequest *readReq[ACM_NR]; member
/drivers/peripheral/usb/net/include/
Dcdc_ether.h98 struct UsbRequest *readReq[ECM_NR]; member
/drivers/peripheral/usb/serial/include/
Dusb_serial_rawapi.h121 struct UsbRawRequest *readReq[ACM_NR]; member
Dusb_serial.h113 struct UsbRequest *readReq[ACM_NR]; member
/drivers/peripheral/usb/serial/src/
Dusb_serial_rawapi.c545 if (acm->readReq[i]->status != USB_REQUEST_COMPLETED) { in UsbSerialRead()
546 HDF_LOGE("%s:%d i=%d status=%d!", __func__, __LINE__, i, acm->readReq[i]->status); in UsbSerialRead()
669 ret = UsbRawSubmitRequest(acm->readReq[i]); in SerialOpen()
1154 acm->readReq[i] = UsbRawAllocRequest(acm->devHandle, 0, size); in UsbAllocReadRequests()
1155 if (!acm->readReq[i]) { in UsbAllocReadRequests()
1167 int32_t ret = UsbRawFillBulkRequest(acm->readReq[i], acm->devHandle, &reqData); in UsbAllocReadRequests()
1187 if (acm->readReq[i]) { in UsbFreeReadRequests()
1188 UsbRawFreeRequest(acm->readReq[i]); in UsbFreeReadRequests()
1189 acm->readReq[i] = NULL; in UsbFreeReadRequests()
Dusb_serial.c570 if (acm->readReq[i]->compInfo.status != USB_REQUEST_COMPLETED) { in UsbSerialRead()
571 … HDF_LOGE("%s:%d i=%d status=%d!", __func__, __LINE__, i, acm->readReq[i]->compInfo.status); in UsbSerialRead()
906 ret = UsbSubmitRequestAsync(acm->readReq[i]); in SerialOpen()
1397 int32_t ret = UsbCancelRequest(acm->readReq[i]); in AcmFreeReadRequests()
1403 if (acm->readReq[i]) { in AcmFreeReadRequests()
1404 UsbFreeRequest(acm->readReq[i]); in AcmFreeReadRequests()
1405 acm->readReq[i] = NULL; in AcmFreeReadRequests()
1435 …acm->readReq[i] = UsbAllocRequest(InterfaceIdToHandle(acm, acm->dataInPipe->interfaceId), 0, acm->… in AcmAllocReadRequests()
1436 if (!acm->readReq[i]) { in AcmAllocReadRequests()
1450 …ret = UsbFillRequest(acm->readReq[i], InterfaceIdToHandle(acm, acm->dataInPipe->interfaceId), &rea… in AcmAllocReadRequests()
/drivers/peripheral/usb/net/src/
Dcdc_ether.c280 if (ecm->readReq[i]->compInfo.status != USB_REQUEST_COMPLETED) { in EcmRead()
281 … HDF_LOGE("%s:%d i=%d status=%d!", __func__, __LINE__, i, ecm->readReq[i]->compInfo.status); in EcmRead()
352 ret = UsbSubmitRequestAsync(ecm->readReq[i]); in EcmOpen()
378 ret = UsbCancelRequest(ecm->readReq[i]); in EcmClostRelease()
899 …ecm->readReq[i] = UsbAllocRequest(InterfaceIdToHandle(ecm, ecm->dataInPipe->interfaceId), 0, ecm->… in EcmAllocReadReq()
900 if (!ecm->readReq[i]) { in EcmAllocReadReq()
915 …UsbFillRequest(ecm->readReq[i], InterfaceIdToHandle(ecm, ecm->dataInPipe->interfaceId), &readParma… in EcmAllocReadReq()
927 ret = UsbFreeRequest(ecm->readReq[i]); in EcmFreeReadReq()
/drivers/hdf_core/framework/test/unittest/model/usb/host/include/
Dusb_test.h177 struct UsbRequest *readReq[ACM_NR]; member
Dusb_raw_test.h231 struct UsbRawRequest *readReq[ACM_NR]; member