Lines Matching refs:hmask
487 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
493 hash = __sel_hash(sel, family, hmask, dbits, sbits);
495 if (hash == hmask + 1)
507 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
513 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits);
578 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
579 unsigned int nhashmask = xfrm_new_hash_mask(hmask);
594 for (i = hmask; i >= 0; i--)
598 net->xfrm.policy_bydst[dir].hmask = nhashmask;
605 xfrm_hash_free(odst, (hmask + 1) * sizeof(struct hlist_head));
610 unsigned int hmask = net->xfrm.policy_idx_hmask;
611 unsigned int nhashmask = xfrm_new_hash_mask(hmask);
622 for (i = hmask; i >= 0; i--)
630 xfrm_hash_free(oidx, (hmask + 1) * sizeof(struct hlist_head));
636 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
641 if ((hmask + 1) < xfrm_policy_hashmax &&
642 cnt > hmask)
650 unsigned int hmask = net->xfrm.policy_idx_hmask;
652 if ((hmask + 1) < xfrm_policy_hashmax &&
653 total > hmask)
1225 unsigned int hmask;
1303 hmask = net->xfrm.policy_bydst[dir].hmask;
1305 for (i = hmask; i >= 0; i--) {
4063 unsigned int hmask, sz;
4076 hmask = 8 - 1;
4077 sz = (hmask+1) * sizeof(struct hlist_head);
4082 net->xfrm.policy_idx_hmask = hmask;
4095 htab->hmask = hmask;
4146 sz = (htab->hmask + 1) * sizeof(struct hlist_head);