• Home
  • Raw
  • Download

Lines Matching refs:flags

116 int __kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t nr,  in __kmem_cache_alloc_bulk()  argument
122 void *x = p[i] = kmem_cache_alloc(s, flags); in __kmem_cache_alloc_bulk()
281 static unsigned int calculate_alignment(slab_flags_t flags, in calculate_alignment() argument
291 if (flags & SLAB_HWCACHE_ALIGN) { in calculate_alignment()
311 if (slab_nomerge || (s->flags & SLAB_NEVER_MERGE)) in slab_unmergeable()
333 slab_flags_t flags, const char *name, void (*ctor)(void *)) in find_mergeable() argument
344 align = calculate_alignment(flags, align, size); in find_mergeable()
346 flags = kmem_cache_flags(size, flags, name, NULL); in find_mergeable()
348 if (flags & SLAB_NEVER_MERGE) in find_mergeable()
358 if ((flags & SLAB_MERGE_SAME) != (s->flags & SLAB_MERGE_SAME)) in find_mergeable()
381 slab_flags_t flags, unsigned int useroffset, in create_cache() argument
407 err = __kmem_cache_create(s, flags); in create_cache()
456 slab_flags_t flags, in kmem_cache_create_usercopy() argument
476 if (flags & ~SLAB_FLAGS_PERMITTED) { in kmem_cache_create_usercopy()
487 flags &= CACHE_CREATE_MASK; in kmem_cache_create_usercopy()
495 s = __kmem_cache_alias(name, size, align, flags, ctor); in kmem_cache_create_usercopy()
506 calculate_alignment(flags, align, size), in kmem_cache_create_usercopy()
507 flags, useroffset, usersize, ctor, NULL, NULL); in kmem_cache_create_usercopy()
521 if (flags & SLAB_PANIC) in kmem_cache_create_usercopy()
562 slab_flags_t flags, void (*ctor)(void *)) in kmem_cache_create() argument
564 return kmem_cache_create_usercopy(name, size, align, flags, 0, 0, in kmem_cache_create()
612 if (s->flags & SLAB_TYPESAFE_BY_RCU) { in shutdown_cache()
682 root_cache->flags & CACHE_CREATE_MASK, in memcg_create_kmem_cache()
749 unsigned long flags; in kmemcg_cache_shutdown() local
751 spin_lock_irqsave(&memcg_kmem_wq_lock, flags); in kmemcg_cache_shutdown()
760 spin_unlock_irqrestore(&memcg_kmem_wq_lock, flags); in kmemcg_cache_shutdown()
775 s->flags |= SLAB_DEACTIVATED; in kmemcg_cache_deactivate()
1025 if (s->flags & SLAB_DEACTIVATED) in kmem_cache_shrink_all()
1043 unsigned int size, slab_flags_t flags, in create_boot_cache() argument
1058 s->align = calculate_alignment(flags, align, size); in create_boot_cache()
1065 err = __kmem_cache_create(s, flags); in create_boot_cache()
1075 unsigned int size, slab_flags_t flags, in create_kmalloc_cache() argument
1083 create_boot_cache(s, name, size, flags, useroffset, usersize); in create_kmalloc_cache()
1137 struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags) in kmalloc_slab() argument
1152 return kmalloc_caches[kmalloc_type(flags)][index]; in kmalloc_slab()
1240 new_kmalloc_cache(int idx, int type, slab_flags_t flags) in new_kmalloc_cache() argument
1245 flags |= SLAB_RECLAIM_ACCOUNT; in new_kmalloc_cache()
1254 kmalloc_info[idx].size, flags, 0, in new_kmalloc_cache()
1263 void __init create_kmalloc_caches(slab_flags_t flags) in create_kmalloc_caches() argument
1270 new_kmalloc_cache(i, type, flags); in create_kmalloc_caches()
1279 new_kmalloc_cache(1, type, flags); in create_kmalloc_caches()
1282 new_kmalloc_cache(2, type, flags); in create_kmalloc_caches()
1299 n, size, SLAB_CACHE_DMA | flags, 0, 0); in create_kmalloc_caches()
1311 void *kmalloc_order(size_t size, gfp_t flags, unsigned int order) in kmalloc_order() argument
1316 flags |= __GFP_COMP; in kmalloc_order()
1317 page = alloc_pages(flags, order); in kmalloc_order()
1323 ret = kasan_kmalloc_large(ret, size, flags); in kmalloc_order()
1325 kmemleak_alloc(ret, size, 1, flags); in kmalloc_order()
1331 void *kmalloc_order_trace(size_t size, gfp_t flags, unsigned int order) in kmalloc_order_trace() argument
1333 void *ret = kmalloc_order(size, flags, order); in kmalloc_order_trace()
1334 trace_kmalloc(_RET_IP_, ret, size, PAGE_SIZE << order, flags); in kmalloc_order_trace()
1504 if (!is_root_cache(s) || (s->flags & SLAB_RECLAIM_ACCOUNT)) in dump_unreclaimable_slab()
1622 if (!(css->flags & CSS_ONLINE)) in memcg_slabinfo_show()
1624 else if (c->flags & SLAB_DEACTIVATED) in memcg_slabinfo_show()
1652 gfp_t flags) in __do_krealloc() argument
1661 p = kasan_krealloc((void *)p, new_size, flags); in __do_krealloc()
1665 ret = kmalloc_track_caller(new_size, flags); in __do_krealloc()
1684 void *__krealloc(const void *p, size_t new_size, gfp_t flags) in __krealloc() argument
1689 return __do_krealloc(p, new_size, flags); in __krealloc()
1707 void *krealloc(const void *p, size_t new_size, gfp_t flags) in krealloc() argument
1716 ret = __do_krealloc(p, new_size, flags); in krealloc()