Home
last modified time | relevance | path

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

12

/lib/zlib_inflate/
A Dinfutil.c17 strm = kmalloc(sizeof(*strm), GFP_KERNEL); in zlib_inflate_blob()
20 strm->workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in zlib_inflate_blob()
/lib/crypto/mpi/
A Dmpiutil.c36 a = kmalloc(sizeof *a, GFP_KERNEL); in mpi_alloc()
66 return kmalloc(len, GFP_KERNEL); in mpi_alloc_limb_space()
A Dmpicoder.c218 buf = kmalloc(n, GFP_KERNEL); in mpi_get_buffer()
/lib/
A Dtest_memcat_p.c36 in0[i] = kmalloc(sizeof(**in0), GFP_KERNEL); in test_memcat_p_init()
40 in1[i] = kmalloc(sizeof(**in1), GFP_KERNEL); in test_memcat_p_init()
A Dtest_meminit.c109 buf = kmalloc(size, GFP_KERNEL); in do_kmalloc_size()
115 buf = kmalloc(size, GFP_KERNEL); in do_kmalloc_size()
264 buf_copy = kmalloc(size, GFP_ATOMIC); in do_kmem_cache_size()
307 buf_contents = kmalloc(size, GFP_KERNEL); in do_kmem_cache_rcu_persistent()
A Dtest_objpool.c41 struct ot_mem_stat kmalloc; member
90 atomic_long_add(size, &test->data.kmalloc.alloc); in ot_kzalloc()
98 atomic_long_add(size, &test->data.kmalloc.free); in ot_kfree()
108 alloc = atomic_long_read(&test->data.kmalloc.alloc); in ot_mem_report()
109 free = atomic_long_read(&test->data.kmalloc.free); in ot_mem_report()
A Ddecompress_unxz.c160 #undef kmalloc
164 #define kmalloc(size, flags) malloc(size) macro
A Donce.c29 w = kmalloc(sizeof(*w), GFP_ATOMIC); in once_disable_jump()
A Dstring_helpers.c663 dst = kmalloc(dlen + 1, gfp); in kstrdup_quotable()
684 buffer = kmalloc(PAGE_SIZE, GFP_KERNEL); in kstrdup_quotable_cmdline()
720 temp = kmalloc(PATH_MAX + 11, GFP_KERNEL); in kstrdup_quotable_file()
A DKconfig.kasan210 In Generic KASAN, each kmalloc-8 and kmalloc-16 object will add
211 16 bytes of additional memory consumption, and each kmalloc-32
A Dlwq.c113 t = kmalloc(sizeof(*t), GFP_KERNEL); in lwq_test()
A Derror-inject.c83 ent = kmalloc(sizeof(*ent), GFP_KERNEL); in populate_error_injection_list()
A Dref_tracker.c77 stats = kmalloc(struct_size(stats, stacks, limit), in ref_tracker_get_stats()
162 sbuf = kmalloc(STACK_BUF_SIZE, GFP_NOWAIT | __GFP_NOWARN); in __ref_tracker_dir_pr_ostream()
A Dkobject.c495 devpath_string = kmalloc(strlen(devpath) + 15, GFP_KERNEL); in kobject_rename()
561 devpath_string = kmalloc(strlen(devpath) + 15, GFP_KERNEL); in kobject_move()
A Dcodetag.c196 cmod = kmalloc(sizeof(*cmod), GFP_KERNEL); in codetag_module_init()
A Dtest_bitmap.c532 unsigned long *bmap = kmalloc(PAGE_SIZE, GFP_KERNEL); in test_bitmap_printlist()
533 char *buf = kmalloc(PAGE_SIZE, GFP_KERNEL); in test_bitmap_printlist()
/lib/kunit/
A Dstatic_stub.c114 ctx = kmalloc(sizeof(*ctx), GFP_KERNEL); in __kunit_activate_static_stub()
A Dstring-stream.c25 frag->fragment = kmalloc(len, gfp); in alloc_string_stream_fragment()
A Dassert.c104 buffer = kmalloc(len+1, GFP_KERNEL); in is_literal()
/lib/math/
A Dprime_numbers.c137 new = kmalloc(sizeof(*new) + bitmap_size(sz), in expand_to_next_prime()
/lib/tests/
A Dstring_helpers_kunit.c575 dst = kmalloc(len, GFP_KERNEL); in test_upper_lower()
587 dst = kmalloc(len, GFP_KERNEL); in test_upper_lower()
A Dfortify_kunit.c224 checker(expected_size, kmalloc(alloc_size, gfp), \
255 orig = kmalloc(alloc_size, gfp); \
260 orig = kmalloc(alloc_size, gfp); \
265 orig = kmalloc(alloc_size, gfp); \
277 DEFINE_ALLOC_SIZE_TEST_PAIR(kmalloc)
A Dscanf_kunit.c783 test_buffer = kmalloc(BUF_SIZE, GFP_KERNEL); in scanf_suite_init()
787 fmt_buffer = kmalloc(BUF_SIZE, GFP_KERNEL); in scanf_suite_init()
/lib/xz/
A Dxz_dec_lzma2.c1141 struct xz_dec_lzma2 *s = kmalloc(sizeof(*s), GFP_KERNEL); in xz_dec_lzma2_create()
1299 s = kmalloc(sizeof(*s), GFP_KERNEL); in xz_dec_microlzma_alloc()
A Dxz_dec_bcj.c686 struct xz_dec_bcj *s = kmalloc(sizeof(*s), GFP_KERNEL); in xz_dec_bcj_create()

Completed in 31 milliseconds

12