Home
last modified time | relevance | path

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

/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_gser_activate.c86 UX_HOST_CLASS_GSER *gser; in _ux_host_class_gser_activate() local
95 gser = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX_HOST_CLASS_GSER)); in _ux_host_class_gser_activate()
96 if (gser == UX_NULL) in _ux_host_class_gser_activate()
100 gser -> ux_host_class_gser_class = command -> ux_host_class_command_class_ptr; in _ux_host_class_gser_activate()
103 gser -> ux_host_class_gser_device = device; in _ux_host_class_gser_activate()
107 device -> ux_device_class_instance = (VOID *) gser; in _ux_host_class_gser_activate()
110 _ux_host_stack_class_instance_create(gser -> ux_host_class_gser_class, (VOID *) gser); in _ux_host_class_gser_activate()
113 status = _ux_host_class_gser_configure(gser); in _ux_host_class_gser_activate()
117 status = _ux_host_class_gser_endpoints_get(gser); in _ux_host_class_gser_activate()
124 gser -> ux_host_class_gser_state = UX_HOST_CLASS_INSTANCE_LIVE; in _ux_host_class_gser_activate()
[all …]
Dux_host_class_gser_deactivate.c84 UX_HOST_CLASS_GSER *gser; in _ux_host_class_gser_deactivate() local
88 gser = (UX_HOST_CLASS_GSER *) command -> ux_host_class_command_instance; in _ux_host_class_gser_deactivate()
91 gser -> ux_host_class_gser_state = UX_HOST_CLASS_INSTANCE_SHUTDOWN; in _ux_host_class_gser_deactivate()
97 …_ux_host_stack_endpoint_transfer_abort(gser -> ux_host_class_gser_interface_array[interface_index]… in _ux_host_class_gser_deactivate()
100 …_ux_host_stack_endpoint_transfer_abort(gser -> ux_host_class_gser_interface_array[interface_index]… in _ux_host_class_gser_deactivate()
107 …_ux_host_semaphore_delete(&gser -> ux_host_class_gser_interface_array[interface_index].ux_host_cla… in _ux_host_class_gser_deactivate()
112 _ux_host_stack_class_instance_destroy(gser -> ux_host_class_gser_class, (VOID *) gser); in _ux_host_class_gser_deactivate()
120 …-> ux_system_host_change_function(UX_DEVICE_REMOVAL, gser -> ux_host_class_gser_class, (VOID *) gs… in _ux_host_class_gser_deactivate()
123 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_GSER_DEACTIVATE, gser, 0, 0, 0, UX_TRACE_HOST_CLASS_EV… in _ux_host_class_gser_deactivate()
126 UX_TRACE_OBJECT_UNREGISTER(gser); in _ux_host_class_gser_deactivate()
[all …]
Dux_host_class_gser_ioctl.c82 UINT _ux_host_class_gser_ioctl(UX_HOST_CLASS_GSER *gser, ULONG interface_index, ULONG ioctl_functi… in _ux_host_class_gser_ioctl() argument
94 if (gser -> ux_host_class_gser_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_gser_ioctl()
98 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, gser, 0, 0, UX_TRACE_ERROR… in _ux_host_class_gser_ioctl()
110 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_GSER_IOCTL_SET_LINE_CODING, gser, parameter, 0, 0, UX_… in _ux_host_class_gser_ioctl()
143 …status = _ux_host_class_gser_command(gser, interface_index, UX_HOST_CLASS_GSER_REQ_SET_LINE_CODING, in _ux_host_class_gser_ioctl()
154 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_GSER_IOCTL_GET_LINE_CODING, gser, parameter, 0, 0, UX_… in _ux_host_class_gser_ioctl()
168 …status = _ux_host_class_gser_command(gser, interface_index, UX_HOST_CLASS_GSER_REQ_GET_LINE_CODING, in _ux_host_class_gser_ioctl()
202 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_GSER_IOCTL_SET_LINE_STATE, gser, parameter, 0, 0, UX_T… in _ux_host_class_gser_ioctl()
212 … status = _ux_host_class_gser_command(gser, interface_index, UX_HOST_CLASS_GSER_REQ_SET_LINE_STATE, in _ux_host_class_gser_ioctl()
219 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_GSER_IOCTL_SEND_BREAK, gser, parameter, 0, 0, UX_TRACE… in _ux_host_class_gser_ioctl()
[all …]
Dux_host_class_gser_reception_stop.c77 UINT _ux_host_class_gser_reception_stop (UX_HOST_CLASS_GSER *gser, in _ux_host_class_gser_reception_stop() argument
84 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_GSER_RECEPTION_STOP, gser, 0, 0, 0, UX_TRACE_HOST_CLAS… in _ux_host_class_gser_reception_stop()
87 if (gser -> ux_host_class_gser_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_gser_reception_stop()
91 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, gser, 0, 0, UX_TRACE_ERROR… in _ux_host_class_gser_reception_stop()
104 …_ux_host_stack_endpoint_transfer_abort(gser -> ux_host_class_gser_interface_array[interface_index]… in _ux_host_class_gser_reception_stop()
152 UINT _uxe_host_class_gser_reception_stop (UX_HOST_CLASS_GSER *gser, in _uxe_host_class_gser_reception_stop() argument
157 if ((gser == UX_NULL) || (gser_reception == UX_NULL)) in _uxe_host_class_gser_reception_stop()
161 return(_ux_host_class_gser_reception_stop(gser, gser_reception)); in _uxe_host_class_gser_reception_stop()
Dux_host_class_gser_read.c86 UINT _ux_host_class_gser_read(UX_HOST_CLASS_GSER *gser, in _ux_host_class_gser_read() argument
98 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_GSER_READ, gser, data_pointer, requested_length, 0, UX… in _ux_host_class_gser_read()
101 if (gser -> ux_host_class_gser_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_gser_read()
108 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, gser, 0, 0, UX_TRACE_ERROR… in _ux_host_class_gser_read()
114 …status = _ux_host_semaphore_get(&gser -> ux_host_class_gser_interface_array[interface_index].ux_h… in _ux_host_class_gser_read()
122 …transfer_request = &gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_gse… in _ux_host_class_gser_read()
164 …_ux_host_semaphore_put(&gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_… in _ux_host_class_gser_read()
183 …_ux_host_semaphore_put(&gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_… in _ux_host_class_gser_read()
199 …_ux_host_semaphore_put(&gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_… in _ux_host_class_gser_read()
213 …_ux_host_semaphore_put(&gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_… in _ux_host_class_gser_read()
[all …]
Dux_host_class_gser_write.c85 UINT _ux_host_class_gser_write(UX_HOST_CLASS_GSER *gser, in _ux_host_class_gser_write() argument
97 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_GSER_WRITE, gser, data_pointer, requested_length, 0, U… in _ux_host_class_gser_write()
100 if (gser -> ux_host_class_gser_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_gser_write()
104 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, gser, 0, 0, UX_TRACE_ERROR… in _ux_host_class_gser_write()
109 …status = _ux_host_semaphore_get(&gser -> ux_host_class_gser_interface_array[interface_index].ux_h… in _ux_host_class_gser_write()
117 …transfer_request = &gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_gse… in _ux_host_class_gser_write()
159 …_ux_host_semaphore_put(&gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_… in _ux_host_class_gser_write()
175 …_ux_host_semaphore_put(&gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_… in _ux_host_class_gser_write()
191 …_ux_host_semaphore_put(&gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_… in _ux_host_class_gser_write()
207 …_ux_host_semaphore_put(&gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_… in _ux_host_class_gser_write()
[all …]
Dux_host_class_gser_reception_start.c76 UINT _ux_host_class_gser_reception_start (UX_HOST_CLASS_GSER *gser, in _ux_host_class_gser_reception_start() argument
85 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_GSER_RECEPTION_START, gser, 0, 0, 0, UX_TRACE_HOST_CLA… in _ux_host_class_gser_reception_start()
88 if (gser -> ux_host_class_gser_state != UX_HOST_CLASS_INSTANCE_LIVE) in _ux_host_class_gser_reception_start()
95 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, gser, 0, 0, UX_TRACE_ERROR… in _ux_host_class_gser_reception_start()
108 …transfer_request = &gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_gse… in _ux_host_class_gser_reception_start()
114 transfer_request -> ux_transfer_request_class_instance = (VOID *) gser; in _ux_host_class_gser_reception_start()
120gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_gser_reception = gser_re… in _ux_host_class_gser_reception_start()
177 UINT _uxe_host_class_gser_reception_start (UX_HOST_CLASS_GSER *gser, in _uxe_host_class_gser_reception_start() argument
182 if ((gser == UX_NULL) || (gser_reception == UX_NULL)) in _uxe_host_class_gser_reception_start()
186 return(_ux_host_class_gser_reception_start(gser, gser_reception)); in _uxe_host_class_gser_reception_start()
Dux_host_class_gser_endpoints_get.c72 UINT _ux_host_class_gser_endpoints_get(UX_HOST_CLASS_GSER *gser) in _ux_host_class_gser_endpoints_get() argument
85 …for (endpoint_index = 0; endpoint_index < gser -> ux_host_class_gser_interface_array[interface_ind… in _ux_host_class_gser_endpoints_get()
90 …status = _ux_host_stack_interface_endpoint_get(gser -> ux_host_class_gser_interface_array[interfa… in _ux_host_class_gser_endpoints_get()
105gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_gser_bulk_out_endpoint =… in _ux_host_class_gser_endpoints_get()
112 …if (gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_gser_bulk_out_endpoi… in _ux_host_class_gser_endpoints_get()
119 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_ENDPOINT_HANDLE_UNKNOWN, gser, 0, 0, UX_TRACE_ERRORS, 0… in _ux_host_class_gser_endpoints_get()
126 …for (endpoint_index = 0; endpoint_index < gser -> ux_host_class_gser_interface_array[interface_ind… in _ux_host_class_gser_endpoints_get()
131 …status = _ux_host_stack_interface_endpoint_get(gser -> ux_host_class_gser_interface_array[interfa… in _ux_host_class_gser_endpoints_get()
146gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_gser_bulk_in_endpoint = … in _ux_host_class_gser_endpoints_get()
153 …if (gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_gser_bulk_in_endpoin… in _ux_host_class_gser_endpoints_get()
[all …]
Dux_host_class_gser_configure.c84 UINT _ux_host_class_gser_configure(UX_HOST_CLASS_GSER *gser) in _ux_host_class_gser_configure() argument
97 if (gser -> ux_host_class_gser_device -> ux_device_state == UX_DEVICE_CONFIGURED) in _ux_host_class_gser_configure()
102 …status = _ux_host_stack_device_configuration_get(gser -> ux_host_class_gser_device, 0, &configura… in _ux_host_class_gser_configure()
110 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONFIGURATION_HANDLE_UNKNOWN, gser -> ux_host_class_gse… in _ux_host_class_gser_configure()
118 if (gser -> ux_host_class_gser_device -> ux_device_power_source == UX_DEVICE_BUS_POWERED) in _ux_host_class_gser_configure()
122 parent_device = gser -> ux_host_class_gser_device -> ux_device_parent; in _ux_host_class_gser_configure()
133 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONNECTION_INCOMPATIBLE, gser, 0, 0, UX_TRACE_ERRORS, 0… in _ux_host_class_gser_configure()
151 …ost_stack_configuration_interface_get(configuration, interface_index, 0, &gser -> ux_host_class_gs… in _ux_host_class_gser_configure()
158 …status = _ux_host_semaphore_create(&gser -> ux_host_class_gser_interface_array[interface_index].u… in _ux_host_class_gser_configure()
Dux_host_class_gser_command.c88 UINT _ux_host_class_gser_command(UX_HOST_CLASS_GSER *gser, ULONG interface_index, ULONG command, in _ux_host_class_gser_command() argument
99 control_endpoint = &gser -> ux_host_class_gser_device -> ux_device_control_endpoint; in _ux_host_class_gser_command()
147 …status = _ux_host_semaphore_get(&gser -> ux_host_class_gser_device -> ux_device_protection_semaph… in _ux_host_class_gser_command()
161 …transfer_request -> ux_transfer_request_index = gser -> ux_host_class_gser_interface_a… in _ux_host_class_gser_command()
213 UINT _uxe_host_class_gser_command(UX_HOST_CLASS_GSER *gser, ULONG interface_index, ULONG command, in _uxe_host_class_gser_command() argument
218 if (gser == UX_NULL) in _uxe_host_class_gser_command()
222 return(_ux_host_class_gser_command(gser, interface_index, in _uxe_host_class_gser_command()
Dux_host_class_gser_reception_callback.c76 UX_HOST_CLASS_GSER *gser; in _ux_host_class_gser_reception_callback() local
81 gser = (UX_HOST_CLASS_GSER *) transfer_request -> ux_transfer_request_class_instance; in _ux_host_class_gser_reception_callback()
87 …gser_reception = gser -> ux_host_class_gser_interface_array[interface_index].ux_host_class_gser_r… in _ux_host_class_gser_reception_callback()
117 … gser_reception -> ux_host_class_gser_reception_callback(gser, UX_BUFFER_OVERFLOW, UX_NULL, 0); in _ux_host_class_gser_reception_callback()
137 gser_reception -> ux_host_class_gser_reception_callback(gser, in _ux_host_class_gser_reception_callback()
/USBX-v6.2.1/common/usbx_host_classes/inc/
Dux_host_class_gser.h199 … (*ux_host_class_gser_device_status_change_callback)(struct UX_HOST_CLASS_GSER_STRUCT *gser,
216 … VOID (*ux_host_class_gser_reception_callback)(struct UX_HOST_CLASS_GSER_STRUCT *gser,
259 UINT _ux_host_class_gser_configure(UX_HOST_CLASS_GSER *gser);
261 UINT _ux_host_class_gser_endpoints_get(UX_HOST_CLASS_GSER *gser);
263 UINT _ux_host_class_gser_read (UX_HOST_CLASS_GSER *gser, ULONG interface_index,UCHAR *data_point…
265 UINT _ux_host_class_gser_write(UX_HOST_CLASS_GSER *gser, ULONG interface_index,UCHAR *data_point…
267 UINT _ux_host_class_gser_command(UX_HOST_CLASS_GSER *gser, ULONG interface_index, ULONG command,
269 UINT _ux_host_class_gser_ioctl(UX_HOST_CLASS_GSER *gser, ULONG interface_index, ULONG ioctl_func…
272 UINT _ux_host_class_gser_reception_stop (UX_HOST_CLASS_GSER *gser,
274 UINT _ux_host_class_gser_reception_start (UX_HOST_CLASS_GSER *gser,
[all …]