Lines Matching refs:i
312 #define STATS_SET_FREEABLE(x, i) \ argument
314 if ((x)->max_freeable < i) \
315 (x)->max_freeable = i; \
332 #define STATS_SET_FREEABLE(x, i) do { } while (0) argument
726 int i; in __ac_get_obj() local
739 for (i = 0; i < ac->avail; i++) { in __ac_get_obj()
741 if (!is_obj_pfmemalloc(ac->entry[i])) { in __ac_get_obj()
742 objp = ac->entry[i]; in __ac_get_obj()
743 ac->entry[i] = ac->entry[ac->avail]; in __ac_get_obj()
881 int i; in alloc_alien_cache() local
889 for_each_node(i) { in alloc_alien_cache()
890 if (i == node || !node_online(i)) in alloc_alien_cache()
892 alc_ptr[i] = __alloc_alien_cache(node, limit, 0xbaadf00d, gfp); in alloc_alien_cache()
893 if (!alc_ptr[i]) { in alloc_alien_cache()
894 for (i--; i >= 0; i--) in alloc_alien_cache()
895 kfree(alc_ptr[i]); in alloc_alien_cache()
905 int i; in free_alien_cache() local
909 for_each_node(i) in free_alien_cache()
910 kfree(alc_ptr[i]); in free_alien_cache()
963 int i = 0; in drain_alien_cache() local
968 for_each_online_node(i) { in drain_alien_cache()
969 alc = alien[i]; in drain_alien_cache()
975 __drain_alien_cache(cachep, ac, i, &list); in drain_alien_cache()
1384 int i; in kmem_cache_init() local
1393 for (i = 0; i < NUM_INIT_LISTS; i++) in kmem_cache_init()
1394 kmem_cache_node_init(&init_kmem_cache_node[i]); in kmem_cache_init()
1703 int i; in dump_line() local
1708 for (i = 0; i < limit; i++) { in dump_line()
1709 if (data[offset + i] != POISON_FREE) { in dump_line()
1710 error = data[offset + i]; in dump_line()
1737 int i, size; in print_objinfo() local
1753 for (i = 0; i < size && lines; i += 16, lines--) { in print_objinfo()
1756 if (i + limit > size) in print_objinfo()
1757 limit = size - i; in print_objinfo()
1758 dump_line(realobj, i, limit); in print_objinfo()
1765 int size, i; in check_poison_obj() local
1771 for (i = 0; i < size; i++) { in check_poison_obj()
1773 if (i == size - 1) in check_poison_obj()
1775 if (realobj[i] != exp) { in check_poison_obj()
1786 i = (i / 16) * 16; in check_poison_obj()
1788 if (i + limit > size) in check_poison_obj()
1789 limit = size - i; in check_poison_obj()
1790 dump_line(realobj, i, limit); in check_poison_obj()
1791 i += 16; in check_poison_obj()
1828 int i; in slab_destroy_debugcheck() local
1829 for (i = 0; i < cachep->num; i++) { in slab_destroy_debugcheck()
1830 void *objp = index_to_obj(cachep, page, i); in slab_destroy_debugcheck()
2412 int i; in __kmem_cache_shutdown() local
2422 for_each_kmem_cache_node(cachep, i, n) { in __kmem_cache_shutdown()
2426 cachep->node[i] = NULL; in __kmem_cache_shutdown()
2481 int i; in cache_init_objs() local
2483 for (i = 0; i < cachep->num; i++) { in cache_init_objs()
2484 void *objp = index_to_obj(cachep, page, i); in cache_init_objs()
2520 set_obj_status(page, i, OBJECT_FREE); in cache_init_objs()
2521 set_free_obj(page, i, i); in cache_init_objs()
2554 unsigned int i; in slab_put_obj() local
2560 for (i = page->active; i < cachep->num; i++) { in slab_put_obj()
2561 if (get_free_obj(page, i) == objnr) { in slab_put_obj()
3264 int i; in free_block() local
3267 for (i = 0; i < nr_objects; i++) { in free_block()
3271 clear_obj_pfmemalloc(&objpp[i]); in free_block()
3272 objp = objpp[i]; in free_block()
3330 int i = 0; in cache_flusharray() local
3340 i++; in cache_flusharray()
3343 STATS_SET_FREEABLE(cachep, i); in cache_flusharray()
3714 int i = 0; in do_tune_cpucache() local
3725 for_each_memcg_cache_index(i) { in do_tune_cpucache()
3726 c = cache_from_memcg_idx(cachep, i); in do_tune_cpucache()
4068 int i = l/2; in add_caller() local
4069 unsigned long *q = p + 2 * i; in add_caller()
4075 l = i; in add_caller()
4078 l -= i + 1; in add_caller()
4093 int i; in handle_slab() local
4097 for (i = 0, p = page->s_mem; i < c->num; i++, p += c->size) { in handle_slab()
4098 if (get_obj_status(page, i) != OBJECT_ACTIVE) in handle_slab()
4130 int i; in leaks_show() local
4170 for (i = 0; i < x[1]; i++) { in leaks_show()
4171 seq_printf(m, "%s: %lu ", name, x[2*i+3]); in leaks_show()
4172 show_symbol(m, x[2*i+2]); in leaks_show()