Lines Matching defs:hmask
540 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
546 hash = __sel_hash(sel, family, hmask, dbits, sbits);
548 if (hash == hmask + 1)
560 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
566 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits);
631 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
632 unsigned int nhashmask = xfrm_new_hash_mask(hmask);
647 for (i = hmask; i >= 0; i--)
651 net->xfrm.policy_bydst[dir].hmask = nhashmask;
658 xfrm_hash_free(odst, (hmask + 1) * sizeof(struct hlist_head));
663 unsigned int hmask = net->xfrm.policy_idx_hmask;
664 unsigned int nhashmask = xfrm_new_hash_mask(hmask);
675 for (i = hmask; i >= 0; i--)
683 xfrm_hash_free(oidx, (hmask + 1) * sizeof(struct hlist_head));
689 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
694 if ((hmask + 1) < xfrm_policy_hashmax &&
695 cnt > hmask)
703 unsigned int hmask = net->xfrm.policy_idx_hmask;
705 if ((hmask + 1) < xfrm_policy_hashmax &&
706 total > hmask)
4213 unsigned int hmask, sz;
4223 hmask = 8 - 1;
4224 sz = (hmask+1) * sizeof(struct hlist_head);
4229 net->xfrm.policy_idx_hmask = hmask;
4241 htab->hmask = hmask;
4290 sz = (htab->hmask + 1) * sizeof(struct hlist_head);