Home
last modified time | relevance | path

Searched refs:kunit_kzalloc (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.15/kernel/
Dsysctl-test.c39 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_null_tbl_data()
85 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_maxlen_unset()
128 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_len_is_zero()
162 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_read_but_position_set()
199 char *buffer = kunit_kzalloc(test, len, GFP_USER); in sysctl_test_dointvec_read_happy_single_positive()
230 char *buffer = kunit_kzalloc(test, len, GFP_USER); in sysctl_test_dointvec_read_happy_single_negative()
260 char *buffer = kunit_kzalloc(test, len, GFP_USER); in sysctl_test_dointvec_write_happy_single_positive()
290 char *buffer = kunit_kzalloc(test, len, GFP_USER); in sysctl_test_dointvec_write_happy_single_negative()
321 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_less_int_min()
359 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_greater_int_max()
/Linux-v5.15/sound/soc/
Dsoc-topology-test.c250 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_with_null_comp()
294 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_with_null_ops()
358 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_with_null_fw()
398 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg()
404 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg()
449 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_magic()
455 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_magic()
505 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_abi()
511 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_abi()
561 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_size()
[all …]
/Linux-v5.15/net/mptcp/
Dtoken_test.c10 req = kunit_kzalloc(test, sizeof(struct mptcp_subflow_request_sock), in build_req_sock()
36 icsk = kunit_kzalloc(test, sizeof(struct inet_connection_sock), in build_icsk()
46 ctx = kunit_kzalloc(test, sizeof(struct mptcp_subflow_context), in build_ctx()
56 msk = kunit_kzalloc(test, sizeof(struct mptcp_sock), GFP_USER); in build_msk()
/Linux-v5.15/lib/kunit/
Dstring-stream.c27 frag = kunit_kzalloc(ctx->test, sizeof(*frag), ctx->gfp); in string_stream_fragment_init()
137 buf = kunit_kzalloc(stream->test, buf_len, stream->gfp); in string_stream_get_string()
177 stream = kunit_kzalloc(ctx->test, sizeof(*stream), ctx->gfp); in string_stream_init()
Dexecutor_test.c129 suite = kunit_kzalloc(test, sizeof(*suite), GFP_KERNEL); in alloc_fake_suite()
Dkunit-test.c82 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in kunit_try_catch_test_init()
/Linux-v5.15/Documentation/dev-tools/kunit/
Dtips.rst28 Where you would use ``kzalloc``, you should prefer ``kunit_kzalloc`` instead.
41 char *buffer = kunit_kzalloc(test, 16, GFP_KERNEL);
Dusage.rst437 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL);
440 ctx->fake_eeprom = kunit_kzalloc(test, sizeof(*ctx->fake_eeprom), GFP_KERNEL);
/Linux-v5.15/security/apparmor/
Dpolicy_unpack_test.c57 buf = kunit_kzalloc(test, buf_size, GFP_USER); in build_aa_ext_struct()
/Linux-v5.15/drivers/thunderbolt/
Dtest.c43 sw = kunit_kzalloc(test, sizeof(*sw), GFP_KERNEL); in alloc_switch()
55 sw->ports = kunit_kzalloc(test, size, GFP_KERNEL); in alloc_switch()
2568 block = kunit_kzalloc(test, block_len * sizeof(u32), GFP_KERNEL); in tb_test_property_format()
2669 block = kunit_kzalloc(test, sizeof(root_directory), GFP_KERNEL); in tb_test_property_copy()
/Linux-v5.15/include/kunit/
Dtest.h646 static inline void *kunit_kzalloc(struct kunit *test, size_t size, gfp_t gfp) in kunit_kzalloc() function