Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
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.c59 static inline u32 jhash(const void *key, u32 length, u32 initval) in jhash() argument
64 a = b = c = JHASH_INITVAL + length + initval; in jhash()
95 static inline u32 __jhash_nwords(u32 a, u32 b, u32 c, u32 initval) in __jhash_nwords() argument
97 a += initval; in __jhash_nwords()
98 b += initval; in __jhash_nwords()
99 c += initval; in __jhash_nwords()
104 static inline u32 jhash_2words(u32 a, u32 b, u32 initval) in jhash_2words() argument
106 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()
/kernel/linux/linux-5.10/samples/bpf/
Dhash_func01.h10 __u32 SuperFastHash (const char *data, int len, __u32 initval) { in SuperFastHash() argument
11 __u32 hash = initval; in SuperFastHash()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/
Dtransport.c455 unsigned long initval; in xprt_rdma_set_connect_timeout() local
458 initval = connect_timeout; in xprt_rdma_set_connect_timeout()
459 if (initval < RPCRDMA_INIT_REEST_TO << 1) in xprt_rdma_set_connect_timeout()
460 initval = RPCRDMA_INIT_REEST_TO << 1; in xprt_rdma_set_connect_timeout()
461 to.to_initval = initval; in xprt_rdma_set_connect_timeout()
462 to.to_maxval = initval; in xprt_rdma_set_connect_timeout()
/kernel/linux/linux-5.10/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.h344 u32 initval) in __inet_ehashfn() argument
349 initval); in __inet_ehashfn()
Dipv6.h664 static inline u32 __ipv6_addr_jhash(const struct in6_addr *a, const u32 initval) in __ipv6_addr_jhash() argument
667 ARRAY_SIZE(a->s6_addr32), initval); in __ipv6_addr_jhash()
/kernel/linux/common_modules/newip/third_party/linux-5.10/include/net/
Dninet_hashtables.h38 const u32 initval) in __ninet_ehashfn() argument
42 return jhash_3words(lhash, fhash, ports, initval); in __ninet_ehashfn()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/netfilter/ipset/
Dip_set_hash_gen.h291 #define HKEY(data, initval, htable_bits) \ argument
298 jhash2(__k, __l, initval) & jhash_mask(htable_bits); \
306 u32 initval; /* random jhash init value */ member
709 key = HKEY(data, h->initval, htable_bits); in mtype_resize()
860 key = HKEY(value, h->initval, t->htable_bits); in mtype_add()
1053 key = HKEY(value, h->initval, t->htable_bits); in mtype_del()
1188 key = HKEY(d, h->initval, t->htable_bits); in mtype_test_cidrs()
1242 key = HKEY(d, h->initval, t->htable_bits); in mtype_test()
1544 get_random_bytes(&h->initval, sizeof(h->initval)); in IPSET_TOKEN()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/iio/proximity/
Dsx9310.c826 const struct sx9310_reg_default *initval; in sx9310_init_device() local
843 initval = &sx9310_default_regs[i]; in sx9310_init_device()
844 ret = regmap_write(data->regmap, initval->reg, initval->def); in sx9310_init_device()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
Dphy_g.h185 u16 initval; //FIXME rename? member
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dninet_hashtables.c119 static u32 __nip_addr_jhash(const struct nip_addr *a, const u32 initval) in __nip_addr_jhash() argument
126 initval); in __nip_addr_jhash()
/kernel/linux/linux-5.10/arch/um/os-Linux/
Dfile.c628 int os_eventfd(unsigned int initval, int flags) in os_eventfd() argument
630 int fd = eventfd(initval, flags); in os_eventfd()
/kernel/linux/linux-5.10/arch/um/include/shared/
Dos.h181 extern int os_eventfd(unsigned int initval, int flags);
/kernel/linux/linux-5.10/net/sunrpc/
Dxprtsock.c2165 unsigned long initval; in xs_tcp_set_connect_timeout() local
2172 initval = DIV_ROUND_UP(connect_timeout, to.to_retries + 1); in xs_tcp_set_connect_timeout()
2174 if (initval < XS_TCP_INIT_REEST_TO << 1) in xs_tcp_set_connect_timeout()
2175 initval = XS_TCP_INIT_REEST_TO << 1; in xs_tcp_set_connect_timeout()
2176 to.to_initval = initval; in xs_tcp_set_connect_timeout()
2177 to.to_maxval = initval; in xs_tcp_set_connect_timeout()
/kernel/linux/linux-5.10/drivers/net/dsa/
Dvitesse-vsc73xx-core.c719 u32 initval) in vsc73xx_adjust_enable_port() argument
721 u32 val = initval; in vsc73xx_adjust_enable_port()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43legacy/
Db43legacy.h508 u16 initval; member

12