Lines Matching refs:twsk_prot
3838 static void tw_prot_cleanup(struct timewait_sock_ops *twsk_prot) in tw_prot_cleanup() argument
3840 if (!twsk_prot) in tw_prot_cleanup()
3842 kfree(twsk_prot->twsk_slab_name); in tw_prot_cleanup()
3843 twsk_prot->twsk_slab_name = NULL; in tw_prot_cleanup()
3844 kmem_cache_destroy(twsk_prot->twsk_slab); in tw_prot_cleanup()
3845 twsk_prot->twsk_slab = NULL; in tw_prot_cleanup()
3850 struct timewait_sock_ops *twsk_prot = prot->twsk_prot; in tw_prot_init() local
3852 if (!twsk_prot) in tw_prot_init()
3855 twsk_prot->twsk_slab_name = kasprintf(GFP_KERNEL, "tw_sock_%s", in tw_prot_init()
3857 if (!twsk_prot->twsk_slab_name) in tw_prot_init()
3860 twsk_prot->twsk_slab = in tw_prot_init()
3861 kmem_cache_create(twsk_prot->twsk_slab_name, in tw_prot_init()
3862 twsk_prot->twsk_obj_size, 0, in tw_prot_init()
3865 if (!twsk_prot->twsk_slab) { in tw_prot_init()
3954 tw_prot_cleanup(prot->twsk_prot); in proto_register()
3978 tw_prot_cleanup(prot->twsk_prot); in proto_unregister()