Lines Matching refs:twsk_prot
3648 static void tw_prot_cleanup(struct timewait_sock_ops *twsk_prot) in tw_prot_cleanup() argument
3650 if (!twsk_prot) in tw_prot_cleanup()
3652 kfree(twsk_prot->twsk_slab_name); in tw_prot_cleanup()
3653 twsk_prot->twsk_slab_name = NULL; in tw_prot_cleanup()
3654 kmem_cache_destroy(twsk_prot->twsk_slab); in tw_prot_cleanup()
3655 twsk_prot->twsk_slab = NULL; in tw_prot_cleanup()
3660 struct timewait_sock_ops *twsk_prot = prot->twsk_prot; in tw_prot_init() local
3662 if (!twsk_prot) in tw_prot_init()
3665 twsk_prot->twsk_slab_name = kasprintf(GFP_KERNEL, "tw_sock_%s", in tw_prot_init()
3667 if (!twsk_prot->twsk_slab_name) in tw_prot_init()
3670 twsk_prot->twsk_slab = in tw_prot_init()
3671 kmem_cache_create(twsk_prot->twsk_slab_name, in tw_prot_init()
3672 twsk_prot->twsk_obj_size, 0, in tw_prot_init()
3675 if (!twsk_prot->twsk_slab) { in tw_prot_init()
3756 tw_prot_cleanup(prot->twsk_prot); in proto_register()
3780 tw_prot_cleanup(prot->twsk_prot); in proto_unregister()