/ohos5.0/drivers/peripheral/usb/test/unittest/device_sdk/ |
H A D | usb_device_sdk_if_test.cpp | 354 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); 368 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); 382 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); 396 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); 410 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); 466 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); 477 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); 487 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); 497 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.fn); 985 g_acmDevice->ctrlIface.handle = NULL; [all …]
|
H A D | usb_device_sdk_io_test.cpp | 309 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.handle); 311 …UsbFnAllocRequest(g_acmDevice->ctrlIface.handle, g_acmDevice->notifyPipe.id, sizeof(struct UsbCdcN… 326 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.handle); 327 …notifyReq = UsbFnAllocCtrlRequest(g_acmDevice->ctrlIface.handle, sizeof(struct UsbCdcNotification)… 341 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.handle); 357 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.handle); 394 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.handle); 396 …UsbFnAllocRequest(g_acmDevice->ctrlIface.handle, g_acmDevice->notifyPipe.id, sizeof(struct UsbCdcN… 485 EXPECT_NE(nullptr, g_acmDevice->ctrlIface.handle); 487 … g_acmDevice->ctrlIface.handle, sizeof(struct UsbCdcLineCoding) + sizeof(struct UsbCdcLineCoding));
|
H A D | usb_device_cdcacm_test.cpp | 365 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 UsbCdcNotif… 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()
|
H A D | usb_device_cdcacm_test.h | 85 struct UsbFnInterface *ctrlIface; member 95 struct AcmInterface ctrlIface; member
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/model/usb/device/src/ |
H A D | usb_device_lite_sdk_if_test.c | 435 if (g_acmDevice == NULL || g_acmDevice->ctrlIface.fn == NULL) { in UsbFnDviceTestGetPipeInfo006() 463 if (g_acmDevice == NULL || g_acmDevice->ctrlIface.fn == NULL) { in UsbFnDviceTestRegistProp() 479 if (g_acmDevice == NULL || g_acmDevice->ctrlIface.fn == NULL) { in UsbFnDviceTestRegistProp002() 495 if (g_acmDevice == NULL || g_acmDevice->ctrlIface.fn == NULL) { in UsbFnDviceTestRegistProp003() 511 if (g_acmDevice == NULL || g_acmDevice->ctrlIface.fn == NULL) { in UsbFnDviceTestRegistProp004() 1624 if (g_acmDevice->ctrlIface.handle == NULL) { in UsbFnDviceTestOpenInterface() 1662 if (g_acmDevice->ctrlIface.handle == NULL) { in UsbFnDviceTestOpenInterface003() 1672 g_acmDevice->ctrlIface.handle = NULL; in UsbFnDviceTestOpenInterface003() 1678 g_acmDevice->ctrlIface.handle = handle; in UsbFnDviceTestOpenInterface003() 1731 g_acmDevice->ctrlIface.handle = NULL; in UsbFnDviceTestCloseInterface() [all …]
|
H A D | usb_device_lite_cdcacm_test.c | 339 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 UsbCdcNotif… 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 D | usb_device_lite_sdk_io_test.c | 460 if (acmDevice == NULL || acmDevice->ctrlIface.handle == NULL) { in UsbFnDviceTestCancelRequest002() 464 req = UsbFnAllocCtrlRequest(acmDevice->ctrlIface.handle, sizeof(struct UsbCdcNotification)); in UsbFnDviceTestCancelRequest002()
|
/ohos5.0/drivers/peripheral/usb/gadget/function/include/ |
H A D | cdcecm.h | 66 struct UsbFnInterface *ctrlIface; member 78 struct UsbEcmInterface ctrlIface; member
|
H A D | cdcacm.h | 82 struct UsbFnInterface *ctrlIface; member 94 struct UsbAcmInterface ctrlIface; member
|
/ohos5.0/drivers/peripheral/usb/gadget/function/acm/ |
H A D | cdcacm.c | 759 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) * U… 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.fn, RECEIVE_ALL_EVENTS, UsbAcmEventCallback, acm… in UsbSerialInit()
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/model/usb/device/include/ |
H A D | usb_device_lite_cdcacm_test.h | 77 struct UsbFnInterface *ctrlIface; member 87 struct AcmInterface ctrlIface; member
|
/ohos5.0/drivers/peripheral/usb/gadget/function/ecm/ |
H A D | cdcecm.c | 658 …UsbFnAllocRequest(ecm->ctrlIface.handle, ecm->notifyPipe.id, sizeof(struct UsbCdcNotification) * U… 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() 971 …ret = UsbFnStartRecvInterfaceEvent(ecm->ctrlIface.fn, RECEIVE_ALL_EVENTS, UsbEcmEventCallback, ecm… in EcmInit()
|
/ohos5.0/drivers/peripheral/usb/gadget/function/mtp/include/ |
H A D | usbfn_mtp_impl.h | 92 struct UsbFnInterface *ctrlIface; member 120 struct UsbMtpInterface ctrlIface; member
|
/ohos5.0/drivers/peripheral/usb/sample/host/include/ |
H A D | usbhost_sdkraw_speed.h | 100 uint8_t ctrlIface; member
|
/ohos5.0/drivers/peripheral/usb/sample/host/liteos_test/include/ |
H A D | usbhost_sdkraw_speed.h | 95 uint8_t ctrlIface; member
|
/ohos5.0/drivers/peripheral/usb/serial/include/ |
H A D | usb_serial_rawapi.h | 110 uint8_t ctrlIface; member
|
/ohos5.0/drivers/peripheral/usb/net/include/ |
H A D | usb_net_host.h | 99 uint8_t ctrlIface; member
|
/ohos5.0/drivers/peripheral/usb/test/unittest/host_sdk/ |
H A D | usb_raw_sdk_if_test.h | 86 uint8_t ctrlIface; member
|
H A D | usb_raw_sdk_if_test.cpp | 322 acm->ctrlIface = i; in UsbParseConfigDescriptor() 1079 ret = UsbRawReleaseInterface(NULL, g_acm->ctrlIface); 1093 ret = UsbRawReleaseInterface(g_acm->devHandle, g_acm->ctrlIface);
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-peripherals-usb-des.md | 372 …req = UsbFnAllocCtrlRequest(acmDevice->ctrlIface.handle, sizeof(struct UsbCdcLineCoding) + sizeof(… 374 …req = UsbFnAllocCtrlRequest(acmDevice->ctrlIface.handle, sizeof(struct UsbCdcLineCoding) + sizeof(… 381 ret = UsbFnStartRecvInterfaceEvent(acmDevice->ctrlIface.fn, 0xff, AcmEventCallback, acmDevice); 1530 acm->ctrlIface = *iface; 1602 … acm->ctrlIface.handle, sizeof(struct UsbCdcLineCoding) + sizeof(struct UsbCdcLineCoding)); 1641 notify->wIndex = CPU_TO_LE16(acm->ctrlIface.fn->info.index); 1666 (void)UsbFnInterfaceClose(acm->ctrlIface.handle); 1669 (void)UsbFnInterfaceStopRecvEvent(acm->ctrlIface.fn); 1688 (void)UsbFnCloseInterface(acm->ctrlIface.handle); 1690 (void)UsbFnStopRecvInterfaceEvent(acm->ctrlIface.fn);
|
/ohos5.0/drivers/peripheral/usb/net/src/ |
H A D | usb_net_host.c | 1241 HARCH_INFO_PRINT("usbNet->ctrlIface = %{public}d", usbNet->ctrlIface); in UsbReleaseInterfaces() 1243 if (usbNet->ctrlIface != usbNet->dataIface) { in UsbReleaseInterfaces() 1244 ret = UsbRawReleaseInterface(usbNet->devHandle, usbNet->ctrlIface); in UsbReleaseInterfaces() 1250 ret = UsbRawReleaseInterface(usbNet->devHandle, usbNet->ctrlIface); in UsbReleaseInterfaces()
|
/ohos5.0/drivers/peripheral/usb/gadget/function/mtp/src/ |
H A D | usbfn_mtp_impl.cpp | 340 …struct UsbFnRequest *req = UsbFnAllocCtrlRequest(mtpDev_->ctrlIface.handle, MTP_CONTROL_XFER_BYTEC… 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, mtpD… in Init()
|
/ohos5.0/docs/en/device-dev/driver/ |
H A D | driver-peripherals-usb-des.md | 374 req = UsbFnAllocCtrlRequest(acm->ctrlIface.handle, 377 req = UsbFnAllocCtrlRequest(acm->ctrlIface.handle, 385 ret = UsbFnStartRecvInterfaceEvent(acm->ctrlIface.fn, 0xff, UsbAcmEventCallback, acm); 1471 req = UsbFnCtrlRequestAlloc(acm->ctrlIface.handle, 1479 ret = UsbFnInterfaceStartRecvEvent(acm->ctrlIface.fn, 0xff, UsbAcmEventCallback, acm); 1504 (void)UsbFnInterfaceClose(acm->ctrlIface.handle); 1507 (void)UsbFnInterfaceStopRecvEvent(acm->ctrlIface.fn);
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/model/usb/host/include/ |
H A D | usb_raw_test.h | 219 uint8_t ctrlIface; member
|
/ohos5.0/drivers/peripheral/usb/serial/src/ |
H A D | usb_serial_rawapi.c | 211 acm->ctrlIface = interfaceIndex; in UsbParseConfigDescriptorProcess() 267 (void)UsbRawReleaseInterface(acm->devHandle, acm->ctrlIface); in UsbReleaseInterfaces()
|