Lines Matching refs:state_hmask

64 	return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask);  in xfrm_dst_hash()
72 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); in xfrm_src_hash()
79 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); in xfrm_spi_hash()
84 return __xfrm_seq_hash(seq, net->xfrm.state_hmask); in xfrm_seq_hash()
145 static unsigned long xfrm_hash_new_size(unsigned int state_hmask) in xfrm_hash_new_size() argument
147 return ((state_hmask + 1) << 1) * sizeof(struct hlist_head); in xfrm_hash_new_size()
158 nsize = xfrm_hash_new_size(net->xfrm.state_hmask); in xfrm_hash_resize()
186 for (i = net->xfrm.state_hmask; i >= 0; i--) in xfrm_hash_resize()
192 ohashmask = net->xfrm.state_hmask; in xfrm_hash_resize()
198 net->xfrm.state_hmask = nhashmask; in xfrm_hash_resize()
755 for (i = 0; i <= net->xfrm.state_hmask; i++) { in xfrm_state_flush_secctx_check()
775 for (i = 0; i <= net->xfrm.state_hmask; i++) { in xfrm_dev_state_flush_secctx_check()
816 for (i = 0; i <= net->xfrm.state_hmask; i++) { in xfrm_state_flush()
859 for (i = 0; i <= net->xfrm.state_hmask; i++) { in xfrm_dev_state_flush()
895 si->sadhcnt = net->xfrm.state_hmask + 1; in xfrm_sad_getinfo()
1089 (net->xfrm.state_hmask + 1) < xfrm_state_hashmax && in xfrm_hash_grow_check()
1090 net->xfrm.state_num > net->xfrm.state_hmask) in xfrm_hash_grow_check()
2904 net->xfrm.state_hmask = ((sz / sizeof(struct hlist_head)) - 1); in xfrm_state_init()
2933 sz = (net->xfrm.state_hmask + 1) * sizeof(struct hlist_head); in xfrm_state_fini()