Home
last modified time | relevance | path

Searched refs:nr_allocated (Results 1 – 21 of 21) sorted by relevance

/openbmc/linux/tools/testing/radix-tree/
H A Dlinux.c15 int nr_allocated; variable
27 unsigned long nr_allocated; member
38 return cachep->size * cachep->nr_allocated; in kmem_cache_get_alloc()
43 return cachep->nr_allocated; in kmem_cache_nr_allocated()
88 uatomic_inc(&cachep->nr_allocated); in kmem_cache_alloc_lru()
89 uatomic_inc(&nr_allocated); in kmem_cache_alloc_lru()
99 uatomic_dec(&nr_allocated); in kmem_cache_free_locked()
100 uatomic_dec(&cachep->nr_allocated); in kmem_cache_free_locked()
180 uatomic_inc(&nr_allocated); in kmem_cache_alloc_bulk()
181 uatomic_inc(&cachep->nr_allocated); in kmem_cache_alloc_bulk()
[all …]
H A Dmain.c244 nr_allocated, preempt_count); in single_thread_tests()
248 nr_allocated, preempt_count); in single_thread_tests()
252 nr_allocated, preempt_count); in single_thread_tests()
256 nr_allocated, preempt_count); in single_thread_tests()
260 nr_allocated, preempt_count); in single_thread_tests()
264 nr_allocated, preempt_count); in single_thread_tests()
269 nr_allocated, preempt_count); in single_thread_tests()
273 nr_allocated, preempt_count); in single_thread_tests()
281 nr_allocated, preempt_count); in single_thread_tests()
324 nr_allocated, preempt_count); in main()
H A Dtag_check.c53 printv(2, "before item_kill_tree: %d allocated\n", nr_allocated); in simple_checks()
56 printv(2, "after item_kill_tree: %d allocated\n", nr_allocated); in simple_checks()
300 printv(2, "%d: nr_allocated=%d\n", __LINE__, nr_allocated); in __leak_check()
302 printv(2, "%d: nr_allocated=%d\n", __LINE__, nr_allocated); in __leak_check()
304 printv(2, "%d: nr_allocated=%d\n", __LINE__, nr_allocated); in __leak_check()
306 printv(2, "%d: nr_allocated=%d\n", __LINE__, nr_allocated); in __leak_check()
340 printv(2, "after extend_checks: %d allocated\n", nr_allocated); in tag_check()
344 printv(2, "after leak_check: %d allocated\n", nr_allocated); in tag_check()
347 printv(2, "after simple_checks: %d allocated\n", nr_allocated); in tag_check()
350 printv(2, "after thrash_tags: %d allocated\n", nr_allocated); in tag_check()
H A Dxarray.c33 if (nr_allocated) in main()
34 printf("nr_allocated = %d\n", nr_allocated); in main()
H A Dtest.h50 extern int nr_allocated;
H A Didr-test.c599 if (nr_allocated) in main()
600 printf("nr_allocated = %d\n", nr_allocated); in main()
H A Dmaple.c35951 if (nr_allocated) in main()
35952 printf("nr_allocated = %d\n", nr_allocated); in main()
/openbmc/linux/fs/reiserfs/
H A Dbitmap.c351 int nr_allocated = 0; in scan_bitmap() local
390 nr_allocated = in scan_bitmap()
393 if (nr_allocated) in scan_bitmap()
401 nr_allocated = in scan_bitmap()
403 if (nr_allocated) in scan_bitmap()
407 nr_allocated = in scan_bitmap()
412 return nr_allocated; in scan_bitmap()
1158 int nr_allocated; in allocate_without_wrapping_disk() local
1172 nr_allocated--; in allocate_without_wrapping_disk()
1186 nr_allocated; in allocate_without_wrapping_disk()
[all …]
/openbmc/linux/drivers/media/common/videobuf2/
H A Dframe_vector.c49 if (WARN_ON_ONCE(nr_frames > vec->nr_allocated)) in get_vaddr_frames()
50 nr_frames = vec->nr_allocated; in get_vaddr_frames()
179 vec->nr_allocated = nr_frames; in frame_vector_create()
/openbmc/linux/lib/
H A Dtest_vmalloc.c365 unsigned long nr_allocated; in vm_map_ram_test() local
376 nr_allocated = alloc_pages_bulk_array(GFP_KERNEL, map_nr_pages, pages); in vm_map_ram_test()
377 if (nr_allocated != map_nr_pages) in vm_map_ram_test()
388 for (i = 0; i < nr_allocated; i++) in vm_map_ram_test()
394 return nr_allocated != map_nr_pages; in vm_map_ram_test()
/openbmc/linux/drivers/md/persistent-data/
H A Ddm-space-map-common.h80 dm_block_t nr_allocated; member
103 __le64 nr_allocated; member
H A Ddm-space-map-disk.c62 *count = (smd->old_ll.nr_blocks - smd->old_ll.nr_allocated) - smd->nr_allocated_this_transaction; in sm_disk_get_nr_free()
186 root_le.nr_allocated = cpu_to_le64(smd->ll.nr_allocated); in sm_disk_copy_root()
H A Ddm-space-map-common.c490 ll->nr_allocated++; in sm_ll_insert()
497 ll->nr_allocated--; in sm_ll_insert()
672 ll->nr_allocated++; in sm_ll_inc_bitmap()
868 ll->nr_allocated--; in sm_ll_dec_bitmap()
1044 ll->nr_allocated = 0; in sm_ll_new_metadata()
1086 ll->nr_allocated = le64_to_cpu(smr.nr_allocated); in sm_ll_open_metadata()
1222 ll->nr_allocated = 0; in sm_ll_new_disk()
1258 ll->nr_allocated = le64_to_cpu(smr->nr_allocated); in sm_ll_open_disk()
H A Ddm-space-map-metadata.c296 *count = smm->old_ll.nr_blocks - smm->old_ll.nr_allocated - in sm_metadata_get_nr_free()
549 root_le.nr_allocated = cpu_to_le64(smm->ll.nr_allocated); in sm_metadata_copy_root()
/openbmc/linux/include/media/
H A Dframe_vector.h7 unsigned int nr_allocated; /* Number of frames we have space for */ member
/openbmc/linux/mm/
H A Dmempolicy.c2319 unsigned long nr_allocated; in alloc_pages_bulk_array_interleave() local
2328 nr_allocated = __alloc_pages_bulk(gfp, in alloc_pages_bulk_array_interleave()
2334 nr_allocated = __alloc_pages_bulk(gfp, in alloc_pages_bulk_array_interleave()
2339 page_array += nr_allocated; in alloc_pages_bulk_array_interleave()
2340 total_allocated += nr_allocated; in alloc_pages_bulk_array_interleave()
2351 unsigned long nr_allocated = 0; in alloc_pages_bulk_array_preferred_many() local
2359 if (nr_allocated < nr_pages) in alloc_pages_bulk_array_preferred_many()
2360 nr_allocated += __alloc_pages_bulk(gfp, numa_node_id(), NULL, in alloc_pages_bulk_array_preferred_many()
2361 nr_pages - nr_allocated, NULL, in alloc_pages_bulk_array_preferred_many()
2362 page_array + nr_allocated); in alloc_pages_bulk_array_preferred_many()
[all …]
H A Dvmalloc.c3012 unsigned int nr_allocated = 0; in vm_area_alloc_pages() local
3028 while (nr_allocated < nr_pages) { in vm_area_alloc_pages()
3037 nr_pages_request = min(100U, nr_pages - nr_allocated); in vm_area_alloc_pages()
3047 pages + nr_allocated); in vm_area_alloc_pages()
3052 pages + nr_allocated); in vm_area_alloc_pages()
3054 nr_allocated += nr; in vm_area_alloc_pages()
3074 while (nr_allocated < nr_pages) { in vm_area_alloc_pages()
3101 pages[nr_allocated + i] = page + i; in vm_area_alloc_pages()
3104 nr_allocated += 1U << order; in vm_area_alloc_pages()
3107 return nr_allocated; in vm_area_alloc_pages()
/openbmc/linux/drivers/md/
H A Ddm-cache-policy-smq.c697 unsigned int nr_allocated; member
707 ea->nr_allocated = 0u; in init_allocator()
740 ea->nr_allocated++; in alloc_entry()
756 ea->nr_allocated++; in alloc_particular_entry()
763 BUG_ON(!ea->nr_allocated); in free_entry()
766 ea->nr_allocated--; in free_entry()
1164 nr_free = from_cblock(mq->cache_size) - mq->cache_alloc.nr_allocated; in free_target_met()
1621 r = to_cblock(mq->cache_alloc.nr_allocated); in smq_residency()
/openbmc/linux/tools/perf/
H A Dbuiltin-trace.c1898 size_t nr_used = 0, nr_allocated = strlist__nr_entries(trace->ev_qualifier); in trace__validate_ev_qualifier() local
1900 trace->ev_qualifier_ids.entries = malloc(nr_allocated * in trace__validate_ev_qualifier()
1938 if (nr_allocated == nr_used) { in trace__validate_ev_qualifier()
1941 nr_allocated += 8; in trace__validate_ev_qualifier()
1943 nr_allocated * sizeof(trace->ev_qualifier_ids.entries[0])); in trace__validate_ev_qualifier()
/openbmc/qemu/include/exec/
H A Dmemory.h1127 unsigned nr_allocated; member
/openbmc/qemu/system/
H A Dmemory.c277 if (view->nr == view->nr_allocated) { in flatview_insert()
278 view->nr_allocated = MAX(2 * view->nr, 10); in flatview_insert()
280 view->nr_allocated * sizeof(*view->ranges)); in flatview_insert()