Lines Matching refs:sz
2097 unsigned int sz; in xfrm_state_init() local
2101 sz = sizeof(struct hlist_head) * 8; in xfrm_state_init()
2103 net->xfrm.state_bydst = xfrm_hash_alloc(sz); in xfrm_state_init()
2106 net->xfrm.state_bysrc = xfrm_hash_alloc(sz); in xfrm_state_init()
2109 net->xfrm.state_byspi = xfrm_hash_alloc(sz); in xfrm_state_init()
2112 net->xfrm.state_hmask = ((sz / sizeof(struct hlist_head)) - 1); in xfrm_state_init()
2122 xfrm_hash_free(net->xfrm.state_bysrc, sz); in xfrm_state_init()
2124 xfrm_hash_free(net->xfrm.state_bydst, sz); in xfrm_state_init()
2132 unsigned int sz; in xfrm_state_fini() local
2143 sz = (net->xfrm.state_hmask + 1) * sizeof(struct hlist_head); in xfrm_state_fini()
2145 xfrm_hash_free(net->xfrm.state_byspi, sz); in xfrm_state_fini()
2147 xfrm_hash_free(net->xfrm.state_bysrc, sz); in xfrm_state_fini()
2149 xfrm_hash_free(net->xfrm.state_bydst, sz); in xfrm_state_fini()