Searched refs:alloc (Results 1 – 6 of 6) sorted by relevance
/lib/zstd/compress/ |
A D | zstd_cwksp.h | 282 assert(alloc >= bottom); in ZSTD_cwksp_reserve_internal_buffer_space() 283 if (alloc < bottom) { in ZSTD_cwksp_reserve_internal_buffer_space() 293 ws->allocStart = alloc; in ZSTD_cwksp_reserve_internal_buffer_space() 294 return alloc; in ZSTD_cwksp_reserve_internal_buffer_space() 347 void* alloc; in ZSTD_cwksp_reserve_internal() local 356 return alloc; in ZSTD_cwksp_reserve_internal() 414 void* alloc; in ZSTD_cwksp_reserve_table() local 425 alloc = ws->tableEnd; in ZSTD_cwksp_reserve_table() 426 end = (BYTE *)alloc + bytes; in ZSTD_cwksp_reserve_table() 444 return alloc; in ZSTD_cwksp_reserve_table() [all …]
|
/lib/ |
A D | idr.c | 386 struct ida_bitmap *bitmap, *alloc = NULL; in ida_alloc_range() local 416 bitmap = alloc; in ida_alloc_range() 420 goto alloc; in ida_alloc_range() 443 bitmap = alloc; in ida_alloc_range() 447 goto alloc; in ida_alloc_range() 459 if (bitmap != alloc) in ida_alloc_range() 460 kfree(alloc); in ida_alloc_range() 464 alloc: in ida_alloc_range() 466 alloc = kzalloc(sizeof(*bitmap), gfp); in ida_alloc_range() 467 if (!alloc) in ida_alloc_range() [all …]
|
A D | test_objpool.c | 24 atomic_long_t alloc; member 90 atomic_long_add(size, &test->data.kmalloc.alloc); in ot_kzalloc() 104 long alloc, free; in ot_mem_report() local 108 alloc = atomic_long_read(&test->data.kmalloc.alloc); in ot_mem_report() 110 pr_info(" kmalloc: %lu - %lu = %lu\n", alloc, free, alloc - free); in ot_mem_report() 112 alloc = atomic_long_read(&test->data.vmalloc.alloc); in ot_mem_report() 114 pr_info(" vmalloc: %lu - %lu = %lu\n", alloc, free, alloc - free); in ot_mem_report()
|
A D | maple_tree.c | 606 if (!mas->alloc || ((unsigned long)mas->alloc & 0x1)) in mas_allocated() 609 return mas->alloc->total; in mas_allocated() 624 if (!mas->alloc || ((unsigned long)mas->alloc & 0x1)) { in mas_set_alloc_req() 626 mas->alloc = NULL; in mas_set_alloc_req() 649 else if (mas->alloc) in mas_alloc_req() 1167 mas->alloc = NULL; in mas_pop_node() 1224 mas->alloc = reuse; in mas_push_node() 1266 mas->alloc = node; in mas_alloc_nodes() 1272 node = mas->alloc; in mas_alloc_nodes() 5587 node = mas->alloc; in mas_destroy() [all …]
|
/lib/tests/ |
A D | overflow_kunit.c | 611 #define alloc010(alloc, arg, sz) alloc(sz, alloc_GFP) argument 612 #define alloc011(alloc, arg, sz) alloc(sz, alloc_GFP, NUMA_NO_NODE) argument 613 #define alloc000(alloc, arg, sz) alloc(sz) argument 614 #define alloc001(alloc, arg, sz) alloc(sz, NUMA_NO_NODE) argument 615 #define alloc110(alloc, arg, sz) alloc(arg, sz, alloc_GFP) argument 630 ptr = alloc ## want_arg ## want_gfp ## want_node (func, arg, 1);\ 636 ptr = alloc ## want_arg ## want_gfp ## want_node (func, arg, \ 643 ptr = alloc ## want_arg ## want_gfp ## want_node (func, arg, \ 674 #define check_allocation_overflow(alloc) do { \ in overflow_allocation_test() argument 676 test_ ## alloc(test, dev); \ in overflow_allocation_test()
|
A D | fortify_kunit.c | 156 #define check_const(_expected, alloc, free) do { \ argument 158 void *p = alloc; \ 159 KUNIT_EXPECT_TRUE_MSG(test, p != NULL, #alloc " failed?!\n"); \ 160 KUNIT_EXPECT_BOS(test, p, expected, #alloc); \ 161 KUNIT_EXPECT_BDOS(test, p, expected, #alloc); \ 166 #define check_dynamic(_expected, alloc, free) do { \ argument 168 void *p = alloc; \ 169 KUNIT_EXPECT_TRUE_MSG(test, p != NULL, #alloc " failed?!\n"); \ 170 KUNIT_EXPECT_BOS(test, p, SIZE_MAX, #alloc); \ 171 KUNIT_EXPECT_BDOS(test, p, expected, #alloc); \
|
Completed in 23 milliseconds