/linux/tools/include/linux/ |
A D | jhash.h | 70 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 165 static inline u32 jhash_2words(u32 a, u32 b, u32 initval) in jhash_2words() argument [all …]
|
/linux/include/linux/ |
A D | jhash.h | 70 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 166 static inline u32 jhash_2words(u32 a, u32 b, u32 initval) in jhash_2words() argument [all …]
|
/linux/include/net/netfilter/ |
A D | nf_queue.h | 49 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() 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() 115 queue += reciprocal_scale(hash_v6(ipv6_hdr(skb), initval), in nfqueue_hash() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | test_l4lb_noinline.c | 53 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()
|
A D | test_l4lb.c | 57 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()
|
A D | test_jhash.h | 36 u32 jhash(const void *key, u32 length, u32 initval) in jhash() argument 41 a = b = c = JHASH_INITVAL + length + initval; in jhash()
|
A D | test_xdp_noinline.c | 53 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/samples/bpf/ |
A D | hash_func01.h | 10 __u32 SuperFastHash (const char *data, int len, __u32 initval) { in SuperFastHash() argument 11 __u32 hash = initval; in SuperFastHash()
|
/linux/net/xfrm/ |
A D | xfrm_hash.h | 59 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/net/sunrpc/xprtrdma/ |
A D | transport.c | 457 unsigned long initval; in xprt_rdma_set_connect_timeout() local 460 initval = connect_timeout; in xprt_rdma_set_connect_timeout() 461 if (initval < RPCRDMA_INIT_REEST_TO << 1) in xprt_rdma_set_connect_timeout() 462 initval = RPCRDMA_INIT_REEST_TO << 1; in xprt_rdma_set_connect_timeout() 463 to.to_initval = initval; in xprt_rdma_set_connect_timeout() 464 to.to_maxval = initval; in xprt_rdma_set_connect_timeout()
|
/linux/include/net/ |
A D | inet6_hashtables.h | 31 const u32 initval) in __inet6_ehashfn() argument 34 return jhash_3words(lhash, fhash, ports, initval); in __inet6_ehashfn()
|
A D | inet_sock.h | 330 u32 initval) in __inet_ehashfn() argument 335 initval); in __inet_ehashfn()
|
A D | ipv6.h | 662 static inline u32 __ipv6_addr_jhash(const struct in6_addr *a, const u32 initval) in __ipv6_addr_jhash() argument 669 initval); in __ipv6_addr_jhash()
|
/linux/net/netfilter/ipset/ |
A D | ip_set_hash_gen.h | 289 #define HKEY(data, initval, htable_bits) \ argument 296 jhash2(__k, __l, initval) & jhash_mask(htable_bits); \ 304 u32 initval; /* random jhash init value */ member 705 key = HKEY(data, h->initval, htable_bits); in mtype_resize() 856 key = HKEY(value, h->initval, t->htable_bits); in mtype_add() 1049 key = HKEY(value, h->initval, t->htable_bits); in mtype_del() 1184 key = HKEY(d, h->initval, t->htable_bits); in mtype_test_cidrs() 1238 key = HKEY(d, h->initval, t->htable_bits); in mtype_test() 1296 nla_put_net32(skb, IPSET_ATTR_INITVAL, htonl(h->initval))) in mtype_head() 1546 h->initval = ntohl(nla_get_be32(tb[IPSET_ATTR_INITVAL])); in IPSET_TOKEN() [all …]
|
/linux/net/netfilter/ipvs/ |
A D | ip_vs_pe_sip.c | 136 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/drivers/clk/ |
A D | clk-bm1880.c | 93 u32 initval; member 190 .div.initval = _initval, \ 607 val = div->initval; in bm1880_clk_div_recalc_rate() 831 div_hws->div.initval = clks->div_initval; in bm1880_clk_register_composite()
|
/linux/drivers/net/wireless/broadcom/b43/ |
A D | phy_g.h | 185 u16 initval; //FIXME rename? member
|
/linux/drivers/iio/proximity/ |
A D | sx9310.c | 1331 const struct sx9310_reg_default *initval; in sx9310_init_device() local 1348 initval = sx9310_get_default_reg(&indio_dev->dev, i, &tmp); in sx9310_init_device() 1349 ret = regmap_write(data->regmap, initval->reg, initval->def); in sx9310_init_device()
|
/linux/arch/um/os-Linux/ |
A D | file.c | 628 int os_eventfd(unsigned int initval, int flags) in os_eventfd() argument 630 int fd = eventfd(initval, flags); in os_eventfd()
|
/linux/net/sunrpc/ |
A D | xprtsock.c | 2137 unsigned long initval; in xs_tcp_set_connect_timeout() local 2144 initval = DIV_ROUND_UP(connect_timeout, to.to_retries + 1); in xs_tcp_set_connect_timeout() 2146 if (initval < XS_TCP_INIT_REEST_TO << 1) in xs_tcp_set_connect_timeout() 2147 initval = XS_TCP_INIT_REEST_TO << 1; in xs_tcp_set_connect_timeout() 2148 to.to_initval = initval; in xs_tcp_set_connect_timeout() 2149 to.to_maxval = initval; in xs_tcp_set_connect_timeout()
|
/linux/arch/um/include/shared/ |
A D | os.h | 180 extern int os_eventfd(unsigned int initval, int flags);
|
/linux/drivers/net/dsa/ |
A D | vitesse-vsc73xx-core.c | 719 u32 initval) in vsc73xx_adjust_enable_port() argument 721 u32 val = initval; in vsc73xx_adjust_enable_port()
|
/linux/drivers/net/wireless/broadcom/b43legacy/ |
A D | b43legacy.h | 508 u16 initval; member
|
A D | phy.c | 1033 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()
|
/linux/sound/pci/oxygen/ |
A D | xonar_wm87x6.c | 978 #define _WM8776_FIELD_CTL(xname, reg, shift, initval, min, max, mask, flags) \ argument 981 .private_value = (initval) | ((min) << 8) | ((max) << 12) | \
|