/ohos5.0/drivers/peripheral/usb/test/unittest/device_sdk/ |
H A D | usb_device_sdk_io_test.cpp | 310 notifyReq = 312 EXPECT_TRUE(notifyReq != nullptr); 316 ret = UsbFnFreeRequest(notifyReq); 328 EXPECT_TRUE(notifyReq != nullptr); 332 ret = UsbFnFreeRequest(notifyReq); 342 notifyReq = UsbFnAllocRequest( 344 EXPECT_TRUE(notifyReq != nullptr); 347 ret = UsbFnFreeRequest(notifyReq); 358 notifyReq = UsbFnAllocRequest( 360 EXPECT_TRUE(notifyReq != nullptr); [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() 520 acmDevice->notifyReq->context = acmDevice; in AllocNotifyRequest() 743 if (acmDevice->notifyReq == nullptr) { in FreeNotifyRequest() 747 acmDevice->notifyReq->complete = nullptr; in FreeNotifyRequest() 748 acmDevice->notifyReq->context = nullptr; in FreeNotifyRequest() [all …]
|
H A D | usb_device_cdcacm_test.h | 102 struct UsbFnRequest *notifyReq; member
|
/ohos5.0/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() 510 acmDevice->notifyReq->context = acmDevice; in AllocNotifyRequest() 736 if (acmDevice->notifyReq == NULL) { in FreeNotifyRequest() 740 acmDevice->notifyReq->complete = NULL; in FreeNotifyRequest() 741 acmDevice->notifyReq->context = NULL; 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() 1315 ret = UsbFnFreeRequest(notifyReq); in UsbFnDviceTestGetRequestStatus() 1330 struct UsbFnRequest *notifyReq = in UsbFnDviceTestGetRequestStatus002() local 1332 if (notifyReq == NULL) { in UsbFnDviceTestGetRequestStatus002() 1348 ret = UsbFnFreeRequest(notifyReq); in UsbFnDviceTestGetRequestStatus002() 1392 if (notifyReq == NULL) { in UsbFnDviceTestGetRequestStatus004() 1403 ret = UsbFnGetRequestStatus(notifyReq, &status); in UsbFnDviceTestGetRequestStatus004() 1412 ret = UsbFnFreeRequest(notifyReq); in UsbFnDviceTestGetRequestStatus004() 1423 struct UsbFnRequest *notifyReq = NULL; in UsbFnDviceTestGetRequestStatus005() local [all …]
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/model/usb/host/src/ |
H A D | usb_raw_test.c | 247 if (rawAcm->notifyReq) { in CheckRawSdkIfAllocRequest007() 259 if (rawAcm->notifyReq == NULL) { in CheckRawSdkIfAllocRequest008() 476 ret = UsbRawFreeRequest(rawAcm->notifyReq); in CheckRawSdkIfFreeRequest004() 481 rawAcm->notifyReq = NULL; in CheckRawSdkIfFreeRequest004() 535 if (rawAcm->notifyReq == NULL) { in CheckRawSdkIfAllocRequest009() 1529 reqData.data = ((struct UsbRawRequest *)rawAcm->notifyReq)->buffer; in CheckRawSdkIfSendInterruptRequest001() 1550 reqData.data = ((struct UsbRawRequest *)rawAcm->notifyReq)->buffer; in CheckRawSdkIfSendInterruptRequest002() 1572 reqData.data = ((struct UsbRawRequest *)rawAcm->notifyReq)->buffer; in CheckRawSdkIfSendInterruptRequest003() 1575 ret = UsbRawSendInterruptRequest(rawAcm->notifyReq, NULL, &reqData); in CheckRawSdkIfSendInterruptRequest003() 1713 ret = UsbRawSubmitRequest(rawAcm->notifyReq); in CheckRawSdkIfSubmitRequest003() [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() 1351 int32_t ret = UsbSubmitRequestSync(g_acm->notifyReq); in CheckHostSdkIfSubmitRequestSync004() 1514 int32_t ret = UsbSubmitRequestAsync(g_acm->notifyReq); in CheckHostSdkIfSubmitRequestAsync003() [all …]
|
/ohos5.0/drivers/peripheral/usb/test/unittest/host_sdk/ |
H A D | usb_raw_sdk_if_test_io.cpp | 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); 993 ret = UsbRawSubmitRequest(g_acm->notifyReq); [all …]
|
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); 423 ret = UsbSubmitRequestSync(g_acm->notifyReq); 502 ret = UsbSubmitRequestAsync(g_acm->notifyReq); 516 ret = UsbCancelRequest(g_acm->notifyReq);
|
H A 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); 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); 1786 ret = UsbRawFillInterruptRequest(g_acm->notifyReq, g_acm->devHandle, NULL); [all …]
|
H A D | usb_host_sdk_if_test.cpp | 1186 g_acm->notifyReq = UsbAllocRequest(NULL, 0, g_acm->intSize); 1187 EXPECT_EQ(nullptr, g_acm->notifyReq); 1199 g_acm->notifyReq = UsbAllocRequest(g_acm->int_devHandle, 0, g_acm->intSize); 1200 EXPECT_NE(nullptr, g_acm->notifyReq); 1213 ret = UsbFreeRequest(g_acm->notifyReq); 1295 g_acm->notifyReq = UsbAllocRequest(g_acm->int_devHandle, 0, g_acm->intSize); 1296 EXPECT_NE(nullptr, g_acm->notifyReq); 1403 ret = UsbFillRequest(g_acm->notifyReq, g_acm->int_devHandle, &intParmas); 1533 ret = UsbFillRequest(g_acm->notifyReq, g_acm->int_devHandle, &intParmas);
|
H A D | usb_host_sdk_if_test.h | 93 struct UsbRequest *notifyReq; member
|
/ohos5.0/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 = NULL; in EcmFreeNotifyRequest()
|
/ohos5.0/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 = req; in AcmSendNotifyRequest() [all …]
|
/ohos5.0/drivers/peripheral/usb/net/src/ |
H A D | cdc_ether.c | 889 …ecm->notifyReq = UsbAllocRequest(InterfaceIdToHandle(ecm, ecm->intPipe->interfaceId), 0, ecm->intS… in EcmAllocIntReq() 890 if (!ecm->notifyReq) { in EcmAllocIntReq() 904 …ret = UsbFillRequest(ecm->notifyReq, InterfaceIdToHandle(ecm, ecm->intPipe->interfaceId), &intParm… in EcmAllocIntReq() 957 if ((ecm == NULL) || (ecm->notifyReq == NULL)) { 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()
|
/ohos5.0/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
|
/ohos5.0/drivers/peripheral/usb/serial/src/ |
H A D | usb_serial_rawapi.c | 1209 acm->notifyReq = UsbRawAllocRequest(acm->devHandle, 0, size); in UsbAllocNotifyRequest() 1210 if (!acm->notifyReq) { in UsbAllocNotifyRequest() 1222 ret = UsbRawFillInterruptRequest(acm->notifyReq, acm->devHandle, &fillRequestData); in UsbAllocNotifyRequest() 1235 if ((acm == NULL) || (acm->notifyReq == NULL)) { in UsbFreeNotifyReqeust() 1240 ret = UsbRawFreeRequest(acm->notifyReq); in UsbFreeNotifyReqeust() 1242 acm->notifyReq = NULL; in UsbFreeNotifyReqeust() 1277 ret = UsbRawSubmitRequest(acm->notifyReq); in UsbAllocRequests()
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-peripherals-usb-des.md | 440 acm->notifyReq = req; 681 if (!acm->notifyReq) { 682 HDF_LOGE("notifyReq request failed.\n"); 1252 acm->notifyReq = UsbRawAllocRequest(acm->devHandle, 0, size); 1253 if (!acm->notifyReq) { 1254 HDF_LOGE("notifyReq request fail\n"); 1265 ret = UsbRawFillInterruptRequest(acm->notifyReq, acm->devHandle, &fillRequestData); 1346 ret = UsbRawSubmitRequest(acm->notifyReq); 1624 struct UsbFnRequest *req = acm->notifyReq; 1633 acm->notifyReq = NULL; [all …]
|
/ohos5.0/drivers/peripheral/usb/sample/host/include/ |
H A D | usbhost_sdkraw_speed.h | 110 struct UsbRawRequest *notifyReq; member
|
H A D | usbhost_sdkapi_speed.h | 108 struct UsbRequest *notifyReq; member
|
/ohos5.0/drivers/peripheral/usb/sample/host/liteos_test/include/ |
H A D | usbhost_sdkraw_speed.h | 105 struct UsbRawRequest *notifyReq; member
|
H A D | usbhost_nosdk_speed.h | 102 struct UsbRequest *notifyReq; member
|
H A D | usbhost_sdkapi_speed.h | 105 struct UsbRequest *notifyReq; member
|
/ohos5.0/drivers/peripheral/usb/net/include/ |
H A D | cdc_ether.h | 97 struct UsbRequest *notifyReq; member
|