Lines Matching refs:flags
31 kmem_alloc(size_t size, unsigned int __nocast flags) in kmem_alloc() argument
34 gfp_t lflags = kmem_flags_convert(flags); in kmem_alloc()
38 if (unlikely(!(flags & KM_LARGE) && (size > PAGE_SIZE))) { in kmem_alloc()
50 if (ptr || (flags & (KM_MAYFAIL|KM_NOSLEEP))) in kmem_alloc()
61 kmem_zalloc(size_t size, unsigned int __nocast flags) in kmem_zalloc() argument
65 ptr = kmem_alloc(size, flags); in kmem_zalloc()
73 unsigned int __nocast flags) in kmem_zalloc_greedy() argument
77 unsigned int kmflags = (flags & ~KM_SLEEP) | KM_NOSLEEP; in kmem_zalloc_greedy()
80 if ((kmsize <= minsize) && (flags & KM_NOSLEEP)) in kmem_zalloc_greedy()
84 kmflags = flags; in kmem_zalloc_greedy()
104 unsigned int __nocast flags) in kmem_realloc() argument
108 new = kmem_alloc(newsize, flags); in kmem_realloc()
119 kmem_zone_alloc(kmem_zone_t *zone, unsigned int __nocast flags) in kmem_zone_alloc() argument
122 gfp_t lflags = kmem_flags_convert(flags); in kmem_zone_alloc()
127 if (ptr || (flags & (KM_MAYFAIL|KM_NOSLEEP))) in kmem_zone_alloc()
138 kmem_zone_zalloc(kmem_zone_t *zone, unsigned int __nocast flags) in kmem_zone_zalloc() argument
142 ptr = kmem_zone_alloc(zone, flags); in kmem_zone_zalloc()