Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 31) sorted by relevance

12

/net/ipv4/
Dtcp_westwood.c63 struct westwood *w = inet_csk_ca(sk); in tcp_westwood_init() local
65 w->bk = 0; in tcp_westwood_init()
66 w->bw_ns_est = 0; in tcp_westwood_init()
67 w->bw_est = 0; in tcp_westwood_init()
68 w->accounted = 0; in tcp_westwood_init()
69 w->cumul_ack = 0; in tcp_westwood_init()
70 w->reset_rtt_min = 1; in tcp_westwood_init()
71 w->rtt_min = w->rtt = TCP_WESTWOOD_INIT_RTT; in tcp_westwood_init()
72 w->rtt_win_sx = tcp_jiffies32; in tcp_westwood_init()
73 w->snd_una = tcp_sk(sk)->snd_una; in tcp_westwood_init()
[all …]
Dtcp_cong.c417 void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w, u32 acked) in tcp_cong_avoid_ai() argument
420 if (tp->snd_cwnd_cnt >= w) { in tcp_cong_avoid_ai()
426 if (tp->snd_cwnd_cnt >= w) { in tcp_cong_avoid_ai()
427 u32 delta = tp->snd_cwnd_cnt / w; in tcp_cong_avoid_ai()
429 tp->snd_cwnd_cnt -= delta * w; in tcp_cong_avoid_ai()
Dtcp_bbr.c361 u64 w; in bbr_bdp() local
372 w = (u64)bw * bbr->min_rtt_us; in bbr_bdp()
377 bdp = (((w * gain) >> BBR_SCALE) + BW_UNIT - 1) / BW_UNIT; in bbr_bdp()
Dfib_semantics.c792 int w; in fib_rebalance() local
809 w = 0; in fib_rebalance()
819 w += nexthop_nh->fib_nh_weight; in fib_rebalance()
820 upper_bound = DIV_ROUND_CLOSEST_ULL((u64)w << 31, in fib_rebalance()
Dnexthop.c689 int w = 0; in nh_group_rebalance() local
699 w += nhge->weight; in nh_group_rebalance()
700 upper_bound = DIV_ROUND_CLOSEST_ULL((u64)w << 31, total) - 1; in nh_group_rebalance()
/net/ipv6/
Dip6_fib.c41 struct fib6_walker w; member
61 static int fib6_walk(struct net *net, struct fib6_walker *w);
62 static int fib6_walk_continue(struct fib6_walker *w);
73 #define FOR_WALKERS(net, w) \ argument
74 list_for_each_entry(w, &(net)->ipv6.fib6_walkers, lh)
76 static void fib6_walker_link(struct net *net, struct fib6_walker *w) in fib6_walker_link() argument
79 list_add(&w->lh, &net->ipv6.fib6_walkers); in fib6_walker_link()
83 static void fib6_walker_unlink(struct net *net, struct fib6_walker *w) in fib6_walker_unlink() argument
86 list_del(&w->lh); in fib6_walker_unlink()
413 static int fib6_node_dump(struct fib6_walker *w) in fib6_node_dump() argument
[all …]
Droute.c614 static void rt6_probe_deferred(struct work_struct *w) in rt6_probe_deferred() argument
618 container_of(w, struct __rt6_probe_work, work); in rt6_probe_deferred()
5642 struct fib6_nh_exception_dump_walker *w = arg; in rt6_nh_dump_exceptions() local
5643 struct rt6_rtnl_dump_arg *dump = w->dump; in rt6_nh_dump_exceptions()
5654 if (w->skip) { in rt6_nh_dump_exceptions()
5655 w->skip--; in rt6_nh_dump_exceptions()
5671 w->count++; in rt6_nh_dump_exceptions()
5675 err = rt6_fill_node(dump->net, dump->skb, w->rt, in rt6_nh_dump_exceptions()
5679 dump->cb->nlh->nlmsg_seq, w->flags); in rt6_nh_dump_exceptions()
5683 w->count++; in rt6_nh_dump_exceptions()
[all …]
/net/netfilter/
Dnf_nat_masquerade.c79 struct masq_dev_work *w; in iterate_cleanup_work() local
81 w = container_of(work, struct masq_dev_work, work); in iterate_cleanup_work()
83 nf_ct_iterate_cleanup_net(w->net, w->iter, (void *)w, 0, 0); in iterate_cleanup_work()
85 put_net(w->net); in iterate_cleanup_work()
86 kfree(w); in iterate_cleanup_work()
102 struct masq_dev_work *w; in nf_nat_masq_schedule() local
114 w = kzalloc(sizeof(*w), gfp_flags); in nf_nat_masq_schedule()
115 if (w) { in nf_nat_masq_schedule()
119 INIT_WORK(&w->work, iterate_cleanup_work); in nf_nat_masq_schedule()
120 w->ifindex = ifindex; in nf_nat_masq_schedule()
[all …]
Dxt_time.c82 unsigned int v, w; in localtime_1() local
87 w = v / 60; in localtime_1()
88 r->minute = w % 60; in localtime_1()
89 r->hour = w / 60; in localtime_1()
110 unsigned int year, i, w = r->dse; in localtime_3() local
120 for (i = 0, year = DSE_FIRST; days_since_epoch[i] > w; in localtime_3()
124 w -= days_since_epoch[i]; in localtime_3()
144 i > 0 && days_since_leapyear[i] > w; --i) in localtime_3()
146 r->monthday = w - days_since_leapyear[i] + 1; in localtime_3()
149 i > 0 && days_since_year[i] > w; --i) in localtime_3()
[all …]
/net/core/
Dutils.c127 int w = 0; in in4_pton() local
141 if (w == 0) in in4_pton()
143 *d++ = w & 0xff; in in4_pton()
144 w = 0; in in4_pton()
153 w = (w * 10) + c; in in4_pton()
154 if ((w & 0xffff) > 255) { in in4_pton()
194 int w = 0; in in6_pton() local
212 *d++ = (w >> 8) & 0xff; in in6_pton()
213 *d++ = w & 0xff; in in6_pton()
215 w = 0; in in6_pton()
[all …]
/net/netfilter/ipvs/
Dip_vs_ovf.c29 int hw = 0, w; in ip_vs_ovf_schedule() local
36 w = atomic_read(&dest->weight); in ip_vs_ovf_schedule()
38 atomic_read(&dest->activeconns) > w || in ip_vs_ovf_schedule()
39 w == 0) in ip_vs_ovf_schedule()
41 if (!h || w > hw) { in ip_vs_ovf_schedule()
43 hw = w; in ip_vs_ovf_schedule()
/net/ceph/crush/
Dmapper.c148 __u64 w = crush_hash32_4(bucket->h.hash, x, bucket->h.items[i], in bucket_list_choose() local
150 w &= 0xffff; in bucket_list_choose()
154 bucket->sum_weights[i], w); in bucket_list_choose()
155 w *= bucket->sum_weights[i]; in bucket_list_choose()
156 w = w >> 16; in bucket_list_choose()
158 if (w < bucket->item_weights[i]) { in bucket_list_choose()
200 __u32 w; in bucket_tree_choose() local
209 w = bucket->node_weights[n]; in bucket_tree_choose()
211 bucket->h.id) * (__u64)w; in bucket_tree_choose()
850 struct crush_work *w = v; in crush_init_workspace() local
[all …]
/net/nfc/hci/
Dllc_shdlc.c40 u8 w; /* window size */ member
98 #define SHDLC_T1_VALUE_MS(w) ((5 * w) / 4) argument
242 msecs_to_jiffies(SHDLC_T1_VALUE_MS(shdlc->w))); in llc_shdlc_rcv_i_frame()
397 u8 w = SHDLC_MAX_WINDOW; in llc_shdlc_rcv_u_frame() local
413 w = skb->data[0]; in llc_shdlc_rcv_u_frame()
419 if ((w <= SHDLC_MAX_WINDOW) && in llc_shdlc_rcv_u_frame()
421 shdlc->w = w; in llc_shdlc_rcv_u_frame()
529 shdlc->w - llc_shdlc_w_used(shdlc->ns, shdlc->dnr), in llc_shdlc_handle_send_queue()
532 while (shdlc->send_q.qlen && shdlc->ack_pending_q.qlen < shdlc->w && in llc_shdlc_handle_send_queue()
759 shdlc->w = SHDLC_MAX_WINDOW; in llc_shdlc_init()
/net/sched/
Dsch_api.c1371 struct qdisc_walker w; member
1377 struct qdisc_walker *w);
1386 arg.w.stop = arg.w.skip = arg.w.count = 0; in check_loop()
1387 arg.w.fn = check_loop_fn; in check_loop()
1390 q->ops->cl_ops->walk(q, &arg.w); in check_loop()
1391 return arg.w.stop ? -ELOOP : 0; in check_loop()
1395 check_loop_fn(struct Qdisc *q, unsigned long cl, struct qdisc_walker *w) in check_loop_fn() argument
1399 struct check_loop_arg *arg = (struct check_loop_arg *)w; in check_loop_fn()
1948 struct tcf_walker w; member
1969 struct qdisc_walker w; member
[all …]
Dcls_api.c2433 struct tcf_walker w; member
2489 arg.w.fn = tcf_node_dump; in tcf_chain_dump()
2495 arg.w.stop = 0; in tcf_chain_dump()
2496 arg.w.skip = cb->args[1] - 1; in tcf_chain_dump()
2497 arg.w.count = 0; in tcf_chain_dump()
2498 arg.w.cookie = cb->args[2]; in tcf_chain_dump()
2499 tp->ops->walk(tp, &arg.w, true); in tcf_chain_dump()
2500 cb->args[2] = arg.w.cookie; in tcf_chain_dump()
2501 cb->args[1] = arg.w.count + 1; in tcf_chain_dump()
2502 if (arg.w.stop) in tcf_chain_dump()
/net/mac80211/
Dmain.c737 int n_suites = 0, r = 0, w = 0; in ieee80211_init_cipher_suites() local
781 suites[w++] = suite; in ieee80211_init_cipher_suites()
828 suites[w++] = WLAN_CIPHER_SUITE_CCMP; in ieee80211_init_cipher_suites()
829 suites[w++] = WLAN_CIPHER_SUITE_CCMP_256; in ieee80211_init_cipher_suites()
830 suites[w++] = WLAN_CIPHER_SUITE_TKIP; in ieee80211_init_cipher_suites()
831 suites[w++] = WLAN_CIPHER_SUITE_GCMP; in ieee80211_init_cipher_suites()
832 suites[w++] = WLAN_CIPHER_SUITE_GCMP_256; in ieee80211_init_cipher_suites()
835 suites[w++] = WLAN_CIPHER_SUITE_WEP40; in ieee80211_init_cipher_suites()
836 suites[w++] = WLAN_CIPHER_SUITE_WEP104; in ieee80211_init_cipher_suites()
840 suites[w++] = WLAN_CIPHER_SUITE_AES_CMAC; in ieee80211_init_cipher_suites()
[all …]
/net/bridge/netfilter/
Debtables.c80 ebt_do_watcher(const struct ebt_entry_watcher *w, struct sk_buff *skb, in ebt_do_watcher() argument
83 par->target = w->u.watcher; in ebt_do_watcher()
84 par->targinfo = w->data; in ebt_do_watcher()
85 w->u.watcher->target(skb, par); in ebt_do_watcher()
391 ebt_check_watcher(struct ebt_entry_watcher *w, struct xt_tgchk_param *par, in ebt_check_watcher() argument
396 size_t left = ((char *)e + e->target_offset) - (char *)w; in ebt_check_watcher()
400 left - sizeof(struct ebt_entry_watcher) < w->watcher_size) in ebt_check_watcher()
403 watcher = xt_request_find_target(NFPROTO_BRIDGE, w->u.name, 0); in ebt_check_watcher()
412 w->u.watcher = watcher; in ebt_check_watcher()
415 par->targinfo = w->data; in ebt_check_watcher()
[all …]
Debt_among.c176 static bool poolsize_invalid(const struct ebt_mac_wormhash *w) in poolsize_invalid() argument
178 return w && w->poolsize >= (INT_MAX / sizeof(struct ebt_mac_wormhash_tuple)); in poolsize_invalid()
/net/nfc/
Dnetlink.c1822 struct work_struct w; member
1828 struct urelease_work *w = container_of(work, struct urelease_work, w); in nfc_urelease_event_work() local
1832 pr_debug("portid %d\n", w->portid); in nfc_urelease_event_work()
1842 if (dev->genl_data.poll_req_portid == w->portid) { in nfc_urelease_event_work()
1856 kfree(w); in nfc_urelease_event_work()
1863 struct urelease_work *w; in nfc_genl_rcv_nl_event() local
1870 w = kmalloc(sizeof(*w), GFP_ATOMIC); in nfc_genl_rcv_nl_event()
1871 if (w) { in nfc_genl_rcv_nl_event()
1872 INIT_WORK((struct work_struct *) w, nfc_urelease_event_work); in nfc_genl_rcv_nl_event()
1873 w->portid = n->portid; in nfc_genl_rcv_nl_event()
[all …]
/net/strparser/
Dstrparser.c413 static void strp_work(struct work_struct *w) in strp_work() argument
415 do_strp_work(container_of(w, struct strparser, work)); in strp_work()
418 static void strp_msg_timeout(struct work_struct *w) in strp_msg_timeout() argument
420 struct strparser *strp = container_of(w, struct strparser, in strp_msg_timeout()
/net/tipc/
Dmsg.h163 static inline void msg_set_word(struct tipc_msg *m, u32 w, u32 val) in msg_set_word() argument
165 m->hdr[w] = htonl(val); in msg_set_word()
168 static inline u32 msg_bits(struct tipc_msg *m, u32 w, u32 pos, u32 mask) in msg_bits() argument
170 return (msg_word(m, w) >> pos) & mask; in msg_bits()
173 static inline void msg_set_bits(struct tipc_msg *m, u32 w, in msg_set_bits() argument
178 m->hdr[w] &= ~htonl(mask); in msg_set_bits()
179 m->hdr[w] |= htonl(val); in msg_set_bits()
/net/ceph/
Dosdmap.c237 struct crush_weight_set *w = &arg->weight_set[i]; in decode_choose_arg() local
239 w->weights = decode_array_32_alloc(p, end, &w->size); in decode_choose_arg()
240 if (IS_ERR(w->weights)) { in decode_choose_arg()
241 ret = PTR_ERR(w->weights); in decode_choose_arg()
242 w->weights = NULL; in decode_choose_arg()
1669 u32 w; in decode_new_up_state_weight() local
1673 w = ceph_decode_32(p); in decode_new_up_state_weight()
1675 pr_info("osd%d weight 0x%x %s\n", osd, w, in decode_new_up_state_weight()
1676 w == CEPH_OSD_IN ? "(in)" : in decode_new_up_state_weight()
1677 (w == CEPH_OSD_OUT ? "(out)" : "")); in decode_new_up_state_weight()
[all …]
/net/bluetooth/
Dsmp.c236 static int smp_f5(struct crypto_shash *tfm_cmac, const u8 w[32], in smp_f5()
253 SMP_DBG("w %32phN", w); in smp_f5()
257 err = aes_cmac(tfm_cmac, salt, w, 32, t); in smp_f5()
289 static int smp_f6(struct crypto_shash *tfm_cmac, const u8 w[16], in smp_f6()
297 SMP_DBG("w %16phN", w); in smp_f6()
308 err = aes_cmac(tfm_cmac, w, m, sizeof(m), res); in smp_f6()
343 static int smp_h6(struct crypto_shash *tfm_cmac, const u8 w[16], in smp_h6()
348 SMP_DBG("w %16phN key_id %4phN", w, key_id); in smp_h6()
350 err = aes_cmac(tfm_cmac, w, key_id, 4, res); in smp_h6()
359 static int smp_h7(struct crypto_shash *tfm_cmac, const u8 w[16], in smp_h7()
[all …]
/net/dsa/
Dslave.c709 static void dsa_slave_get_wol(struct net_device *dev, struct ethtool_wolinfo *w) in dsa_slave_get_wol() argument
714 phylink_ethtool_get_wol(dp->pl, w); in dsa_slave_get_wol()
717 ds->ops->get_wol(ds, dp->index, w); in dsa_slave_get_wol()
720 static int dsa_slave_set_wol(struct net_device *dev, struct ethtool_wolinfo *w) in dsa_slave_set_wol() argument
726 phylink_ethtool_set_wol(dp->pl, w); in dsa_slave_set_wol()
729 ret = ds->ops->set_wol(ds, dp->index, w); in dsa_slave_set_wol()
/net/kcm/
Dkcmsock.c298 static void kcm_done_work(struct work_struct *w) in kcm_done_work() argument
300 kcm_done(container_of(w, struct kcm_sock, done_work)); in kcm_done_work()
726 static void kcm_tx_work(struct work_struct *w) in kcm_tx_work() argument
728 struct kcm_sock *kcm = container_of(w, struct kcm_sock, tx_work); in kcm_tx_work()

12