Searched refs:sbits (Results 1 – 2 of 2) sorted by relevance
/net/xfrm/ |
D | xfrm_hash.h | 47 __u8 sbits) in __xfrm4_dpref_spref_hash() argument 50 ntohl(saddr->a4) & __bits2mask32(sbits), in __xfrm4_dpref_spref_hash() 78 __u8 sbits) in __xfrm6_dpref_spref_hash() argument 81 __xfrm6_pref_hash(saddr, sbits); in __xfrm6_dpref_spref_hash() 141 u8 dbits, u8 sbits) in __sel_hash() argument 150 sel->prefixlen_s < sbits) in __sel_hash() 153 h = __xfrm4_dpref_spref_hash(daddr, saddr, dbits, sbits); in __sel_hash() 158 sel->prefixlen_s < sbits) in __sel_hash() 161 h = __xfrm6_dpref_spref_hash(daddr, saddr, dbits, sbits); in __sel_hash() 172 u8 dbits, u8 sbits) in __addr_hash() argument [all …]
|
D | xfrm_policy.c | 458 u8 *dbits, u8 *sbits) in __get_hash_thresh() argument 463 *sbits = net->xfrm.policy_bydst[dir].sbits4; in __get_hash_thresh() 468 *sbits = net->xfrm.policy_bydst[dir].sbits6; in __get_hash_thresh() 473 *sbits = 0; in __get_hash_thresh() 484 u8 sbits; in policy_hash_bysel() local 486 __get_hash_thresh(net, family, dir, &dbits, &sbits); in policy_hash_bysel() 487 hash = __sel_hash(sel, family, hmask, dbits, sbits); in policy_hash_bysel() 504 u8 sbits; in policy_hash_direct() local 506 __get_hash_thresh(net, family, dir, &dbits, &sbits); in policy_hash_direct() 507 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); in policy_hash_direct() [all …]
|