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/
Dusb_device_sdk_io_test.cpp307 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
327notifyReq = UsbFnAllocCtrlRequest(g_acmDevice->ctrlIface.handle, sizeof(struct UsbCdcNotification)…
328 EXPECT_TRUE(notifyReq != nullptr);
329 ret = UsbFnGetRequestStatus(notifyReq, &status);
332 ret = UsbFnFreeRequest(notifyReq);
[all …]
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()
747 acmDevice->notifyReq->complete = nullptr; in FreeNotifyRequest()
[all …]
Dusb_device_cdcacm_test.h102 struct UsbFnRequest *notifyReq; member
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/
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()
740 acmDevice->notifyReq->complete = NULL; in FreeNotifyRequest()
[all …]
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 == NULL) { in UsbFnDviceTestGetRequestStatus004()
[all …]
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/
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->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 …]
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/
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);
423 ret = UsbSubmitRequestSync(g_acm->notifyReq);
502 ret = UsbSubmitRequestAsync(g_acm->notifyReq);
516 ret = UsbCancelRequest(g_acm->notifyReq);
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;
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 …]
Dusb_host_sdk_if_test.h93 struct UsbRequest *notifyReq; member
Dusb_raw_sdk_if_test.cpp1251 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 …]
Dusb_raw_sdk_if_test.h96 struct UsbRawRequest *notifyReq; member
/drivers/peripheral/usb/gadget/function/ecm/
Dcdcecm.c428 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/
Dcdcecm.h89 struct UsbFnRequest *notifyReq; member
Dcdcacm.h102 struct UsbFnRequest *notifyReq; member
/drivers/peripheral/usb/sample/host/liteos_test/include/
Dusbhost_sdkraw_speed.h105 struct UsbRawRequest *notifyReq; member
Dusbhost_sdkapi_speed.h105 struct UsbRequest *notifyReq; member
Dusbhost_nosdk_speed.h102 struct UsbRequest *notifyReq; member
/drivers/peripheral/usb/sample/host/include/
Dusbhost_sdkraw_speed.h110 struct UsbRawRequest *notifyReq; member
Dusbhost_sdkapi_speed.h108 struct UsbRequest *notifyReq; member
/drivers/peripheral/usb/net/include/
Dcdc_ether.h97 struct UsbRequest *notifyReq; member
/drivers/peripheral/usb/gadget/function/acm/
Dcdcacm.c1025 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/
Dusb_serial_rawapi.h120 struct UsbRawRequest *notifyReq; member
Dusb_serial.h112 struct UsbRequest *notifyReq; member
/drivers/peripheral/usb/net/src/
Dcdc_ether.c872 …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()

12