Lines Matching refs:slab
1340 struct kmem_cache *slab; in sk_prot_alloc() local
1342 slab = prot->slab; in sk_prot_alloc()
1343 if (slab != NULL) { in sk_prot_alloc()
1344 sk = kmem_cache_alloc(slab, priority & ~__GFP_ZERO); in sk_prot_alloc()
1372 if (slab != NULL) in sk_prot_alloc()
1373 kmem_cache_free(slab, sk); in sk_prot_alloc()
1381 struct kmem_cache *slab; in sk_prot_free() local
1385 slab = prot->slab; in sk_prot_free()
1388 if (slab != NULL) in sk_prot_free()
1389 kmem_cache_free(slab, sk); in sk_prot_free()
2809 kmem_cache_destroy(rsk_prot->slab); in req_prot_cleanup()
2810 rsk_prot->slab = NULL; in req_prot_cleanup()
2825 rsk_prot->slab = kmem_cache_create(rsk_prot->slab_name, in req_prot_init()
2829 if (!rsk_prot->slab) { in req_prot_init()
2840 prot->slab = kmem_cache_create(prot->name, prot->obj_size, 0, in proto_register()
2844 if (prot->slab == NULL) { in proto_register()
2881 kmem_cache_destroy(prot->slab); in proto_register()
2882 prot->slab = NULL; in proto_register()
2895 kmem_cache_destroy(prot->slab); in proto_unregister()
2896 prot->slab = NULL; in proto_unregister()
2953 proto->slab == NULL ? "no" : "yes", in proto_seq_printf()