Home
last modified time | relevance | path

Searched refs:kunit_kmalloc (Results 1 – 12 of 12) 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()
679 char *buff_off = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_rescale_test_offset()
/linux/lib/
H A Dusercopy_kunit.c114 umem_src = kunit_kmalloc(test, size, GFP_KERNEL); in usercopy_test_copy_struct_from_user()
117 expected = kunit_kmalloc(test, size, GFP_KERNEL); in usercopy_test_copy_struct_from_user()
303 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()
/linux/drivers/of/
H A Dof_kunit_helpers.c54 copy_id = kunit_kmalloc(test, sizeof(*copy_id), GFP_KERNEL); in of_overlay_fdt_apply_kunit()
/linux/drivers/net/wireless/intel/iwlwifi/tests/
H A Ddevinfo.c49 dev = kunit_kmalloc(test, sizeof(*dev), GFP_KERNEL); in devinfo_pci_ids()
/linux/include/kunit/
H A Dtest.h445 static inline void *kunit_kmalloc(struct kunit *test, size_t size, gfp_t gfp) in kunit_kmalloc() function
467 return kunit_kmalloc(test, size, gfp | __GFP_ZERO); in kunit_kzalloc()
513 buf = kunit_kmalloc(test, len, gfp); in kunit_kstrdup()
/linux/security/apparmor/
H A Dpolicy_unpack_test.c63 e = kunit_kmalloc(test, sizeof(*e), GFP_USER); in build_aa_ext_struct()
116 puf = kunit_kmalloc(test, sizeof(*puf), GFP_USER); in policy_unpack_test_init()
/linux/lib/kunit/
H A Dtest.c49 buffer = kunit_kmalloc(current->kunit_test, len, GFP_KERNEL); in __kunit_fail_current_test_impl()
H A Dkunit-test.c92 ctx->try_catch = kunit_kmalloc(test, in kunit_try_catch_test_init()
/linux/drivers/base/regmap/
H A Dregmap-kunit.c856 vals = kunit_kmalloc(test, buf_sz, GFP_KERNEL); in stress_insert()
1745 rval = kunit_kmalloc(test, val_len, GFP_KERNEL); in raw_read_defaults()
/linux/mm/kasan/
H A Dkasan_test_c.c2006 kmem = kunit_kmalloc(test, size, GFP_KERNEL); in copy_user_test_oob()