Searched refs:dbits (Results 1 – 4 of 4) sorted by relevance
/linux-5.19.10/net/xfrm/ |
D | xfrm_hash.h | 46 __u8 dbits, in __xfrm4_dpref_spref_hash() argument 49 return jhash_2words(ntohl(daddr->a4) & __bits2mask32(dbits), in __xfrm4_dpref_spref_hash() 77 __u8 dbits, in __xfrm6_dpref_spref_hash() argument 80 return __xfrm6_pref_hash(daddr, dbits) ^ in __xfrm6_dpref_spref_hash() 148 u8 dbits, u8 sbits) in __sel_hash() argument 156 if (sel->prefixlen_d < dbits || in __sel_hash() 160 h = __xfrm4_dpref_spref_hash(daddr, saddr, dbits, sbits); in __sel_hash() 164 if (sel->prefixlen_d < dbits || in __sel_hash() 168 h = __xfrm6_dpref_spref_hash(daddr, saddr, dbits, sbits); in __sel_hash() 179 u8 dbits, u8 sbits) in __addr_hash() argument [all …]
|
D | xfrm_policy.c | 464 u8 *dbits, u8 *sbits) in __get_hash_thresh() argument 468 *dbits = net->xfrm.policy_bydst[dir].dbits4; in __get_hash_thresh() 473 *dbits = net->xfrm.policy_bydst[dir].dbits6; in __get_hash_thresh() 478 *dbits = 0; in __get_hash_thresh() 489 u8 dbits; in policy_hash_bysel() local 492 __get_hash_thresh(net, family, dir, &dbits, &sbits); in policy_hash_bysel() 493 hash = __sel_hash(sel, family, hmask, dbits, sbits); in policy_hash_bysel() 509 u8 dbits; in policy_hash_direct() local 512 __get_hash_thresh(net, family, dir, &dbits, &sbits); in policy_hash_direct() 513 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); in policy_hash_direct() [all …]
|
/linux-5.19.10/lib/ |
D | inflate.c | 311 STATIC const int dbits = 6; /* bits in base distance lookup table */ variable 989 bd = dbits; in inflate_dynamic()
|
D | test_bpf.c | 822 int dbits, int sbits, int block1, int block2, in __bpf_fill_pattern() argument 834 count = (dbits - 1) * (sbits - 1) * block1 * block1 * ARRAY_SIZE(sgn); in __bpf_fill_pattern() 835 count += (max(dbits, sbits) - 1) * block2 * block2 * ARRAY_SIZE(sgn); in __bpf_fill_pattern() 850 for (di = 0; di < dbits - 1; di++) /* Dst magnitudes */ in __bpf_fill_pattern() 870 for (bt = 0; bt < max(dbits, sbits) - 1; bt++) /* Magnitude */ in __bpf_fill_pattern() 877 dst = value(bt % dbits, db, sgn[k][0]); in __bpf_fill_pattern()
|