Searched defs:hmask (Results 1 - 2 of 2) 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...]

Completed in 27 milliseconds