Home
last modified time | relevance | path

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

/Linux-v5.10/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.10/net/mptcp/
Dtoken_test.c10 req = kunit_kzalloc(test, sizeof(struct mptcp_subflow_request_sock), in build_req_sock()
35 icsk = kunit_kzalloc(test, sizeof(struct inet_connection_sock), in build_icsk()
45 ctx = kunit_kzalloc(test, sizeof(struct mptcp_subflow_context), in build_ctx()
55 msk = kunit_kzalloc(test, sizeof(struct mptcp_sock), GFP_USER); in build_msk()
/Linux-v5.10/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()
Dkunit-test.c82 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in kunit_try_catch_test_init()
/Linux-v5.10/security/apparmor/
Dpolicy_unpack_test.c57 buf = kunit_kzalloc(test, buf_size, GFP_USER); in build_aa_ext_struct()
/Linux-v5.10/Documentation/dev-tools/kunit/
Dusage.rst432 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL);
435 ctx->fake_eeprom = kunit_kzalloc(test, sizeof(*ctx->fake_eeprom), GFP_KERNEL);
/Linux-v5.10/include/kunit/
Dtest.h576 static inline void *kunit_kzalloc(struct kunit *test, size_t size, gfp_t gfp) in kunit_kzalloc() function
/Linux-v5.10/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()