/drivers/peripheral/usb/test/unittest/device_sdk/ |
H A D | usb_device_sdk_io_test.cpp | 307 struct UsbFnRequest *notifyReq = nullptr; in HWTEST_F() local 310 notifyReq = in HWTEST_F() 312 EXPECT_TRUE(notifyReq != nullptr); in HWTEST_F() 313 ret = UsbFnGetRequestStatus(notifyReq, &status); in HWTEST_F() 316 ret = UsbFnFreeRequest(notifyReq); in HWTEST_F() 324 struct UsbFnRequest *notifyReq = nullptr; in HWTEST_F() local 327 notifyReq = UsbFnAllocCtrlRequest(g_acmDevice->ctrlIface.handle, sizeof(struct UsbCdcNotification)); in HWTEST_F() 328 EXPECT_TRUE(notifyReq != nullptr); in HWTEST_F() 329 ret = UsbFnGetRequestStatus(notifyReq, &status); in HWTEST_F() 332 ret = UsbFnFreeRequest(notifyReq); in HWTEST_F() 339 struct UsbFnRequest *notifyReq = nullptr; HWTEST_F() local 355 struct UsbFnRequest *notifyReq = nullptr; HWTEST_F() local 392 struct UsbFnRequest *notifyReq = nullptr; HWTEST_F() local [all...] |
H A D | usb_device_cdcacm_test.cpp | 452 req = acm->notifyReq; in SendNotifyRequest() 456 acm->notifyReq = nullptr; in SendNotifyRequest() 481 if (acm->notifyReq) { in NotifySerialState() 504 acm->notifyReq = req; in NotifyComplete() 514 acmDevice->notifyReq = in AllocNotifyRequest() 516 if (acmDevice->notifyReq == nullptr) { in AllocNotifyRequest() 519 acmDevice->notifyReq->complete = NotifyComplete; in AllocNotifyRequest() 520 acmDevice->notifyReq->context = acmDevice; in AllocNotifyRequest() 743 if (acmDevice->notifyReq == nullptr) { in FreeNotifyRequest() 744 HDF_LOGE("%{public}s: notifyReq i in FreeNotifyRequest() [all...] |
H A D | usb_device_cdcacm_test.h | 102 struct UsbFnRequest *notifyReq; member
|
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/ |
H A D | usb_device_lite_cdcacm_test.c | 439 req = acm->notifyReq; in SendNotifyRequest() 443 acm->notifyReq = NULL; in SendNotifyRequest() 471 if (acm->notifyReq) { in NotifySerialState() 494 acm->notifyReq = req; in NotifyComplete() 504 acmDevice->notifyReq = in AllocNotifyRequest() 506 if (acmDevice->notifyReq == NULL) { in AllocNotifyRequest() 509 acmDevice->notifyReq->complete = NotifyComplete; in AllocNotifyRequest() 510 acmDevice->notifyReq->context = acmDevice; in AllocNotifyRequest() 736 if (acmDevice->notifyReq == NULL) { in FreeNotifyRequest() 737 HDF_LOGE("%s: notifyReq i in FreeNotifyRequest() [all...] |
H A D | usb_device_lite_sdk_if_test.c | 1298 struct UsbFnRequest *notifyReq = in UsbFnDviceTestGetRequestStatus() local 1300 if (notifyReq == NULL) { in UsbFnDviceTestGetRequestStatus() 1306 int32_t ret = UsbFnGetRequestStatus(notifyReq, &status); in UsbFnDviceTestGetRequestStatus() 1315 ret = UsbFnFreeRequest(notifyReq); in UsbFnDviceTestGetRequestStatus() 1330 struct UsbFnRequest *notifyReq = in UsbFnDviceTestGetRequestStatus002() local 1332 if (notifyReq == NULL) { in UsbFnDviceTestGetRequestStatus002() 1338 int32_t ret = UsbFnGetRequestStatus(notifyReq, &status); in UsbFnDviceTestGetRequestStatus002() 1348 ret = UsbFnFreeRequest(notifyReq); in UsbFnDviceTestGetRequestStatus002() 1390 struct UsbFnRequest *notifyReq = UsbFnAllocRequest( in UsbFnDviceTestGetRequestStatus004() local 1392 if (notifyReq in UsbFnDviceTestGetRequestStatus004() 1423 struct UsbFnRequest *notifyReq = NULL; UsbFnDviceTestGetRequestStatus005() local 1435 struct UsbFnRequest *notifyReq = NULL; UsbFnDviceTestGetRequestStatus006() local [all...] |
/drivers/peripheral/usb/gadget/function/ecm/ |
H A D | cdcecm.c | 433 ecm->notifyReq = NULL; in UsbFnNotifyRequest() 436 ecm->notifyReq = req; in UsbFnNotifyRequest() 443 struct UsbFnRequest *req = ecm->notifyReq; in EcmDoNotify() 500 ecm->notifyReq = req; in EcmNotifyComplete() 657 ecm->notifyReq = in EcmAllocNotifyRequest() 659 if (ecm->notifyReq == NULL) { in EcmAllocNotifyRequest() 663 ecm->notifyReq->complete = EcmNotifyComplete; in EcmAllocNotifyRequest() 664 ecm->notifyReq->context = ecm; in EcmAllocNotifyRequest() 803 ret = UsbFnFreeRequest(ecm->notifyReq); in EcmFreeNotifyRequest() 808 ecm->notifyReq in EcmFreeNotifyRequest() [all...] |
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/ |
H A D | usb_raw_test.c | 246 rawAcm->notifyReq = UsbRawAllocRequest(NULL, 0, rawAcm->notifyEp.maxPacketSize); in CheckRawSdkIfAllocRequest007() 247 if (rawAcm->notifyReq) { in CheckRawSdkIfAllocRequest007() 258 rawAcm->notifyReq = UsbRawAllocRequest(rawAcm->devHandle, 0, rawAcm->notifyEp.maxPacketSize); in CheckRawSdkIfAllocRequest008() 259 if (rawAcm->notifyReq == NULL) { in CheckRawSdkIfAllocRequest008() 263 ((struct UsbHostRequest *)(rawAcm->notifyReq))->devHandle = (struct UsbDeviceHandle *)rawAcm->devHandle; in CheckRawSdkIfAllocRequest008() 476 ret = UsbRawFreeRequest(rawAcm->notifyReq); in CheckRawSdkIfFreeRequest004() 481 rawAcm->notifyReq = NULL; in CheckRawSdkIfFreeRequest004() 534 rawAcm->notifyReq = UsbRawAllocRequest(rawAcm->devHandle, 0, rawAcm->notifyEp.maxPacketSize); in CheckRawSdkIfAllocRequest009() 535 if (rawAcm->notifyReq == NULL) { in CheckRawSdkIfAllocRequest009() 955 ret = UsbRawFillInterruptRequest(rawAcm->notifyReq, rawAc in CheckRawSdkIfFillInterruptRequest001() [all...] |
H A D | usb_test.c | 925 g_acm->notifyReq = UsbAllocRequest(NULL, 0, g_acm->intSize); in CheckHostSdkIfAllocRequest005() 926 if (g_acm->notifyReq == NULL) { in CheckHostSdkIfAllocRequest005() 936 g_acm->notifyReq = UsbAllocRequest(g_acm->int_devHandle, 0, g_acm->intSize); in CheckHostSdkIfAllocRequest006() 937 if (g_acm->notifyReq == NULL) { in CheckHostSdkIfAllocRequest006() 946 int32_t ret = UsbFreeRequest(g_acm->notifyReq); in CheckHostSdkIfFreeRequest003() 951 g_acm->notifyReq = NULL; in CheckHostSdkIfFreeRequest003() 1195 g_acm->notifyReq = UsbAllocRequest(g_acm->int_devHandle, 0, g_acm->intSize); in CheckHostSdkIfAllocRequest009() 1196 if (g_acm->notifyReq == NULL) { in CheckHostSdkIfAllocRequest009() 1279 int32_t ret = UsbFillRequest(g_acm->notifyReq, g_acm->int_devHandle, &intParmas); in CheckHostSdkIfFillRequest003() 1351 int32_t ret = UsbSubmitRequestSync(g_acm->notifyReq); in CheckHostSdkIfSubmitRequestSync004() [all...] |
/drivers/peripheral/usb/test/unittest/host_sdk/ |
H A D | usb_host_sdk_if_test_io.cpp | 203 g_acm->notifyReq = UsbAllocRequest(g_acm->int_devHandle, 0, g_acm->intSize); in AcmGetRequest() 204 EXPECT_NE(nullptr, g_acm->notifyReq); in AcmGetRequest() 286 ret = UsbFillRequest(g_acm->notifyReq, g_acm->int_devHandle, &intParmas); in AcmFillIntRequest() 409 ret = UsbSubmitRequestSync(g_acm->notifyReq); in HWTEST_F() 423 ret = UsbSubmitRequestSync(g_acm->notifyReq); in HWTEST_F() 502 ret = UsbSubmitRequestAsync(g_acm->notifyReq); in HWTEST_F() 516 ret = UsbCancelRequest(g_acm->notifyReq); in HWTEST_F()
|
H A D | usb_raw_sdk_if_test_io.cpp | 336 g_acm->notifyReq = UsbRawAllocRequest(g_acm->devHandle, 0, g_acm->notifyEp->maxPacketSize); in AcmRawAllocRequest() 337 EXPECT_NE(nullptr, g_acm->notifyReq); in AcmRawAllocRequest() 411 ret = UsbRawFillInterruptRequest(g_acm->notifyReq, g_acm->devHandle, &fillRequestData); in AcmRawFillIntReq() 791 reqData.data = ((UsbRawRequest *)g_acm->notifyReq)->buffer; in HWTEST_F() 794 ret = UsbRawSendInterruptRequest(g_acm->notifyReq, g_acm->devHandle, &reqData); in HWTEST_F() 813 reqData.data = ((UsbRawRequest *)g_acm->notifyReq)->buffer; in HWTEST_F() 835 reqData.data = ((UsbRawRequest *)g_acm->notifyReq)->buffer; in HWTEST_F() 838 ret = UsbRawSendInterruptRequest(g_acm->notifyReq, NULL, &reqData); in HWTEST_F() 852 ret = UsbRawSendInterruptRequest(g_acm->notifyReq, g_acm->devHandle, NULL); in HWTEST_F() 941 ret = UsbRawFillInterruptRequest(g_acm->notifyReq, g_ac in HWTEST_F() [all...] |
H A D | usb_host_sdk_if_test.h | 93 struct UsbRequest *notifyReq; member
|
H A D | usb_raw_sdk_if_test.cpp | 1251 g_acm->notifyReq = UsbRawAllocRequest(NULL, 0, g_acm->notifyEp->maxPacketSize); in HWTEST_F() 1252 EXPECT_EQ(nullptr, g_acm->notifyReq); in HWTEST_F() 1263 g_acm->notifyReq = UsbRawAllocRequest(g_acm->devHandle, 0, g_acm->notifyEp->maxPacketSize); in HWTEST_F() 1264 struct UsbHostRequest *tmp = reinterpret_cast<struct UsbHostRequest *>(g_acm->notifyReq); in HWTEST_F() 1266 EXPECT_NE(nullptr, g_acm->notifyReq); in HWTEST_F() 1327 ret = UsbRawFreeRequest(g_acm->notifyReq); in HWTEST_F() 1369 g_acm->notifyReq = UsbRawAllocRequest(g_acm->devHandle, 0, g_acm->notifyEp->maxPacketSize); in HWTEST_F() 1370 EXPECT_NE(nullptr, g_acm->notifyReq); in HWTEST_F() 1717 ret = UsbRawFillInterruptRequest(g_acm->notifyReq, g_acm->devHandle, &fillRequestData); in HWTEST_F() 1763 ret = UsbRawFillInterruptRequest(g_acm->notifyReq, NUL in HWTEST_F() [all...] |
H A D | usb_raw_sdk_if_test.h | 96 struct UsbRawRequest *notifyReq; member
|
/drivers/peripheral/usb/gadget/function/include/ |
H A D | cdcecm.h | 89 struct UsbFnRequest *notifyReq; member
|
H A D | cdcacm.h | 102 struct UsbFnRequest *notifyReq; member
|
/drivers/peripheral/usb/sample/host/include/ |
H A D | usbhost_sdkapi_speed.h | 108 struct UsbRequest *notifyReq; member
|
H A D | usbhost_sdkraw_speed.h | 110 struct UsbRawRequest *notifyReq; member
|
/drivers/peripheral/usb/sample/host/liteos_test/include/ |
H A D | usbhost_sdkapi_speed.h | 105 struct UsbRequest *notifyReq; member
|
H A D | usbhost_nosdk_speed.h | 102 struct UsbRequest *notifyReq; member
|
H A D | usbhost_sdkraw_speed.h | 105 struct UsbRawRequest *notifyReq; member
|
/drivers/peripheral/usb/serial/include/ |
H A D | usb_serial_rawapi.h | 120 struct UsbRawRequest *notifyReq; member
|
H A D | usb_serial.h | 112 struct UsbRequest *notifyReq; member
|
/drivers/peripheral/usb/net/include/ |
H A D | cdc_ether.h | 97 struct UsbRequest *notifyReq; member
|
/drivers/peripheral/usb/net/src/ |
H A D | cdc_ether.c | 889 ecm->notifyReq = UsbAllocRequest(InterfaceIdToHandle(ecm, ecm->intPipe->interfaceId), 0, ecm->intSize); in EcmAllocIntReq() 890 if (!ecm->notifyReq) { in EcmAllocIntReq() 891 HDF_LOGE("notifyReq request fail"); in EcmAllocIntReq() 904 ret = UsbFillRequest(ecm->notifyReq, InterfaceIdToHandle(ecm, ecm->intPipe->interfaceId), &intParmas); in EcmAllocIntReq() 957 if ((ecm == NULL) || (ecm->notifyReq == NULL)) { in UsbFreeNotifyReqeust() 958 HDF_LOGE("%{public}s: ecm or notifyReq is NULL", __func__); in UsbFreeNotifyReqeust() 961 ret = UsbCancelRequest(ecm->notifyReq); in UsbFreeNotifyReqeust() 965 ret = UsbFreeRequest(ecm->notifyReq); in UsbFreeNotifyReqeust() 967 ecm->notifyReq = NULL; in UsbFreeNotifyReqeust() 1066 ret = UsbSubmitRequestAsync(ecm->notifyReq); in EcmGetPipesAndRequest() [all...] |
/drivers/peripheral/usb/gadget/function/acm/ |
H A D | cdcacm.c | 1030 acm->notifyReq = req; in AcmNotifyComplete() 1040 acm->notifyReq = in AcmAllocNotifyRequest() 1042 if (acm->notifyReq == NULL) { in AcmAllocNotifyRequest() 1046 acm->notifyReq->complete = AcmNotifyComplete; in AcmAllocNotifyRequest() 1047 acm->notifyReq->context = acm; in AcmAllocNotifyRequest() 1057 ret = UsbFnFreeRequest(acm->notifyReq); in AcmFreeNotifyRequest() 1062 acm->notifyReq = NULL; in AcmFreeNotifyRequest() 1241 struct UsbFnRequest *req = acm->notifyReq; in AcmSendNotifyRequest() 1250 acm->notifyReq = NULL; in AcmSendNotifyRequest() 1269 acm->notifyReq in AcmSendNotifyRequest() [all...] |