Home
last modified time | relevance | path

Searched refs:ctrlIface (Results 1 - 25 of 29) sorted by relevance

12

/drivers/peripheral/usb/test/unittest/device_sdk/
H A Dusb_device_sdk_if_test.cpp333 EXPECT_TRUE(nullptr != g_acmDevice->ctrlIface.fn); in HWTEST_F()
334 ret = UsbFnGetInterfacePipeInfo(g_acmDevice->ctrlIface.fn, 0, &info); in HWTEST_F()
354 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); in HWTEST_F()
359 ret = UsbFnRegistInterfaceProp(g_acmDevice->ctrlIface.fn, &info); in HWTEST_F()
368 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); in HWTEST_F()
373 ret = UsbFnRegistInterfaceProp(g_acmDevice->ctrlIface.fn, &info); in HWTEST_F()
382 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); in HWTEST_F()
387 ret = UsbFnRegistInterfaceProp(g_acmDevice->ctrlIface.fn, &info); in HWTEST_F()
396 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); in HWTEST_F()
401 ret = UsbFnRegistInterfaceProp(g_acmDevice->ctrlIface in HWTEST_F()
[all...]
H A Dusb_device_cdcacm_test.h85 struct UsbFnInterface *ctrlIface; member
95 struct AcmInterface ctrlIface; member
H A Dusb_device_sdk_io_test.cpp309 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.handle); in HWTEST_F()
311 UsbFnAllocRequest(g_acmDevice->ctrlIface.handle, g_acmDevice->notifyPipe.id, sizeof(struct UsbCdcNotification)); in HWTEST_F()
326 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.handle); in HWTEST_F()
327 notifyReq = UsbFnAllocCtrlRequest(g_acmDevice->ctrlIface.handle, sizeof(struct UsbCdcNotification)); in HWTEST_F()
341 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.handle); in HWTEST_F()
357 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.handle); in HWTEST_F()
394 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.handle); in HWTEST_F()
396 UsbFnAllocRequest(g_acmDevice->ctrlIface.handle, g_acmDevice->notifyPipe.id, sizeof(struct UsbCdcNotification)); in HWTEST_F()
485 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.handle); in HWTEST_F()
487 g_acmDevice->ctrlIface in HWTEST_F()
[all...]
H A Dusb_device_cdcacm_test.cpp365 acmDevice->ctrlIface.fn = fnIface; in ParseInterfaces()
366 acmDevice->ctrlIface.handle = handle; in ParseInterfaces()
428 acmDevice->ctrlIface.handle, sizeof(struct UsbCdcLineCoding) + sizeof(struct UsbCdcLineCoding)); in AllocCtrlRequests()
464 notify->wIndex = CPU_TO_LE16(acm->ctrlIface.fn->info.index); in SendNotifyRequest()
515 UsbFnAllocRequest(acmDevice->ctrlIface.handle, acmDevice->notifyPipe.id, sizeof(struct UsbCdcNotification)); in AllocNotifyRequest()
730 ret = UsbFnStartRecvInterfaceEvent(acmDevice->ctrlIface.fn, 0xff, AcmEventCallback, acmDevice); in SetUpAcmDevice()
780 (void)UsbFnCloseInterface(acm->ctrlIface.handle); in ReleaseAcmDevice()
782 UsbFnStopRecvInterfaceEvent(acm->ctrlIface.fn); in ReleaseAcmDevice()
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/
H A Dusb_device_lite_sdk_if_test.c435 if (g_acmDevice == NULL || g_acmDevice->ctrlIface.fn == NULL) { in UsbFnDviceTestGetPipeInfo006()
441 int32_t ret = UsbFnGetInterfacePipeInfo(g_acmDevice->ctrlIface.fn, 0, &info); in UsbFnDviceTestGetPipeInfo006()
463 if (g_acmDevice == NULL || g_acmDevice->ctrlIface.fn == NULL) { in UsbFnDviceTestRegistProp()
464 HDF_LOGE("%s: ctrlIface.handle is invail", __func__); in UsbFnDviceTestRegistProp()
469 int32_t ret = UsbFnRegistInterfaceProp(g_acmDevice->ctrlIface.fn, &info); in UsbFnDviceTestRegistProp()
479 if (g_acmDevice == NULL || g_acmDevice->ctrlIface.fn == NULL) { in UsbFnDviceTestRegistProp002()
480 HDF_LOGE("%s: ctrlIface.handle is invail", __func__); in UsbFnDviceTestRegistProp002()
485 int32_t ret = UsbFnRegistInterfaceProp(g_acmDevice->ctrlIface.fn, &info); in UsbFnDviceTestRegistProp002()
495 if (g_acmDevice == NULL || g_acmDevice->ctrlIface.fn == NULL) { in UsbFnDviceTestRegistProp003()
496 HDF_LOGE("%s: ctrlIface in UsbFnDviceTestRegistProp003()
[all...]
H A Dusb_device_lite_cdcacm_test.c339 acmDevice->ctrlIface.fn = (struct UsbFnInterface *)fnIface; in ParsePipes()
340 acmDevice->ctrlIface.handle = handle; in ParsePipes()
417 acmDevice->ctrlIface.handle, sizeof(struct UsbCdcLineCoding) + sizeof(struct UsbCdcLineCoding)); in AllocCtrlRequests()
436 if ((data == NULL) || (acm == NULL) || (acm->ctrlIface.fn == NULL)) { in SendNotifyRequest()
451 notify->wIndex = CPU_TO_LE16(acm->ctrlIface.fn->info.index); in SendNotifyRequest()
505 UsbFnAllocRequest(acmDevice->ctrlIface.handle, acmDevice->notifyPipe.id, sizeof(struct UsbCdcNotification)); in AllocNotifyRequest()
723 ret = UsbFnStartRecvInterfaceEvent(acmDevice->ctrlIface.fn, 0xff, AcmEventCallback, acmDevice); in SetUpAcmDevice()
773 (void)UsbFnCloseInterface(acm->ctrlIface.handle); in ReleaseAcmDevice()
775 (void)UsbFnStopRecvInterfaceEvent(acm->ctrlIface.fn); in ReleaseAcmDevice()
H A Dusb_device_lite_sdk_io_test.c460 if (acmDevice == NULL || acmDevice->ctrlIface.handle == NULL) { in UsbFnDviceTestCancelRequest002()
464 req = UsbFnAllocCtrlRequest(acmDevice->ctrlIface.handle, sizeof(struct UsbCdcNotification)); in UsbFnDviceTestCancelRequest002()
/drivers/peripheral/usb/gadget/function/include/
H A Dcdcecm.h66 struct UsbFnInterface *ctrlIface; member
78 struct UsbEcmInterface ctrlIface; member
H A Dcdcacm.h82 struct UsbFnInterface *ctrlIface; member
94 struct UsbAcmInterface ctrlIface; member
/drivers/peripheral/usb/sample/host/include/
H A Dusbhost_sdkraw_speed.h100 uint8_t ctrlIface; member
/drivers/peripheral/usb/sample/host/liteos_test/include/
H A Dusbhost_sdkraw_speed.h95 uint8_t ctrlIface; member
/drivers/peripheral/usb/serial/include/
H A Dusb_serial_rawapi.h110 uint8_t ctrlIface; member
/drivers/hdf_core/framework/test/unittest/model/usb/device/include/
H A Dusb_device_lite_cdcacm_test.h77 struct UsbFnInterface *ctrlIface; member
87 struct AcmInterface ctrlIface; member
/drivers/peripheral/usb/gadget/function/ecm/
H A Dcdcecm.c658 UsbFnAllocRequest(ecm->ctrlIface.handle, ecm->notifyPipe.id, sizeof(struct UsbCdcNotification) * USBCDC_LEN); in EcmAllocNotifyRequest()
672 ecm->ep0Req = UsbFnAllocCtrlRequest(ecm->ctrlIface.handle, ECM_STATUS_BYTECOUNT); in EcmAllocEp0Request()
697 ecm->ctrlIface = *iface; in EcmParseEachPipe()
820 UsbFnCloseInterface(ecm->ctrlIface.handle); in EcmReleaseFuncDevice()
822 (void)UsbFnStopRecvInterfaceEvent(ecm->ctrlIface.fn); in EcmReleaseFuncDevice()
969 ret = UsbFnStartRecvInterfaceEvent(ecm->ctrlIface.fn, RECEIVE_ALL_EVENTS, UsbEcmEventCallback, ecm); in EcmInit()
/drivers/peripheral/usb/net/include/
H A Dusb_net_host.h91 uint8_t ctrlIface; member
/drivers/peripheral/usb/test/unittest/host_sdk/
H A Dusb_raw_sdk_if_test.h86 uint8_t ctrlIface; member
H A Dusb_raw_sdk_if_test.cpp322 acm->ctrlIface = i; in UsbParseConfigDescriptor()
1079 ret = UsbRawReleaseInterface(NULL, g_acm->ctrlIface); in HWTEST_F()
1093 ret = UsbRawReleaseInterface(g_acm->devHandle, g_acm->ctrlIface); in HWTEST_F()
/drivers/peripheral/usb/gadget/function/mtp/include/
H A Dusbfn_mtp_impl.h92 struct UsbFnInterface *ctrlIface; member
120 struct UsbMtpInterface ctrlIface; member
/drivers/peripheral/usb/gadget/function/acm/
H A Dcdcacm.c759 struct UsbFnInterface *intf = acmDevice->ctrlIface.fn; in UsbSerialGetProp()
781 struct UsbFnInterface *intf = acmDevice->ctrlIface.fn; in UsbSerialSetProp()
826 struct UsbFnInterface *intf = acmDevice->ctrlIface.fn; in UsbSerialRegistProp()
985 acm->ctrlIface.handle, sizeof(struct UsbCdcLineCoding) + sizeof(struct UsbCdcLineCoding)); in AcmAllocCtrlRequests()
1041 UsbFnAllocRequest(acm->ctrlIface.handle, acm->notifyPipe.id, sizeof(struct UsbCdcNotification) * USBCDC_LEN); in AcmAllocNotifyRequest()
1258 notify->wIndex = CPU_TO_LE16(acm->ctrlIface.fn->info.index); in AcmSendNotifyRequest()
1352 acm->ctrlIface = *iface; in AcmParseEachPipe()
1459 (void)UsbFnCloseInterface(acm->ctrlIface.handle); in AcmReleaseFuncDevice()
1461 (void)UsbFnStopRecvInterfaceEvent(acm->ctrlIface.fn); in AcmReleaseFuncDevice()
1581 ret = UsbFnStartRecvInterfaceEvent(acm->ctrlIface in UsbSerialInit()
[all...]
/drivers/peripheral/usb/net/src/
H A Dusb_net_host.c1251 HARCH_INFO_PRINT("usbNet->ctrlIface = %{public}d", usbNet->ctrlIface); in UsbReleaseInterfaces()
1253 if (usbNet->ctrlIface != usbNet->dataIface) { in UsbReleaseInterfaces()
1254 ret = UsbRawReleaseInterface(usbNet->devHandle, usbNet->ctrlIface); in UsbReleaseInterfaces()
1255 HARCH_INFO_PRINT("ctrlIface ret = %{public}d", ret); in UsbReleaseInterfaces()
1260 ret = UsbRawReleaseInterface(usbNet->devHandle, usbNet->ctrlIface); in UsbReleaseInterfaces()
1261 HARCH_INFO_PRINT("ctrlIface ret = %{public}d", ret); in UsbReleaseInterfaces()
/drivers/peripheral/usb/gadget/function/mtp/src/
H A Dusbfn_mtp_impl.cpp340 struct UsbFnRequest *req = UsbFnAllocCtrlRequest(mtpDev_->ctrlIface.handle, MTP_CONTROL_XFER_BYTECOUNT); in UsbMtpDeviceAllocCtrlRequests()
723 mtpDev_->ctrlIface = iface; /* MTP device only have one interface, record here */ in UsbMtpDeviceParseEachPipe()
846 int32_t ret = UsbFnCloseInterface(mtpDev_->ctrlIface.handle); in UsbMtpDeviceReleaseFuncDevice()
851 ret = UsbFnStopRecvInterfaceEvent(mtpDev_->ctrlIface.fn); in UsbMtpDeviceReleaseFuncDevice()
945 ret = UsbFnStartRecvInterfaceEvent(mtpDev_->ctrlIface.fn, 0xff, UsbMtpDeviceEp0EventDispatch, mtpDev_); in Init()
/drivers/hdf_core/framework/test/unittest/model/usb/host/include/
H A Dusb_raw_test.h219 uint8_t ctrlIface; member
/drivers/peripheral/usb/serial/src/
H A Dusb_serial_rawapi.c211 acm->ctrlIface = interfaceIndex; in UsbParseConfigDescriptorProcess()
267 (void)UsbRawReleaseInterface(acm->devHandle, acm->ctrlIface); in UsbReleaseInterfaces()
/drivers/peripheral/usb/sample/host/src/
H A Dusbhost_sdkraw_speed.c263 acm->ctrlIface = interfaceIndex; in UsbParseConfigDescriptorProcess()
/drivers/peripheral/usb/sample/host/liteos_test/src/
H A Dusbhost_sdkraw_speed.c269 acm->ctrlIface = interfaceIndex; in UsbSpeedParaseInterfaceClass()

Completed in 26 milliseconds

12