Home
last modified time | relevance | path

Searched refs:notifyReq (Results 1 - 25 of 34) sorted by relevance

12

/drivers/peripheral/usb/test/unittest/device_sdk/
H A Dusb_device_sdk_io_test.cpp307 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 Dusb_device_cdcacm_test.cpp452 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 Dusb_device_cdcacm_test.h102 struct UsbFnRequest *notifyReq; member
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/
H A Dusb_device_lite_cdcacm_test.c439 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 Dusb_device_lite_sdk_if_test.c1298 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 Dcdcecm.c433 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 Dusb_raw_test.c246 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 Dusb_test.c925 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 Dusb_host_sdk_if_test_io.cpp203 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 Dusb_raw_sdk_if_test_io.cpp336 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 Dusb_host_sdk_if_test.h93 struct UsbRequest *notifyReq; member
H A Dusb_raw_sdk_if_test.cpp1251 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 Dusb_raw_sdk_if_test.h96 struct UsbRawRequest *notifyReq; member
/drivers/peripheral/usb/gadget/function/include/
H A Dcdcecm.h89 struct UsbFnRequest *notifyReq; member
H A Dcdcacm.h102 struct UsbFnRequest *notifyReq; member
/drivers/peripheral/usb/sample/host/include/
H A Dusbhost_sdkapi_speed.h108 struct UsbRequest *notifyReq; member
H A Dusbhost_sdkraw_speed.h110 struct UsbRawRequest *notifyReq; member
/drivers/peripheral/usb/sample/host/liteos_test/include/
H A Dusbhost_sdkapi_speed.h105 struct UsbRequest *notifyReq; member
H A Dusbhost_nosdk_speed.h102 struct UsbRequest *notifyReq; member
H A Dusbhost_sdkraw_speed.h105 struct UsbRawRequest *notifyReq; member
/drivers/peripheral/usb/serial/include/
H A Dusb_serial_rawapi.h120 struct UsbRawRequest *notifyReq; member
H A Dusb_serial.h112 struct UsbRequest *notifyReq; member
/drivers/peripheral/usb/net/include/
H A Dcdc_ether.h97 struct UsbRequest *notifyReq; member
/drivers/peripheral/usb/net/src/
H A Dcdc_ether.c889 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 Dcdcacm.c1030 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...]

Completed in 25 milliseconds

12