Home
last modified time | relevance | path

Searched refs:action (Results 1 – 25 of 116) sorted by relevance

12345

/USBX-v6.2.1/test/regression/
Dux_test_actions.h9 UX_TEST_ACTION action = { 0 }; in create_error_match_action() local
12 action.usbx_function = UX_TEST_OVERRIDE_ERROR_CALLBACK; in create_error_match_action()
13 action.system_level = system_level; in create_error_match_action()
14 action.system_context = system_context; in create_error_match_action()
15 action.error_code = error_code; in create_error_match_action()
16 action.no_return = 1; in create_error_match_action()
18 return action; in create_error_match_action()
Dusbx_hub_get_status_fails_during_configuration_test.c37 UX_TEST_ACTION action = {0}; in post_init_host() local
38 action.usbx_function = UX_TEST_OVERRIDE_UX_HCD_SIM_HOST_ENTRY; in post_init_host()
39 action.function = UX_HCD_TRANSFER_REQUEST; in post_init_host()
40 action.req_action = UX_TEST_SETUP_MATCH_REQUEST | UX_TEST_SIM_REQ_ANSWER; in post_init_host()
41 action.req_setup = &setup; in post_init_host()
42 action.req_ep_address = 0x81; in post_init_host()
43 action.req_actual_len = 1; in post_init_host()
44 action.no_return = 0; in post_init_host()
45 action.status = UX_SUCCESS; in post_init_host()
50 ux_test_add_action_to_main_list(action); in post_init_host()
Dusbx_hub_invalid_hub_descriptor_length_test.c38 UX_TEST_ACTION action = {0}; in post_init_host() local
39 action.usbx_function = UX_TEST_OVERRIDE_UX_HCD_SIM_HOST_ENTRY; in post_init_host()
40 action.function = UX_HCD_TRANSFER_REQUEST; in post_init_host()
41 action.req_action = UX_TEST_SETUP_MATCH_REQUEST | UX_TEST_SIM_REQ_ANSWER; in post_init_host()
42 action.req_setup = &setup; in post_init_host()
43 action.req_ep_address = 0x81; in post_init_host()
44 action.req_actual_len = 1; /* Invalid length. */ in post_init_host()
45 action.no_return = 0; in post_init_host()
46 action.status = UX_SUCCESS; in post_init_host()
51 ux_test_add_action_to_main_list(action); in post_init_host()
Dusbx_storage_tests.c995 static void disconnect_host_and_slave_action_func(UX_TEST_ACTION *action, VOID *_params) in disconnect_host_and_slave_action_func() argument
1177 static void ux_test_memory_allocate_all_memory_action_func(UX_TEST_ACTION *action, VOID *_params) in ux_test_memory_allocate_all_memory_action_func() argument
1180 ux_test_utility_sim_mem_allocate_until_align_flagged(0, 0, action->memory_cache_flag); in ux_test_memory_allocate_all_memory_action_func()
1186 UX_TEST_ACTION action = { 0 }; in create_disconnect_on_thread_preemption_change() local
1189 action.usbx_function = UX_TEST_OVERRIDE_TX_THREAD_PREEMPTION_CHANGE; in create_disconnect_on_thread_preemption_change()
1190 action.thread_ptr = preemption_change_param_thread_ptr; in create_disconnect_on_thread_preemption_change()
1191 action.new_threshold = preemption_change_param_new_threshold; in create_disconnect_on_thread_preemption_change()
1192 action.action_func = disconnect_host_and_slave_action_func; in create_disconnect_on_thread_preemption_change()
1193 action.thread_to_match = thread_to_match; in create_disconnect_on_thread_preemption_change()
1194 action.do_after = 1; in create_disconnect_on_thread_preemption_change()
[all …]
Dusbx_hub_request_to_hub_itself_test.c34 UX_TEST_ACTION action = {0}; in post_init_host() local
35 action.usbx_function = UX_TEST_OVERRIDE_UX_HCD_SIM_HOST_ENTRY; in post_init_host()
36 action.function = UX_HCD_TRANSFER_REQUEST; in post_init_host()
37 action.req_action = UX_TEST_SETUP_MATCH_REQUEST; in post_init_host()
38 action.req_setup = &setup; in post_init_host()
39 action.no_return = 0; in post_init_host()
40 action.status = UX_SUCCESS; in post_init_host()
41 ux_test_add_action_to_main_list(action); in post_init_host()
Dux_test.c11 static UX_TEST_ACTION ux_test_action_handler_check(UX_TEST_ACTION *action, UX_TEST_FUNCTION usbx_fu…
101 UINT ux_test_list_action_compare(UX_TEST_ACTION *list_item, UX_TEST_ACTION *action) in ux_test_list_action_compare() argument
110 temp = *action; in ux_test_list_action_compare()
127 if (list_item == action) in ux_test_list_action_compare()
135 VOID ux_test_remove_hook(UX_TEST_ACTION *action) in ux_test_remove_hook() argument
143 if (ux_test_list_action_compare(item, action) != UX_SUCCESS) in ux_test_remove_hook()
159 previous->next = action->next; in ux_test_remove_hook()
163 if (action->created_list_next == action) in ux_test_remove_hook()
164 free(action); in ux_test_remove_hook()
171 UINT ux_test_link_hook(UX_TEST_ACTION *action) in ux_test_link_hook() argument
[all …]
Dux_test_hcd_sim_host.c195 …status = ux_test_cd_handle_action(action, hcd, UX_TEST_CD_TYPE_HCD, function, parameter, &action_m…
199 action++;
200 if (action->function == 0)
201 action = UX_NULL;
222 UX_TEST_ACTION action; in _ux_test_hcd_sim_host_entry() local
228 return(action.status); in _ux_test_hcd_sim_host_entry()
230 action = ux_test_action_handler(UX_TEST_OVERRIDE_UX_HCD_SIM_HOST_ENTRY, &params); in _ux_test_hcd_sim_host_entry()
231 ux_test_do_action_before(&action, &params); in _ux_test_hcd_sim_host_entry()
235 if (action.matched && !action.do_after) in _ux_test_hcd_sim_host_entry()
237 if (!action.no_return) in _ux_test_hcd_sim_host_entry()
[all …]
Dusbx_ux_host_class_cdc_ecm_interrupt_notification_test.c40 UX_TEST_ACTION action = {0}; in post_init_host() local
41 action.usbx_function = UX_TEST_OVERRIDE_UX_HCD_SIM_HOST_ENTRY; in post_init_host()
42 action.function = UX_HCD_TRANSFER_REQUEST; in post_init_host()
43 action.req_action = UX_TEST_MATCH_EP; in post_init_host()
44 action.req_ep_address = 0xff; in post_init_host()
45 action.no_return = 0; in post_init_host()
46 action.status = UX_SUCCESS; in post_init_host()
47 ux_test_add_action_to_main_list(action); in post_init_host()
Dux_test_dcd_sim_slave.c196 UX_TEST_ACTION action; in _ux_test_dcd_sim_slave_function() local
202 action = ux_test_action_handler(UX_TEST_OVERRIDE_UX_DCD_SIM_SLAVE_FUNCTION, &params); in _ux_test_dcd_sim_slave_function()
203 ux_test_do_action_before(&action, &params); in _ux_test_dcd_sim_slave_function()
208 if (action.matched && !action.do_after) in _ux_test_dcd_sim_slave_function()
210 if (!action.no_return) in _ux_test_dcd_sim_slave_function()
212 return action.status; in _ux_test_dcd_sim_slave_function()
219 ux_test_do_action_after(&action, &params); in _ux_test_dcd_sim_slave_function()
224 if (action.matched && action.do_after) in _ux_test_dcd_sim_slave_function()
226 if (!action.no_return) in _ux_test_dcd_sim_slave_function()
228 return action.status; in _ux_test_dcd_sim_slave_function()
Dusbx_ux_host_class_cdc_ecm_transmission_callback_test.c46 UX_TEST_ACTION action = {0}; in post_init_host() local
47 action.usbx_function = UX_TEST_OVERRIDE_UX_HCD_SIM_HOST_ENTRY; in post_init_host()
48 action.function = UX_HCD_TRANSFER_REQUEST; in post_init_host()
49 action.req_action = UX_TEST_MATCH_EP; in post_init_host()
50 action.req_ep_address = 0xff; in post_init_host()
51 action.no_return = 0; in post_init_host()
52 action.status = UX_SUCCESS; in post_init_host()
53 ux_test_add_action_to_main_list(action); in post_init_host()
Dux_test_race_condition_overrides.c21 UX_TEST_ACTION action; in _ux_host_stack_transfer_request() local
24 action = ux_test_action_handler(UX_TEST_HOST_STACK_TRANSFER_REQUEST, &params); in _ux_host_stack_transfer_request()
25 ux_test_do_action_before(&action, &params); in _ux_host_stack_transfer_request()
152 ux_test_do_action_after(&action, &params); in _ux_host_stack_transfer_request()
167 UX_TEST_ACTION action; in _ux_host_stack_interface_set() local
188 action = ux_test_action_handler(UX_TEST_HOST_STACK_INTERFACE_SET, &params); in _ux_host_stack_interface_set()
189 ux_test_do_action_before(&action, &params); in _ux_host_stack_interface_set()
Dux_test_utility_sim.c76 static void ux_system_mutex_create_callback(UX_TEST_ACTION *action, VOID *params);
77 static void ux_system_mutex_get_callback(UX_TEST_ACTION *action, VOID *params);
78 static void ux_system_mutex_put_callback(UX_TEST_ACTION *action, VOID *params);
208 UX_TEST_ACTION action; in _tx_semaphore_create() local
223 action = ux_test_action_handler(UX_TEST_OVERRIDE_TX_SEMAPHORE_CREATE, &action_params); in _tx_semaphore_create()
224 ux_test_do_action_before(&action, &action_params); in _tx_semaphore_create()
227 if (action.matched && !action.do_after) in _tx_semaphore_create()
229 if (!action.no_return) in _tx_semaphore_create()
231 return action.status; in _tx_semaphore_create()
381 UX_TEST_ACTION action; in _tx_semaphore_get() local
[all …]
Dux_test.h128 VOID (*action_func)(struct UX_TEST_ACTION_STRUCT *action, VOID *params);
391 UINT ux_test_list_action_compare(UX_TEST_ACTION *list_item, UX_TEST_ACTION *action);
393 VOID ux_test_remove_hook(UX_TEST_ACTION *action);
397 UINT ux_test_link_hook(UX_TEST_ACTION *action);
401 UINT ux_test_add_hook(UX_TEST_ACTION action);
411 VOID ux_test_set_main_action_list_from_array(UX_TEST_ACTION *action);
414 VOID ux_test_add_action_to_main_list(UX_TEST_ACTION action);
415 VOID ux_test_add_action_to_main_list_multiple(UX_TEST_ACTION action, UINT);
416 VOID ux_test_hcd_sim_host_set_actions(UX_TEST_ACTION *action);
417 VOID ux_test_dcd_sim_slave_set_actions(UX_TEST_ACTION *action);
[all …]
Dusbx_cdc_ecm_host_bulki_arm_err_dueto_link_dn_thread_wait_test.c24 static VOID suspend_cdc_ecm_thread_action_func(UX_TEST_ACTION *action, VOID *params) in suspend_cdc_ecm_thread_action_func() argument
36 VOID cdc_ecm_thread_suspend_action_func(UX_TEST_ACTION *action, VOID *params) in cdc_ecm_thread_suspend_action_func() argument
Dusbx_msrc_81575_standalone_host_cdc_acm_allocated_enum_free_test.c38 … ux_test_hcd_entry_should_not_be_called(UX_TEST_ACTION *action, VOID *params);
39 static VOID ux_test_hcd_entry_disconnect(UX_TEST_ACTION *action, VOI…
40 static VOID ux_test_hcd_entry_set_cfg(UX_TEST_ACTION *action, VOID *…
183 static VOID ux_test_on_cdc_acm_set_line_coding(UX_TEST_ACTION *action, VOID *params) in ux_test_on_cdc_acm_set_line_coding() argument
300 static VOID ux_test_hcd_entry_set_cfg(UX_TEST_ACTION *action, VOID *params) in ux_test_hcd_entry_set_cfg() argument
Dusbx_msrc_81574_standalone_host_hid_allocated_enum_free_test.c44 … ux_test_hcd_entry_should_not_be_called(UX_TEST_ACTION *action, VOID *params);
45 static VOID ux_test_hcd_entry_disconnect(UX_TEST_ACTION *action, VOI…
46 static VOID ux_test_hcd_entry_set_cfg(UX_TEST_ACTION *action, VOID *…
217 static VOID ux_test_on_hid_get_report_descriptor(UX_TEST_ACTION *action, VOID *params) in ux_test_on_hid_get_report_descriptor() argument
332 static VOID ux_test_hcd_entry_set_cfg(UX_TEST_ACTION *action, VOID *params) in ux_test_hcd_entry_set_cfg() argument
Dusbx_msrc_81572_standalone_host_printer_allocated_enum_free_test.c44 … ux_test_hcd_entry_should_not_be_called(UX_TEST_ACTION *action, VOID *params);
45 static VOID ux_test_hcd_entry_disconnect(UX_TEST_ACTION *action, VOI…
46 static VOID ux_test_hcd_entry_set_cfg(UX_TEST_ACTION *action, VOID *…
189 static VOID ux_test_on_printer_get_device_id(UX_TEST_ACTION *action, VOID *params) in ux_test_on_printer_get_device_id() argument
304 static VOID ux_test_hcd_entry_set_cfg(UX_TEST_ACTION *action, VOID *params) in ux_test_hcd_entry_set_cfg() argument
Dusbx_msrc_81573_standalone_host_hub_allocated_enum_free_test.c44 … ux_test_hcd_entry_should_not_be_called(UX_TEST_ACTION *action, VOID *params);
45 static VOID ux_test_hcd_entry_disconnect(UX_TEST_ACTION *action, VOI…
46 static VOID ux_test_hcd_entry_set_cfg(UX_TEST_ACTION *action, VOID *…
187 static VOID ux_test_on_hub_get_descriptor(UX_TEST_ACTION *action, VOID *params) in ux_test_on_hub_get_descriptor() argument
318 static VOID ux_test_hcd_entry_set_cfg(UX_TEST_ACTION *action, VOID *params) in ux_test_hcd_entry_set_cfg() argument
Dusbx_ux_device_class_cdc_ecm_bulkout_thread_test.c9 static void count_error_callback(struct UX_TEST_ACTION_STRUCT *action, VOID *params) in count_error_callback() argument
24 static void simulate_ip_header_error(struct UX_TEST_ACTION_STRUCT *action, VOID *params) in simulate_ip_header_error() argument
Dusbx_ux_device_class_cdc_ecm_entry_test.c7 static void count_error_callback(struct UX_TEST_ACTION_STRUCT *action, VOID *params) in count_error_callback() argument
Dusbx_msrc_81691_standalone_host_stack_enum_double_free_test.c38 … ux_test_hcd_entry_should_not_be_called(UX_TEST_ACTION *action, VOID *params);
39 static VOID ux_test_hcd_entry_disconnect(UX_TEST_ACTION *action, VOI…
40 static VOID ux_test_hcd_entry_set_cfg(UX_TEST_ACTION *action, VOID *…
283 static VOID ux_test_hcd_entry_set_cfg(UX_TEST_ACTION *action, VOID *params) in ux_test_hcd_entry_set_cfg() argument
Dusbx_ux_host_device_basic_memory_tests.c42 … ux_test_hcd_entry_should_not_be_called(UX_TEST_ACTION *action, VOID *params);
43 static VOID ux_test_hcd_entry_disconnect(UX_TEST_ACTION *action, VOI…
44 static VOID ux_test_hcd_entry_set_cfg(UX_TEST_ACTION *action, VOID *…
643 static VOID ux_test_hcd_entry_should_not_be_called(UX_TEST_ACTION *action, VOID *params) in ux_test_hcd_entry_should_not_be_called() argument
649 static VOID ux_test_hcd_entry_disconnect(UX_TEST_ACTION *action, VOID *params) in ux_test_hcd_entry_disconnect() argument
655 static VOID ux_test_hcd_entry_set_cfg(UX_TEST_ACTION *action, VOID *params) in ux_test_hcd_entry_set_cfg() argument
Dusbx_ux_host_basic_memory_tests.c47 …_test_hcd_entry_should_not_be_called(UX_HCD *hcd, UX_TEST_HCD_SIM_ACTION *action, VOID *parameter);
48 … ux_test_hcd_entry_disconnect(UX_HCD *hcd, UX_TEST_HCD_SIM_ACTION *action, VOID *parameter);
49 … ux_test_hcd_entry_set_cfg(UX_HCD *hcd, UX_TEST_HCD_SIM_ACTION *action, VOID *parameter);
656 static VOID ux_test_hcd_entry_should_not_be_called(UX_HCD *hcd, UX_TEST_HCD_SIM_ACTION *action, VOI… in ux_test_hcd_entry_should_not_be_called() argument
662 static VOID ux_test_hcd_entry_disconnect(UX_HCD *hcd, UX_TEST_HCD_SIM_ACTION *action, VOID *paramet… in ux_test_hcd_entry_disconnect() argument
668 static VOID ux_test_hcd_entry_set_cfg(UX_HCD *hcd, UX_TEST_HCD_SIM_ACTION *action, VOID *parameter) in ux_test_hcd_entry_set_cfg() argument
Dusbx_cdc_ecm_host_bulk_in_transfer_fail_test.c23 static VOID suspend_cdc_ecm_thread_action_func(UX_TEST_ACTION *action, VOID *params) in suspend_cdc_ecm_thread_action_func() argument
Dusbx_cdc_ecm_host_thread_link_down_before_transfer_test.c24 static VOID suspend_cdc_ecm_thread_action_func(UX_TEST_ACTION *action, VOID *params) in suspend_cdc_ecm_thread_action_func() argument

12345