Home
last modified time | relevance | path

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

/linux/drivers/iio/test/
H A Diio-test-format.c21 buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_test_iio_format_value_integer()
51 buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_test_iio_format_value_fixedpoint()
112 buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_test_iio_format_value_fractional()
152 buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_test_iio_format_value_fractional_log2()
192 buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_test_iio_format_value_multiple()
207 buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_test_iio_format_value_integer_64()
H A Diio-test-rescale.c649 char *buff = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_rescale_test_scale()
681 char *buff_off = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_rescale_test_offset()
/linux/lib/tests/
H A Dusercopy_kunit.c115 umem_src = kunit_kmalloc(test, size, GFP_KERNEL); in usercopy_test_copy_struct_from_user()
118 expected = kunit_kmalloc(test, size, GFP_KERNEL); in usercopy_test_copy_struct_from_user()
304 priv->kmem = kunit_kmalloc(test, priv->size, GFP_KERNEL); in usercopy_test_init()
H A Dtest_list_sort.c70 el = kunit_kmalloc(test, sizeof(*el), GFP_KERNEL); in list_sort_test()
H A Dprintf_kunit.c646 cmp_buffer = kunit_kmalloc(kunittest, BUF_SIZE, GFP_KERNEL); in flags()
/linux/drivers/firmware/cirrus/test/
H A Dcs_dsp_test_wmfw.c116 payload_data = kunit_kmalloc(test, payload_size_bytes, GFP_KERNEL); in wmfw_write_one_payload()
499 payload_data[i] = kunit_kmalloc(test, payload_size_bytes, GFP_KERNEL); in wmfw_write_multiple_unpacked_mem()
596 payload_data[i] = kunit_kmalloc(test, payload_size_bytes, GFP_KERNEL); in wmfw_write_multiple_packed_unpacked_mem()
677 packed_payload_data = kunit_kmalloc(test, packed_payload_size_bytes, GFP_KERNEL); in wmfw_write_packed_1_unpacked_trailing()
780 packed_payload_data = kunit_kmalloc(test, packed_payload_size_bytes, GFP_KERNEL); in wmfw_write_packed_2_unpacked_trailing()
883 packed_payload_data = kunit_kmalloc(test, packed_payload_size_bytes, GFP_KERNEL); in wmfw_write_packed_3_unpacked_trailing()
986 packed_payload_data = kunit_kmalloc(test, packed_payload_size_bytes, GFP_KERNEL); in wmfw_write_packed_2_single_unpacked_trailing()
1095 packed_payload_data = kunit_kmalloc(test, packed_payload_size_bytes, GFP_KERNEL); in wmfw_write_packed_3_single_unpacked_trailing()
1208 packed_payload_data = kunit_kmalloc(test, packed_payload_size_bytes, GFP_KERNEL); in wmfw_write_packed_1_unpacked_leading()
1309 packed_payload_data = kunit_kmalloc(test, packed_payload_size_bytes, GFP_KERNEL); in wmfw_write_packed_2_unpacked_leading()
[all …]
H A Dcs_dsp_test_control_rw.c456 reg_vals = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
514 reg_vals = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_read_volatile_not_current_running_fw()
756 reg_vals = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
821 reg_vals = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_write_volatile_not_current_running_fw()
894 reg_vals = kunit_kmalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_read_with_seek()
961 reg_vals = kunit_kmalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_read_cache_with_seek()
1026 reg_vals = kunit_kmalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_read_truncated()
1096 reg_vals = kunit_kmalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_read_cache_truncated()
1164 reg_vals = kunit_kmalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_write_with_seek()
1170 new_data = kunit_kmalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_write_with_seek()
[all …]
H A Dcs_dsp_test_control_cache.c211 reg_vals = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init()
272 readback = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init_write_only()
340 reg_vals[i] = kunit_kmalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init_multiple_fw_same_controls()
449 reg_vals[i] = kunit_kmalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls()
543 reg_vals[i] = kunit_kmalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init_multiple_mems()
665 reg_vals[i] = kunit_kmalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init_multiple_algs()
766 reg_vals[i] = kunit_kmalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init_multiple_offsets()
873 reg_vals = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_read_not_started()
934 reg_vals = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_read_stopped()
1000 reg_vals = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_read_powered_down()
[all …]
H A Dcs_dsp_test_bin_error.c59 payload_data = kunit_kmalloc(test, payload_size_bytes, GFP_KERNEL); in bin_load_with_unknown_blocks()
H A Dcs_dsp_test_wmfw_error.c71 payload_data = kunit_kmalloc(test, payload_size_bytes, GFP_KERNEL); in wmfw_load_with_unknown_blocks()
H A Dcs_dsp_test_control_parse.c80 str = kunit_kmalloc(test, len + 1, GFP_KERNEL); in cs_dsp_ctl_alloc_test_string()
H A Dcs_dsp_test_bin.c1993 payload = kunit_kmalloc(test, sizeof(*payload), GFP_KERNEL); in bin_patch_mixed_packed_unpacked_random()
/linux/kernel/printk/
H A Dprintk_ringbuffer_kunit_test.c285 test_data = kunit_kmalloc(test, sizeof(*test_data), GFP_KERNEL); in test_readerwriter()
294 thread_data = kunit_kmalloc(test, sizeof(*thread_data), GFP_KERNEL); in test_readerwriter()
/linux/lib/crypto/tests/
H A Dnh_kunit.c11 u32 *key = kunit_kmalloc(test, NH_KEY_BYTES, GFP_KERNEL); in test_nh()
H A Dmldsa_kunit.c65 u8 *dst = kunit_kmalloc(test, len, GFP_KERNEL); in kunit_kmemdup_or_fail()
/linux/drivers/of/
H A Dof_kunit_helpers.c55 copy_id = kunit_kmalloc(test, sizeof(*copy_id), GFP_KERNEL); in of_overlay_fdt_apply_kunit()
/linux/include/kunit/
H A Dtest.h499 static inline void *kunit_kmalloc(struct kunit *test, size_t size, gfp_t gfp) in kunit_kmalloc() function
521 return kunit_kmalloc(test, size, gfp | __GFP_ZERO); in kunit_kzalloc()
567 buf = kunit_kmalloc(test, len, gfp); in kunit_kstrdup()
/linux/security/apparmor/
H A Dpolicy_unpack_test.c65 e = kunit_kmalloc(test, sizeof(*e), GFP_USER); in build_aa_ext_struct()
118 puf = kunit_kmalloc(test, sizeof(*puf), GFP_USER); in policy_unpack_test_init()
/linux/drivers/net/wireless/intel/iwlwifi/tests/
H A Ddevinfo.c202 dev = kunit_kmalloc(test, sizeof(*dev), GFP_KERNEL); in devinfo_pci_ids()
/linux/lib/kunit/
H A Dstring-stream-test.c323 combined_content = kunit_kmalloc(test, combined_length, GFP_KERNEL); in string_stream_append_test()
H A Dkunit-test.c95 ctx->try_catch = kunit_kmalloc(test, in kunit_try_catch_test_init()
H A Dtest.c49 buffer = kunit_kmalloc(current->kunit_test, len, GFP_KERNEL); in __kunit_fail_current_test_impl()
/linux/sound/soc/codecs/
H A Dcs-amp-lib-test.c71 temp = kunit_kmalloc(test, priv->cal_blob->size, GFP_KERNEL); in cs_amp_lib_test_cal_blob_dup()
862 priv->cal_blob = kunit_kmalloc(test, size, GFP_KERNEL); in cs_amp_lib_test_set_efi_variable()
2083 priv->cal_blob = kunit_kmalloc(test, size, GFP_KERNEL); in cs_amp_lib_test_set_hp_efi_cal_variable()
/linux/drivers/base/regmap/
H A Dregmap-kunit.c963 vals = kunit_kmalloc(test, buf_sz, GFP_KERNEL); in stress_insert()
1856 rval = kunit_kmalloc(test, val_len, GFP_KERNEL); in raw_read_defaults()
/linux/mm/kasan/
H A Dkasan_test_c.c2157 kmem = kunit_kmalloc(test, size, GFP_KERNEL); in copy_user_test_oob()