Lines Matching refs:slab
1682 struct kmem_cache *slab; in sk_prot_alloc() local
1684 slab = prot->slab; in sk_prot_alloc()
1685 if (slab != NULL) { in sk_prot_alloc()
1686 sk = kmem_cache_alloc(slab, priority & ~__GFP_ZERO); in sk_prot_alloc()
1708 if (slab != NULL) in sk_prot_alloc()
1709 kmem_cache_free(slab, sk); in sk_prot_alloc()
1717 struct kmem_cache *slab; in sk_prot_free() local
1721 slab = prot->slab; in sk_prot_free()
1726 if (slab != NULL) in sk_prot_free()
1727 kmem_cache_free(slab, sk); in sk_prot_free()
3453 kmem_cache_destroy(rsk_prot->slab); in req_prot_cleanup()
3454 rsk_prot->slab = NULL; in req_prot_cleanup()
3469 rsk_prot->slab = kmem_cache_create(rsk_prot->slab_name, in req_prot_init()
3474 if (!rsk_prot->slab) { in req_prot_init()
3487 prot->slab = kmem_cache_create_usercopy(prot->name, in proto_register()
3494 if (prot->slab == NULL) { in proto_register()
3538 kmem_cache_destroy(prot->slab); in proto_register()
3539 prot->slab = NULL; in proto_register()
3553 kmem_cache_destroy(prot->slab); in proto_unregister()
3554 prot->slab = NULL; in proto_unregister()
3629 proto->slab == NULL ? "no" : "yes", in proto_seq_printf()