Searched refs:reciprocal_scale (Results 1 - 17 of 17) sorted by relevance

/linux-4.1.27/net/netfilter/
H A Dxt_cluster.c59 return reciprocal_scale(hash, info->total_nodes); xt_cluster_hash()
H A Dxt_HMARK.c129 return reciprocal_scale(hash, info->hmodulus) + info->hoffset; hmark_hash()
H A Dnf_nat_core.c130 return reciprocal_scale(hash, net->ct.nat_htable_size); hash_by_src()
278 htonl(minip + reciprocal_scale(j, dist)); find_best_ips_proto()
H A Dnf_conntrack_expect.c87 return reciprocal_scale(hash, nf_ct_expect_hsize); nf_ct_expect_dst_hash()
H A Dxt_hashlimit.c138 return reciprocal_scale(hash, ht->cfg.size); hash_dst()
H A Dnf_conntrack_core.c145 return reciprocal_scale(hash, size); __hash_bucket()
/linux-4.1.27/net/core/
H A Dflow_dissector.c356 return (u16) reciprocal_scale(skb_get_hash(skb), qcount) + qoffset; __skb_tx_hash()
437 queue_index = map->queues[reciprocal_scale(skb_get_hash(skb), get_xps_queue()
H A Ddev.c3206 tcpu = map->cpus[reciprocal_scale(hash, map->len)]; get_rps_cpu()
/linux-4.1.27/net/ipv6/
H A Dinet6_hashtables.c151 if (reciprocal_scale(phash, matches) == 0) inet6_lookup_listener()
H A Dudp.c258 if (reciprocal_scale(hash, matches) == 0) udp6_lib_lookup2()
338 if (reciprocal_scale(hash, matches) == 0) __udp6_lib_lookup()
/linux-4.1.27/include/net/
H A Dcodel.h217 return t + reciprocal_scale(interval, rec_inv_sqrt << REC_INV_SQRT_SHIFT); codel_control_law()
/linux-4.1.27/net/ipv4/
H A Dinet_hashtables.c235 if (reciprocal_scale(phash, matches) == 0) __inet_lookup_listener()
H A Dudp.c229 first = reciprocal_scale(rand, remaining) + low; udp_lib_get_port()
465 if (reciprocal_scale(hash, matches) == 0) udp4_lib_lookup2()
546 if (reciprocal_scale(hash, matches) == 0) __udp4_lib_lookup()
/linux-4.1.27/net/sched/
H A Dsch_fq_codel.c81 return reciprocal_scale(hash, q->flows_cnt); fq_codel_hash()
/linux-4.1.27/include/linux/
H A Dkernel.h227 * reciprocal_scale - "scale" a value into range [0, ep_ro)
240 static inline u32 reciprocal_scale(u32 val, u32 ep_ro) reciprocal_scale() function
/linux-4.1.27/net/ipv4/netfilter/
H A Dipt_CLUSTERIP.c288 return reciprocal_scale(hashval, config->num_total_nodes) + 1; clusterip_hashfn()
/linux-4.1.27/net/packet/
H A Daf_packet.c1279 return reciprocal_scale(skb_get_hash(skb), num); fanout_demux_hash()

Completed in 2164 milliseconds