Lines Matching refs:htab
4033 struct xfrm_policy_hash *htab; in xfrm_policy_init() local
4039 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_init()
4040 htab->table = xfrm_hash_alloc(sz); in xfrm_policy_init()
4041 if (!htab->table) in xfrm_policy_init()
4043 htab->hmask = hmask; in xfrm_policy_init()
4044 htab->dbits4 = 32; in xfrm_policy_init()
4045 htab->sbits4 = 32; in xfrm_policy_init()
4046 htab->dbits6 = 128; in xfrm_policy_init()
4047 htab->sbits6 = 128; in xfrm_policy_init()
4064 struct xfrm_policy_hash *htab; in xfrm_policy_init() local
4066 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_init()
4067 xfrm_hash_free(htab->table, sz); in xfrm_policy_init()
4089 struct xfrm_policy_hash *htab; in xfrm_policy_fini() local
4093 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_fini()
4094 sz = (htab->hmask + 1) * sizeof(struct hlist_head); in xfrm_policy_fini()
4095 WARN_ON(!hlist_empty(htab->table)); in xfrm_policy_fini()
4096 xfrm_hash_free(htab->table, sz); in xfrm_policy_fini()