Lines Matching refs:slab
1323 struct kmem_cache *slab; in sk_prot_alloc() local
1325 slab = prot->slab; in sk_prot_alloc()
1326 if (slab != NULL) { in sk_prot_alloc()
1327 sk = kmem_cache_alloc(slab, priority & ~__GFP_ZERO); in sk_prot_alloc()
1355 if (slab != NULL) in sk_prot_alloc()
1356 kmem_cache_free(slab, sk); in sk_prot_alloc()
1364 struct kmem_cache *slab; in sk_prot_free() local
1368 slab = prot->slab; in sk_prot_free()
1371 if (slab != NULL) in sk_prot_free()
1372 kmem_cache_free(slab, sk); in sk_prot_free()
2742 if (rsk_prot->slab) { in req_prot_cleanup()
2743 kmem_cache_destroy(rsk_prot->slab); in req_prot_cleanup()
2744 rsk_prot->slab = NULL; in req_prot_cleanup()
2760 rsk_prot->slab = kmem_cache_create(rsk_prot->slab_name, in req_prot_init()
2764 if (!rsk_prot->slab) { in req_prot_init()
2775 prot->slab = kmem_cache_create(prot->name, prot->obj_size, 0, in proto_register()
2779 if (prot->slab == NULL) { in proto_register()
2816 kmem_cache_destroy(prot->slab); in proto_register()
2817 prot->slab = NULL; in proto_register()
2830 if (prot->slab != NULL) { in proto_unregister()
2831 kmem_cache_destroy(prot->slab); in proto_unregister()
2832 prot->slab = NULL; in proto_unregister()
2890 proto->slab == NULL ? "no" : "yes", in proto_seq_printf()