Home
last modified time | relevance | path

Searched refs:hid_client (Results 1 – 25 of 61) sorted by relevance

123

/USBX-v6.2.1/common/usbx_host_classes/src/
Dux_host_class_hid_client_search.c75 UX_HOST_CLASS_HID_CLIENT *hid_client; in _ux_host_class_hid_client_search() local
89hid_client = (UX_HOST_CLASS_HID_CLIENT *) hid -> ux_host_class_hid_class -> ux_host_class_client; in _ux_host_class_hid_client_search()
92 if (hid_client == UX_NULL) in _ux_host_class_hid_client_search()
109 if (hid_client -> ux_host_class_hid_client_status == UX_USED) in _ux_host_class_hid_client_search()
113 status = hid_client -> ux_host_class_hid_client_handler(&hid_client_command); in _ux_host_class_hid_client_search()
123 hid -> ux_host_class_hid_client = hid_client; in _ux_host_class_hid_client_search()
126 status = hid_client -> ux_host_class_hid_client_handler(&hid_client_command); in _ux_host_class_hid_client_search()
138 hid_client++; in _ux_host_class_hid_client_search()
Dux_host_class_hid_client_register.c102 UX_HOST_CLASS_HID_CLIENT *hid_client; in UX_OVERFLOW_CHECK_MULC_ULONG() local
137 hid_client = (UX_HOST_CLASS_HID_CLIENT *) class_ptr -> ux_host_class_client; in UX_OVERFLOW_CHECK_MULC_ULONG()
144 if (hid_client -> ux_host_class_hid_client_status == UX_UNUSED) in UX_OVERFLOW_CHECK_MULC_ULONG()
148 …_ux_utility_memory_copy(hid_client -> ux_host_class_hid_client_name, hid_client_name, client_name_… in UX_OVERFLOW_CHECK_MULC_ULONG()
151 hid_client -> ux_host_class_hid_client_handler = hid_client_handler; in UX_OVERFLOW_CHECK_MULC_ULONG()
154 hid_client -> ux_host_class_hid_client_status = UX_USED; in UX_OVERFLOW_CHECK_MULC_ULONG()
164 if (hid_client -> ux_host_class_hid_client_handler == hid_client_handler) in UX_OVERFLOW_CHECK_MULC_ULONG()
178 hid_client++; in UX_OVERFLOW_CHECK_MULC_ULONG()
Dux_host_class_hid_mouse_deactivate.c81 UX_HOST_CLASS_HID_CLIENT *hid_client; in _ux_host_class_hid_mouse_deactivate() local
92 hid_client = hid -> ux_host_class_hid_client; in _ux_host_class_hid_mouse_deactivate()
95 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_HID_MOUSE_DEACTIVATE, hid, hid_client -> ux_host_class… in _ux_host_class_hid_mouse_deactivate()
103 …m_host_change_function(UX_HID_CLIENT_REMOVAL, hid -> ux_host_class_hid_class, (VOID *) hid_client); in _ux_host_class_hid_mouse_deactivate()
107 _ux_utility_memory_free(hid_client -> ux_host_class_hid_client_local_instance); in _ux_host_class_hid_mouse_deactivate()
Dux_host_class_hid_remote_control_deactivate.c81 UX_HOST_CLASS_HID_CLIENT *hid_client; in _ux_host_class_hid_remote_control_deactivate() local
93 hid_client = hid -> ux_host_class_hid_client; in _ux_host_class_hid_remote_control_deactivate()
96 …remote_control_instance = (UX_HOST_CLASS_HID_REMOTE_CONTROL *) hid_client -> ux_host_class_hid_cl… in _ux_host_class_hid_remote_control_deactivate()
107 …m_host_change_function(UX_HID_CLIENT_REMOVAL, hid -> ux_host_class_hid_class, (VOID *) hid_client); in _ux_host_class_hid_remote_control_deactivate()
114 _ux_utility_memory_free(hid_client -> ux_host_class_hid_client_local_instance); in _ux_host_class_hid_remote_control_deactivate()
Dux_host_class_hid_keyboard_deactivate.c89 UX_HOST_CLASS_HID_CLIENT *hid_client; in _ux_host_class_hid_keyboard_deactivate() local
101 hid_client = hid -> ux_host_class_hid_client; in _ux_host_class_hid_keyboard_deactivate()
104 …keyboard_instance = (UX_HOST_CLASS_HID_KEYBOARD *) hid_client -> ux_host_class_hid_client_local_i… in _ux_host_class_hid_keyboard_deactivate()
124 …m_host_change_function(UX_HID_CLIENT_REMOVAL, hid -> ux_host_class_hid_class, (VOID *) hid_client); in _ux_host_class_hid_keyboard_deactivate()
140 _ux_utility_memory_free(hid_client -> ux_host_class_hid_client_local_instance); in _ux_host_class_hid_keyboard_deactivate()
Dux_host_class_hid_mouse_activate.c93 UX_HOST_CLASS_HID_CLIENT *hid_client; in _ux_host_class_hid_mouse_activate() local
112 hid_client = &client_mouse -> ux_host_class_hid_client_mouse_client; in _ux_host_class_hid_mouse_activate()
113 …_ux_utility_memory_copy(hid_client, hid -> ux_host_class_hid_client, sizeof(UX_HOST_CLASS_HID_CLIE… in _ux_host_class_hid_mouse_activate()
116 hid_client -> ux_host_class_hid_client_local_instance = (VOID *) mouse_instance; in _ux_host_class_hid_mouse_activate()
145 hid -> ux_host_class_hid_client = hid_client; in _ux_host_class_hid_mouse_activate()
199 hid -> ux_host_class_hid_client = hid_client; in _ux_host_class_hid_mouse_activate()
207 …host_change_function(UX_HID_CLIENT_INSERTION, hid -> ux_host_class_hid_class, (VOID *) hid_client); in _ux_host_class_hid_mouse_activate()
Dux_host_class_hid_remote_control_activate.c83 UX_HOST_CLASS_HID_CLIENT *hid_client; in _ux_host_class_hid_remote_control_activate() local
102 hid_client = &client_remote_control -> ux_host_class_hid_client_remote_control_client; in _ux_host_class_hid_remote_control_activate()
103 …_ux_utility_memory_copy(hid_client, hid -> ux_host_class_hid_client, sizeof(UX_HOST_CLASS_HID_CLIE… in _ux_host_class_hid_remote_control_activate()
106 hid_client -> ux_host_class_hid_client_local_instance = (VOID *) remote_control_instance; in _ux_host_class_hid_remote_control_activate()
157 hid -> ux_host_class_hid_client = hid_client; in _ux_host_class_hid_remote_control_activate()
168 …host_change_function(UX_HID_CLIENT_INSERTION, hid -> ux_host_class_hid_class, (VOID *) hid_client); in _ux_host_class_hid_remote_control_activate()
Dux_host_class_hid_remote_control_callback.c75 UX_HOST_CLASS_HID_CLIENT *hid_client; in _ux_host_class_hid_remote_control_callback() local
85 hid_client = callback -> ux_host_class_hid_report_callback_client; in _ux_host_class_hid_remote_control_callback()
88 …remote_control_instance = (UX_HOST_CLASS_HID_REMOTE_CONTROL *) hid_client -> ux_host_class_hid_cl… in _ux_host_class_hid_remote_control_callback()
123 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_HID_REMOTE_CONTROL_CALLBACK, hid_client, remote_contro… in _ux_host_class_hid_remote_control_callback()
Dux_host_class_hid_keyboard_entry.c152 UX_HOST_CLASS_HID_CLIENT *hid_client; in _ux_host_class_hid_keyboard_activate_wait() local
160 hid_client = hid -> ux_host_class_hid_client; in _ux_host_class_hid_keyboard_activate_wait()
163 keyboard = (UX_HOST_CLASS_HID_KEYBOARD *) hid_client -> ux_host_class_hid_client_local_instance; in _ux_host_class_hid_keyboard_activate_wait()
229 hid_client -> ux_host_class_hid_client_local_instance = UX_NULL; in _ux_host_class_hid_keyboard_activate_wait()
254 …host_change_function(UX_HID_CLIENT_INSERTION, hid -> ux_host_class_hid_class, (VOID *) hid_client); in _ux_host_class_hid_keyboard_activate_wait()
Dux_host_class_hid_mouse_entry.c146 UX_HOST_CLASS_HID_CLIENT *hid_client; in _ux_host_class_hid_mouse_activate_wait() local
155 hid_client = hid -> ux_host_class_hid_client; in _ux_host_class_hid_mouse_activate_wait()
158 mouse = (UX_HOST_CLASS_HID_MOUSE *) hid_client -> ux_host_class_hid_client_local_instance; in _ux_host_class_hid_mouse_activate_wait()
218 hid_client -> ux_host_class_hid_client_local_instance = UX_NULL; in _ux_host_class_hid_mouse_activate_wait()
235 …host_change_function(UX_HID_CLIENT_INSERTION, hid -> ux_host_class_hid_class, (VOID *) hid_client); in _ux_host_class_hid_mouse_activate_wait()
Dux_host_class_hid_mouse_callback.c77 UX_HOST_CLASS_HID_CLIENT *hid_client; in _ux_host_class_hid_mouse_callback() local
81 hid_client = callback -> ux_host_class_hid_report_callback_client; in _ux_host_class_hid_mouse_callback()
84 …mouse_instance = (UX_HOST_CLASS_HID_MOUSE *) hid_client -> ux_host_class_hid_client_local_instanc… in _ux_host_class_hid_mouse_callback()
Dux_host_class_hid_keyboard_activate.c164 UX_HOST_CLASS_HID_CLIENT *hid_client; in _ux_host_class_hid_keyboard_activate() local
190 hid_client = &client_keyboard -> ux_host_class_hid_client_keyboard_client; in _ux_host_class_hid_keyboard_activate()
191 …_ux_utility_memory_copy(hid_client, hid -> ux_host_class_hid_client, sizeof(UX_HOST_CLASS_HID_CLIE… in _ux_host_class_hid_keyboard_activate()
194 hid_client -> ux_host_class_hid_client_local_instance = (VOID *) keyboard_instance; in _ux_host_class_hid_keyboard_activate()
202 hid_client -> ux_host_class_hid_client_function = _ux_host_class_hid_keyboard_tasks_run; in _ux_host_class_hid_keyboard_activate()
367 hid -> ux_host_class_hid_client = hid_client; in _ux_host_class_hid_keyboard_activate()
422 hid -> ux_host_class_hid_client = hid_client; in _ux_host_class_hid_keyboard_activate()
430 …host_change_function(UX_HID_CLIENT_INSERTION, hid -> ux_host_class_hid_class, (VOID *) hid_client); in _ux_host_class_hid_keyboard_activate()
Dux_host_class_hid_transfer_request_completed.c85 UX_HOST_CLASS_HID_CLIENT *hid_client; in _ux_host_class_hid_transfer_request_completed() local
125 hid_client = hid -> ux_host_class_hid_client; in _ux_host_class_hid_transfer_request_completed()
168 callback.ux_host_class_hid_report_callback_client = hid_client; in _ux_host_class_hid_transfer_request_completed()
/USBX-v6.2.1/test/regression/
Dusbx_test_common_hid.h45 static UX_HOST_CLASS_HID_CLIENT *hid_client; variable
84 hid_client = hid -> ux_host_class_hid_client; in demo_class_hid_get()
97 if (hid_client -> ux_host_class_hid_client_handler != ux_host_class_hid_keyboard_entry) in demo_class_hid_keyboard_get()
101 …hid_keyboard = (UX_HOST_CLASS_HID_KEYBOARD *)hid_client -> ux_host_class_hid_client_local_instance; in demo_class_hid_keyboard_get()
122 if (hid_client -> ux_host_class_hid_client_handler != ux_host_class_hid_mouse_entry) in demo_class_hid_mouse_get()
126 hid_mouse = (UX_HOST_CLASS_HID_MOUSE *)hid_client -> ux_host_class_hid_client_local_instance; in demo_class_hid_mouse_get()
147 if (hid_client -> ux_host_class_hid_client_handler != ux_host_class_hid_remote_control_entry) in demo_class_hid_remote_control_get()
151 …hid_remote_control = (UX_HOST_CLASS_HID_REMOTE_CONTROL *)hid_client -> ux_host_class_hid_client_lo… in demo_class_hid_remote_control_get()
Dusbx_msrc_81325_host_hid_remote_control_free_callback_test.c155 if (hid_client == client_inst) in ux_system_host_change_function()
157 hid_client = UX_NULL; in ux_system_host_change_function()
316 if (hid_client == UX_NULL) in tx_demo_thread_host_simulation_entry()
319 UX_TEST_ASSERT(hid_client == UX_NULL); in tx_demo_thread_host_simulation_entry()
Dusbx_msrc_81327_host_hid_mouse_free_callback_test.c155 if (hid_client == client_inst) in ux_system_host_change_function()
157 hid_client = UX_NULL; in ux_system_host_change_function()
316 if (hid_client == UX_NULL) in tx_demo_thread_host_simulation_entry()
319 UX_TEST_ASSERT(hid_client == UX_NULL); in tx_demo_thread_host_simulation_entry()
Dusbx_msrc_81326_host_hid_keyboard_free_callback_test.c155 if (hid_client == client_inst) in ux_system_host_change_function()
157 hid_client = UX_NULL; in ux_system_host_change_function()
316 if (hid_client == UX_NULL) in tx_demo_thread_host_simulation_entry()
319 UX_TEST_ASSERT(hid_client == UX_NULL); in tx_demo_thread_host_simulation_entry()
Dusbx_test_USBX_141_keyboard_layout.c65 static UX_HOST_CLASS_HID_CLIENT *hid_client; variable
240 hid_client = (UX_HOST_CLASS_HID_CLIENT *)c; in ux_system_host_change_function()
241 … keyboard = (UX_HOST_CLASS_HID_KEYBOARD *)hid_client -> ux_host_class_hid_client_local_instance; in ux_system_host_change_function()
245 if ((VOID *)hid_client == c) in ux_system_host_change_function()
248 hid_client = UX_NULL; in ux_system_host_change_function()
475 while (hid_client == UX_NULL && keyboard == UX_NULL) in tx_demo_thread_host_simulation_entry()
Dusbx_ux_host_class_hid_report_id_get_test.c294 UX_HOST_CLASS_HID_CLIENT *hid_client; in tx_demo_thread_host_simulation_entry() local
308 hid_client = hid -> ux_host_class_hid_client; in tx_demo_thread_host_simulation_entry()
311 while (hid_client -> ux_host_class_hid_client_local_instance == UX_NULL) in tx_demo_thread_host_simulation_entry()
315 keyboard = (UX_HOST_CLASS_HID_KEYBOARD *)hid_client -> ux_host_class_hid_client_local_instance; in tx_demo_thread_host_simulation_entry()
Dusbx_ux_host_class_hid_remote_control_activate_test.c292 hid_client = hid -> ux_host_class_hid_client; in tx_demo_thread_host_simulation_entry()
295 while (hid_client -> ux_host_class_hid_client_local_instance == UX_NULL) in tx_demo_thread_host_simulation_entry()
298 …remote_control = (UX_HOST_CLASS_HID_REMOTE_CONTROL *)hid_client -> ux_host_class_hid_client_local… in tx_demo_thread_host_simulation_entry()
Dusbx_ux_device_class_hid_report_set_test2.c297 hid_client = hid -> ux_host_class_hid_client; in tx_demo_thread_host_simulation_entry()
300 while (hid_client -> ux_host_class_hid_client_local_instance == UX_NULL) in tx_demo_thread_host_simulation_entry()
304 keyboard = (UX_HOST_CLASS_HID_KEYBOARD *)hid_client -> ux_host_class_hid_client_local_instance; in tx_demo_thread_host_simulation_entry()
Dusbx_hid_mouse_extraction_test2.c325 hid_client = hid -> ux_host_class_hid_client; in tx_demo_thread_host_simulation_entry()
328 while (hid_client -> ux_host_class_hid_client_local_instance == UX_NULL) in tx_demo_thread_host_simulation_entry()
332 mouse = (UX_HOST_CLASS_HID_MOUSE *)hid_client -> ux_host_class_hid_client_local_instance; in tx_demo_thread_host_simulation_entry()
Dusbx_hid_remote_control_extraction_test2.c314 hid_client = hid -> ux_host_class_hid_client; in tx_demo_thread_host_simulation_entry()
317 while (hid_client -> ux_host_class_hid_client_local_instance == UX_NULL) in tx_demo_thread_host_simulation_entry()
321 …remote_control = (UX_HOST_CLASS_HID_REMOTE_CONTROL *)hid_client -> ux_host_class_hid_client_local… in tx_demo_thread_host_simulation_entry()
Dusbx_ux_host_class_hid_deactivate_test3.c290 hid_client = hid -> ux_host_class_hid_client; in tx_demo_thread_host_simulation_entry()
293 while (hid_client -> ux_host_class_hid_client_local_instance == UX_NULL) in tx_demo_thread_host_simulation_entry()
297 keyboard = (UX_HOST_CLASS_HID_KEYBOARD *)hid_client -> ux_host_class_hid_client_local_instance; in tx_demo_thread_host_simulation_entry()
Dusbx_ux_host_class_hid_keyboard_callback_test.c37 static UX_HOST_CLASS_HID_CLIENT *hid_client; variable
382 hid_client = hid -> ux_host_class_hid_client; in tx_demo_thread_host_simulation_entry()
385 while (hid_client -> ux_host_class_hid_client_local_instance == UX_NULL) in tx_demo_thread_host_simulation_entry()
389 keyboard = (UX_HOST_CLASS_HID_KEYBOARD *)hid_client -> ux_host_class_hid_client_local_instance; in tx_demo_thread_host_simulation_entry()

123