| /USBX-v6.2.1/test/regression/ |
| D | ux_device_class_dummy.c | 11 UX_SLAVE_CLASS *class; in _ux_device_class_dummy_initialize() local 17 class = command -> ux_slave_class_command_class_ptr; in _ux_device_class_dummy_initialize() 28 class -> ux_slave_class_instance = (VOID *) dummy; in _ux_device_class_dummy_initialize() 31 dummy -> ux_device_class_dummy_class = class; in _ux_device_class_dummy_initialize() 48 UX_SLAVE_CLASS *class; in _ux_device_class_dummy_uninitialize() local 52 class = command -> ux_slave_class_command_class_ptr; in _ux_device_class_dummy_uninitialize() 55 dummy = (UX_DEVICE_CLASS_DUMMY *) class -> ux_slave_class_instance; in _ux_device_class_dummy_uninitialize() 77 UX_SLAVE_CLASS *class; in _ux_device_class_dummy_activate() local 84 class = command -> ux_slave_class_command_class_ptr; in _ux_device_class_dummy_activate() 87 dummy = (UX_DEVICE_CLASS_DUMMY *) class -> ux_slave_class_instance; in _ux_device_class_dummy_activate() [all …]
|
| D | usbx_ux_device_class_cdc_ecm_uninitialize_test.c | 222 UX_HOST_CLASS *class; in class_cdc_ecm_get_host() local 225 UX_TEST_CHECK_SUCCESS(ux_host_stack_class_get(_ux_system_host_class_cdc_ecm_name, &class)); in class_cdc_ecm_get_host() 228 UX_TEST_CHECK_SUCCESS(ux_test_host_stack_class_instance_get(class, 0, (void **) &cdc_ecm_host)); in class_cdc_ecm_get_host() 284 UX_SLAVE_CLASS *class; in thread_entry_device() local 344 class = &_ux_system_slave -> ux_system_slave_class_array[0]; in thread_entry_device() 347 UX_TEST_ASSERT(class -> ux_slave_class_status == UX_USED); in thread_entry_device() 348 UX_TEST_ASSERT(class -> ux_slave_class_instance != UX_NULL); in thread_entry_device() 351 cdc_ecm = (UX_SLAVE_CLASS_CDC_ECM *)class -> ux_slave_class_instance; in thread_entry_device() 352 class -> ux_slave_class_instance = UX_NULL; in thread_entry_device() 356 command.ux_slave_class_command_class_ptr = class; in thread_entry_device() [all …]
|
| D | usbx_hub_hub_device_connect_test.c | 39 UX_TEST_ASSERT(g_host_change_logs[0].class != UX_NULL); in post_init_host() 44 UX_TEST_ASSERT(g_host_change_logs[1].class == UX_NULL); in post_init_host() 58 UX_TEST_ASSERT(g_host_change_logs[0].class != UX_NULL); in post_init_host() 63 UX_TEST_ASSERT(g_host_change_logs[1].class == UX_NULL); in post_init_host() 78 UX_TEST_ASSERT(g_host_change_logs[0].class == UX_NULL); in post_init_host() 105 UX_TEST_ASSERT(g_host_change_logs[0].class == UX_NULL); in post_init_host() 120 UX_TEST_ASSERT(g_host_change_logs[0].class == UX_NULL); in post_init_host()
|
| D | usbx_ux_host_stack_class_instance_destroy_test.c | 332 UX_HOST_CLASS *class; in tx_demo_thread_host_simulation_entry() local 340 status = ux_host_stack_class_get(_ux_system_host_class_dpump_name, &class); in tx_demo_thread_host_simulation_entry() 355 status = ux_host_stack_class_instance_get(class, 0, (VOID **) &dpump); in tx_demo_thread_host_simulation_entry() 377 ux_utility_memory_copy(&class_backup, class, sizeof(UX_HOST_CLASS)); in tx_demo_thread_host_simulation_entry() 383 class->ux_host_class_first_instance = UX_NULL; in tx_demo_thread_host_simulation_entry() 384 … status = _ux_host_stack_class_instance_destroy(class, class_backup.ux_host_class_first_instance); in tx_demo_thread_host_simulation_entry() 393 ux_utility_memory_copy(class, &class_backup, sizeof(UX_HOST_CLASS)); in tx_demo_thread_host_simulation_entry() 396 status = _ux_host_stack_class_instance_destroy(class, &actual_length); in tx_demo_thread_host_simulation_entry() 408 ux_utility_memory_copy(class, &class_backup, sizeof(UX_HOST_CLASS)); in tx_demo_thread_host_simulation_entry()
|
| D | usbx_ux_device_class_hid_initialize_test.c | 281 UX_SLAVE_CLASS class; in tx_demo_thread_host_simulation_entry() local 308 command.ux_slave_class_command_class_ptr = &class; in tx_demo_thread_host_simulation_entry() 368 status = _ux_utility_thread_create(&class.ux_slave_class_thread, "ux_slave_class_thread", in tx_demo_thread_host_simulation_entry() 370 (ULONG) (ALIGN_TYPE) &class, class_thread_stack, in tx_demo_thread_host_simulation_entry() 373 UX_THREAD_EXTENSION_PTR_SET(&class.ux_slave_class_thread, &class) in tx_demo_thread_host_simulation_entry() 390 status = ux_utility_thread_delete(&class.ux_slave_class_thread); in tx_demo_thread_host_simulation_entry() 423 command.ux_slave_class_command_class_ptr = &class; in tx_demo_thread_host_simulation_entry() 448 command.ux_slave_class_command_class_ptr = &class; in tx_demo_thread_host_simulation_entry() 470 status = ux_utility_thread_delete(&class.ux_slave_class_thread); in tx_demo_thread_host_simulation_entry() 496 static UINT demo_thread_hid_callback(UX_SLAVE_CLASS_HID *class, UX_SLAVE_CLASS_HID_EVENT *event) in demo_thread_hid_callback() argument
|
| D | usbx_hub_quick_hub_device_reconnection_test.c | 27 static UINT my_system_change_function(ULONG event, UX_HOST_CLASS *class, VOID *instance) in my_system_change_function() argument 32 … if (!memcmp(class->ux_host_class_name, "ux_host_class_dpump", strlen("ux_host_class_dpump"))) in my_system_change_function() 39 … if (!memcmp(class->ux_host_class_name, "ux_host_class_dpump", strlen("ux_host_class_dpump"))) in my_system_change_function()
|
| D | usbx_ux_test_hub.h | 56 UX_HOST_CLASS *class; member 336 UX_HOST_CLASS *class; in class_dpump_get() local 339 UX_TEST_CHECK_SUCCESS(ux_host_stack_class_get(_ux_system_host_class_dpump_name, &class)); in class_dpump_get() 342 UX_TEST_CHECK_SUCCESS(ux_test_host_stack_class_instance_get(class, 0, (void **) &g_dpump_host)); in class_dpump_get() 414 UX_HOST_CLASS *class; in class_hub_get() local 418 UX_TEST_CHECK_SUCCESS(ux_host_stack_class_get(_ux_system_host_class_hub_name, &class)); in class_hub_get() 421 UX_TEST_CHECK_SUCCESS(ux_test_host_stack_class_instance_get(class, 0, (void **) &g_hub_host)); in class_hub_get() 440 static UINT system_change_function(ULONG event, UX_HOST_CLASS *class, VOID *instance) in system_change_function() argument 445 g_host_change_logs[g_host_change_count].class = class; in system_change_function() 450 if (class == UX_NULL) in system_change_function() [all …]
|
| D | usbx_hid_keyboard_basic_test.c | 370 UX_HOST_CLASS *class; in demo_class_hid_connect_wait() local 373 status = ux_host_stack_class_get(_ux_system_host_class_hid_name, &class); in demo_class_hid_connect_wait() 381 status = ux_host_stack_class_instance_get(class, 0, (void **) &hid); in demo_class_hid_connect_wait() 394 UX_HOST_CLASS *class; in demo_class_hid_disconnect_wait() local 397 status = ux_host_stack_class_get(_ux_system_host_class_hid_name, &class); in demo_class_hid_disconnect_wait() 404 status = ux_host_stack_class_instance_get(class, 0, (void **) &hid); in demo_class_hid_disconnect_wait() 483 static UINT demo_thread_hid_callback(UX_SLAVE_CLASS_HID *class, UX_SLAVE_CLASS_HID_EVENT *event) in demo_thread_hid_callback() argument
|
| D | usbx_ux_host_class_storage_activate_test.c | 265 UX_HOST_CLASS *class; in host_storage_instance_get() local 269 status = ux_host_stack_class_get(_ux_system_host_class_storage_name, &class); in host_storage_instance_get() 283 status = ux_host_stack_class_instance_get(class, 0, (void **) &storage); in host_storage_instance_get() 287 class -> ux_host_class_media != UX_NULL) in host_storage_instance_get() 485 UX_HOST_CLASS *class; in tx_demo_thread_host_simulation_entry() local 516 class = storage->ux_host_class_storage_class; in tx_demo_thread_host_simulation_entry() 517 storage_media = (UX_HOST_CLASS_STORAGE_MEDIA *)class->ux_host_class_media; in tx_demo_thread_host_simulation_entry() 528 …_ux_utility_thread_suspend(&((UX_HOST_CLASS_STORAGE_EXT*)class->ux_host_class_ext)->ux_host_class_… in tx_demo_thread_host_simulation_entry() 539 command.ux_host_class_command_class_ptr = (VOID *)class; in tx_demo_thread_host_simulation_entry() 560 command.ux_host_class_command_class_ptr = (VOID *)class; in tx_demo_thread_host_simulation_entry()
|
| D | usbx_cdc_acm_device_dtr_rts_reset_on_disconnect_test.c | 285 UX_HOST_CLASS *class; in demo_class_cdc_acm_get() local 290 status = ux_host_stack_class_get(_ux_system_host_class_cdc_acm_name, &class); in demo_class_cdc_acm_get() 298 status = ux_host_stack_class_instance_get(class, 0, (void **) &cdc_acm_host); in demo_class_cdc_acm_get() 313 status = ux_host_stack_class_instance_get(class, 1, (void **) &cdc_acm_host); in demo_class_cdc_acm_get() 340 status = ux_host_stack_class_instance_get(class, 1, (void **) &cdc_acm_host); in demo_class_cdc_acm_get()
|
| D | usbx_ux_device_class_hid_uninitialize_test.c | 280 UX_SLAVE_CLASS class; in tx_demo_thread_host_simulation_entry() local 305 class.ux_slave_class_instance = UX_NULL; in tx_demo_thread_host_simulation_entry() 306 command.ux_slave_class_command_class_ptr = &class; in tx_demo_thread_host_simulation_entry() 332 static UINT demo_thread_hid_callback(UX_SLAVE_CLASS_HID *class, UX_SLAVE_CLASS_HID_EVENT *event) in demo_thread_hid_callback() argument
|
| D | usbx_ux_host_class_storage_entry_test.c | 375 UX_HOST_CLASS *class; in host_storage_instance_get() local 379 status = ux_host_stack_class_get(_ux_system_host_class_storage_name, &class); in host_storage_instance_get() 393 status = ux_host_stack_class_instance_get(class, 0, (void **) &storage); in host_storage_instance_get() 397 class -> ux_host_class_media != UX_NULL) in host_storage_instance_get() 595 UX_HOST_CLASS *class; in tx_demo_thread_host_simulation_entry() local 629 class = storage->ux_host_class_storage_class; in tx_demo_thread_host_simulation_entry() 630 storage_media = (UX_HOST_CLASS_STORAGE_MEDIA *)class->ux_host_class_media; in tx_demo_thread_host_simulation_entry() 644 …_ux_utility_thread_suspend(&((UX_HOST_CLASS_STORAGE_EXT*)class->ux_host_class_ext)->ux_host_class_… in tx_demo_thread_host_simulation_entry() 654 class->ux_host_class_media = UX_NULL; in tx_demo_thread_host_simulation_entry() 655 class->ux_host_class_ext = UX_NULL; in tx_demo_thread_host_simulation_entry() [all …]
|
| D | usbx_ux_device_stack_alternate_setting_set_test.c | 417 UX_SLAVE_CLASS *class; in ux_test_thread_simulation_0_entry() local 487 class = _ux_system_slave -> ux_system_slave_interface_class_array[1]; in ux_test_thread_simulation_0_entry() 498 _ux_system_slave -> ux_system_slave_interface_class_array[1] = class; in ux_test_thread_simulation_0_entry() 509 ux_slave_class_status = class->ux_slave_class_status; in ux_test_thread_simulation_0_entry() 510 class->ux_slave_class_status = UX_UNUSED; in ux_test_thread_simulation_0_entry() 520 class->ux_slave_class_status = ux_slave_class_status; in ux_test_thread_simulation_0_entry() 541 interface = class->ux_slave_class_interface; in ux_test_thread_simulation_0_entry()
|
| D | usbx_ux_host_class_storage_request_sense_test.c | 224 UX_HOST_CLASS *class; in host_storage_instance_get() local 228 status = ux_host_stack_class_get(_ux_system_host_class_storage_name, &class); in host_storage_instance_get() 242 status = ux_host_stack_class_instance_get(class, 0, (void **) &storage); in host_storage_instance_get() 246 class -> ux_host_class_media != UX_NULL) in host_storage_instance_get() 444 UX_HOST_CLASS *class; in tx_demo_thread_host_simulation_entry() local 472 class = storage->ux_host_class_storage_class; in tx_demo_thread_host_simulation_entry() 473 storage_media = (UX_HOST_CLASS_STORAGE_MEDIA *)class->ux_host_class_media; in tx_demo_thread_host_simulation_entry() 484 …_ux_utility_thread_suspend(&((UX_HOST_CLASS_STORAGE_EXT*)class->ux_host_class_ext)->ux_host_class_… in tx_demo_thread_host_simulation_entry()
|
| D | usbx_ux_host_class_storage_media_capacity_get_test.c | 224 UX_HOST_CLASS *class; in host_storage_instance_get() local 228 status = ux_host_stack_class_get(_ux_system_host_class_storage_name, &class); in host_storage_instance_get() 242 status = ux_host_stack_class_instance_get(class, 0, (void **) &storage); in host_storage_instance_get() 246 class -> ux_host_class_media != UX_NULL) in host_storage_instance_get() 444 UX_HOST_CLASS *class; in tx_demo_thread_host_simulation_entry() local 472 class = storage->ux_host_class_storage_class; in tx_demo_thread_host_simulation_entry() 473 storage_media = (UX_HOST_CLASS_STORAGE_MEDIA *)class->ux_host_class_media; in tx_demo_thread_host_simulation_entry() 484 …_ux_utility_thread_suspend(&((UX_HOST_CLASS_STORAGE_EXT*)class->ux_host_class_ext)->ux_host_class_… in tx_demo_thread_host_simulation_entry()
|
| D | usbx_test_common_hid.h | 64 UX_HOST_CLASS *class; in demo_class_hid_get() local 71 status = ux_host_stack_class_get(_ux_system_host_class_hid_name, &class); in demo_class_hid_get() 76 status = ux_host_stack_class_instance_get(class, 0, (void **)&hid); in demo_class_hid_get()
|
| D | usbx_ux_host_class_hid_deactivate_test.c | 314 UX_HOST_CLASS *class; in demo_class_hid_check() local 317 status = ux_host_stack_class_get(_ux_system_host_class_hid_name, &class); in demo_class_hid_check() 322 status = ux_host_stack_class_instance_get(class, 0, (void **) &hid); in demo_class_hid_check() 387 static UINT demo_thread_hid_callback(UX_SLAVE_CLASS_HID *class, UX_SLAVE_CLASS_HID_EVENT *event) in demo_thread_hid_callback() argument
|
| D | usbx_ux_host_stack_class_instance_get_test.c | 331 UX_HOST_CLASS *class; in tx_demo_thread_host_simulation_entry() local 339 status = ux_host_stack_class_get(_ux_system_host_class_dpump_name, &class); in tx_demo_thread_host_simulation_entry() 354 status = ux_host_stack_class_instance_get(class, 0, (VOID **) &dpump); in tx_demo_thread_host_simulation_entry() 376 status = _ux_host_stack_class_instance_get(class, 10, &class_instance); in tx_demo_thread_host_simulation_entry()
|
| D | usbx_ux_host_class_storage_device_support_check_test.c | 265 UX_HOST_CLASS *class; in host_storage_instance_get() local 269 status = ux_host_stack_class_get(_ux_system_host_class_storage_name, &class); in host_storage_instance_get() 283 status = ux_host_stack_class_instance_get(class, 0, (void **) &storage); in host_storage_instance_get() 287 class -> ux_host_class_media != UX_NULL) in host_storage_instance_get() 485 UX_HOST_CLASS *class; in tx_demo_thread_host_simulation_entry() local 516 class = storage->ux_host_class_storage_class; in tx_demo_thread_host_simulation_entry() 517 storage_media = (UX_HOST_CLASS_STORAGE_MEDIA *)class->ux_host_class_media; in tx_demo_thread_host_simulation_entry() 528 …_ux_utility_thread_suspend(&((UX_HOST_CLASS_STORAGE_EXT*)class->ux_host_class_ext)->ux_host_class_… in tx_demo_thread_host_simulation_entry()
|
| D | usbx_ux_host_class_storage_max_lun_get_test.c | 265 UX_HOST_CLASS *class; in host_storage_instance_get() local 269 status = ux_host_stack_class_get(_ux_system_host_class_storage_name, &class); in host_storage_instance_get() 283 status = ux_host_stack_class_instance_get(class, 0, (void **) &storage); in host_storage_instance_get() 287 class -> ux_host_class_media != UX_NULL) in host_storage_instance_get() 485 UX_HOST_CLASS *class; in tx_demo_thread_host_simulation_entry() local 513 class = storage->ux_host_class_storage_class; in tx_demo_thread_host_simulation_entry() 514 storage_media = (UX_HOST_CLASS_STORAGE_MEDIA *)class->ux_host_class_media; in tx_demo_thread_host_simulation_entry() 525 …_ux_utility_thread_suspend(&((UX_HOST_CLASS_STORAGE_EXT*)class->ux_host_class_ext)->ux_host_class_… in tx_demo_thread_host_simulation_entry()
|
| D | usbx_ux_device_class_storage_entry_test.c | 218 UX_HOST_CLASS *class; in host_storage_instance_get() local 222 status = ux_host_stack_class_get(_ux_system_host_class_storage_name, &class); in host_storage_instance_get() 236 status = ux_host_stack_class_instance_get(class, 0, (void **) &storage); in host_storage_instance_get() 240 class -> ux_host_class_media != UX_NULL) in host_storage_instance_get() 518 UX_HOST_CLASS *class; in tx_demo_thread_host_simulation_entry() local 547 class = storage->ux_host_class_storage_class; in tx_demo_thread_host_simulation_entry() 548 storage_media = (UX_HOST_CLASS_STORAGE_MEDIA *)class->ux_host_class_media; in tx_demo_thread_host_simulation_entry() 559 …_ux_utility_thread_suspend(&((UX_HOST_CLASS_STORAGE_EXT*)class->ux_host_class_ext)->ux_host_class_… in tx_demo_thread_host_simulation_entry()
|
| D | usbx_msrc_73386_host_storage_media_open_buffer_test.c | 233 UX_HOST_CLASS *class; in host_storage_instance_get() local 237 status = ux_host_stack_class_get(_ux_system_host_class_storage_name, &class); in host_storage_instance_get() 251 status = ux_host_stack_class_instance_get(class, 0, (void **) &storage); in host_storage_instance_get() 255 class -> ux_host_class_media != UX_NULL) in host_storage_instance_get() 452 UX_HOST_CLASS *class; in tx_demo_thread_host_simulation_entry() local 484 class = storage->ux_host_class_storage_class; in tx_demo_thread_host_simulation_entry() 485 storage_media = (UX_HOST_CLASS_STORAGE_MEDIA *)class->ux_host_class_media; in tx_demo_thread_host_simulation_entry()
|
| D | usbx_ux_host_class_storage_configure_test.c | 265 UX_HOST_CLASS *class; in host_storage_instance_get() local 269 status = ux_host_stack_class_get(_ux_system_host_class_storage_name, &class); in host_storage_instance_get() 283 status = ux_host_stack_class_instance_get(class, 0, (void **) &storage); in host_storage_instance_get() 287 class -> ux_host_class_media != UX_NULL) in host_storage_instance_get() 485 UX_HOST_CLASS *class; in tx_demo_thread_host_simulation_entry() local 516 class = storage->ux_host_class_storage_class; in tx_demo_thread_host_simulation_entry() 517 storage_media = (UX_HOST_CLASS_STORAGE_MEDIA *)class->ux_host_class_media; in tx_demo_thread_host_simulation_entry() 528 …_ux_utility_thread_suspend(&((UX_HOST_CLASS_STORAGE_EXT*)class->ux_host_class_ext)->ux_host_class_… in tx_demo_thread_host_simulation_entry()
|
| D | usbx_ux_host_class_storage_device_initialize_test.c | 265 UX_HOST_CLASS *class; in host_storage_instance_get() local 269 status = ux_host_stack_class_get(_ux_system_host_class_storage_name, &class); in host_storage_instance_get() 283 status = ux_host_stack_class_instance_get(class, 0, (void **) &storage); in host_storage_instance_get() 287 class -> ux_host_class_media != UX_NULL) in host_storage_instance_get() 485 UX_HOST_CLASS *class; in tx_demo_thread_host_simulation_entry() local 519 class = storage->ux_host_class_storage_class; in tx_demo_thread_host_simulation_entry() 520 storage_media = (UX_HOST_CLASS_STORAGE_MEDIA *)class->ux_host_class_media; in tx_demo_thread_host_simulation_entry() 531 …_ux_utility_thread_suspend(&((UX_HOST_CLASS_STORAGE_EXT*)class->ux_host_class_ext)->ux_host_class_… in tx_demo_thread_host_simulation_entry()
|
| /USBX-v6.2.1/common/usbx_host_classes/src/ |
| D | ux_host_class_hub_change_detect.c | 87 UX_HOST_CLASS *class; in _ux_host_class_hub_change_detect() 93 _ux_host_stack_class_get(_ux_system_host_class_hub_name, &class); in _ux_host_class_hub_change_detect() 103 status = _ux_host_stack_class_instance_get(class, class_index++, (VOID **) &hub); in _ux_host_class_hub_change_detect()
|