Searched refs:hmask (Results 1 - 13 of 13) sorted by relevance

/net/xfrm/
H A Dxfrm_hash.h34 unsigned int hmask)
45 return (h ^ (h >> 16)) & hmask;
51 unsigned int hmask)
62 return (h ^ (h >> 16)) & hmask;
67 unsigned short family, unsigned int hmask)
78 return (h ^ (h >> 10) ^ (h >> 20)) & hmask;
81 static inline unsigned int __idx_hash(u32 index, unsigned int hmask) argument
83 return (index ^ (index >> 8)) & hmask;
87 unsigned short family, unsigned int hmask)
97 return hmask
31 __xfrm_dst_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, u32 reqid, unsigned short family, unsigned int hmask) argument
48 __xfrm_src_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family, unsigned int hmask) argument
66 __xfrm_spi_hash(const xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family, unsigned int hmask) argument
86 __sel_hash(const struct xfrm_selector *sel, unsigned short family, unsigned int hmask) argument
114 __addr_hash(const xfrm_address_t *daddr, const xfrm_address_t *saddr, unsigned short family, unsigned int hmask) argument
[all...]
H A Dxfrm_policy.c359 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; local
360 unsigned int hash = __sel_hash(sel, family, hmask);
362 return (hash == hmask + 1 ?
372 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; local
373 unsigned int hash = __addr_hash(daddr, saddr, family, hmask);
432 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; local
433 unsigned int nhashmask = xfrm_new_hash_mask(hmask);
457 unsigned int hmask = net->xfrm.policy_idx_hmask; local
483 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; local
497 unsigned int hmask = net->xfrm.policy_idx_hmask; local
2834 unsigned int hmask, sz; local
[all...]
/net/sched/
H A Dact_api.c32 unsigned int h = tcf_hash(p->tcfc_index, hinfo->hmask);
84 for (i = 0; i < (hinfo->hmask + 1); i++) {
85 p = hinfo->htab[tcf_hash(i, hinfo->hmask)];
132 for (i = 0; i < (hinfo->hmask + 1); i++) {
133 p = hinfo->htab[tcf_hash(i, hinfo->hmask)];
174 for (p = hinfo->htab[tcf_hash(index, hinfo->hmask)]; p;
257 unsigned int h = tcf_hash(p->tcfc_index, hinfo->hmask);
H A Dact_gact.c33 .hmask = GACT_TAB_MASK,
H A Dact_pedit.c33 .hmask = PEDIT_TAB_MASK,
H A Dact_simple.c34 .hmask = SIMP_TAB_MASK,
H A Dact_skbedit.c38 .hmask = SKBEDIT_TAB_MASK,
H A Dact_mirred.c40 .hmask = MIRRED_TAB_MASK,
H A Dact_nat.c39 .hmask = NAT_TAB_MASK,
H A Dcls_u32.c91 unsigned int h = ntohl(key & sel->hmask) >> fshift;
648 n->fshift = s->hmask ? ffs(ntohl(s->hmask)) - 1 : 0;
H A Dact_ipt.c38 .hmask = IPT_TAB_MASK,
H A Dact_police.c50 .hmask = POL_TAB_MASK,
H A Dact_csum.c46 .hmask = CSUM_TAB_MASK,

Completed in 86 milliseconds