Home
last modified time | relevance | path

Searched refs:AcmDevice (Results 1 - 25 of 30) sorted by relevance

12

/drivers/peripheral/usb/test/unittest/device_sdk/
H A Dusb_device_cdcacm_test.h59 struct AcmDevice *acm;
77 void (*Connect)(struct AcmDevice *acm);
78 void (*Disconnect)(struct AcmDevice *acm);
79 int32_t (*SendBreak)(struct AcmDevice *acm, int32_t duration);
93 struct AcmDevice { struct
127 struct AcmDevice *acm;
131 struct AcmDevice *SetUpAcmDevice(void);
132 void ReleaseAcmDevice(struct AcmDevice *acm);
134 void AcmDeviceRelease(struct AcmDevice *acmDevice);
H A Dusb_device_cdcacm_test.cpp340 static int32_t ParseInterfaces(struct AcmDevice * const acmDevice) in ParseInterfaces()
395 struct AcmDevice *acm = ctrlInfo->acm; in CtrlComplete()
411 static int32_t AllocCtrlRequests(struct AcmDevice *acmDevice) in AllocCtrlRequests()
441 static int32_t SendNotifyRequest(struct AcmDevice *acm, uint8_t type, uint16_t value, void *data, uint32_t length) in SendNotifyRequest()
475 static int32_t NotifySerialState(struct AcmDevice *acm) in NotifySerialState()
494 struct AcmDevice *acm = static_cast<struct AcmDevice *>(req->context); in NotifyComplete()
511 static int32_t AllocNotifyRequest(struct AcmDevice *acmDevice) in AllocNotifyRequest()
525 static void Connect(struct AcmDevice *acm) in Connect()
534 static void Disconnect(struct AcmDevice *ac
[all...]
/drivers/peripheral/usb/serial/include/
H A Dusb_serial_rawapi.h77 struct AcmDevice;
80 struct AcmDevice *instance;
91 struct AcmDevice *instance;
95 struct AcmDevice *acm;
107 struct AcmDevice { struct
H A Dusb_serial.h74 struct AcmDevice;
78 struct AcmDevice *instance;
89 struct AcmDevice *instance;
93 struct AcmDevice *acm;
99 struct AcmDevice { struct
/drivers/peripheral/usb/test/unittest/host_sdk/
H A Dusb_host_sdk_if_test.h53 struct AcmDevice;
57 struct AcmDevice *instance;
68 struct AcmDevice *instance;
72 struct AcmDevice *acm;
77 struct AcmDevice { struct
H A Dusb_raw_sdk_if_test.h53 struct AcmDevice;
56 struct AcmDevice *instance;
67 struct AcmDevice *instance;
71 struct AcmDevice *acm;
83 struct AcmDevice { struct
H A Dusb_raw_sdk_if_test_io.cpp43 static struct AcmDevice *g_acm = nullptr;
44 static struct AcmDevice g_deviceService;
53 struct AcmDevice *acm = (struct AcmDevice *)data; in UsbIoThread()
87 static int32_t UsbStartIo(struct AcmDevice *acm) in UsbStartIo()
116 static int32_t UsbStopIo(struct AcmDevice *acm) in UsbStopIo()
172 struct AcmDevice *acm = static_cast<struct AcmDevice *>(req->userData); in AcmReadBulkCallback()
214 struct AcmDevice *acm = static_cast<struct AcmDevice *>(re in AcmNotifyReqCallback()
[all...]
H A Dusb_raw_sdk_if_test.cpp44 static struct AcmDevice *g_acm = nullptr;
45 static struct AcmDevice g_deviceService;
54 struct AcmDevice *acm = (struct AcmDevice *)data; in UsbIoThread()
88 static int32_t UsbStartIo(struct AcmDevice *acm) in UsbStartIo()
116 static int32_t UsbStopIo(struct AcmDevice *acm) in UsbStopIo()
179 struct AcmDevice *acm = static_cast<struct AcmDevice *>(req->userData); in AcmReadBulkCallback()
213 static void AcmProcessNotification(struct AcmDevice *acm, struct UsbCdcNotification *dr) in AcmProcessNotification()
236 struct AcmDevice *ac in AcmNotifyReqCallback()
[all...]
H A Dusb_host_sdk_if_test_io.cpp39 static struct AcmDevice g_deviceService;
40 static struct AcmDevice *g_acm = &g_deviceService;
76 static int32_t AcmWriteBufAlloc(struct AcmDevice *acm) in AcmWriteBufAlloc()
/drivers/peripheral/usb/serial/src/
H A Dusb_serial_rawapi.c37 static int32_t SerialSendCtrlMsg(struct AcmDevice *acm, uint8_t request, uint16_t value, void *buf, uint16_t len);
39 static int32_t UsbSerialInit(struct AcmDevice *acm);
40 static void UsbSerialRelease(struct AcmDevice *acm);
45 struct AcmDevice *acm = (struct AcmDevice *)data; in UsbIoThread()
77 static int32_t UsbStartIo(struct AcmDevice *acm) in UsbStartIo()
111 static void UsbStopIo(struct AcmDevice *acm) in UsbStopIo()
176 static int32_t UsbGetBulkEndpoint(struct AcmDevice *acm, const struct UsbRawEndpointDescriptor *endPoint) in UsbGetBulkEndpoint()
204 struct AcmDevice *acm, const struct UsbRawInterface *interface, uint8_t interfaceIndex) in UsbParseConfigDescriptorProcess()
237 static int32_t UsbParseConfigDescriptor(struct AcmDevice *ac
[all...]
H A Dusb_serial.c33 static int32_t SerialCtrlMsg(struct AcmDevice *acm, uint8_t request, uint16_t value, void *buf, uint16_t len);
35 static int32_t AcmInit(struct AcmDevice *acm);
36 static void AcmRelease(struct AcmDevice *acm);
37 static struct UsbInterface *GetUsbInterfaceById(const struct AcmDevice *acm, uint8_t interfaceIndex);
39 static int32_t AcmWbAlloc(const struct AcmDevice *acm) in AcmWbAlloc()
82 static int32_t AcmWbIsAvail(const struct AcmDevice *acm) in AcmWbIsAvail()
93 static UsbInterfaceHandle *InterfaceIdToHandle(const struct AcmDevice *acm, uint8_t id) in InterfaceIdToHandle()
110 static int32_t AcmStartWb(struct AcmDevice *acm, struct AcmWb *wb, struct UsbPipeInfo *pipe) in AcmStartWb()
141 static int32_t AcmStartWbSync(struct AcmDevice *acm, struct AcmWb *wb, struct UsbPipeInfo *pipe) in AcmStartWbSync()
170 static int32_t AcmWriteBufAlloc(const struct AcmDevice *ac
[all...]
/drivers/hdf_core/framework/test/unittest/model/usb/device/include/
H A Dusb_device_lite_cdcacm_test.h52 struct AcmDevice *acm;
69 void (*Connect)(struct AcmDevice *acm);
70 void (*Disconnect)(struct AcmDevice *acm);
71 int32_t (*SendBreak)(struct AcmDevice *acm, int32_t duration);
85 struct AcmDevice { struct
121 struct AcmDevice *acm;
124 struct AcmDevice *SetUpAcmDevice(void);
125 void ReleaseAcmDevice(struct AcmDevice *acm);
127 void AcmDeviceRelease(struct AcmDevice *acmDevice);
130 struct AcmDevice *UsbGetAcmDevic
[all...]
/drivers/peripheral/usb/sample/host/src/
H A Dusbhost_sdkapi_speed.c51 static int32_t SerialBegin(struct AcmDevice * const acm);
53 static int32_t AcmDbAlloc(struct AcmDevice * const acm) in AcmDbAlloc()
73 static int32_t AcmDbIsAvail(struct AcmDevice * const acm) in AcmDbIsAvail()
82 static UsbInterfaceHandle *InterfaceIdToHandle(const struct AcmDevice *acm, uint8_t id) in InterfaceIdToHandle()
100 static int32_t AcmStartDb(struct AcmDevice *acm, struct AcmDb *db, struct UsbPipeInfo *pipe) in AcmStartDb()
113 static int32_t AcmDataBufAlloc(struct AcmDevice * const acm) in AcmDataBufAlloc()
180 static int32_t SerialBegin(struct AcmDevice *acm) in SerialBegin()
204 static struct UsbInterface *GetUsbInterfaceById(const struct AcmDevice *acm, uint8_t interfaceIndex) in GetUsbInterfaceById()
210 const struct AcmDevice *acm, uint8_t interfaceIndex, UsbPipeType pipeType, UsbPipeDirection pipeDirection) in EnumePipe()
242 static struct UsbPipeInfo *GetPipe(const struct AcmDevice *ac
[all...]
H A Dusbhost_sdkraw_speed.c48 static struct AcmDevice *g_acm = NULL;
59 static int32_t SerialBegin(struct AcmDevice *acm);
64 struct AcmDevice *acm = (struct AcmDevice *)data; in UsbIoThread()
102 struct AcmDevice *acm = (struct AcmDevice *)data; in UsbIoSendThread()
115 static int32_t UsbStartIo(struct AcmDevice * const acm) in UsbStartIo()
159 static int32_t UsbStopIo(struct AcmDevice * const acm) in UsbStopIo()
228 static int32_t UsbGetBulkEndpoint(struct AcmDevice * const acm, const struct UsbRawEndpointDescriptor *endPoint) in UsbGetBulkEndpoint()
256 struct AcmDevice * cons in UsbParseConfigDescriptorProcess()
[all...]
/drivers/peripheral/usb/sample/host/include/
H A Dusbhost_sdkapi_speed.h78 struct AcmDevice;
82 struct AcmDevice *instance;
89 struct AcmDevice *acm;
95 struct AcmDevice { struct
H A Dusbhost_sdkraw_speed.h75 struct AcmDevice;
78 struct AcmDevice *instance;
85 struct AcmDevice *acm;
97 struct AcmDevice { struct
/drivers/peripheral/usb/sample/host/liteos_test/include/
H A Dusbhost_sdkapi_speed.h75 struct AcmDevice;
79 struct AcmDevice *instance;
86 struct AcmDevice *acm;
92 struct AcmDevice { struct
H A Dusbhost_nosdk_speed.h72 struct AcmDevice;
76 struct AcmDevice *instance;
83 struct AcmDevice *acm;
89 struct AcmDevice { struct
H A Dusbhost_sdkraw_speed.h70 struct AcmDevice;
73 struct AcmDevice *instance;
80 struct AcmDevice *acm;
92 struct AcmDevice { struct
/drivers/peripheral/usb/sample/host/liteos_test/src/
H A Dusbhost_sdkraw_speed.c50 static struct AcmDevice *g_acm = NULL;
62 static int32_t SerialBegin(struct AcmDevice *acm);
67 struct AcmDevice *acm = (struct AcmDevice *)data; in UsbIoThread()
105 struct AcmDevice *acm = (struct AcmDevice *)data; in UsbIoSendThread()
119 static int32_t UsbStartIo(struct AcmDevice * const acm) in UsbStartIo()
164 static int32_t UsbStopIo(struct AcmDevice * const acm) in UsbStopIo()
233 static int32_t UsbSpeedGetBulkEndpoint(struct AcmDevice * const acm, const struct UsbRawEndpointDescriptor *endPoint) in UsbSpeedGetBulkEndpoint()
261 struct AcmDevice *ac in UsbSpeedParaseInterfaceClass()
[all...]
H A Dusbhost_sdkapi_speed.c49 static struct AcmDevice *g_acm = NULL;
54 static int32_t SerialBegin(struct AcmDevice * const acm);
56 static int32_t AcmDbAlloc(struct AcmDevice *acm) in AcmDbAlloc()
79 static int32_t AcmDbIsAvail(const struct AcmDevice *acm) in AcmDbIsAvail()
89 static UsbInterfaceHandle *InterfaceIdToHandle(const struct AcmDevice *acm, uint8_t id) in InterfaceIdToHandle()
106 static int32_t AcmStartDb(struct AcmDevice *acm, struct AcmDb * const db, struct UsbPipeInfo *pipe) in AcmStartDb()
119 static int32_t AcmDataBufAlloc(struct AcmDevice *acm) in AcmDataBufAlloc()
144 static int32_t AcmDataBufFree(const struct AcmDevice *acm) in AcmDataBufFree()
194 static int32_t SerialBegin(struct AcmDevice * const acm) in SerialBegin()
215 static struct UsbInterface *GetUsbInterfaceById(const struct AcmDevice *ac
[all...]
H A Dusbhost_nosdk_speed.c61 static struct AcmDevice *g_acm = NULL;
442 g_acm = (struct AcmDevice *)client->device->service; in AcmDeviceDispatch()
465 g_acm = (struct AcmDevice *)OsalMemCalloc(sizeof(*g_acm)); in AcmDriverBind()
/drivers/hdf_core/framework/test/unittest/model/usb/device/src/
H A Dusb_device_lite_cdcacm_test.c328 static void ParsePipes(struct AcmDevice *acmDevice, const struct UsbFnInterface *fnIface, UsbFnInterfaceHandle handle) in ParsePipes()
357 static int32_t ParseInterfaces(struct AcmDevice *acmDevice) in ParseInterfaces()
383 struct AcmDevice *acm = ctrlInfo->acm; in CtrlComplete()
399 static int32_t AllocCtrlRequests(struct AcmDevice *acmDevice) in AllocCtrlRequests()
431 struct AcmDevice *acm, uint8_t type, uint16_t value, const uint16_t *data, uint32_t length) in SendNotifyRequest()
465 static int32_t NotifySerialState(struct AcmDevice *acm) in NotifySerialState()
484 struct AcmDevice *acm = (struct AcmDevice *)req->context; in NotifyComplete()
501 static int32_t AllocNotifyRequest(struct AcmDevice *acmDevice) in AllocNotifyRequest()
515 static void Connect(struct AcmDevice *ac
[all...]
H A Dusb_device_lite_sdk_io_test.c15 struct AcmDevice *acmDevice = UsbGetAcmDevice(); in ReadComplete()
48 struct AcmDevice *acmDevice = UsbGetAcmDevice(); in UsbFnDviceTestRequestAsync002()
93 struct AcmDevice *acmDevice = UsbGetAcmDevice(); in UsbFnDviceTestRequestAsync003()
133 struct AcmDevice *acmDevice = UsbGetAcmDevice(); in WriteComplete()
145 struct AcmDevice *acmDevice = UsbGetAcmDevice(); in UsbFnDviceTestRequestAsync004()
192 struct AcmDevice *acmDevice = UsbGetAcmDevice(); in UsbFnDviceTestRequestAsync005()
253 struct AcmDevice *acmDevice = UsbGetAcmDevice(); in UsbFnDviceTestRequestSync002()
287 struct AcmDevice *acmDevice = UsbGetAcmDevice(); in UsbFnDviceTestRequestSync003()
324 struct AcmDevice *acmDevice = UsbGetAcmDevice(); in UsbFnDviceTestRequestSync004()
357 struct AcmDevice *acmDevic in UsbFnDviceTestRequestSync005()
[all...]
/drivers/hdf_core/framework/test/unittest/model/usb/host/include/
H A Dusb_test.h134 struct AcmDevice;
138 struct AcmDevice *instance;
149 struct AcmDevice *instance;
153 struct AcmDevice *acm;
159 struct AcmDevice { struct

Completed in 16 milliseconds

12