Home
last modified time | relevance | path

Searched refs:g_acmService (Results 1 – 12 of 12) sorted by relevance

/drivers/peripheral/usb/sample/device/liteos/lib/src/
Dlib_acm_test.c42 struct HdfIoService *g_acmService; variable
46 …if (g_acmService == NULL || g_acmService->dispatcher == NULL || g_acmService->dispatcher->Dispatch… in check_service()
60 g_acmService = HdfIoServiceBind("usbfn_cdcacm"); in AcmOpen()
61 …if (g_acmService == NULL || g_acmService->dispatcher == NULL || g_acmService->dispatcher->Dispatch… in AcmOpen()
70 …status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_OPEN, g_data, g_repl… in AcmOpen()
83 …status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_CLOSE, g_data, g_rep… in AcmClose()
89 HdfIoServiceRecycle(g_acmService); in AcmClose()
100 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_WRITE, g_dat… in AcmWrite()
118 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_READ, g_data… in AcmRead()
145 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_REGIST_PROP,… in acm_prop_regist()
[all …]
/drivers/peripheral/usb/sample/host/src/
Dusbhost_ddk_test.c50 static struct HdfIoService *g_acmService = NULL; variable
52 struct HdfRemoteService *g_acmService = NULL; variable
58 if (g_acmService == NULL) { in UsbObtainSbuf()
95 g_acmService = HdfIoServiceBind(acmServiceName); in UsbHostDdkTestInit()
97 g_acmService = servmgr->GetService(servmgr, acmServiceName); in UsbHostDdkTestInit()
102 g_acmService = HdfIoServiceBind(acmRawServiceName); in UsbHostDdkTestInit()
104 g_acmService = servmgr->GetService(servmgr, acmRawServiceName); in UsbHostDdkTestInit()
109 g_acmService = HdfIoServiceBind(ecmServiceName); in UsbHostDdkTestInit()
111 g_acmService = servmgr->GetService(servmgr, ecmServiceName); in UsbHostDdkTestInit()
181 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_READ_PARM, g_data, … in UsbHostDdkTestAsyncRead()
[all …]
/drivers/peripheral/usb/sample/device/linux/
Dacm_speed_read.c32 static struct HdfRemoteService *g_acmService; variable
37 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in TestSpeed()
50 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in GetTempSpeed()
68 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in ReadSpeedDone()
94 g_acmService = servmgr->GetService(servmgr, "usbfn_cdcacm"); in AcmSpeedRead()
96 if (g_acmService == NULL) { in AcmSpeedRead()
108 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_OPEN, g_data, g_reply); in AcmSpeedRead()
124 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_CLOSE, g_data, g_reply); in AcmSpeedRead()
Dacm_speed_write.c33 static struct HdfRemoteService *g_acmService; variable
38 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in TestSpeed()
51 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in GetTempSpeed()
69 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in WriteSpeedDone()
96 g_acmService = servmgr->GetService(servmgr, "usbfn_cdcacm"); in AcmSpeedWrite()
98 if (g_acmService == NULL) { in AcmSpeedWrite()
110 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_OPEN, g_data, g_reply); in AcmSpeedWrite()
126 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_CLOSE, g_data, g_reply); in AcmSpeedWrite()
Dacm_test.c38 static struct HdfRemoteService *g_acmService; variable
45 if (HdfRemoteServiceWriteInterfaceToken(g_acmService, g_data) == false) { in TestWrite()
51 …int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_WRITE, g_data, g_repl… in TestWrite()
61 if (HdfRemoteServiceWriteInterfaceToken(g_acmService, g_data) == false) { in TestRead()
66 …int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_READ, g_data, g_reply… in TestRead()
144 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_CLOSE, g_data, g_reply); in StopAcmTest()
162 g_acmService = servmgr->GetService(servmgr, "usbfn_cdcacm"); in AcmTest()
164 if (g_acmService == NULL) { in AcmTest()
169 if (HdfRemoteServiceSetInterfaceDesc(g_acmService, "hdf.usb.usbfn") == false) { in AcmTest()
181 if (HdfRemoteServiceWriteInterfaceToken(g_acmService, g_data) == false) { in AcmTest()
[all …]
Dacm_write.c31 static struct HdfRemoteService *g_acmService; variable
37 …int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_WRITE, g_data, g_repl… in TestWrite()
52 g_acmService = servmgr->GetService(servmgr, "usbfn_cdcacm"); in AcmWrite()
54 if (g_acmService == NULL) { in AcmWrite()
64 …int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_OPEN, g_data, g_reply… in AcmWrite()
87 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_CLOSE, g_data, g_reply); in AcmWrite()
Dprop_test.c32 static struct HdfRemoteService *g_acmService; variable
50 g_acmService = servmgr->GetService(servmgr, ACM_SERVICE_NAME); in DispatcherInit()
52 if (g_acmService == NULL) { in DispatcherInit()
80 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_GET_PROP, g_data, g_reply); in TestPropGet()
107 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_SET_PROP, g_data, g_reply); in TestPropSet()
119 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_OPEN, g_data, g_reply); in TestPropRegist()
132 …status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_REGIST_PROP, g_data, g_reply); in TestPropRegist()
137 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_CLOSE, g_data, g_reply); in TestPropRegist()
Dacm_read.c31 static struct HdfRemoteService *g_acmService; variable
38 …int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_READ, g_data, g_reply… in TestRead()
70 g_acmService = servmgr->GetService(servmgr, "usbfn_cdcacm"); in AcmRead()
72 if (g_acmService == NULL) { in AcmRead()
84 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_OPEN, g_data, g_reply); in AcmRead()
98 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_CLOSE, g_data, g_reply); in AcmRead()
/drivers/peripheral/usb/sample/device/liteos/
Dacm_speed_write.c53 static struct HdfIoService *g_acmService; variable
60 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, in TestSpeed()
74 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, in GetTempSpeed()
92 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in WriteSpeedDone()
146 g_acmService = HdfIoServiceBind("usbfn_cdcacm"); in AcmSpeedWrite()
147 …if (g_acmService == NULL || g_acmService->dispatcher == NULL || g_acmService->dispatcher->Dispatch… in AcmSpeedWrite()
159 …status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_OPEN, g_data, g_repl… in AcmSpeedWrite()
174 …status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_CLOSE, g_data, g_rep… in AcmSpeedWrite()
182 HdfIoServiceRecycle(g_acmService); in AcmSpeedWrite()
Dacm_speed_read.c55 static struct HdfIoService *g_acmService; variable
61 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_READ_SPEED, … in TestSpeed()
73 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, in GetTempSpeed()
91 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, in ReadSpeedDone()
144 g_acmService = HdfIoServiceBind("usbfn_cdcacm"); in AcmSpeedRead()
145 …if (g_acmService == NULL || g_acmService->dispatcher == NULL || g_acmService->dispatcher->Dispatch… in AcmSpeedRead()
157 …status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_OPEN, g_data, g_repl… in AcmSpeedRead()
175 HdfIoServiceRecycle(g_acmService); in AcmSpeedRead()
Dacm_test.c46 static struct HdfIoService *g_acmService; variable
53 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_WRITE, g_dat… in TestWrite()
62 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_READ, g_data… in TestRead()
137 g_acmService = HdfIoServiceBind("usbfn_cdcacm"); in AcmTest()
138 …if (g_acmService == NULL || g_acmService->dispatcher == NULL || g_acmService->dispatcher->Dispatch… in AcmTest()
150 …status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_OPEN, g_data, g_repl… in AcmTest()
158 …status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_CLOSE, g_data, g_rep… in AcmTest()
Dprop_test.c46 static struct HdfIoService *g_acmService; variable
59 g_acmService = HdfIoServiceBind("usbfn_cdcacm"); in DispatcherInit()
60 if (g_acmService == NULL) { in DispatcherInit()
88 …status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_GET_PROP, g_data, g_… in TestPropGet()
115 …status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_SET_PROP, g_data, g_… in TestPropSet()
127 …status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_OPEN, g_data, g_repl… in TestPropRegist()
140 …status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_REGIST_PROP, g_data,… in TestPropRegist()
145 …status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_CLOSE, g_data, g_rep… in TestPropRegist()