Lines Matching refs:dev
133 struct device *dev; member
159 static struct miscdevice *dev_to_misc_dev(struct device *dev) in dev_to_misc_dev() argument
161 return dev_get_drvdata(dev); in dev_to_misc_dev()
169 static struct kmod_test_device *dev_to_test_dev(struct device *dev) in dev_to_test_dev() argument
173 misc_dev = dev_to_misc_dev(dev); in dev_to_test_dev()
185 dev_dbg(test_dev->dev, "Done thread count: %u\n", test_dev->done); in kmod_test_done_check()
188 dev_info(test_dev->dev, "Done: %u threads have all run now\n", in kmod_test_done_check()
190 dev_info(test_dev->dev, "Last thread to run: %u\n", idx); in kmod_test_done_check()
237 dev_dbg(test_dev->dev, "Ran thread %u\n", info->thread_idx); in run_request()
263 dev_info(test_dev->dev, in tally_work_test()
271 dev_info(test_dev->dev, "Sync thread %u fs: %s\n", in tally_work_test()
301 dev_info(test_dev->dev, "Results:\n"); in tally_up_work()
333 dev_err(test_dev->dev, "Setting up thread %u failed\n", idx); in try_one_request()
337 dev_dbg(test_dev->dev, "Kicked off thread %u\n", idx); in try_one_request()
356 dev_info(test_dev->dev, "Ending request_module() tests\n"); in test_dev_kmod_stop_tests()
363 dev_info(test_dev->dev, in test_dev_kmod_stop_tests()
410 dev_info(test_dev->dev, in try_requests()
416 dev_info(test_dev->dev, in try_requests()
429 dev_info(test_dev->dev, "Test case: %s (%u)\n", in run_test_driver()
432 dev_info(test_dev->dev, "Test driver to load: %s\n", in run_test_driver()
434 dev_info(test_dev->dev, "Number of threads to run: %u\n", in run_test_driver()
436 dev_info(test_dev->dev, "Thread IDs will range from 0 - %u\n", in run_test_driver()
446 dev_info(test_dev->dev, "Test case: %s (%u)\n", in run_test_fs_type()
449 dev_info(test_dev->dev, "Test filesystem to load: %s\n", in run_test_fs_type()
451 dev_info(test_dev->dev, "Number of threads to run: %u\n", in run_test_fs_type()
453 dev_info(test_dev->dev, "Thread IDs will range from 0 - %u\n", in run_test_fs_type()
459 static ssize_t config_show(struct device *dev, in config_show() argument
463 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in config_show()
471 dev_name(dev)); in config_show()
520 dev_warn(test_dev->dev, in __trigger_config_run()
538 dev_info(test_dev->dev, "General test result: %d\n", in trigger_config_run()
564 trigger_config_store(struct device *dev, in trigger_config_store() argument
568 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in trigger_config_store()
652 static ssize_t config_test_driver_store(struct device *dev, in config_test_driver_store() argument
656 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in config_test_driver_store()
687 static ssize_t config_test_driver_show(struct device *dev, in config_test_driver_show() argument
691 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in config_test_driver_show()
699 static ssize_t config_test_fs_store(struct device *dev, in config_test_fs_store() argument
703 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in config_test_fs_store()
718 static ssize_t config_test_fs_show(struct device *dev, in config_test_fs_show() argument
722 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in config_test_fs_show()
845 static ssize_t reset_store(struct device *dev, in reset_store() argument
849 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in reset_store()
858 dev_err(dev, "could not alloc settings for config trigger: %d\n", in reset_store()
863 dev_info(dev, "reset\n"); in reset_store()
982 static ssize_t test_result_store(struct device *dev, in test_result_store() argument
986 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in test_result_store()
993 static ssize_t config_num_threads_store(struct device *dev, in config_num_threads_store() argument
997 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in config_num_threads_store()
1005 static ssize_t config_num_threads_show(struct device *dev, in config_num_threads_show() argument
1009 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in config_num_threads_show()
1016 static ssize_t config_test_case_store(struct device *dev, in config_test_case_store() argument
1020 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in config_test_case_store()
1029 static ssize_t config_test_case_show(struct device *dev, in config_test_case_show() argument
1033 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in config_test_case_show()
1040 static ssize_t test_result_show(struct device *dev, in test_result_show() argument
1044 struct kmod_test_device *test_dev = dev_to_test_dev(dev); in test_result_show()
1161 test_dev->dev = test_dev->misc_dev.this_device; in register_test_dev_kmod()
1163 dev_info(test_dev->dev, "interface ready\n"); in register_test_dev_kmod()
1215 dev_info(test_dev->dev, "removing interface\n"); in unregister_test_dev_kmod()