| /linux/mm/kasan/ |
| H A D | kasan_test_c.c | 91 static void kasan_test_exit(struct kunit *test) in kasan_test_exit() 121 #define KUNIT_EXPECT_KASAN_RESULT(test, expr, expr_str, fail) \ argument 158 #define KUNIT_EXPECT_KASAN_FAIL(test, expr) \ argument 175 #define KUNIT_EXPECT_KASAN_FAIL_READ(test, expr) \ argument 179 #define KASAN_TEST_NEEDS_CONFIG_ON(test, config) do { \ argument 184 #define KASAN_TEST_NEEDS_CONFIG_OFF(test, config) do { \ argument 189 #define KASAN_TEST_NEEDS_CHECKED_MEMINTRINSICS(test) do { \ argument 198 static void kmalloc_oob_right(struct kunit *test) in kmalloc_oob_right() 227 static void kmalloc_oob_left(struct kunit *test) in kmalloc_oob_left() 240 static void kmalloc_node_oob_right(struct kunit *test) in kmalloc_node_oob_right() [all …]
|
| /linux/lib/tests/ |
| H A D | list-test.c | 18 static void list_test_list_init(struct kunit *test) in list_test_list_init() 47 static void list_test_list_add(struct kunit *test) in list_test_list_add() 61 static void list_test_list_add_tail(struct kunit *test) in list_test_list_add_tail() 75 static void list_test_list_del(struct kunit *test) in list_test_list_del() 91 static void list_test_list_replace(struct kunit *test) in list_test_list_replace() 109 static void list_test_list_replace_init(struct kunit *test) in list_test_list_replace_init() 130 static void list_test_list_swap(struct kunit *test) in list_test_list_swap() 152 static void list_test_list_del_init(struct kunit *test) in list_test_list_del_init() 169 static void list_test_list_del_init_careful(struct kunit *test) in list_test_list_del_init_careful() 189 static void list_test_list_move(struct kunit *test) in list_test_list_move() [all …]
|
| H A D | seq_buf_kunit.c | 11 static void seq_buf_init_test(struct kunit *test) in seq_buf_init_test() 26 static void seq_buf_declare_test(struct kunit *test) in seq_buf_declare_test() 38 static void seq_buf_clear_test(struct kunit *test) in seq_buf_clear_test() 54 static void seq_buf_puts_test(struct kunit *test) in seq_buf_puts_test() 69 static void seq_buf_puts_overflow_test(struct kunit *test) in seq_buf_puts_overflow_test() 88 static void seq_buf_putc_test(struct kunit *test) in seq_buf_putc_test() 116 static void seq_buf_printf_test(struct kunit *test) in seq_buf_printf_test() 131 static void seq_buf_printf_overflow_test(struct kunit *test) in seq_buf_printf_overflow_test() 151 static void seq_buf_get_buf_commit_test(struct kunit *test) in seq_buf_get_buf_commit_test()
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_cmdline_parser_test.c | 15 static void drm_test_cmdline_force_e_only(struct kunit *test) in drm_test_cmdline_force_e_only() 33 static void drm_test_cmdline_force_D_only_not_digital(struct kunit *test) in drm_test_cmdline_force_D_only_not_digital() 55 static void drm_test_cmdline_force_D_only_hdmi(struct kunit *test) in drm_test_cmdline_force_D_only_hdmi() 77 static void drm_test_cmdline_force_D_only_dvi(struct kunit *test) in drm_test_cmdline_force_D_only_dvi() 95 static void drm_test_cmdline_force_d_only(struct kunit *test) in drm_test_cmdline_force_d_only() 113 static void drm_test_cmdline_res(struct kunit *test) in drm_test_cmdline_res() 135 static void drm_test_cmdline_res_vesa(struct kunit *test) in drm_test_cmdline_res_vesa() 157 static void drm_test_cmdline_res_vesa_rblank(struct kunit *test) in drm_test_cmdline_res_vesa_rblank() 179 static void drm_test_cmdline_res_rblank(struct kunit *test) in drm_test_cmdline_res_rblank() 201 static void drm_test_cmdline_res_bpp(struct kunit *test) in drm_test_cmdline_res_bpp() [all …]
|
| H A D | drm_format_test.c | 12 static void drm_test_format_block_width_invalid(struct kunit *test) in drm_test_format_block_width_invalid() 21 static void drm_test_format_block_width_one_plane(struct kunit *test) in drm_test_format_block_width_one_plane() 32 static void drm_test_format_block_width_two_plane(struct kunit *test) in drm_test_format_block_width_two_plane() 44 static void drm_test_format_block_width_three_plane(struct kunit *test) in drm_test_format_block_width_three_plane() 57 static void drm_test_format_block_width_tiled(struct kunit *test) in drm_test_format_block_width_tiled() 68 static void drm_test_format_block_height_invalid(struct kunit *test) in drm_test_format_block_height_invalid() 77 static void drm_test_format_block_height_one_plane(struct kunit *test) in drm_test_format_block_height_one_plane() 88 static void drm_test_format_block_height_two_plane(struct kunit *test) in drm_test_format_block_height_two_plane() 100 static void drm_test_format_block_height_three_plane(struct kunit *test) in drm_test_format_block_height_three_plane() 113 static void drm_test_format_block_height_tiled(struct kunit *test) in drm_test_format_block_height_tiled() [all …]
|
| /linux/lib/kunit/ |
| H A D | kunit-test.c | 26 struct kunit *test = data; in kunit_test_successful_try() local 34 struct kunit *test = data; in kunit_test_no_catch() local 39 static void kunit_test_try_catch_successful_try_no_catch(struct kunit *test) in kunit_test_try_catch_successful_try_no_catch() 56 struct kunit *test = data; in kunit_test_unsuccessful_try() local 66 struct kunit *test = data; in kunit_test_catch() local 72 static void kunit_test_try_catch_unsuccessful_try_does_catch(struct kunit *test) in kunit_test_try_catch_unsuccessful_try_does_catch() 87 static int kunit_try_catch_test_init(struct kunit *test) in kunit_try_catch_test_init() 119 struct kunit *test = data; in kunit_test_null_dereference() local 127 static void kunit_test_fault_null_dereference(struct kunit *test) in kunit_test_fault_null_dereference() 163 struct kunit test; member [all …]
|
| H A D | kunit-example-test.c | 22 static void example_simple_test(struct kunit *test) in example_simple_test() 37 static int example_test_init(struct kunit *test) in example_test_init() 48 static void example_test_exit(struct kunit *test) in example_test_exit() 78 static void example_skip_test(struct kunit *test) in example_skip_test() 93 static void example_mark_skipped_test(struct kunit *test) in example_mark_skipped_test() 108 static void example_all_expect_macros_test(struct kunit *test) in example_all_expect_macros_test() 184 static void example_static_stub_test(struct kunit *test) in example_static_stub_test() 208 static void example_static_stub_using_fn_ptr_test(struct kunit *test) in example_static_stub_using_fn_ptr_test() 243 static void example_params_test(struct kunit *test) in example_params_test() 261 static void example_priv_test(struct kunit *test) in example_priv_test() [all …]
|
| H A D | assert_test.c | 11 #define ASSERT_TEST_EXPECT_CONTAIN(test, str, substr) KUNIT_EXPECT_TRUE(test, strstr(str, substr)) argument 12 #define ASSERT_TEST_EXPECT_NCONTAIN(test, str, substr) KUNIT_EXPECT_FALSE(test, strstr(str, substr)) argument 14 static void kunit_test_is_literal(struct kunit *test) in kunit_test_is_literal() 26 static void kunit_test_is_str_literal(struct kunit *test) in kunit_test_is_str_literal() 41 static char *get_str_from_stream(struct kunit *test, struct string_stream *stream) in get_str_from_stream() 51 static void kunit_test_assert_prologue(struct kunit *test) in kunit_test_assert_prologue() 83 static void verify_assert_print_msg(struct kunit *test, in verify_assert_print_msg() 99 static void kunit_test_assert_print_msg(struct kunit *test) in kunit_test_assert_print_msg() 118 static void validate_assert(assert_format_t format_func, struct kunit *test, in validate_assert() 137 static void kunit_test_unary_assert_format(struct kunit *test) in kunit_test_unary_assert_format() [all …]
|
| /linux/security/apparmor/ |
| H A D | policy_unpack_test.c | 57 struct kunit *test, size_t buf_size) in build_aa_ext_struct() 113 static int policy_unpack_test_init(struct kunit *test) in policy_unpack_test_init() 128 static void policy_unpack_test_inbounds_when_inbounds(struct kunit *test) in policy_unpack_test_inbounds_when_inbounds() 137 static void policy_unpack_test_inbounds_when_out_of_bounds(struct kunit *test) in policy_unpack_test_inbounds_when_out_of_bounds() 144 static void policy_unpack_test_unpack_array_with_null_name(struct kunit *test) in policy_unpack_test_unpack_array_with_null_name() 157 static void policy_unpack_test_unpack_array_with_name(struct kunit *test) in policy_unpack_test_unpack_array_with_name() 171 static void policy_unpack_test_unpack_array_out_of_bounds(struct kunit *test) in policy_unpack_test_unpack_array_out_of_bounds() 185 static void policy_unpack_test_unpack_blob_with_null_name(struct kunit *test) in policy_unpack_test_unpack_blob_with_null_name() 199 static void policy_unpack_test_unpack_blob_with_name(struct kunit *test) in policy_unpack_test_unpack_blob_with_name() 213 static void policy_unpack_test_unpack_blob_out_of_bounds(struct kunit *test) in policy_unpack_test_unpack_blob_out_of_bounds() [all …]
|
| /linux/drivers/mmc/core/ |
| H A D | mmc_test.c | 178 static int mmc_test_set_blksize(struct mmc_test_card *test, unsigned size) in mmc_test_set_blksize() 183 static void mmc_test_prepare_sbc(struct mmc_test_card *test, in mmc_test_prepare_sbc() 203 static void mmc_test_prepare_mrq(struct mmc_test_card *test, in mmc_test_prepare_mrq() 252 static int mmc_test_wait_busy(struct mmc_test_card *test) in mmc_test_wait_busy() 283 static int mmc_test_buffer_transfer(struct mmc_test_card *test, in mmc_test_buffer_transfer() 527 static void mmc_test_save_transfer_result(struct mmc_test_card *test, in mmc_test_save_transfer_result() 552 static void mmc_test_print_rate(struct mmc_test_card *test, uint64_t bytes, in mmc_test_print_rate() 576 static void mmc_test_print_avg_rate(struct mmc_test_card *test, uint64_t bytes, in mmc_test_print_avg_rate() 617 static int __mmc_test_prepare(struct mmc_test_card *test, int write, int val) in __mmc_test_prepare() 641 static int mmc_test_prepare_write(struct mmc_test_card *test) in mmc_test_prepare_write() [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | cs-amp-lib-test.c | 61 cs_amp_lib_test_cal_blob_dup(struct kunit * test) cs_amp_lib_test_cal_blob_dup() argument 75 cs_amp_lib_test_init_dummy_cal_blob(struct kunit * test,int num_amps) cs_amp_lib_test_init_dummy_cal_blob() argument 106 cs_amp_lib_test_get_target_uid(struct kunit * test) cs_amp_lib_test_get_target_uid() argument 135 cs_amp_lib_test_cal_data_too_short_test(struct kunit * test) cs_amp_lib_test_cal_data_too_short_test() argument 157 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_bad_count() local 175 cs_amp_lib_test_cal_count_too_big_test(struct kunit * test) cs_amp_lib_test_cal_count_too_big_test() argument 203 cs_amp_lib_test_no_cal_data_test(struct kunit * test) cs_amp_lib_test_no_cal_data_test() argument 227 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable() local 271 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_all_zeros() local 312 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_hp_cal_efi_variable() local 342 cs_amp_lib_test_get_hp_efi_cal(struct kunit * test) cs_amp_lib_test_get_hp_efi_cal() argument 361 cs_amp_lib_test_get_efi_cal_by_uid_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_uid_test() argument 395 cs_amp_lib_test_get_efi_cal_by_index_unchecked_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_index_unchecked_test() argument 426 cs_amp_lib_test_get_efi_cal_by_index_checked_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_index_checked_test() argument 462 cs_amp_lib_test_get_efi_cal_by_index_uid_mismatch_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_index_uid_mismatch_test() argument 488 cs_amp_lib_test_get_efi_cal_by_index_fallback_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_index_fallback_test() argument 529 cs_amp_lib_test_get_efi_cal_uid_not_found_noindex_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_uid_not_found_noindex_test() argument 558 cs_amp_lib_test_get_efi_cal_uid_not_found_index_not_found_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_uid_not_found_index_not_found_test() argument 587 cs_amp_lib_test_get_efi_cal_no_uid_index_not_found_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_no_uid_index_not_found_test() argument 605 cs_amp_lib_test_get_efi_cal_no_uid_no_index_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_no_uid_no_index_test() argument 626 cs_amp_lib_test_get_efi_cal_zero_not_matched_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_zero_not_matched_test() argument 653 cs_amp_lib_test_get_efi_cal_empty_entry_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_empty_entry_test() argument 703 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_write_cal_coeff() local 722 cs_amp_lib_test_write_cal_data_test(struct kunit * test) cs_amp_lib_test_write_cal_data_test() argument 770 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_read_cal_coeff() local 787 cs_amp_lib_test_read_cal_data_test(struct kunit * test) cs_amp_lib_test_read_cal_data_test() argument 811 cs_amp_lib_test_write_ambient_test(struct kunit * test) cs_amp_lib_test_write_ambient_test() argument 845 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_set_efi_variable() local 881 cs_amp_lib_test_create_new_cal_efi(struct kunit * test) cs_amp_lib_test_create_new_cal_efi() argument 942 cs_amp_lib_test_create_new_cal_efi_indexed(struct kunit * test) cs_amp_lib_test_create_new_cal_efi_indexed() argument 995 cs_amp_lib_test_create_new_cal_efi_indexed_no_max(struct kunit * test) cs_amp_lib_test_create_new_cal_efi_indexed_no_max() argument 1050 cs_amp_lib_test_grow_append_cal_efi(struct kunit * test) cs_amp_lib_test_grow_append_cal_efi() argument 1142 cs_amp_lib_test_grow_append_cal_efi_indexed(struct kunit * test) cs_amp_lib_test_grow_append_cal_efi_indexed() argument 1223 cs_amp_lib_test_cal_efi_all_zeros_add_first(struct kunit * test) cs_amp_lib_test_cal_efi_all_zeros_add_first() argument 1253 cs_amp_lib_test_cal_efi_all_zeros_add_first_no_shrink(struct kunit * test) cs_amp_lib_test_cal_efi_all_zeros_add_first_no_shrink() argument 1284 cs_amp_lib_test_cal_efi_all_zeros_add_first_indexed(struct kunit * test) cs_amp_lib_test_cal_efi_all_zeros_add_first_indexed() argument 1318 cs_amp_lib_test_cal_efi_all_zeros_add_first_indexed_no_shrink(struct kunit * test) cs_amp_lib_test_cal_efi_all_zeros_add_first_indexed_no_shrink() argument 1353 cs_amp_lib_test_grow_append_cal_efi_indexed_no_max(struct kunit * test) cs_amp_lib_test_grow_append_cal_efi_indexed_no_max() argument 1459 cs_amp_lib_test_grow_cal_efi_replace_indexed(struct kunit * test) cs_amp_lib_test_grow_cal_efi_replace_indexed() argument 1554 cs_amp_lib_test_grow_cal_efi_replace_by_uid(struct kunit * test) cs_amp_lib_test_grow_cal_efi_replace_by_uid() argument 1649 cs_amp_lib_test_cal_efi_replace_by_uid(struct kunit * test) cs_amp_lib_test_cal_efi_replace_by_uid() argument 1723 cs_amp_lib_test_cal_efi_replace_by_index(struct kunit * test) cs_amp_lib_test_cal_efi_replace_by_index() argument 1801 cs_amp_lib_test_cal_efi_deduplicate(struct kunit * test) cs_amp_lib_test_cal_efi_deduplicate() argument 1892 cs_amp_lib_test_cal_efi_find_free(struct kunit * test) cs_amp_lib_test_cal_efi_find_free() argument 1973 cs_amp_lib_test_cal_efi_bad_cal_target(struct kunit * test) cs_amp_lib_test_cal_efi_bad_cal_target() argument 1996 cs_amp_lib_test_cal_efi_write_denied(struct kunit * test) cs_amp_lib_test_cal_efi_write_denied() argument 2032 cs_amp_lib_test_cal_efi_attr_preserved(struct kunit * test) cs_amp_lib_test_cal_efi_attr_preserved() argument 2066 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_set_hp_efi_cal_variable() local 2091 cs_amp_lib_test_cal_efi_update_hp(struct kunit * test) cs_amp_lib_test_cal_efi_update_hp() argument 2123 cs_amp_lib_test_spkid_lenovo_not_present(struct kunit * test) cs_amp_lib_test_spkid_lenovo_not_present() argument 2141 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_lenovo_d0() local 2160 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_lenovo_d1() local 2179 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_lenovo_00() local 2189 cs_amp_lib_test_spkid_lenovo_d0(struct kunit * test) cs_amp_lib_test_spkid_lenovo_d0() argument 2201 cs_amp_lib_test_spkid_lenovo_d1(struct kunit * test) cs_amp_lib_test_spkid_lenovo_d1() argument 2213 cs_amp_lib_test_spkid_lenovo_illegal(struct kunit * test) cs_amp_lib_test_spkid_lenovo_illegal() argument 2234 cs_amp_lib_test_spkid_lenovo_oversize(struct kunit * test) cs_amp_lib_test_spkid_lenovo_oversize() argument 2252 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_hp_30() local 2271 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_hp_31() local 2284 cs_amp_lib_test_spkid_hp_30(struct kunit * test) cs_amp_lib_test_spkid_hp_30() argument 2296 cs_amp_lib_test_spkid_hp_31(struct kunit * test) cs_amp_lib_test_spkid_hp_31() argument 2308 cs_amp_lib_test_case_init(struct kunit * test) cs_amp_lib_test_case_init() argument [all...] |
| /linux/drivers/gpu/drm/xe/tests/ |
| H A D | xe_guc_relay_test.c | 25 static int relay_test_init(struct kunit *test) in relay_test_init() 65 struct kunit *test = kunit_get_current_test(); in replacement_xe_guc_ct_send_recv_always_fails() local 78 struct kunit *test = kunit_get_current_test(); in replacement_xe_guc_ct_send_recv_expects_pf2guc_relay() local 120 static void pf_rejects_guc2pf_too_short(struct kunit *test) in pf_rejects_guc2pf_too_short() 129 static void pf_rejects_guc2pf_too_long(struct kunit *test) in pf_rejects_guc2pf_too_long() 138 static void pf_rejects_guc2pf_no_payload(struct kunit *test) in pf_rejects_guc2pf_no_payload() 147 static void pf_fails_no_payload(struct kunit *test) in pf_fails_no_payload() 155 static void pf_fails_bad_origin(struct kunit *test) in pf_fails_bad_origin() 167 static void pf_fails_bad_type(struct kunit *test) in pf_fails_bad_type() 179 static void pf_txn_reports_error(struct kunit *test) in pf_txn_reports_error() [all …]
|
| H A D | xe_sriov_pf_service_kunit.c | 12 static int pf_service_test_init(struct kunit *test) in pf_service_test_init() 43 static void pf_negotiate_any(struct kunit *test) in pf_negotiate_any() 56 static void pf_negotiate_base_match(struct kunit *test) in pf_negotiate_base_match() 70 static void pf_negotiate_base_newer(struct kunit *test) in pf_negotiate_base_newer() 88 static void pf_negotiate_base_next(struct kunit *test) in pf_negotiate_base_next() 105 static void pf_negotiate_base_older(struct kunit *test) in pf_negotiate_base_older() 120 static void pf_negotiate_base_prev(struct kunit *test) in pf_negotiate_base_prev() 131 static void pf_negotiate_latest_match(struct kunit *test) in pf_negotiate_latest_match() 145 static void pf_negotiate_latest_newer(struct kunit *test) in pf_negotiate_latest_newer() 159 static void pf_negotiate_latest_next(struct kunit *test) in pf_negotiate_latest_next() [all …]
|
| /linux/mm/damon/tests/ |
| H A D | core-kunit.h | 17 static void damon_test_regions(struct kunit *test) in damon_test_regions() 56 static void damon_test_target(struct kunit *test) in damon_test_target() 90 static void damon_test_aggregate(struct kunit *test) in damon_test_aggregate() 145 static void damon_test_split_at(struct kunit *test) in damon_test_split_at() 179 static void damon_test_merge_two(struct kunit *test) in damon_test_merge_two() 237 static void damon_test_merge_regions_of(struct kunit *test) in damon_test_merge_regions_of() 274 static void damon_test_split_regions_of(struct kunit *test) in damon_test_split_regions_of() 326 static void damon_test_ops_registration(struct kunit *test) in damon_test_ops_registration() 377 static void damon_test_set_regions(struct kunit *test) in damon_test_set_regions() 412 static void damon_test_nr_accesses_to_accesses_bp(struct kunit *test) in damon_test_nr_accesses_to_accesses_bp() [all …]
|
| /linux/drivers/iommu/generic_pt/ |
| H A D | kunit_generic_pt.h | 11 static void do_map(struct kunit *test, pt_vaddr_t va, pt_oaddr_t pa, in do_map() 24 #define KUNIT_ASSERT_PT_LOAD(test, pts, entry) \ argument 31 struct kunit *test; member 41 struct kunit *test = chk->test; in __check_all_levels() local 103 static void check_all_levels(struct kunit *test, in check_all_levels() 104 void (*fn)(struct kunit *test, in check_all_levels() 136 static void test_init(struct kunit *test) in test_init() 148 static void test_bitops(struct kunit *test) in test_bitops() 208 static void test_best_pgsize(struct kunit *test) in test_best_pgsize() 318 static void test_lvl_table_ptr(struct kunit *test, struct pt_state *pts, in test_lvl_table_ptr() [all …]
|
| /linux/drivers/clk/ |
| H A D | clk-gate_test.c | 11 static void clk_gate_register_test_dev(struct kunit *test) in clk_gate_register_test_dev() 29 static void clk_gate_register_test_parent_names(struct kunit *test) in clk_gate_register_test_parent_names() 47 static void clk_gate_register_test_parent_data(struct kunit *test) in clk_gate_register_test_parent_data() 67 static void clk_gate_register_test_parent_data_legacy(struct kunit *test) in clk_gate_register_test_parent_data_legacy() 87 static void clk_gate_register_test_parent_hw(struct kunit *test) in clk_gate_register_test_parent_hw() 105 static void clk_gate_register_test_hiword_invalid(struct kunit *test) in clk_gate_register_test_hiword_invalid() 137 static struct clk_gate_test_context *clk_gate_test_alloc_ctx(struct kunit *test) in clk_gate_test_alloc_ctx() 148 static void clk_gate_test_parent_rate(struct kunit *test) in clk_gate_test_parent_rate() 159 static void clk_gate_test_enable(struct kunit *test) in clk_gate_test_enable() 176 static void clk_gate_test_disable(struct kunit *test) in clk_gate_test_disable() [all …]
|
| /linux/drivers/platform/chrome/ |
| H A D | cros_ec_proto_test.c | 26 static void cros_ec_proto_test_prepare_tx_legacy_normal(struct kunit *test) in cros_ec_proto_test_prepare_tx_legacy_normal() 69 static void cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize(struct kunit *test) in cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize() 84 static void cros_ec_proto_test_prepare_tx_normal(struct kunit *test) in cros_ec_proto_test_prepare_tx_normal() 125 static void cros_ec_proto_test_prepare_tx_bad_msg_outsize(struct kunit *test) in cros_ec_proto_test_prepare_tx_bad_msg_outsize() 138 static void cros_ec_proto_test_check_result(struct kunit *test) in cros_ec_proto_test_check_result() 178 static void cros_ec_proto_test_query_all_pretest(struct kunit *test) in cros_ec_proto_test_query_all_pretest() 193 static void cros_ec_proto_test_query_all_normal(struct kunit *test) in cros_ec_proto_test_query_all_normal() 347 static void cros_ec_proto_test_query_all_no_pd_return_error(struct kunit *test) in cros_ec_proto_test_query_all_no_pd_return_error() 412 static void cros_ec_proto_test_query_all_no_pd_return0(struct kunit *test) in cros_ec_proto_test_query_all_no_pd_return0() 477 static void cros_ec_proto_test_query_all_legacy_normal_v3_return_error(struct kunit *test) in cros_ec_proto_test_query_all_legacy_normal_v3_return_error() [all …]
|
| /linux/mm/kmsan/ |
| H A D | kmsan_test.c | 165 static void test_uninit_kmalloc(struct kunit *test) in test_uninit_kmalloc() 179 static void test_init_kmalloc(struct kunit *test) in test_init_kmalloc() 192 static void test_init_kzalloc(struct kunit *test) in test_init_kzalloc() 204 static void test_uninit_stack_var(struct kunit *test) in test_uninit_stack_var() 215 static void test_init_stack_var(struct kunit *test) in test_init_stack_var() 246 static void test_params(struct kunit *test) in test_params() 274 static void test_uninit_multiple_params(struct kunit *test) in test_uninit_multiple_params() 298 static void test_uninit_kmsan_check_memory(struct kunit *test) in test_uninit_kmsan_check_memory() 316 static void test_init_kmsan_vmap_vunmap(struct kunit *test) in test_init_kmsan_vmap_vunmap() 347 static void test_init_vmalloc(struct kunit *test) in test_init_vmalloc() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_xsk.c | 228 static void __test_spec_init(struct test_spec *test, struct ifobject *ifobj_tx, in __test_spec_init() 290 void test_init(struct test_spec *test, struct ifobject *ifobj_tx, in test_init() 320 static void test_spec_reset(struct test_spec *test) in test_spec_reset() 325 static void test_spec_set_xdp_prog(struct test_spec *test, struct bpf_program *xdp_prog_rx, in test_spec_set_xdp_prog() 335 static int test_spec_set_mtu(struct test_spec *test, int mtu) in test_spec_set_mtu() 388 void pkt_stream_restore_default(struct test_spec *test) in pkt_stream_restore_default() 516 static int pkt_stream_replace(struct test_spec *test, u32 nb_pkts, u32 pkt_len) in pkt_stream_replace() 545 static int pkt_stream_replace_half(struct test_spec *test, u32 pkt_len, int offset) in pkt_stream_replace_half() 555 static int pkt_stream_receive_half(struct test_spec *test) in pkt_stream_receive_half() 581 static int pkt_stream_even_odd_sequence(struct test_spec *test) in pkt_stream_even_odd_sequence() [all …]
|
| /linux/kernel/events/ |
| H A D | hw_breakpoint_test.c | 15 #define TEST_REQUIRES_BP_SLOTS(test, slots) \ argument 65 static void fill_one_bp_slot(struct kunit *test, int *id, int cpu, struct task_struct *tsk) in fill_one_bp_slot() 80 static bool fill_bp_slots(struct kunit *test, int *id, int cpu, struct task_struct *tsk, int skip) in fill_bp_slots() 93 static struct task_struct *get_other_task(struct kunit *test) in get_other_task() 122 static void test_one_cpu(struct kunit *test) in test_one_cpu() 131 static void test_many_cpus(struct kunit *test) in test_many_cpus() 146 static void test_one_task_on_all_cpus(struct kunit *test) in test_one_task_on_all_cpus() 159 static void test_two_tasks_on_all_cpus(struct kunit *test) in test_two_tasks_on_all_cpus() 177 static void test_one_task_on_one_cpu(struct kunit *test) in test_one_task_on_one_cpu() 193 static void test_one_task_mixed(struct kunit *test) in test_one_task_mixed() [all …]
|
| /linux/drivers/firmware/cirrus/test/ |
| H A D | cs_dsp_test_wmfw_error.c | 55 static void wmfw_load_with_unknown_blocks(struct kunit *test) in wmfw_load_with_unknown_blocks() 112 static void wmfw_err_wrong_magic(struct kunit *test) in wmfw_err_wrong_magic() 158 static void wmfw_err_too_short_for_header(struct kunit *test) in wmfw_err_too_short_for_header() 182 static void wmfw_err_bad_header_length(struct kunit *test) in wmfw_err_bad_header_length() 232 static void wmfw_err_bad_core_type(struct kunit *test) in wmfw_err_bad_core_type() 271 static void wmfw_too_short_for_block_header(struct kunit *test) in wmfw_too_short_for_block_header() 305 static void wmfw_too_short_for_block_payload(struct kunit *test) in wmfw_too_short_for_block_payload() 334 static void wmfw_block_payload_len_garbage(struct kunit *test) in wmfw_block_payload_len_garbage() 390 static void wmfw_too_short_for_alg_header(struct kunit *test) in wmfw_too_short_for_alg_header() 423 static void wmfw_v1_alg_name_unterminated(struct kunit *test) in wmfw_v1_alg_name_unterminated() [all …]
|
| /linux/fs/hfsplus/ |
| H A D | unicode_test.c | 66 static void hfsplus_strcasecmp_test(struct kunit *test) in hfsplus_strcasecmp_test() 189 static void hfsplus_strcmp_test(struct kunit *test) in hfsplus_strcmp_test() 294 static void hfsplus_unicode_edge_cases_test(struct kunit *test) in hfsplus_unicode_edge_cases_test() 340 static void hfsplus_unicode_boundary_test(struct kunit *test) in hfsplus_unicode_boundary_test() 434 static void hfsplus_uni2asc_basic_test(struct kunit *test) in hfsplus_uni2asc_basic_test() 482 static void hfsplus_uni2asc_special_chars_test(struct kunit *test) in hfsplus_uni2asc_special_chars_test() 539 static void hfsplus_uni2asc_buffer_test(struct kunit *test) in hfsplus_uni2asc_buffer_test() 585 static void hfsplus_uni2asc_corrupted_test(struct kunit *test) in hfsplus_uni2asc_corrupted_test() 620 static void hfsplus_uni2asc_edge_cases_test(struct kunit *test) in hfsplus_uni2asc_edge_cases_test() 683 static void check_unistr_content(struct kunit *test, in check_unistr_content() [all …]
|
| /linux/drivers/pinctrl/qcom/ |
| H A D | tlmm-test.c | 145 static void tlmm_test_request_hard_irq(struct kunit *test, unsigned long irqflags) in tlmm_test_request_hard_irq() 154 static void tlmm_test_request_threaded_irq(struct kunit *test, unsigned long irqflags) in tlmm_test_request_threaded_irq() 166 static void tlmm_test_silent(struct kunit *test, unsigned long irqflags) in tlmm_test_silent() 188 static void tlmm_test_silent_rising(struct kunit *test) in tlmm_test_silent_rising() 196 static void tlmm_test_silent_falling(struct kunit *test) in tlmm_test_silent_falling() 204 static void tlmm_test_silent_low(struct kunit *test) in tlmm_test_silent_low() 212 static void tlmm_test_silent_high(struct kunit *test) in tlmm_test_silent_high() 220 static void tlmm_test_rising(struct kunit *test) in tlmm_test_rising() 245 static void tlmm_test_falling(struct kunit *test) in tlmm_test_falling() 270 static void tlmm_test_low(struct kunit *test) in tlmm_test_low() [all …]
|
| /linux/tools/testing/scatterlist/ |
| H A D | main.c | 8 struct test { struct 30 static void fail(struct test *test, struct sg_table *st, const char *cond) in fail() 48 #define VALIDATE(cond, st, test) \ argument 55 struct test *test, tests[] = { in main() local
|
| /linux/drivers/base/regmap/ |
| H A D | regmap-kunit.c | 183 static struct regmap *gen_regmap(struct kunit *test, in gen_regmap() 255 struct kunit *test = dev_get_drvdata(dev); in reg_5_false() local 269 struct kunit *test = dev_get_drvdata(dev); in reg_default_test_cb() local 279 static void expect_reg_default_value(struct kunit *test, struct regmap *map, in expect_reg_default_value() 292 static void basic_read_write(struct kunit *test) in basic_read_write() 317 static void bulk_write(struct kunit *test) in bulk_write() 350 static void bulk_read(struct kunit *test) in bulk_read() 379 static void multi_write(struct kunit *test) in multi_write() 418 static void multi_read(struct kunit *test) in multi_read() 450 static void read_bypassed(struct kunit *test) in read_bypassed() [all …]
|