Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 6 of 6) sorted by relevance

/mm/
A Dnuma_memblks.c53 int i, j, cnt = 0; in numa_alloc_distance() local
60 cnt = i; in numa_alloc_distance()
61 cnt++; in numa_alloc_distance()
62 size = cnt * cnt * sizeof(numa_distance[0]); in numa_alloc_distance()
72 numa_distance_cnt = cnt; in numa_alloc_distance()
75 for (i = 0; i < cnt; i++) in numa_alloc_distance()
76 for (j = 0; j < cnt; j++) in numa_alloc_distance()
77 numa_distance[i * cnt + j] = i == j ? in numa_alloc_distance()
79 printk(KERN_DEBUG "NUMA: Initialized distance table, cnt=%d\n", cnt); in numa_alloc_distance()
A Dmemblock.c211 for (i = 0; i < type->cnt; i++) in memblock_overlaps_region()
368 type->cnt--; in memblock_remove_region()
371 if (type->cnt == 0) { in memblock_remove_region()
557 type->cnt--; in memblock_merge_regions()
582 BUG_ON(type->cnt >= type->max); in memblock_insert_region()
588 type->cnt++; in memblock_insert_region()
629 type->cnt = 1; in memblock_add_range()
1309 idx_a = type_a->cnt - 1; in __next_mem_range_rev()
1311 idx_b = type_b->cnt; in __next_mem_range_rev()
1387 while (++*idx < type->cnt) { in __next_mem_pfn_range()
[all …]
A Dzsmalloc.c256 int cnt; member
282 zsl->cnt = ZS_PAGE_UNLOCKED; in zspage_lock_init()
310 zsl->cnt++; in zspage_read_lock()
323 zsl->cnt--; in zspage_read_unlock()
332 if (zsl->cnt == ZS_PAGE_UNLOCKED) { in zspage_write_trylock()
333 zsl->cnt = ZS_PAGE_WRLOCKED; in zspage_write_trylock()
349 zsl->cnt = ZS_PAGE_UNLOCKED; in zspage_write_unlock()
585 unsigned long cnt) in class_stat_add() argument
587 class->stats.objs[type] += cnt; in class_stat_add()
591 unsigned long cnt) in class_stat_sub() argument
[all …]
A Dslub.c2422 int *cnt) in slab_free_freelist_hook() argument
2457 --(*cnt); in slab_free_freelist_hook()
3475 int cnt = 0; in free_debug_processing() local
3514 *bulk_cnt, cnt); in free_debug_processing()
3515 *bulk_cnt = cnt; in free_debug_processing()
4420 int cnt = bulk_cnt; in free_to_partial_list() local
4433 slab->inuse -= cnt; in free_to_partial_list()
4512 new.inuse -= cnt; in __slab_free()
5171 int cnt; member
5216 df->cnt = 1; in build_detached_freelist()
[all …]
A Dkmemleak.c2187 unsigned int cnt = 0; in __kmemleak_do_cleanup() local
2198 if (!(++cnt & 0x3f)) in __kmemleak_do_cleanup()
A Dmemcontrol.c3462 atomic_read(&frn->done.cnt) == 1) { in mem_cgroup_track_foreign_dirty_slowpath()
3509 atomic_read(&frn->done.cnt) == 1) { in mem_cgroup_flush_foreign()

Completed in 49 milliseconds