Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/kernel/
A Dsysctl-test.c36 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_null_tbl_data()
82 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_maxlen_unset()
125 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_len_is_zero()
159 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_read_but_position_set()
196 char *buffer = kunit_kzalloc(test, len, GFP_USER); in sysctl_test_dointvec_read_happy_single_positive()
227 char *buffer = kunit_kzalloc(test, len, GFP_USER); in sysctl_test_dointvec_read_happy_single_negative()
257 char *buffer = kunit_kzalloc(test, len, GFP_USER); in sysctl_test_dointvec_write_happy_single_positive()
287 char *buffer = kunit_kzalloc(test, len, GFP_USER); in sysctl_test_dointvec_write_happy_single_negative()
318 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_less_int_min()
356 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); in sysctl_test_api_dointvec_write_single_greater_int_max()
/linux-6.3-rc2/sound/soc/
A Dsoc-topology-test.c248 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_with_null_comp()
290 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_with_null_ops()
352 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_with_null_fw()
397 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg()
447 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_magic()
502 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_abi()
557 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_size()
612 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_payload_size()
666 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_pcm_tplg()
716 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_pcm_tplg_reload_comp()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/tests/
A Ddrm_format_helper_test.c427 dst = kunit_kzalloc(test, sizeof(*dst) * buf_size, GFP_KERNEL); in le16buf_to_cpu()
494 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_gray8()
524 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgb332()
554 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgb565()
590 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_xrgb1555()
621 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_argb1555()
652 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgba5551()
683 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgb888()
717 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_argb8888()
748 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_xrgb2101010()
[all …]
A Ddrm_plane_helper_test.c54 plane = kunit_kzalloc(test, sizeof(*plane), GFP_KERNEL); in drm_plane_helper_init()
57 fb = kunit_kzalloc(test, sizeof(*fb), GFP_KERNEL); in drm_plane_helper_init()
62 mock = kunit_kzalloc(test, sizeof(*mock), GFP_KERNEL); in drm_plane_helper_init()
A Ddrm_managed_test.c34 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in drm_test_managed_run_action()
A Ddrm_dp_mst_helper_test.c376 out = kunit_kzalloc(test, sizeof(*out), GFP_KERNEL); in drm_test_dp_mst_sideband_msg_req_decode()
379 txmsg = kunit_kzalloc(test, sizeof(*txmsg), GFP_KERNEL); in drm_test_dp_mst_sideband_msg_req_decode()
A Ddrm_modes_test.c23 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in drm_test_modes_init()
A Ddrm_client_modeset_test.c58 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in drm_client_modeset_test_init()
A Ddrm_probe_helper_test.c39 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in drm_probe_helper_test_init()
A Ddrm_framebuffer_test.c337 mock = kunit_kzalloc(test, sizeof(*mock), GFP_KERNEL); in drm_framebuffer_test_init()
/linux-6.3-rc2/drivers/hid/
A Dhid-uclogic-core-test.c67 p.event_hooks = kunit_kzalloc(test, sizeof(*p.event_hooks), GFP_KERNEL); in hid_test_uclogic_exec_event_hook_test()
72 filter = kunit_kzalloc(test, sizeof(*filter), GFP_KERNEL); in hid_test_uclogic_exec_event_hook_test()
76 filter->event = kunit_kzalloc(test, filter->size, GFP_KERNEL); in hid_test_uclogic_exec_event_hook_test()
A Dhid-input-test.c15 dev = kunit_kzalloc(test, sizeof(*dev), GFP_KERNEL); in hid_test_input_set_battery_charge_status()
38 dev = kunit_kzalloc(test, sizeof(*dev), GFP_KERNEL); in hid_test_input_get_battery_property()
42 psy = kunit_kzalloc(test, sizeof(*psy), GFP_KERNEL); in hid_test_input_get_battery_property()
/linux-6.3-rc2/net/mptcp/
A 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-6.3-rc2/drivers/platform/chrome/
A Dcros_kunit_util.c38 mock->i_data = kunit_kzalloc(mock->test, msg->outsize, GFP_KERNEL); in cros_kunit_ec_xfer_mock()
74 mock = kunit_kzalloc(test, sizeof(*mock), GFP_KERNEL); in cros_kunit_ec_xfer_mock_addx()
83 mock->o_data = kunit_kzalloc(test, size, GFP_KERNEL); in cros_kunit_ec_xfer_mock_addx()
/linux-6.3-rc2/lib/kunit/
A Dstring-stream.c21 frag = kunit_kzalloc(test, sizeof(*frag), gfp); in alloc_string_stream_fragment()
106 buf = kunit_kzalloc(stream->test, buf_len, stream->gfp); in string_stream_get_string()
140 stream = kunit_kzalloc(test, sizeof(*stream), gfp); in alloc_string_stream()
A Dkunit-test.c82 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in kunit_try_catch_test_init()
462 suite.log = kunit_kzalloc(test, KUNIT_LOG_SIZE, GFP_KERNEL); in kunit_log_test()
A Dexecutor_test.c152 suite = kunit_kzalloc(test, sizeof(*suite), GFP_KERNEL); in alloc_fake_suite()
/linux-6.3-rc2/net/sunrpc/auth_gss/
A Dgss_krb5_test.c55 derivedkey.data = kunit_kzalloc(test, param->expected_result->len, in kdf_case()
91 Kc.data = kunit_kzalloc(test, Kc.len, GFP_KERNEL); in checksum_case()
103 checksum.data = kunit_kzalloc(test, checksum.len, GFP_KERNEL); in checksum_case()
306 result = kunit_kzalloc(test, 4096, GFP_KERNEL); in rfc3961_nfold_case()
1333 Ke.data = kunit_kzalloc(test, Ke.len, GFP_KERNEL); in rfc6803_encrypt_case()
1351 text = kunit_kzalloc(test, len, GFP_KERNEL); in rfc6803_encrypt_case()
1367 Ki.data = kunit_kzalloc(test, Ki.len, GFP_KERNEL); in rfc6803_encrypt_case()
1826 Ke.data = kunit_kzalloc(test, Ke.len, GFP_KERNEL); in rfc8009_encrypt_case()
1844 text = kunit_kzalloc(test, len, GFP_KERNEL); in rfc8009_encrypt_case()
1860 Ki.data = kunit_kzalloc(test, Ki.len, GFP_KERNEL); in rfc8009_encrypt_case()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/vc4/tests/
A Dvc4_mock_crtc.c29 dummy_crtc = kunit_kzalloc(test, sizeof(*dummy_crtc), GFP_KERNEL); in vc4_mock_pv()
A Dvc4_mock_output.c35 dummy_output = kunit_kzalloc(test, sizeof(*dummy_output), GFP_KERNEL); in vc4_dummy_output()
/linux-6.3-rc2/include/drm/
A Ddrm_kunit_helpers.h54 driver = kunit_kzalloc(test, sizeof(*driver), GFP_KERNEL); in __drm_kunit_helper_alloc_drm_device()
/linux-6.3-rc2/drivers/clk/
A Dclk_test.c150 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_test_init_with_ops()
311 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_uncached_test_init()
434 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_multiple_parents_mux_test_init()
598 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_orphan_transparent_multiple_parent_mux_test_init()
945 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_single_parent_mux_test_init()
1219 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_orphan_transparent_single_parent_mux_test_init()
1310 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_orphan_two_level_root_last_test_init()
2143 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_leaf_mux_set_rate_parent_test_init()
2290 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_mux_notifier_test_init()
A Dclk-gate_test.c141 test->priv = ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_gate_test_alloc_ctx()
/linux-6.3-rc2/Documentation/dev-tools/kunit/
A Dusage.rst437 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL);
440 ctx->fake_eeprom = kunit_kzalloc(test, sizeof(*ctx->fake_eeprom), GFP_KERNEL);
586 Where you might use ``kzalloc``, you can instead use ``kunit_kzalloc`` as KUnit
597 char *buffer = kunit_kzalloc(test, 16, GFP_KERNEL);
/linux-6.3-rc2/arch/s390/lib/
A Dtest_unwind.c290 fops = kunit_kzalloc(current_test, sizeof(*fops), GFP_KERNEL); in test_unwind_ftrace()

Completed in 29 milliseconds

12