Lines Matching refs:hmask
488 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
494 hash = __sel_hash(sel, family, hmask, dbits, sbits);
496 if (hash == hmask + 1)
508 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
514 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits);
579 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
580 unsigned int nhashmask = xfrm_new_hash_mask(hmask);
595 for (i = hmask; i >= 0; i--)
599 net->xfrm.policy_bydst[dir].hmask = nhashmask;
606 xfrm_hash_free(odst, (hmask + 1) * sizeof(struct hlist_head));
611 unsigned int hmask = net->xfrm.policy_idx_hmask;
612 unsigned int nhashmask = xfrm_new_hash_mask(hmask);
623 for (i = hmask; i >= 0; i--)
631 xfrm_hash_free(oidx, (hmask + 1) * sizeof(struct hlist_head));
637 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask;
642 if ((hmask + 1) < xfrm_policy_hashmax &&
643 cnt > hmask)
651 unsigned int hmask = net->xfrm.policy_idx_hmask;
653 if ((hmask + 1) < xfrm_policy_hashmax &&
654 total > hmask)
1226 unsigned int hmask;
1307 hmask = net->xfrm.policy_bydst[dir].hmask;
1309 for (i = hmask; i >= 0; i--) {
4114 unsigned int hmask, sz;
4127 hmask = 8 - 1;
4128 sz = (hmask+1) * sizeof(struct hlist_head);
4133 net->xfrm.policy_idx_hmask = hmask;
4146 htab->hmask = hmask;
4197 sz = (htab->hmask + 1) * sizeof(struct hlist_head);