Home
last modified time | relevance | path

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

12

/openbmc/linux/kernel/
H 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()
/openbmc/linux/sound/soc/
H 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 …]
/openbmc/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_kunit_helpers.c35 bo = kunit_kzalloc(test, sizeof(*bo), GFP_KERNEL); in ttm_bo_kunit_init()
49 devs = kunit_kzalloc(test, sizeof(*devs), GFP_KERNEL); in ttm_test_devices_basic()
72 ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev), GFP_KERNEL); in ttm_test_devices_all()
97 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in ttm_test_devices_init()
H A Dttm_pool_test.c34 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in ttm_pool_test_init()
64 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_tt_kunit_init()
87 pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL); in ttm_pool_pre_populated()
151 pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL); in ttm_pool_alloc_basic()
210 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL); in ttm_pool_alloc_basic_dma_addr()
219 pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL); in ttm_pool_alloc_basic_dma_addr()
349 pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL); in ttm_pool_free_dma_alloc()
380 pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL); in ttm_pool_free_no_dma_alloc()
H A Dttm_device_test.c25 ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev), GFP_KERNEL); in ttm_device_init_basic()
81 ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev), GFP_KERNEL); in ttm_device_fini_basic()
105 ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev), GFP_KERNEL); in ttm_device_init_no_vma_man()
162 ttm_dev = kunit_kzalloc(test, sizeof(*ttm_dev), GFP_KERNEL); in ttm_device_init_pools()
/openbmc/linux/drivers/gpu/drm/tests/
H A Ddrm_format_helper_test.c525 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_gray8()
555 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgb332()
585 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgb565()
621 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_xrgb1555()
652 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_argb1555()
683 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgba5551()
714 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgb888()
748 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_argb8888()
779 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_xrgb2101010()
810 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_argb2101010()
[all …]
H 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()
H A Ddrm_managed_test.c34 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in drm_test_managed_run_action()
H 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()
H A Ddrm_modes_test.c23 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in drm_test_modes_init()
H A Ddrm_kunit_helpers.c176 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in drm_kunit_helper_acquire_ctx_alloc()
H A Ddrm_client_modeset_test.c58 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in drm_client_modeset_test_init()
H A Ddrm_exec_test.c30 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in drm_exec_test_init()
/openbmc/linux/drivers/hid/
H A Dhid-uclogic-core-test.c72 p.event_hooks = kunit_kzalloc(test, sizeof(*p.event_hooks), GFP_KERNEL); in hid_test_uclogic_exec_event_hook_test()
77 filter = kunit_kzalloc(test, sizeof(*filter), GFP_KERNEL); in hid_test_uclogic_exec_event_hook_test()
81 filter->event = kunit_kzalloc(test, filter->size, GFP_KERNEL); in hid_test_uclogic_exec_event_hook_test()
H 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()
H A Dhid-uclogic-params-test.c188 hdev = kunit_kzalloc(test, sizeof(struct hid_device), GFP_KERNEL); in hid_test_uclogic_params_cleanup_event_hooks()
191 fake_dev = kunit_kzalloc(test, sizeof(struct fake_device), GFP_KERNEL); in hid_test_uclogic_params_cleanup_event_hooks()
/openbmc/linux/net/mptcp/
H 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()
/openbmc/linux/drivers/platform/chrome/
H 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()
/openbmc/linux/lib/kunit/
H 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()
/openbmc/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_test.c55 derivedkey.data = kunit_kzalloc(test, param->expected_result->len, in kdf_case()
90 Kc.data = kunit_kzalloc(test, Kc.len, GFP_KERNEL); in checksum_case()
106 checksum.data = kunit_kzalloc(test, checksum.len, GFP_KERNEL); in checksum_case()
309 result = kunit_kzalloc(test, 4096, GFP_KERNEL); in rfc3961_nfold_case()
1141 Ke.data = kunit_kzalloc(test, Ke.len, GFP_KERNEL); in rfc6803_encrypt_case()
1159 text = kunit_kzalloc(test, len, GFP_KERNEL); in rfc6803_encrypt_case()
1175 Ki.data = kunit_kzalloc(test, Ki.len, GFP_KERNEL); in rfc6803_encrypt_case()
1634 Ke.data = kunit_kzalloc(test, Ke.len, GFP_KERNEL); in rfc8009_encrypt_case()
1652 text = kunit_kzalloc(test, len, GFP_KERNEL); in rfc8009_encrypt_case()
1668 Ki.data = kunit_kzalloc(test, Ki.len, GFP_KERNEL); in rfc8009_encrypt_case()
[all …]
/openbmc/linux/drivers/fpga/tests/
H A Dfpga-mgr-test.c60 buf = kunit_kzalloc(test, count, GFP_KERNEL); in init_test_buffer()
255 sgt = kunit_kzalloc(test, sizeof(*sgt), GFP_KERNEL); in fpga_mgr_test_img_load_sgt()
284 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in fpga_mgr_test_init()
H A Dfpga-bridge-test.c53 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in register_test_bridge()
H A Dfpga-region-test.c148 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in fpga_region_test_init()
/openbmc/linux/drivers/base/test/
H A Droot-device-test.c21 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in root_device_devm_init()
/openbmc/linux/drivers/clk/
H A Dclk_test.c173 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_test_init_with_ops()
335 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_uncached_test_init()
458 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_multiple_parents_mux_test_init()
622 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_orphan_transparent_multiple_parent_mux_test_init()
969 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_single_parent_mux_test_init()
1243 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_orphan_transparent_single_parent_mux_test_init()
1334 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_orphan_two_level_root_last_test_init()
2167 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_leaf_mux_set_rate_parent_test_init()
2314 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_mux_notifier_test_init()
2428 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_mux_no_reparent_test_init()

12