| /net/netfilter/ |
| A D | nft_hash.c | 22 u32 seed; member 34 h = reciprocal_scale(jhash(data, priv->len, priv->seed), in nft_jhash_eval() 107 priv->seed = ntohl(nla_get_be32(tb[NFTA_HASH_SEED])); in nft_jhash_init() 110 get_random_bytes(&priv->seed, sizeof(priv->seed)); in nft_jhash_init() 156 nla_put_be32(skb, NFTA_HASH_SEED, htonl(priv->seed))) in nft_jhash_dump()
|
| A D | nft_set_hash.c | 44 static inline u32 nft_rhash_key(const void *data, u32 len, u32 seed) in nft_rhash_key() argument 48 return jhash(arg->key, len, seed); in nft_rhash_key() 51 static inline u32 nft_rhash_obj(const void *data, u32 len, u32 seed) in nft_rhash_obj() argument 55 return jhash(nft_set_ext_key(&he->ext), len, seed); in nft_rhash_obj() 493 u32 seed; member 514 hash = jhash(key, set->klen, priv->seed); in nft_hash_lookup() 533 hash = jhash(elem->key.val.data, set->klen, priv->seed); in nft_hash_get() 554 hash = jhash_1word(k1, priv->seed); in nft_hash_lookup_fast() 573 hash = jhash_1word(k1, priv->seed); in nft_jhash() 575 hash = jhash(key, set->klen, priv->seed); in nft_jhash() [all …]
|
| A D | nf_flow_table_core.c | 266 static u32 flow_offload_hash(const void *data, u32 len, u32 seed) in flow_offload_hash() argument 270 return jhash(tuple, offsetof(struct flow_offload_tuple, __hash), seed); in flow_offload_hash() 273 static u32 flow_offload_hash_obj(const void *data, u32 len, u32 seed) in flow_offload_hash_obj() argument 277 return jhash(&tuplehash->tuple, offsetof(struct flow_offload_tuple, __hash), seed); in flow_offload_hash_obj()
|
| A D | nf_tables_api.c | 49 static u32 nft_chain_hash(const void *data, u32 len, u32 seed); 50 static u32 nft_chain_hash_obj(const void *data, u32 len, u32 seed); 53 static u32 nft_objname_hash(const void *data, u32 len, u32 seed); 54 static u32 nft_objname_hash_obj(const void *data, u32 len, u32 seed); 1489 static u32 nft_chain_hash(const void *data, u32 len, u32 seed) in nft_chain_hash() argument 1493 return jhash(name, strlen(name), seed); in nft_chain_hash() 1500 return nft_chain_hash(chain->name, 0, seed); in nft_chain_hash_obj() 1512 static u32 nft_objname_hash(const void *data, u32 len, u32 seed) in nft_objname_hash() argument 1516 seed ^= hash_ptr(k->table, 32); in nft_objname_hash() 1518 return jhash(k->name, strlen(k->name), seed); in nft_objname_hash() [all …]
|
| /net/ceph/ |
| A D | debugfs.c | 97 pg->pgid.seed); in osdmap_show() 108 pg->pgid.seed, pg->primary_temp.osd); in osdmap_show() 115 pg->pgid.seed); in osdmap_show() 126 pg->pgid.seed); in osdmap_show() 178 seq_printf(s, "%llu.%x", spgid->pgid.pool, spgid->pgid.seed); in dump_spgid() 187 seq_printf(s, "osd%d\t%llu.%x\t", t->osd, t->pgid.pool, t->pgid.seed); in dump_target()
|
| A D | osdmap.c | 683 if (lhs->seed < rhs->seed) in ceph_pg_compare() 685 if (lhs->seed > rhs->seed) in ceph_pg_compare() 2297 WARN_ON(pgid->seed >= old_pg_num); in ceph_pg_is_split() 2303 u32 s = next_bit | pgid->seed; in ceph_pg_is_split() 2305 if (s < old_pg_num || s == pgid->seed) in ceph_pg_is_split() 2311 if (s == pgid->seed) in ceph_pg_is_split() 2405 raw_pgid->pool, raw_pgid->seed); in __ceph_object_locator_to_pg() 2423 raw_pgid->pool, raw_pgid->seed); in __ceph_object_locator_to_pg() 2451 pgid->seed = ceph_stable_mod(raw_pgid->seed, pi->pg_num, in raw_pg_to_pg() 2466 ceph_stable_mod(raw_pgid->seed, in raw_pg_to_pps() [all …]
|
| A D | osd_client.c | 1638 last_pgid.seed = ceph_stable_mod(pgid.seed, t->pg_num, t->pg_num_mask); in calc_target() 1999 hoid->hash = t->pgid.seed; in hoid_fill_from_target() 2030 backoff->spgid.pgid.seed, backoff->spgid.shard, backoff->id); in should_plug_request() 2115 ceph_encode_32(p, pgid->seed); in encode_pgid() 2159 ceph_encode_32(&p, req->r_t.pgid.seed); /* raw hash */ in encode_request_partial() 2284 pgid.seed = le32_to_cpu(head.hash); in encode_request_finish() 2340 req->r_t.spgid.pgid.pool, req->r_t.spgid.pgid.seed, in send_request() 3781 __func__, req, req->r_tid, m.flags, m.pgid.pool, m.pgid.seed, in handle_reply() 3826 req->r_t.pgid.seed = 0; in handle_reply() 4464 m->spgid.pgid.seed, m->spgid.shard, m->id); in handle_backoff_unblock() [all …]
|
| /net/ieee802154/6lowpan/ |
| A D | reassembly.c | 493 static u32 lowpan_key_hashfn(const void *data, u32 len, u32 seed) in lowpan_key_hashfn() argument 496 sizeof(struct frag_lowpan_compare_key) / sizeof(u32), seed); in lowpan_key_hashfn() 499 static u32 lowpan_obj_hashfn(const void *data, u32 len, u32 seed) in lowpan_obj_hashfn() argument 504 sizeof(struct frag_lowpan_compare_key) / sizeof(u32), seed); in lowpan_obj_hashfn()
|
| /net/sctp/ |
| A D | input.c | 826 const union sctp_addr *paddr, __u32 seed) in sctp_hashfn() argument 831 addr = jhash(&paddr->v6.sin6_addr, 16, seed); in sctp_hashfn() 836 (__force __u32)lport, net_hash_mix(net), seed); in sctp_hashfn() 908 static inline __u32 sctp_hash_obj(const void *data, u32 len, u32 seed) in sctp_hash_obj() argument 914 &t->ipaddr, seed); in sctp_hash_obj() 917 static inline __u32 sctp_hash_key(const void *data, u32 len, u32 seed) in sctp_hash_key() argument 921 return sctp_hashfn(x->net, x->lport, x->paddr, seed); in sctp_hash_key()
|
| /net/sunrpc/auth_gss/ |
| A D | gss_krb5_internal.h | 141 u32 usage, u8 seed, gfp_t gfp_mask) in krb5_derive_key() argument 152 label_data[4] = seed; in krb5_derive_key()
|
| /net/ipv4/ |
| A D | ip_fragment.c | 711 static u32 ip4_key_hashfn(const void *data, u32 len, u32 seed) in ip4_key_hashfn() argument 714 sizeof(struct frag_v4_compare_key) / sizeof(u32), seed); in ip4_key_hashfn() 717 static u32 ip4_obj_hashfn(const void *data, u32 len, u32 seed) in ip4_obj_hashfn() argument 722 sizeof(struct frag_v4_compare_key) / sizeof(u32), seed); in ip4_obj_hashfn()
|
| /net/sched/ |
| A D | sch_netem.c | 112 u64 seed; member 1114 q->prng.seed = nla_get_u64(tb[TCA_NETEM_PRNG_SEED]); in netem_change() 1116 q->prng.seed = get_random_u64(); in netem_change() 1117 prandom_seed_state(&q->prng.prng_state, q->prng.seed); in netem_change() 1282 if (nla_put_u64_64bit(skb, TCA_NETEM_PRNG_SEED, q->prng.seed, in netem_dump()
|
| /net/mac80211/ |
| A D | mesh_pathtbl.c | 22 static u32 mesh_table_hash(const void *addr, u32 len, u32 seed) in mesh_table_hash() argument 25 return jhash_1word(get_unaligned((u32 *)((u8 *)addr + 2)), seed); in mesh_table_hash()
|
| /net/core/ |
| A D | xdp.c | 40 static u32 xdp_mem_id_hashfn(const void *data, u32 len, u32 seed) in xdp_mem_id_hashfn() argument
|
| A D | filter.c | 2029 __be32 *, to, u32, to_size, __wsum, seed) in BPF_CALL_5() argument 2040 __wsum ret = seed; in BPF_CALL_5()
|
| /net/xfrm/ |
| A D | xfrm_policy.c | 1492 static u32 xfrm_pol_bin_key(const void *data, u32 len, u32 seed) in xfrm_pol_bin_key() argument 1498 seed); in xfrm_pol_bin_key() 1501 static u32 xfrm_pol_bin_obj(const void *data, u32 len, u32 seed) in xfrm_pol_bin_obj() argument 1505 return xfrm_pol_bin_key(&b->k, 0, seed); in xfrm_pol_bin_obj()
|
| /net/netlink/ |
| A D | af_netlink.c | 2872 static inline u32 netlink_hash(const void *data, u32 len, u32 seed) in netlink_hash() argument 2878 return jhash2((u32 *)&arg, netlink_compare_arg_len / sizeof(u32), seed); in netlink_hash()
|