Home
last modified time | relevance | path

Searched refs:acmDevice (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/drivers/hdf_core/framework/test/unittest/model/usb/device/src/
H A Dusb_device_lite_sdk_io_test.c49 if (acmDevice == NULL || acmDevice->dataIface.handle == NULL) { in UsbFnDviceTestRequestAsync002()
55 …UsbFnAllocRequest(acmDevice->dataIface.handle, acmDevice->dataOutPipe.id, acmDevice->dataOutPipe.m… in UsbFnDviceTestRequestAsync002()
94 if (acmDevice == NULL || acmDevice->dataIface.handle == NULL) { in UsbFnDviceTestRequestAsync003()
100 …UsbFnAllocRequest(acmDevice->dataIface.handle, acmDevice->dataOutPipe.id, acmDevice->dataOutPipe.m… in UsbFnDviceTestRequestAsync003()
147 if (acmDevice == NULL || acmDevice->dataIface.handle == NULL) { in UsbFnDviceTestRequestAsync004()
194 if (acmDevice == NULL || acmDevice->dataIface.handle == NULL) { in UsbFnDviceTestRequestAsync005()
201acmDevice->dataIface.handle, acmDevice->dataInPipe.id, acmDevice->dataInPipe.maxPacketSize); in UsbFnDviceTestRequestAsync005()
254 if (acmDevice == NULL || acmDevice->dataIface.handle == NULL) { in UsbFnDviceTestRequestSync002()
288 if (acmDevice == NULL || acmDevice->dataIface.handle == NULL) { in UsbFnDviceTestRequestSync003()
326 if (acmDevice == NULL || acmDevice->dataIface.handle == NULL) { in UsbFnDviceTestRequestSync004()
[all …]
H A Dusb_device_lite_cdcacm_test.c408 acmDevice->ctrlReqNum = 0; in AllocCtrlRequests()
415 ctrlInfo->acm = acmDevice; in AllocCtrlRequests()
424 acmDevice->ctrlReqNum++; in AllocCtrlRequests()
504 acmDevice->notifyReq = in AllocNotifyRequest()
510 acmDevice->notifyReq->context = acmDevice; in AllocNotifyRequest()
699 acmDevice = (struct AcmDevice *)OsalMemCalloc(sizeof(*acmDevice)); in SetUpAcmDevice()
700 if (acmDevice == NULL) { in SetUpAcmDevice()
708 if (acmDevice->port == NULL) { in SetUpAcmDevice()
723 ret = UsbFnStartRecvInterfaceEvent(acmDevice->ctrlIface.fn, 0xff, AcmEventCallback, acmDevice); in SetUpAcmDevice()
728 return acmDevice; in SetUpAcmDevice()
[all …]
/ohos5.0/drivers/peripheral/usb/test/unittest/device_sdk/
H A Dusb_device_cdcacm_test.cpp419 acmDevice->ctrlReqNum = 0; in AllocCtrlRequests()
426 ctrlInfo->acm = acmDevice; in AllocCtrlRequests()
435 acmDevice->ctrlReqNum++; in AllocCtrlRequests()
514 acmDevice->notifyReq = in AllocNotifyRequest()
520 acmDevice->notifyReq->context = acmDevice; in AllocNotifyRequest()
706 acmDevice = static_cast<struct AcmDevice *>(OsalMemCalloc(sizeof(*acmDevice))); in SetUpAcmDevice()
707 if (acmDevice == nullptr) { in SetUpAcmDevice()
714 acmDevice->port = SerialAlloc(); in SetUpAcmDevice()
730 ret = UsbFnStartRecvInterfaceEvent(acmDevice->ctrlIface.fn, 0xff, AcmEventCallback, acmDevice); in SetUpAcmDevice()
735 return acmDevice; in SetUpAcmDevice()
[all …]
H A Dusb_device_cdcacm_test.h134 void AcmDeviceRelease(struct AcmDevice *acmDevice);
/ohos5.0/drivers/peripheral/usb/gadget/function/acm/
H A Dcdcacm.c757 static int32_t UsbSerialGetProp(struct UsbAcmDevice *acmDevice, struct HdfSBuf *data, struct HdfSBu… in UsbSerialGetProp() argument
759 struct UsbFnInterface *intf = acmDevice->ctrlIface.fn; in UsbSerialGetProp()
779 static int32_t UsbSerialSetProp(struct UsbAcmDevice *acmDevice, struct HdfSBuf *data) in UsbSerialSetProp() argument
781 struct UsbFnInterface *intf = acmDevice->ctrlIface.fn; in UsbSerialSetProp()
824 static int32_t UsbSerialRegistProp(struct UsbAcmDevice *acmDevice, struct HdfSBuf *data) in UsbSerialRegistProp() argument
826 struct UsbFnInterface *intf = acmDevice->ctrlIface.fn; in UsbSerialRegistProp()
/ohos5.0/drivers/hdf_core/framework/test/unittest/model/usb/device/include/
H A Dusb_device_lite_cdcacm_test.h127 void AcmDeviceRelease(struct AcmDevice *acmDevice);
/ohos5.0/docs/zh-cn/device-dev/driver/
H A Ddriver-peripherals-usb-des.md372 …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);