Home
last modified time | relevance | path

Searched refs:initval (Results 1 – 25 of 34) sorted by relevance

12

/Linux-v6.6/tools/include/linux/
Djhash.h70 static inline u32 jhash(const void *key, u32 length, u32 initval) in jhash() argument
76 a = b = c = JHASH_INITVAL + length + initval; in jhash()
117 static inline u32 jhash2(const u32 *k, u32 length, u32 initval) in jhash2() argument
122 a = b = c = JHASH_INITVAL + (length<<2) + initval; in jhash2()
149 static inline u32 __jhash_nwords(u32 a, u32 b, u32 c, u32 initval) in __jhash_nwords() argument
151 a += initval; in __jhash_nwords()
152 b += initval; in __jhash_nwords()
153 c += initval; in __jhash_nwords()
160 static inline u32 jhash_3words(u32 a, u32 b, u32 c, u32 initval) in jhash_3words() argument
162 return __jhash_nwords(a, b, c, initval + JHASH_INITVAL + (3 << 2)); in jhash_3words()
[all …]
/Linux-v6.6/include/linux/
Djhash.h70 static inline u32 jhash(const void *key, u32 length, u32 initval) in jhash() argument
76 a = b = c = JHASH_INITVAL + length + initval; in jhash()
117 static inline u32 jhash2(const u32 *k, u32 length, u32 initval) in jhash2() argument
122 a = b = c = JHASH_INITVAL + (length<<2) + initval; in jhash2()
150 static inline u32 __jhash_nwords(u32 a, u32 b, u32 c, u32 initval) in __jhash_nwords() argument
152 a += initval; in __jhash_nwords()
153 b += initval; in __jhash_nwords()
154 c += initval; in __jhash_nwords()
161 static inline u32 jhash_3words(u32 a, u32 b, u32 c, u32 initval) in jhash_3words() argument
163 return __jhash_nwords(a, b, c, initval + JHASH_INITVAL + (3 << 2)); in jhash_3words()
[all …]
/Linux-v6.6/include/net/netfilter/
Dnf_queue.h49 static inline u32 hash_v4(const struct iphdr *iph, u32 initval) in hash_v4() argument
54 (__force u32)iph->daddr, iph->protocol, initval); in hash_v4()
57 (__force u32)iph->saddr, iph->protocol, initval); in hash_v4()
60 static inline u32 hash_v6(const struct ipv6hdr *ip6h, u32 initval) in hash_v6() argument
79 return jhash_3words(a, b, c, initval); in hash_v6()
82 static inline u32 hash_bridge(const struct sk_buff *skb, u32 initval) in hash_bridge() argument
92 return hash_v4(iph, initval); in hash_bridge()
98 return hash_v6(ip6h, initval); in hash_bridge()
107 u32 initval) in nfqueue_hash() argument
111 queue += reciprocal_scale(hash_v4(ip_hdr(skb), initval), in nfqueue_hash()
[all …]
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dtest_l4lb.c57 static inline u32 jhash(const void *key, u32 length, u32 initval) in jhash() argument
62 a = b = c = JHASH_INITVAL + length + initval; in jhash()
93 static inline u32 __jhash_nwords(u32 a, u32 b, u32 c, u32 initval) in __jhash_nwords() argument
95 a += initval; in __jhash_nwords()
96 b += initval; in __jhash_nwords()
97 c += initval; in __jhash_nwords()
102 static inline u32 jhash_2words(u32 a, u32 b, u32 initval) in jhash_2words() argument
104 return __jhash_nwords(a, b, 0, initval + JHASH_INITVAL + (2 << 2)); in jhash_2words()
Dtest_l4lb_noinline.c53 static __noinline u32 jhash(const void *key, u32 length, u32 initval) in jhash() argument
58 a = b = c = JHASH_INITVAL + length + initval; in jhash()
89 static __noinline u32 __jhash_nwords(u32 a, u32 b, u32 c, u32 initval) in __jhash_nwords() argument
91 a += initval; in __jhash_nwords()
92 b += initval; in __jhash_nwords()
93 c += initval; in __jhash_nwords()
98 static __noinline u32 jhash_2words(u32 a, u32 b, u32 initval) in jhash_2words() argument
100 return __jhash_nwords(a, b, 0, initval + JHASH_INITVAL + (2 << 2)); in jhash_2words()
Dtest_l4lb_noinline_dynptr.c55 static __noinline u32 jhash(const void *key, u32 length, u32 initval) in jhash() argument
60 a = b = c = JHASH_INITVAL + length + initval; in jhash()
91 static __noinline u32 __jhash_nwords(u32 a, u32 b, u32 c, u32 initval) in __jhash_nwords() argument
93 a += initval; in __jhash_nwords()
94 b += initval; in __jhash_nwords()
95 c += initval; in __jhash_nwords()
100 static __noinline u32 jhash_2words(u32 a, u32 b, u32 initval) in jhash_2words() argument
102 return __jhash_nwords(a, b, 0, initval + JHASH_INITVAL + (2 << 2)); in jhash_2words()
Dtest_jhash.h36 u32 jhash(const void *key, u32 length, u32 initval) in jhash() argument
41 a = b = c = JHASH_INITVAL + length + initval; in jhash()
Dtest_xdp_noinline.c53 u32 jhash(const void *key, u32 length, u32 initval) in jhash() argument
58 a = b = c = JHASH_INITVAL + length + initval; in jhash()
90 u32 __jhash_nwords(u32 a, u32 b, u32 c, u32 initval) in __jhash_nwords() argument
92 a += initval; in __jhash_nwords()
93 b += initval; in __jhash_nwords()
94 c += initval; in __jhash_nwords()
100 u32 jhash_2words(u32 a, u32 b, u32 initval) in jhash_2words() argument
102 return __jhash_nwords(a, b, 0, initval + JHASH_INITVAL + (2 << 2)); in jhash_2words()
/Linux-v6.6/samples/bpf/
Dhash_func01.h10 __u32 SuperFastHash (const char *data, int len, __u32 initval) { in SuperFastHash() argument
11 __u32 hash = initval; in SuperFastHash()
/Linux-v6.6/net/xfrm/
Dxfrm_hash.h59 u32 initval = 0; in __xfrm6_pref_hash() local
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()
/Linux-v6.6/net/sunrpc/xprtrdma/
Dtransport.c448 unsigned long initval; in xprt_rdma_set_connect_timeout() local
451 initval = connect_timeout; in xprt_rdma_set_connect_timeout()
452 if (initval < RPCRDMA_INIT_REEST_TO << 1) in xprt_rdma_set_connect_timeout()
453 initval = RPCRDMA_INIT_REEST_TO << 1; in xprt_rdma_set_connect_timeout()
454 to.to_initval = initval; in xprt_rdma_set_connect_timeout()
455 to.to_maxval = initval; in xprt_rdma_set_connect_timeout()
/Linux-v6.6/net/netfilter/ipvs/
Dip_vs_pe_sip.c136 u32 initval, bool inverse) in ip_vs_sip_hashkey_raw() argument
138 return jhash(p->pe_data, p->pe_data_len, initval); in ip_vs_sip_hashkey_raw()
/Linux-v6.6/drivers/iio/proximity/
Dsx_common.c454 const struct sx_common_reg_default *initval; in sx_common_init_device() local
472 initval = data->chip_info->ops.get_default_reg(dev, i, &tmp); in sx_common_init_device()
473 ret = regmap_write(data->regmap, initval->reg, initval->def); in sx_common_init_device()
/Linux-v6.6/include/net/
Dinet6_hashtables.h31 const u32 initval) in __inet6_ehashfn() argument
34 return jhash_3words(lhash, fhash, ports, initval); in __inet6_ehashfn()
Dinet_sock.h381 u32 initval) in __inet_ehashfn() argument
386 initval); in __inet_ehashfn()
Dipv6.h753 static inline u32 __ipv6_addr_jhash(const struct in6_addr *a, const u32 initval) in __ipv6_addr_jhash() argument
756 ARRAY_SIZE(a->s6_addr32), initval); in __ipv6_addr_jhash()
/Linux-v6.6/net/netfilter/ipset/
Dip_set_hash_gen.h277 #define HKEY(data, initval, htable_bits) \ argument
284 jhash2(__k, __l, initval) & jhash_mask(htable_bits); \
292 u32 initval; /* random jhash init value */ member
694 key = HKEY(data, h->initval, htable_bits); in mtype_resize()
845 key = HKEY(value, h->initval, t->htable_bits); in mtype_add()
1043 key = HKEY(value, h->initval, t->htable_bits); in mtype_del()
1178 key = HKEY(d, h->initval, t->htable_bits); in mtype_test_cidrs()
1232 key = HKEY(d, h->initval, t->htable_bits); in mtype_test()
1302 nla_put_net32(skb, IPSET_ATTR_INITVAL, htonl(h->initval))) in mtype_head()
1581 h->initval = ntohl(nla_get_be32(tb[IPSET_ATTR_INITVAL])); in IPSET_TOKEN()
[all …]
/Linux-v6.6/drivers/clk/
Dclk-bm1880.c93 u32 initval; member
190 .div.initval = _initval, \
599 val = div->initval; in bm1880_clk_div_recalc_rate()
815 div_hws->div.initval = clks->div_initval; in bm1880_clk_register_composite()
/Linux-v6.6/drivers/net/wireless/broadcom/b43/
Dphy_g.h185 u16 initval; //FIXME rename? member
/Linux-v6.6/arch/um/os-Linux/
Dfile.c637 int os_eventfd(unsigned int initval, int flags) in os_eventfd() argument
639 int fd = eventfd(initval, flags); in os_eventfd()
/Linux-v6.6/tools/perf/tests/shell/lib/
Dperf_metric_validation.py88 def get_bound_value (bound, initval, ridx): argument
89 val = initval
/Linux-v6.6/arch/um/include/shared/
Dos.h178 extern int os_eventfd(unsigned int initval, int flags);
/Linux-v6.6/drivers/net/dsa/
Dvitesse-vsc73xx-core.c718 u32 initval) in vsc73xx_adjust_enable_port() argument
720 u32 val = initval; in vsc73xx_adjust_enable_port()
/Linux-v6.6/drivers/net/wireless/broadcom/b43legacy/
Db43legacy.h508 u16 initval; member
Dphy.c1033 if (phy->initval == 0xFFFF) in b43legacy_phy_initg()
1034 phy->initval = b43legacy_radio_init2050(dev); in b43legacy_phy_initg()
1036 b43legacy_radio_write16(dev, 0x0078, phy->initval); in b43legacy_phy_initg()

12