Home
last modified time | relevance | path

Searched defs:test (Results 51 – 75 of 487) sorted by relevance

12345678910>>...20

/linux/drivers/gpu/drm/xe/tests/
H A Dxe_guc_db_mgr_test.c11 static int guc_dbm_test_init(struct kunit *test) in guc_dbm_test_init()
23 static void test_empty(struct kunit *test) in test_empty()
37 static void test_default(struct kunit *test) in test_default()
59 static void test_size(struct kunit *test) in test_size()
83 static void test_reuse(struct kunit *test) in test_reuse()
111 static void test_range_overlap(struct kunit *test) in test_range_overlap()
149 static void test_range_compact(struct kunit *test) in test_range_compact()
168 static void test_range_spare(struct kunit *test) in test_range_spare()
H A Dxe_migrate.c16 const char *str, struct kunit *test) in sanity_fence_failed()
39 struct kunit *test) in run_sanity_job()
73 struct kunit *test, u32 region) in test_copy()
164 struct kunit *test) in test_copy_sysmem()
170 struct kunit *test) in test_copy_vram()
184 static void xe_migrate_sanity_test(struct xe_migrate *m, struct kunit *test) in xe_migrate_sanity_test()
338 struct kunit *test = kunit_get_current_test(); in migrate_test_run_device() local
358 static void xe_migrate_sanity_kunit(struct kunit *test) in xe_migrate_sanity_kunit()
367 bool copy_only_ccs, const char *str, struct kunit *test) in blt_copy()
493 struct kunit *test) in test_migrate()
[all …]
/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_resource_test.c26 static int ttm_resource_test_init(struct kunit *test) in ttm_resource_test_init()
41 static void ttm_resource_test_fini(struct kunit *test) in ttm_resource_test_fini()
48 static void ttm_init_test_mocks(struct kunit *test, in ttm_init_test_mocks()
61 static void ttm_init_test_manager(struct kunit *test, in ttm_init_test_manager()
107 static void ttm_resource_init_basic(struct kunit *test) in ttm_resource_init_basic()
151 static void ttm_resource_init_pinned(struct kunit *test) in ttm_resource_init_pinned()
181 static void ttm_resource_fini_basic(struct kunit *test) in ttm_resource_fini_basic()
205 static void ttm_resource_manager_init_basic(struct kunit *test) in ttm_resource_manager_init_basic()
226 static void ttm_resource_manager_usage_basic(struct kunit *test) in ttm_resource_manager_usage_basic()
252 static void ttm_resource_manager_set_used_basic(struct kunit *test) in ttm_resource_manager_set_used_basic()
[all …]
/linux/lib/tests/
H A Dfortify_kunit.c85 static void fortify_test_known_sizes(struct kunit *test) in fortify_test_known_sizes()
134 static void fortify_test_control_flow_split(struct kunit *test) in fortify_test_control_flow_split()
139 #define KUNIT_EXPECT_BOS(test, p, expected, name) \ argument
145 #define KUNIT_EXPECT_BDOS(test, p, expected, name) \ argument
149 #define KUNIT_EXPECT_BDOS(test, p, expected, name) \ argument
397 static void fortify_test_realloc_size(struct kunit *test) in fortify_test_realloc_size()
415 static void fortify_test_strlen(struct kunit *test) in fortify_test_strlen()
438 static void fortify_test_strnlen(struct kunit *test) in fortify_test_strnlen()
476 static void fortify_test_strcpy(struct kunit *test) in fortify_test_strcpy()
534 static void fortify_test_strncpy(struct kunit *test) in fortify_test_strncpy()
[all …]
H A Dtest_bits.c31 static void __genmask_test(struct kunit *test) in __genmask_test()
39 static void __genmask_ull_test(struct kunit *test) in __genmask_ull_test()
47 static void genmask_test(struct kunit *test) in genmask_test()
74 static void genmask_ull_test(struct kunit *test) in genmask_ull_test()
89 static void genmask_u128_test(struct kunit *test) in genmask_u128_test()
119 static void genmask_input_check_test(struct kunit *test) in genmask_input_check_test()
H A Dhashtable_test.c19 static void hashtable_test_hash_init(struct kunit *test) in hashtable_test_hash_init()
34 static void hashtable_test_hash_empty(struct kunit *test) in hashtable_test_hash_empty()
49 static void hashtable_test_hash_hashed(struct kunit *test) in hashtable_test_hash_hashed()
65 static void hashtable_test_hash_add(struct kunit *test) in hashtable_test_hash_add()
95 static void hashtable_test_hash_del(struct kunit *test) in hashtable_test_hash_del()
123 static void hashtable_test_hash_for_each(struct kunit *test) in hashtable_test_hash_for_each()
152 static void hashtable_test_hash_for_each_safe(struct kunit *test) in hashtable_test_hash_for_each_safe()
185 static void hashtable_test_hash_for_each_possible(struct kunit *test) in hashtable_test_hash_for_each_possible()
239 static void hashtable_test_hash_for_each_possible_safe(struct kunit *test) in hashtable_test_hash_for_each_possible_safe()
/linux/arch/s390/lib/
H A Dtest_kprobes.c11 static void setup_kprobe(struct kunit *test, struct kprobe *kp, in setup_kprobe()
19 static void test_kprobe_offset(struct kunit *test, struct kprobe *kp, in test_kprobe_offset()
36 static void test_kprobe_odd(struct kunit *test) in test_kprobe_odd()
42 static void test_kprobe_in_insn4(struct kunit *test) in test_kprobe_in_insn4()
48 static void test_kprobe_in_insn6_lo(struct kunit *test) in test_kprobe_in_insn6_lo()
54 static void test_kprobe_in_insn6_hi(struct kunit *test) in test_kprobe_in_insn6_hi()
/linux/drivers/gpu/drm/scheduler/tests/
H A Dtests_basic.c17 static int drm_sched_basic_init(struct kunit *test) in drm_sched_basic_init()
24 static void drm_sched_basic_exit(struct kunit *test) in drm_sched_basic_exit()
31 static int drm_sched_timeout_init(struct kunit *test) in drm_sched_timeout_init()
38 static void drm_sched_basic_submit(struct kunit *test) in drm_sched_basic_submit()
118 static void drm_sched_basic_test(struct kunit *test) in drm_sched_basic_test()
154 static void drm_sched_basic_entity_cleanup(struct kunit *test) in drm_sched_basic_entity_cleanup()
209 static void drm_sched_basic_cancel(struct kunit *test) in drm_sched_basic_cancel()
250 static void drm_sched_basic_timeout(struct kunit *test) in drm_sched_basic_timeout()
290 static void drm_sched_skip_reset(struct kunit *test) in drm_sched_skip_reset()
345 static void drm_sched_priorities(struct kunit *test) in drm_sched_priorities()
[all …]
/linux/sound/core/
H A Dsound_kunit.c99 static void test_phys_format_size(struct kunit *test) in test_phys_format_size()
112 static void test_format_width(struct kunit *test) in test_format_width()
125 static void test_format_signed(struct kunit *test) in test_format_signed()
140 static void test_format_endianness(struct kunit *test) in test_format_endianness()
157 static void _test_fill_silence(struct kunit *test, const struct snd_format_test_data *data, in _test_fill_silence()
168 static void test_format_fill_silence(struct kunit *test) in test_format_fill_silence()
207 static void test_playback_avail(struct kunit *test) in test_playback_avail()
235 static void test_capture_avail(struct kunit *test) in test_capture_avail()
256 static void test_card_set_id(struct kunit *test) in test_card_set_id()
275 static void test_pcm_format_name(struct kunit *test) in test_pcm_format_name()
[all …]
/linux/drivers/scsi/
H A Dscsi_lib_test.c16 static void scsi_lib_test_multiple_sense(struct kunit *test) in scsi_lib_test_multiple_sense()
115 static void scsi_lib_test_any_sense(struct kunit *test) in scsi_lib_test_any_sense()
138 static void scsi_lib_test_host(struct kunit *test) in scsi_lib_test_host()
168 static void scsi_lib_test_any_failure(struct kunit *test) in scsi_lib_test_any_failure()
191 static void scsi_lib_test_any_status(struct kunit *test) in scsi_lib_test_any_status()
214 static void scsi_lib_test_total_allowed(struct kunit *test) in scsi_lib_test_total_allowed()
258 static void scsi_lib_test_mixed_total(struct kunit *test) in scsi_lib_test_mixed_total()
316 static void scsi_lib_test_check_passthough(struct kunit *test) in scsi_lib_test_check_passthough()
/linux/drivers/gpu/drm/tests/
H A Ddrm_exec_test.c26 static int drm_exec_test_init(struct kunit *test) in drm_exec_test_init()
45 static void sanitycheck(struct kunit *test) in sanitycheck()
54 static void test_lock(struct kunit *test) in test_lock()
74 static void test_lock_unlock(struct kunit *test) in test_lock_unlock()
101 static void test_duplicates(struct kunit *test) in test_duplicates()
128 static void test_prepare(struct kunit *test) in test_prepare()
150 static void test_prepare_array(struct kunit *test) in test_prepare_array()
173 static void test_multiple_loops(struct kunit *test) in test_multiple_loops()
H A Ddrm_gem_shmem_test.c43 static void drm_gem_shmem_test_obj_create(struct kunit *test) in drm_gem_shmem_test_obj_create()
63 static void drm_gem_shmem_test_obj_create_private(struct kunit *test) in drm_gem_shmem_test_obj_create_private()
128 static void drm_gem_shmem_test_pin_pages(struct kunit *test) in drm_gem_shmem_test_pin_pages()
161 static void drm_gem_shmem_test_vmap(struct kunit *test) in drm_gem_shmem_test_vmap()
197 static void drm_gem_shmem_test_get_pages_sgt(struct kunit *test) in drm_gem_shmem_test_get_pages_sgt()
239 static void drm_gem_shmem_test_get_sg_table(struct kunit *test) in drm_gem_shmem_test_get_sg_table()
274 static void drm_gem_shmem_test_madvise(struct kunit *test) in drm_gem_shmem_test_madvise()
309 static void drm_gem_shmem_test_purge(struct kunit *test) in drm_gem_shmem_test_purge()
341 static int drm_gem_shmem_test_init(struct kunit *test) in drm_gem_shmem_test_init()
/linux/net/hsr/
H A Dprp_dup_discard_test.c14 static struct prp_test_data *build_prp_test_data(struct kunit *test) in build_prp_test_data()
34 static void check_prp_counters(struct kunit *test, in check_prp_counters()
49 static void prp_dup_discard_forward(struct kunit *test) in prp_dup_discard_forward()
64 static void prp_dup_discard_inside_dropwindow(struct kunit *test) in prp_dup_discard_inside_dropwindow()
82 static void prp_dup_discard_node_timeout(struct kunit *test) in prp_dup_discard_node_timeout()
105 static void prp_dup_discard_out_of_sequence(struct kunit *test) in prp_dup_discard_out_of_sequence()
156 static void prp_dup_discard_lan_b_late(struct kunit *test) in prp_dup_discard_lan_b_late()
/linux/mm/damon/tests/
H A Dvaddr-kunit.h66 static void damon_test_three_regions_in_vmas(struct kunit *test) in damon_test_three_regions_in_vmas()
129 static void damon_do_test_apply_three_regions(struct kunit *test, in damon_do_test_apply_three_regions()
161 static void damon_test_apply_three_regions1(struct kunit *test) in damon_test_apply_three_regions1()
183 static void damon_test_apply_three_regions2(struct kunit *test) in damon_test_apply_three_regions2()
207 static void damon_test_apply_three_regions3(struct kunit *test) in damon_test_apply_three_regions3()
232 static void damon_test_apply_three_regions4(struct kunit *test) in damon_test_apply_three_regions4()
249 static void damon_test_split_evenly_fail(struct kunit *test, in damon_test_split_evenly_fail()
268 static void damon_test_split_evenly_succ(struct kunit *test, in damon_test_split_evenly_succ()
295 static void damon_test_split_evenly(struct kunit *test) in damon_test_split_evenly()
/linux/drivers/firmware/cirrus/test/
H A Dcs_dsp_test_wmfw.c63 static void wmfw_write_xm_header_unpacked(struct kunit *test) in wmfw_write_xm_header_unpacked()
95 static void wmfw_write_one_payload(struct kunit *test) in wmfw_write_one_payload()
150 static void wmfw_write_multiple_oneblock_payloads(struct kunit *test) in wmfw_write_multiple_oneblock_payloads()
217 static void wmfw_write_multiple_oneblock_payloads_reverse(struct kunit *test) in wmfw_write_multiple_oneblock_payloads_reverse()
285 static void wmfw_write_multiple_payloads_sparse_unordered(struct kunit *test) in wmfw_write_multiple_payloads_sparse_unordered()
366 static void wmfw_write_all_unpacked_pm(struct kunit *test) in wmfw_write_all_unpacked_pm()
410 static void wmfw_write_all_packed_pm(struct kunit *test) in wmfw_write_all_packed_pm()
461 static void wmfw_write_multiple_unpacked_mem(struct kunit *test) in wmfw_write_multiple_unpacked_mem()
558 static void wmfw_write_multiple_packed_unpacked_mem(struct kunit *test) in wmfw_write_multiple_packed_unpacked_mem()
652 static void wmfw_write_packed_1_unpacked_trailing(struct kunit *test) in wmfw_write_packed_1_unpacked_trailing()
[all …]
H A Dcs_dsp_test_control_rw.c89 static int _find_alg_entry(struct kunit *test, unsigned int alg_id) in _find_alg_entry()
103 static int _get_alg_mem_base_words(struct kunit *test, int alg_index, int mem_type) in _get_alg_mem_base_words()
118 static struct cs_dsp_mock_wmfw_builder *_create_dummy_wmfw(struct kunit *test) in _create_dummy_wmfw()
140 static void cs_dsp_ctl_write_running(struct kunit *test) in cs_dsp_ctl_write_running()
211 static void cs_dsp_ctl_read_volatile_running(struct kunit *test) in cs_dsp_ctl_read_volatile_running()
282 static void cs_dsp_ctl_read_volatile_not_started(struct kunit *test) in cs_dsp_ctl_read_volatile_not_started()
332 static void cs_dsp_ctl_read_volatile_stopped(struct kunit *test) in cs_dsp_ctl_read_volatile_stopped()
386 static void cs_dsp_ctl_read_volatile_stopped_powered_down(struct kunit *test) in cs_dsp_ctl_read_volatile_stopped_powered_down()
442 static void cs_dsp_ctl_read_volatile_not_current_loaded_fw(struct kunit *test) in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
500 static void cs_dsp_ctl_read_volatile_not_current_running_fw(struct kunit *test) in cs_dsp_ctl_read_volatile_not_current_running_fw()
[all …]
H A Dcs_dsp_test_control_cache.c93 static int _find_alg_entry(struct kunit *test, unsigned int alg_id) in _find_alg_entry()
107 static int _get_alg_mem_base_words(struct kunit *test, int alg_index, int mem_type) in _get_alg_mem_base_words()
122 static struct cs_dsp_mock_wmfw_builder *_create_dummy_wmfw(struct kunit *test) in _create_dummy_wmfw()
145 static void cs_dsp_ctl_v2_cache_alloc(struct kunit *test) in cs_dsp_ctl_v2_cache_alloc()
198 static void cs_dsp_ctl_cache_init(struct kunit *test) in cs_dsp_ctl_cache_init()
257 static void cs_dsp_ctl_cache_init_write_only(struct kunit *test) in cs_dsp_ctl_cache_init_write_only()
311 static void cs_dsp_ctl_cache_init_multiple_fw_same_controls(struct kunit *test) in cs_dsp_ctl_cache_init_multiple_fw_same_controls()
420 static void cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls(struct kunit *test) in cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls()
528 static void cs_dsp_ctl_cache_init_multiple_mems(struct kunit *test) in cs_dsp_ctl_cache_init_multiple_mems()
649 static void cs_dsp_ctl_cache_init_multiple_algs(struct kunit *test) in cs_dsp_ctl_cache_init_multiple_algs()
[all …]
/linux/fs/bcachefs/
H A Dmean_and_variance_test.c8 static void mean_and_variance_basic_test(struct kunit *test) in mean_and_variance_basic_test()
32 static void mean_and_variance_weighted_test(struct kunit *test) in mean_and_variance_weighted_test()
63 static void mean_and_variance_weighted_advanced_test(struct kunit *test) in mean_and_variance_weighted_advanced_test()
89 static void do_mean_and_variance_test(struct kunit *test, in do_mean_and_variance_test()
127 static void mean_and_variance_test_1(struct kunit *test) in mean_and_variance_test_1()
140 static void mean_and_variance_test_2(struct kunit *test) in mean_and_variance_test_2()
152 static void mean_and_variance_fast_divpow2(struct kunit *test) in mean_and_variance_fast_divpow2()
170 static void mean_and_variance_u128_basic_test(struct kunit *test) in mean_and_variance_u128_basic_test()
/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_kunit.c246 static void test_vcap_xn_rule_creator(struct kunit *test, int cid, in test_vcap_xn_rule_creator()
328 static void vcap_api_set_bit_1_test(struct kunit *test) in vcap_api_set_bit_1_test()
345 static void vcap_api_set_bit_0_test(struct kunit *test) in vcap_api_set_bit_0_test()
363 static void vcap_api_iterator_init_test(struct kunit *test) in vcap_api_iterator_init_test()
393 static void vcap_api_iterator_next_test(struct kunit *test) in vcap_api_iterator_next_test()
428 static void vcap_api_encode_typegroups_test(struct kunit *test) in vcap_api_encode_typegroups_test()
457 static void vcap_api_encode_bit_test(struct kunit *test) in vcap_api_encode_bit_test()
484 static void vcap_api_encode_field_test(struct kunit *test) in vcap_api_encode_field_test()
535 static void vcap_api_encode_short_field_test(struct kunit *test) in vcap_api_encode_short_field_test()
580 static void vcap_api_encode_keyfield_test(struct kunit *test) in vcap_api_encode_keyfield_test()
[all …]
/linux/drivers/android/tests/
H A Dbinder_alloc_kunit.c118 static void stringify_free_seq(struct kunit *test, int *seq, struct seq_buf *sb) in stringify_free_seq()
128 static void stringify_alignments(struct kunit *test, int *alignments, in stringify_alignments()
140 static bool check_buffer_pages_allocated(struct kunit *test, in check_buffer_pages_allocated()
164 static unsigned long binder_alloc_test_alloc_buf(struct kunit *test, in binder_alloc_test_alloc_buf()
182 static unsigned long binder_alloc_test_free_buf(struct kunit *test, in binder_alloc_test_free_buf()
204 static unsigned long binder_alloc_test_free_page(struct kunit *test, in binder_alloc_test_free_page()
229 static bool binder_alloc_test_alloc_free(struct kunit *test, in binder_alloc_test_alloc_free()
299 static void permute_frees(struct kunit *test, struct binder_alloc *alloc, in permute_frees()
334 static void gen_buf_sizes(struct kunit *test, in gen_buf_sizes()
370 static void gen_buf_offsets(struct kunit *test, struct binder_alloc *alloc, in gen_buf_offsets()
[all …]
/linux/tools/testing/selftests/clone3/
H A Dclone3.c163 struct test { struct
169 enum test_mode test_mode; argument
173 static const struct test tests[] = { argument
/linux/lib/kunit/
H A Dresource.c19 int __kunit_add_resource(struct kunit *test, in __kunit_add_resource()
48 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res) in kunit_remove_resource()
63 int kunit_destroy_resource(struct kunit *test, kunit_resource_match_t match, in kunit_destroy_resource()
95 int kunit_add_action(struct kunit *test, void (*action)(void *), void *ctx) in kunit_add_action()
116 int kunit_add_action_or_reset(struct kunit *test, void (*action)(void *), in kunit_add_action_or_reset()
127 static bool __kunit_action_match(struct kunit *test, in __kunit_action_match()
141 void kunit_remove_action(struct kunit *test, in kunit_remove_action()
161 void kunit_release_action(struct kunit *test, in kunit_release_action()
/linux/kernel/
H A Dsysctl-test.c16 static void sysctl_test_api_dointvec_null_tbl_data(struct kunit *test) in sysctl_test_api_dointvec_null_tbl_data()
66 static void sysctl_test_api_dointvec_table_maxlen_unset(struct kunit *test) in sysctl_test_api_dointvec_table_maxlen_unset()
112 static void sysctl_test_api_dointvec_table_len_is_zero(struct kunit *test) in sysctl_test_api_dointvec_table_len_is_zero()
146 struct kunit *test) in sysctl_test_api_dointvec_table_read_but_position_set()
181 static void sysctl_test_dointvec_read_happy_single_positive(struct kunit *test) in sysctl_test_dointvec_read_happy_single_positive()
212 static void sysctl_test_dointvec_read_happy_single_negative(struct kunit *test) in sysctl_test_dointvec_read_happy_single_negative()
241 static void sysctl_test_dointvec_write_happy_single_positive(struct kunit *test) in sysctl_test_dointvec_write_happy_single_positive()
272 static void sysctl_test_dointvec_write_happy_single_negative(struct kunit *test) in sysctl_test_dointvec_write_happy_single_negative()
304 struct kunit *test) in sysctl_test_api_dointvec_write_single_less_int_min()
342 struct kunit *test) in sysctl_test_api_dointvec_write_single_greater_int_max()
/linux/tools/testing/selftests/sched_ext/
H A Drunner.c42 static void print_test_preamble(const struct scx_test *test, bool quiet) in print_test_preamble()
64 static void print_test_result(const struct scx_test *test, in print_test_result()
75 static bool should_skip_test(const struct scx_test *test, const char * filter) in should_skip_test()
80 static enum scx_test_status run_test(const struct scx_test *test) in run_test()
99 static bool test_valid(const struct scx_test *test) in test_valid()
159 struct scx_test *test = &__scx_tests[i]; in main() local
206 void scx_test_register(struct scx_test *test) in scx_test_register()
/linux/net/handshake/
H A Dhandshake-test.c127 static void handshake_req_alloc_case(struct kunit *test) in handshake_req_alloc_case()
146 static void handshake_req_submit_test1(struct kunit *test) in handshake_req_submit_test1()
165 static void handshake_req_submit_test2(struct kunit *test) in handshake_req_submit_test2()
183 static void handshake_req_submit_test3(struct kunit *test) in handshake_req_submit_test3()
208 static void handshake_req_submit_test4(struct kunit *test) in handshake_req_submit_test4()
241 static void handshake_req_submit_test5(struct kunit *test) in handshake_req_submit_test5()
279 static void handshake_req_submit_test6(struct kunit *test) in handshake_req_submit_test6()
312 static void handshake_req_cancel_test1(struct kunit *test) in handshake_req_cancel_test1()
346 static void handshake_req_cancel_test2(struct kunit *test) in handshake_req_cancel_test2()
388 static void handshake_req_cancel_test3(struct kunit *test) in handshake_req_cancel_test3()
[all …]

12345678910>>...20