/drivers/peripheral/usb/test/unittest/device_sdk/ |
D | usb_device_sdk_io_test.cpp | 307 struct UsbFnRequest *notifyReq = nullptr; variable 310 notifyReq = 312 EXPECT_TRUE(notifyReq != nullptr); 313 ret = UsbFnGetRequestStatus(notifyReq, &status); 316 ret = UsbFnFreeRequest(notifyReq); 324 struct UsbFnRequest *notifyReq = nullptr; variable 327 …notifyReq = UsbFnAllocCtrlRequest(g_acmDevice->ctrlIface.handle, sizeof(struct UsbCdcNotification)… 328 EXPECT_TRUE(notifyReq != nullptr); 329 ret = UsbFnGetRequestStatus(notifyReq, &status); 332 ret = UsbFnFreeRequest(notifyReq); [all …]
|
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() 747 acmDevice->notifyReq->complete = nullptr; in FreeNotifyRequest() [all …]
|
D | usb_device_cdcacm_test.h | 102 struct UsbFnRequest *notifyReq; member
|
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/ |
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() 740 acmDevice->notifyReq->complete = NULL; in FreeNotifyRequest() [all …]
|
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 == NULL) { in UsbFnDviceTestGetRequestStatus004() [all …]
|
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/ |
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->devH… 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, rawAcm->devHandle, &fillRequestData); in CheckRawSdkIfFillInterruptRequest001() [all …]
|
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/ |
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); 423 ret = UsbSubmitRequestSync(g_acm->notifyReq); 502 ret = UsbSubmitRequestAsync(g_acm->notifyReq); 516 ret = UsbCancelRequest(g_acm->notifyReq);
|
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; 794 ret = UsbRawSendInterruptRequest(g_acm->notifyReq, g_acm->devHandle, &reqData); 813 reqData.data = ((UsbRawRequest *)g_acm->notifyReq)->buffer; 835 reqData.data = ((UsbRawRequest *)g_acm->notifyReq)->buffer; 838 ret = UsbRawSendInterruptRequest(g_acm->notifyReq, NULL, &reqData); 852 ret = UsbRawSendInterruptRequest(g_acm->notifyReq, g_acm->devHandle, NULL); 941 ret = UsbRawFillInterruptRequest(g_acm->notifyReq, g_acm->devHandle, &fillRequestData); [all …]
|
D | usb_host_sdk_if_test.h | 93 struct UsbRequest *notifyReq; member
|
D | usb_raw_sdk_if_test.cpp | 1251 g_acm->notifyReq = UsbRawAllocRequest(NULL, 0, g_acm->notifyEp->maxPacketSize); 1252 EXPECT_EQ(nullptr, g_acm->notifyReq); 1263 g_acm->notifyReq = UsbRawAllocRequest(g_acm->devHandle, 0, g_acm->notifyEp->maxPacketSize); 1264 struct UsbHostRequest *tmp = reinterpret_cast<struct UsbHostRequest *>(g_acm->notifyReq); 1266 EXPECT_NE(nullptr, g_acm->notifyReq); 1327 ret = UsbRawFreeRequest(g_acm->notifyReq); 1369 g_acm->notifyReq = UsbRawAllocRequest(g_acm->devHandle, 0, g_acm->notifyEp->maxPacketSize); 1370 EXPECT_NE(nullptr, g_acm->notifyReq); 1717 ret = UsbRawFillInterruptRequest(g_acm->notifyReq, g_acm->devHandle, &fillRequestData); 1763 ret = UsbRawFillInterruptRequest(g_acm->notifyReq, NULL, &fillRequestData); [all …]
|
D | usb_raw_sdk_if_test.h | 96 struct UsbRawRequest *notifyReq; member
|
/drivers/peripheral/usb/gadget/function/ecm/ |
D | cdcecm.c | 428 struct UsbFnRequest *req = ecm->notifyReq; in EcmDoNotify() 480 ecm->notifyReq = NULL; in EcmDoNotify() 483 ecm->notifyReq = req; in EcmDoNotify() 492 ecm->notifyReq = req; in EcmNotifyComplete() 647 ecm->notifyReq = in EcmAllocNotifyRequest() 649 if (ecm->notifyReq == NULL) { in EcmAllocNotifyRequest() 653 ecm->notifyReq->complete = EcmNotifyComplete; in EcmAllocNotifyRequest() 654 ecm->notifyReq->context = ecm; in EcmAllocNotifyRequest() 787 ret = UsbFnFreeRequest(ecm->notifyReq); in EcmFreeNotifyRequest() 792 ecm->notifyReq = NULL; in EcmFreeNotifyRequest()
|
/drivers/peripheral/usb/gadget/function/include/ |
D | cdcecm.h | 89 struct UsbFnRequest *notifyReq; member
|
D | cdcacm.h | 102 struct UsbFnRequest *notifyReq; member
|
/drivers/peripheral/usb/sample/host/liteos_test/include/ |
D | usbhost_sdkraw_speed.h | 105 struct UsbRawRequest *notifyReq; member
|
D | usbhost_sdkapi_speed.h | 105 struct UsbRequest *notifyReq; member
|
D | usbhost_nosdk_speed.h | 102 struct UsbRequest *notifyReq; member
|
/drivers/peripheral/usb/sample/host/include/ |
D | usbhost_sdkraw_speed.h | 110 struct UsbRawRequest *notifyReq; member
|
D | usbhost_sdkapi_speed.h | 108 struct UsbRequest *notifyReq; member
|
/drivers/peripheral/usb/net/include/ |
D | cdc_ether.h | 97 struct UsbRequest *notifyReq; member
|
/drivers/peripheral/usb/gadget/function/acm/ |
D | cdcacm.c | 1025 acm->notifyReq = req; in AcmNotifyComplete() 1035 acm->notifyReq = in AcmAllocNotifyRequest() 1037 if (acm->notifyReq == NULL) { in AcmAllocNotifyRequest() 1041 acm->notifyReq->complete = AcmNotifyComplete; in AcmAllocNotifyRequest() 1042 acm->notifyReq->context = acm; in AcmAllocNotifyRequest() 1052 ret = UsbFnFreeRequest(acm->notifyReq); in AcmFreeNotifyRequest() 1057 acm->notifyReq = NULL; in AcmFreeNotifyRequest() 1237 struct UsbFnRequest *req = acm->notifyReq; in AcmSendNotifyRequest() 1246 acm->notifyReq = NULL; in AcmSendNotifyRequest() 1265 acm->notifyReq = req; in AcmSendNotifyRequest() [all …]
|
/drivers/peripheral/usb/serial/include/ |
D | usb_serial_rawapi.h | 120 struct UsbRawRequest *notifyReq; member
|
D | usb_serial.h | 112 struct UsbRequest *notifyReq; member
|
/drivers/peripheral/usb/net/src/ |
D | cdc_ether.c | 872 …ecm->notifyReq = UsbAllocRequest(InterfaceIdToHandle(ecm, ecm->intPipe->interfaceId), 0, ecm->intS… in EcmAllocIntReq() 873 if (!ecm->notifyReq) { in EcmAllocIntReq() 887 …ret = UsbFillRequest(ecm->notifyReq, InterfaceIdToHandle(ecm, ecm->intPipe->interfaceId), &intParm… in EcmAllocIntReq() 940 if ((ecm == NULL) || (ecm->notifyReq == NULL)) { in UsbFreeNotifyReqeust() 944 ret = UsbCancelRequest(ecm->notifyReq); in UsbFreeNotifyReqeust() 948 ret = UsbFreeRequest(ecm->notifyReq); in UsbFreeNotifyReqeust() 950 ecm->notifyReq = NULL; in UsbFreeNotifyReqeust() 1087 ret = UsbSubmitRequestAsync(ecm->notifyReq); in EcmInit()
|