Lines Matching refs:sbits
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()
523 u8 sbits; in xfrm_dst_hash_transfer() local
529 __get_hash_thresh(net, pol->family, dir, &dbits, &sbits); in xfrm_dst_hash_transfer()
531 pol->family, nhashmask, dbits, sbits); in xfrm_dst_hash_transfer()
1240 u8 dbits, sbits; in xfrm_hash_rebuild() local
1249 sbits = lbits4; in xfrm_hash_rebuild()
1252 sbits = lbits6; in xfrm_hash_rebuild()
1257 sbits = rbits4; in xfrm_hash_rebuild()
1260 sbits = rbits6; in xfrm_hash_rebuild()
1265 policy->selector.prefixlen_s < sbits) in xfrm_hash_rebuild()