Lines Matching refs:slab
1458 struct kmem_cache *slab; in sk_prot_alloc() local
1460 slab = prot->slab; in sk_prot_alloc()
1461 if (slab != NULL) { in sk_prot_alloc()
1462 sk = kmem_cache_alloc(slab, priority & ~__GFP_ZERO); in sk_prot_alloc()
1484 if (slab != NULL) in sk_prot_alloc()
1485 kmem_cache_free(slab, sk); in sk_prot_alloc()
1493 struct kmem_cache *slab; in sk_prot_free() local
1497 slab = prot->slab; in sk_prot_free()
1502 if (slab != NULL) in sk_prot_free()
1503 kmem_cache_free(slab, sk); in sk_prot_free()
3226 kmem_cache_destroy(rsk_prot->slab); in req_prot_cleanup()
3227 rsk_prot->slab = NULL; in req_prot_cleanup()
3242 rsk_prot->slab = kmem_cache_create(rsk_prot->slab_name, in req_prot_init()
3247 if (!rsk_prot->slab) { in req_prot_init()
3258 prot->slab = kmem_cache_create_usercopy(prot->name, in proto_register()
3265 if (prot->slab == NULL) { in proto_register()
3303 kmem_cache_destroy(prot->slab); in proto_register()
3304 prot->slab = NULL; in proto_register()
3317 kmem_cache_destroy(prot->slab); in proto_unregister()
3318 prot->slab = NULL; in proto_unregister()
3396 proto->slab == NULL ? "no" : "yes", in proto_seq_printf()