Searched refs:pdw (Results 1 – 4 of 4) sorted by relevance
/linux/net/xfrm/ |
H A D | xfrm_hash.h | 57 unsigned int pdw; in __xfrm6_pref_hash() local 61 pdw = prefixlen >> 5; /* num of whole u32 in prefix */ in __xfrm6_pref_hash() 69 initval = (__force u32)(addr->a6[pdw] & mask); in __xfrm6_pref_hash() 72 return jhash2((__force u32 *)addr->a6, pdw, initval); in __xfrm6_pref_hash()
|
H A D | xfrm_policy.c | 851 unsigned int pdw, pbi; in xfrm_policy_addr_delta() local 867 pdw = prefixlen >> 5; in xfrm_policy_addr_delta() 870 if (pdw) { in xfrm_policy_addr_delta() 871 delta = memcmp(a->a6, b->a6, pdw << 2); in xfrm_policy_addr_delta() 877 ma = ntohl(a->a6[pdw]) & mask; in xfrm_policy_addr_delta() 878 mb = ntohl(b->a6[pdw]) & mask; in xfrm_policy_addr_delta()
|
/linux/include/net/ |
H A D | ipv6.h | 713 unsigned int pdw, pbi; in ipv6_prefix_equal() local 716 pdw = prefixlen >> 5; in ipv6_prefix_equal() 717 if (pdw && memcmp(a1, a2, pdw << 2)) in ipv6_prefix_equal() 722 if (pbi && ((a1[pdw] ^ a2[pdw]) & htonl((0xffffffff) << (32 - pbi)))) in ipv6_prefix_equal()
|
H A D | xfrm.h | 885 unsigned int pdw; in addr_match() local 888 pdw = prefixlen >> 5; /* num of whole u32 in prefix */ in addr_match() 891 if (pdw) in addr_match() 892 if (memcmp(a1, a2, pdw << 2)) in addr_match() 900 if ((a1[pdw] ^ a2[pdw]) & mask) in addr_match()
|