Lines Matching refs:config

124 	struct test_config config;  member
175 struct test_config *config = &test_dev->config; in kmod_test_done_check() local
180 if (test_dev->done == config->num_threads) { in kmod_test_done_check()
191 struct test_config *config = &test_dev->config; in test_kmod_put_module() local
196 switch (config->test_case) { in test_kmod_put_module()
214 struct test_config *config = &test_dev->config; in run_request() local
216 switch (config->test_case) { in run_request()
218 info->ret_sync = request_module("%s", config->test_driver); in run_request()
221 info->fs_sync = get_fs_type(config->test_fs); in run_request()
245 struct test_config *config = &test_dev->config; in tally_work_test() local
248 switch (config->test_case) { in tally_work_test()
265 info->thread_idx, info->fs_sync ? config->test_fs : in tally_work_test()
286 struct test_config *config = &test_dev->config; in tally_up_work() local
296 for (idx=0; idx < config->num_threads; idx++) { in tally_up_work()
307 config->test_result = err_ret; in tally_up_work()
345 struct test_config *config = &test_dev->config; in test_dev_kmod_stop_tests() local
353 for (i=0; i < config->num_threads; i++) { in test_dev_kmod_stop_tests()
383 struct test_config *config = &test_dev->config; in try_requests() local
388 for (idx=0; idx < config->num_threads; idx++) { in try_requests()
420 struct test_config *config = &test_dev->config; in run_test_driver() local
423 test_case_str(config->test_case), in run_test_driver()
424 config->test_case); in run_test_driver()
426 config->test_driver); in run_test_driver()
428 config->num_threads); in run_test_driver()
430 config->num_threads - 1); in run_test_driver()
437 struct test_config *config = &test_dev->config; in run_test_fs_type() local
440 test_case_str(config->test_case), in run_test_fs_type()
441 config->test_case); in run_test_fs_type()
443 config->test_fs); in run_test_fs_type()
445 config->num_threads); in run_test_fs_type()
447 config->num_threads - 1); in run_test_fs_type()
457 struct test_config *config = &test_dev->config; in config_show() local
468 config->num_threads); in config_show()
472 test_case_str(config->test_case), in config_show()
473 config->test_case); in config_show()
475 if (config->test_driver) in config_show()
478 config->test_driver); in config_show()
483 if (config->test_fs) in config_show()
486 config->test_fs); in config_show()
495 static DEVICE_ATTR_RO(config);
503 struct test_config *config = &test_dev->config; in __trigger_config_run() local
507 switch (config->test_case) { in __trigger_config_run()
515 config->test_case); in __trigger_config_run()
522 struct test_config *config = &test_dev->config; in trigger_config_run() local
532 config->test_result); in trigger_config_run()
605 static int config_copy_test_driver_name(struct test_config *config, in config_copy_test_driver_name() argument
609 return __kstrncpy(&config->test_driver, name, count, GFP_KERNEL); in config_copy_test_driver_name()
613 static int config_copy_test_fs(struct test_config *config, const char *name, in config_copy_test_fs() argument
616 return __kstrncpy(&config->test_fs, name, count, GFP_KERNEL); in config_copy_test_fs()
619 static void __kmod_config_free(struct test_config *config) in __kmod_config_free() argument
621 if (!config) in __kmod_config_free()
624 kfree_const(config->test_driver); in __kmod_config_free()
625 config->test_driver = NULL; in __kmod_config_free()
627 kfree_const(config->test_fs); in __kmod_config_free()
628 config->test_fs = NULL; in __kmod_config_free()
633 struct test_config *config; in kmod_config_free() local
638 config = &test_dev->config; in kmod_config_free()
641 __kmod_config_free(config); in kmod_config_free()
650 struct test_config *config = &test_dev->config; in config_test_driver_store() local
655 kfree_const(config->test_driver); in config_test_driver_store()
656 config->test_driver = NULL; in config_test_driver_store()
658 copied = config_copy_test_driver_name(config, buf, count); in config_test_driver_store()
685 struct test_config *config = &test_dev->config; in config_test_driver_show() local
688 config->test_driver); in config_test_driver_show()
697 struct test_config *config = &test_dev->config; in config_test_fs_store() local
702 kfree_const(config->test_fs); in config_test_fs_store()
703 config->test_fs = NULL; in config_test_fs_store()
705 copied = config_copy_test_fs(config, buf, count); in config_test_fs_store()
716 struct test_config *config = &test_dev->config; in config_test_fs_show() local
719 config->test_fs); in config_test_fs_show()
728 struct test_config *config = &test_dev->config; in trigger_config_run_type() local
734 kfree_const(config->test_driver); in trigger_config_run_type()
735 config->test_driver = NULL; in trigger_config_run_type()
736 copied = config_copy_test_driver_name(config, test_str, in trigger_config_run_type()
740 kfree_const(config->test_fs); in trigger_config_run_type()
741 config->test_fs = NULL; in trigger_config_run_type()
742 copied = config_copy_test_fs(config, test_str, in trigger_config_run_type()
750 config->test_case = test_case; in trigger_config_run_type()
772 struct test_config *config = &test_dev->config; in kmod_config_sync_info() local
777 config->num_threads)); in kmod_config_sync_info()
802 struct test_config *config = &test_dev->config; in __kmod_config_init() local
805 __kmod_config_free(config); in __kmod_config_init()
807 copied = config_copy_test_driver_name(config, TEST_START_DRIVER, in __kmod_config_init()
812 copied = config_copy_test_fs(config, TEST_START_TEST_FS, in __kmod_config_init()
817 config->num_threads = kmod_init_test_thread_limit(); in __kmod_config_init()
818 config->test_result = 0; in __kmod_config_init()
819 config->test_case = TEST_START_TEST_CASE; in __kmod_config_init()
833 __kmod_config_free(config); in __kmod_config_init()
869 unsigned int *config, in test_dev_config_update_uint_sync() argument
882 old_val = *config; in test_dev_config_update_uint_sync()
883 *(unsigned int *)config = val; in test_dev_config_update_uint_sync()
887 *(unsigned int *)config = old_val; in test_dev_config_update_uint_sync()
903 unsigned int *config, in test_dev_config_update_uint_range() argument
918 *config = val; in test_dev_config_update_uint_range()
927 int *config) in test_dev_config_update_int() argument
937 *config = val; in test_dev_config_update_int()
945 int config) in test_dev_config_show_int() argument
950 val = config; in test_dev_config_show_int()
958 unsigned int config) in test_dev_config_show_uint() argument
963 val = config; in test_dev_config_show_uint()
974 struct test_config *config = &test_dev->config; in test_result_store() local
977 &config->test_result); in test_result_store()
985 struct test_config *config = &test_dev->config; in config_num_threads_store() local
988 &config->num_threads, in config_num_threads_store()
997 struct test_config *config = &test_dev->config; in config_num_threads_show() local
999 return test_dev_config_show_int(test_dev, buf, config->num_threads); in config_num_threads_show()
1008 struct test_config *config = &test_dev->config; in config_test_case_store() local
1011 &config->test_case, in config_test_case_store()
1021 struct test_config *config = &test_dev->config; in config_test_case_show() local
1023 return test_dev_config_show_uint(test_dev, buf, config->test_case); in config_test_case_show()
1032 struct test_config *config = &test_dev->config; in test_result_show() local
1034 return test_dev_config_show_int(test_dev, buf, config->test_result); in test_result_show()
1042 TEST_KMOD_DEV_ATTR(config),