Searched refs:kunit_kzalloc (Results 1 – 11 of 11) sorted by relevance
| /Linux-v5.15/kernel/ |
| D | sysctl-test.c | 39 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/ |
| D | soc-topology-test.c | 250 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/ |
| D | token_test.c | 10 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/ |
| D | string-stream.c | 27 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()
|
| D | executor_test.c | 129 suite = kunit_kzalloc(test, sizeof(*suite), GFP_KERNEL); in alloc_fake_suite()
|
| D | kunit-test.c | 82 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in kunit_try_catch_test_init()
|
| /Linux-v5.15/Documentation/dev-tools/kunit/ |
| D | tips.rst | 28 Where you would use ``kzalloc``, you should prefer ``kunit_kzalloc`` instead. 41 char *buffer = kunit_kzalloc(test, 16, GFP_KERNEL);
|
| D | usage.rst | 437 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/ |
| D | policy_unpack_test.c | 57 buf = kunit_kzalloc(test, buf_size, GFP_USER); in build_aa_ext_struct()
|
| /Linux-v5.15/drivers/thunderbolt/ |
| D | test.c | 43 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/ |
| D | test.h | 646 static inline void *kunit_kzalloc(struct kunit *test, size_t size, gfp_t gfp) in kunit_kzalloc() function
|