/linux-6.1.9/kernel/ |
D | sysctl-test.c | 36 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.1.9/sound/soc/ |
D | soc-topology-test.c | 248 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() 391 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg() 397 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg() 441 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_magic() 447 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_magic() 496 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_abi() 502 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_abi() 551 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_size() [all …]
|
/linux-6.1.9/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-6.1.9/drivers/platform/chrome/ |
D | cros_kunit_util.c | 38 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()
|
D | cros_ec_proto_test.c | 2561 cros_kunit_readmem_mock_data = kunit_kzalloc(test, 1, GFP_KERNEL); in cros_ec_proto_test_get_sensor_count_legacy() 2651 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in cros_ec_proto_test_init() 2662 ec_dev->dev = kunit_kzalloc(test, sizeof(*ec_dev->dev), GFP_KERNEL); in cros_ec_proto_test_init()
|
/linux-6.1.9/drivers/gpu/drm/tests/ |
D | drm_format_helper_test.c | 272 dst = kunit_kzalloc(test, sizeof(*dst) * buf_size, GFP_KERNEL); in le32buf_to_cpu() 309 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_gray8() 339 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgb332() 369 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgb565() 402 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_rgb888() 432 buf = kunit_kzalloc(test, dst_size, GFP_KERNEL); in drm_test_fb_xrgb8888_to_xrgb2101010()
|
D | drm_framebuffer_test.c | 337 mock = kunit_kzalloc(test, sizeof(*mock), GFP_KERNEL); in drm_framebuffer_test_init()
|
D | drm_damage_helper_test.c | 30 mock = kunit_kzalloc(test, sizeof(*mock), GFP_KERNEL); in drm_damage_helper_init()
|
/linux-6.1.9/lib/kunit/ |
D | string-stream.c | 21 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() 145 stream = kunit_kzalloc(test, sizeof(*stream), gfp); in alloc_string_stream()
|
D | kunit-test.c | 82 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()
|
D | executor_test.c | 152 suite = kunit_kzalloc(test, sizeof(*suite), GFP_KERNEL); in alloc_fake_suite()
|
/linux-6.1.9/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 | 403 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); 406 ctx->fake_eeprom = kunit_kzalloc(test, sizeof(*ctx->fake_eeprom), GFP_KERNEL); 570 Where you might use ``kzalloc``, you can instead use ``kunit_kzalloc`` as KUnit 581 char *buffer = kunit_kzalloc(test, 16, GFP_KERNEL);
|
/linux-6.1.9/drivers/clk/ |
D | clk_test.c | 150 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()
|
D | clk-gate_test.c | 141 test->priv = ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_gate_test_alloc_ctx()
|
/linux-6.1.9/arch/s390/lib/ |
D | test_unwind.c | 290 fops = kunit_kzalloc(current_test, sizeof(*fops), GFP_KERNEL); in test_unwind_ftrace()
|
/linux-6.1.9/include/kunit/ |
D | test.h | 354 static inline void *kunit_kzalloc(struct kunit *test, size_t size, gfp_t gfp) in kunit_kzalloc() function
|
/linux-6.1.9/security/apparmor/ |
D | policy_unpack_test.c | 57 buf = kunit_kzalloc(test, buf_size, GFP_USER); in build_aa_ext_struct()
|
/linux-6.1.9/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() 2659 block = kunit_kzalloc(test, block_len * sizeof(u32), GFP_KERNEL); in tb_test_property_format() 2760 block = kunit_kzalloc(test, sizeof(root_directory), GFP_KERNEL); in tb_test_property_copy()
|