Home
last modified time | relevance | path

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

12

/net/ipv4/
Dtcp_westwood.c62 struct westwood *w = inet_csk_ca(sk); in tcp_westwood_init() local
64 w->bk = 0; in tcp_westwood_init()
65 w->bw_ns_est = 0; in tcp_westwood_init()
66 w->bw_est = 0; in tcp_westwood_init()
67 w->accounted = 0; in tcp_westwood_init()
68 w->cumul_ack = 0; in tcp_westwood_init()
69 w->reset_rtt_min = 1; in tcp_westwood_init()
70 w->rtt_min = w->rtt = TCP_WESTWOOD_INIT_RTT; in tcp_westwood_init()
71 w->rtt_win_sx = tcp_time_stamp; in tcp_westwood_init()
72 w->snd_una = tcp_sk(sk)->snd_una; in tcp_westwood_init()
[all …]
Dtcp_cong.c389 void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w, u32 acked) in tcp_cong_avoid_ai() argument
392 if (tp->snd_cwnd_cnt >= w) { in tcp_cong_avoid_ai()
398 if (tp->snd_cwnd_cnt >= w) { in tcp_cong_avoid_ai()
399 u32 delta = tp->snd_cwnd_cnt / w; in tcp_cong_avoid_ai()
401 tp->snd_cwnd_cnt -= delta * w; in tcp_cong_avoid_ai()
Dtcp_bbr.c305 u64 w; in bbr_target_cwnd() local
316 w = (u64)bw * bbr->min_rtt_us; in bbr_target_cwnd()
319 cwnd = (((w * gain) >> BBR_SCALE) + BW_UNIT - 1) / BW_UNIT; in bbr_target_cwnd()
Dfib_semantics.c542 int w; in fib_rebalance() local
563 w = 0; in fib_rebalance()
576 w += nexthop_nh->nh_weight; in fib_rebalance()
577 upper_bound = DIV_ROUND_CLOSEST_ULL((u64)w << 31, in fib_rebalance()
/net/ipv6/
Dip6_fib.c51 struct fib6_walker w; member
67 static int fib6_walk(struct net *net, struct fib6_walker *w);
68 static int fib6_walk_continue(struct fib6_walker *w);
79 #define FOR_WALKERS(net, w) \ argument
80 list_for_each_entry(w, &(net)->ipv6.fib6_walkers, lh)
82 static void fib6_walker_link(struct net *net, struct fib6_walker *w) in fib6_walker_link() argument
85 list_add(&w->lh, &net->ipv6.fib6_walkers); in fib6_walker_link()
89 static void fib6_walker_unlink(struct net *net, struct fib6_walker *w) in fib6_walker_unlink() argument
92 list_del(&w->lh); in fib6_walker_unlink()
326 static int fib6_dump_node(struct fib6_walker *w) in fib6_dump_node() argument
[all …]
/net/ipv6/netfilter/
Dnf_nat_masquerade_ipv6.c93 struct masq_dev_work *w; in iterate_cleanup_work() local
96 w = container_of(work, struct masq_dev_work, work); in iterate_cleanup_work()
98 index = w->ifindex; in iterate_cleanup_work()
99 nf_ct_iterate_cleanup(w->net, device_cmp, (void *)index, 0, 0); in iterate_cleanup_work()
101 put_net(w->net); in iterate_cleanup_work()
102 kfree(w); in iterate_cleanup_work()
126 struct masq_dev_work *w; in masq_inet_event() local
141 w = kmalloc(sizeof(*w), GFP_ATOMIC); in masq_inet_event()
142 if (w) { in masq_inet_event()
145 INIT_WORK(&w->work, iterate_cleanup_work); in masq_inet_event()
[all …]
/net/netfilter/
Dxt_time.c79 unsigned int v, w; in localtime_1() local
84 w = v / 60; in localtime_1()
85 r->minute = w % 60; in localtime_1()
86 r->hour = w / 60; in localtime_1()
107 unsigned int year, i, w = r->dse; in localtime_3() local
117 for (i = 0, year = DSE_FIRST; days_since_epoch[i] > w; in localtime_3()
121 w -= days_since_epoch[i]; in localtime_3()
141 i > 0 && days_since_leapyear[i] > w; --i) in localtime_3()
143 r->monthday = w - days_since_leapyear[i] + 1; in localtime_3()
146 i > 0 && days_since_year[i] > w; --i) in localtime_3()
[all …]
/net/core/
Dutils.c129 int w = 0; in in4_pton() local
143 if (w == 0) in in4_pton()
145 *d++ = w & 0xff; in in4_pton()
146 w = 0; in in4_pton()
155 w = (w * 10) + c; in in4_pton()
156 if ((w & 0xffff) > 255) { in in4_pton()
196 int w = 0; in in6_pton() local
214 *d++ = (w >> 8) & 0xff; in in6_pton()
215 *d++ = w & 0xff; in in6_pton()
217 w = 0; in in6_pton()
[all …]
/net/netfilter/ipvs/
Dip_vs_ovf.c34 int hw = 0, w; in ip_vs_ovf_schedule() local
41 w = atomic_read(&dest->weight); in ip_vs_ovf_schedule()
43 atomic_read(&dest->activeconns) > w || in ip_vs_ovf_schedule()
44 w == 0) in ip_vs_ovf_schedule()
46 if (!h || w > hw) { in ip_vs_ovf_schedule()
48 hw = w; in ip_vs_ovf_schedule()
/net/ceph/crush/
Dmapper.c146 __u64 w = crush_hash32_4(bucket->h.hash, x, bucket->h.items[i], in bucket_list_choose() local
148 w &= 0xffff; in bucket_list_choose()
152 bucket->sum_weights[i], w); in bucket_list_choose()
153 w *= bucket->sum_weights[i]; in bucket_list_choose()
154 w = w >> 16; in bucket_list_choose()
156 if (w < bucket->item_weights[i]) in bucket_list_choose()
197 __u32 w; in bucket_tree_choose() local
206 w = bucket->node_weights[n]; in bucket_tree_choose()
208 bucket->h.id) * (__u64)w; in bucket_tree_choose()
307 unsigned int w; in bucket_straw2_choose() local
[all …]
/net/nfc/hci/
Dllc_shdlc.c51 u8 w; /* window size */ member
109 #define SHDLC_T1_VALUE_MS(w) ((5 * w) / 4) argument
253 msecs_to_jiffies(SHDLC_T1_VALUE_MS(shdlc->w))); in llc_shdlc_rcv_i_frame()
408 u8 w = SHDLC_MAX_WINDOW; in llc_shdlc_rcv_u_frame() local
424 w = skb->data[0]; in llc_shdlc_rcv_u_frame()
430 if ((w <= SHDLC_MAX_WINDOW) && in llc_shdlc_rcv_u_frame()
432 shdlc->w = w; in llc_shdlc_rcv_u_frame()
540 shdlc->w - llc_shdlc_w_used(shdlc->ns, shdlc->dnr), in llc_shdlc_handle_send_queue()
543 while (shdlc->send_q.qlen && shdlc->ack_pending_q.qlen < shdlc->w && in llc_shdlc_handle_send_queue()
778 shdlc->w = SHDLC_MAX_WINDOW; in llc_shdlc_init()
/net/mac80211/
Dmain.c678 int n_suites = 0, r = 0, w = 0; in ieee80211_init_cipher_suites() local
722 suites[w++] = suite; in ieee80211_init_cipher_suites()
769 suites[w++] = WLAN_CIPHER_SUITE_CCMP; in ieee80211_init_cipher_suites()
770 suites[w++] = WLAN_CIPHER_SUITE_CCMP_256; in ieee80211_init_cipher_suites()
771 suites[w++] = WLAN_CIPHER_SUITE_TKIP; in ieee80211_init_cipher_suites()
772 suites[w++] = WLAN_CIPHER_SUITE_GCMP; in ieee80211_init_cipher_suites()
773 suites[w++] = WLAN_CIPHER_SUITE_GCMP_256; in ieee80211_init_cipher_suites()
776 suites[w++] = WLAN_CIPHER_SUITE_WEP40; in ieee80211_init_cipher_suites()
777 suites[w++] = WLAN_CIPHER_SUITE_WEP104; in ieee80211_init_cipher_suites()
781 suites[w++] = WLAN_CIPHER_SUITE_AES_CMAC; in ieee80211_init_cipher_suites()
[all …]
/net/sched/
Dcls_api.c449 struct tcf_walker w; member
531 arg.w.fn = tcf_node_dump; in tc_dump_tfilter()
534 arg.w.stop = 0; in tc_dump_tfilter()
535 arg.w.skip = cb->args[1] - 1; in tc_dump_tfilter()
536 arg.w.count = 0; in tc_dump_tfilter()
537 tp->ops->walk(tp, &arg.w); in tc_dump_tfilter()
538 cb->args[1] = arg.w.count + 1; in tc_dump_tfilter()
539 if (arg.w.stop) in tc_dump_tfilter()
Dsch_api.c1075 struct qdisc_walker w; member
1081 struct qdisc_walker *w);
1090 arg.w.stop = arg.w.skip = arg.w.count = 0; in check_loop()
1091 arg.w.fn = check_loop_fn; in check_loop()
1094 q->ops->cl_ops->walk(q, &arg.w); in check_loop()
1095 return arg.w.stop ? -ELOOP : 0; in check_loop()
1099 check_loop_fn(struct Qdisc *q, unsigned long cl, struct qdisc_walker *w) in check_loop_fn() argument
1103 struct check_loop_arg *arg = (struct check_loop_arg *)w; in check_loop_fn()
1745 struct qdisc_walker w; member
1775 arg.w.fn = qdisc_class_dump; in tc_dump_tclass_qdisc()
[all …]
/net/tipc/
Dmsg.h123 static inline void msg_set_word(struct tipc_msg *m, u32 w, u32 val) in msg_set_word() argument
125 m->hdr[w] = htonl(val); in msg_set_word()
128 static inline u32 msg_bits(struct tipc_msg *m, u32 w, u32 pos, u32 mask) in msg_bits() argument
130 return (msg_word(m, w) >> pos) & mask; in msg_bits()
133 static inline void msg_set_bits(struct tipc_msg *m, u32 w, in msg_set_bits() argument
138 m->hdr[w] &= ~htonl(mask); in msg_set_bits()
139 m->hdr[w] |= htonl(val); in msg_set_bits()
/net/bridge/netfilter/
Debtables.c88 ebt_do_watcher(const struct ebt_entry_watcher *w, struct sk_buff *skb, in ebt_do_watcher() argument
91 par->target = w->u.watcher; in ebt_do_watcher()
92 par->targinfo = w->data; in ebt_do_watcher()
93 w->u.watcher->target(skb, par); in ebt_do_watcher()
394 ebt_check_watcher(struct ebt_entry_watcher *w, struct xt_tgchk_param *par, in ebt_check_watcher() argument
399 size_t left = ((char *)e + e->target_offset) - (char *)w; in ebt_check_watcher()
403 left - sizeof(struct ebt_entry_watcher) < w->watcher_size) in ebt_check_watcher()
406 watcher = xt_request_find_target(NFPROTO_BRIDGE, w->u.name, 0); in ebt_check_watcher()
409 w->u.watcher = watcher; in ebt_check_watcher()
412 par->targinfo = w->data; in ebt_check_watcher()
[all …]
Debt_among.c175 static bool poolsize_invalid(const struct ebt_mac_wormhash *w) in poolsize_invalid() argument
177 return w && w->poolsize >= (INT_MAX / sizeof(struct ebt_mac_wormhash_tuple)); in poolsize_invalid()
/net/nfc/
Dnetlink.c1761 struct work_struct w; member
1767 struct urelease_work *w = container_of(work, struct urelease_work, w); in nfc_urelease_event_work() local
1771 pr_debug("portid %d\n", w->portid); in nfc_urelease_event_work()
1781 if (dev->genl_data.poll_req_portid == w->portid) { in nfc_urelease_event_work()
1795 kfree(w); in nfc_urelease_event_work()
1802 struct urelease_work *w; in nfc_genl_rcv_nl_event() local
1809 w = kmalloc(sizeof(*w), GFP_ATOMIC); in nfc_genl_rcv_nl_event()
1810 if (w) { in nfc_genl_rcv_nl_event()
1811 INIT_WORK((struct work_struct *) w, nfc_urelease_event_work); in nfc_genl_rcv_nl_event()
1812 w->portid = n->portid; in nfc_genl_rcv_nl_event()
[all …]
/net/bluetooth/
Dsmp.c238 static int smp_f5(struct crypto_shash *tfm_cmac, const u8 w[32], in smp_f5()
255 SMP_DBG("w %32phN", w); in smp_f5()
259 err = aes_cmac(tfm_cmac, salt, w, 32, t); in smp_f5()
291 static int smp_f6(struct crypto_shash *tfm_cmac, const u8 w[16], in smp_f6()
299 SMP_DBG("w %16phN", w); in smp_f6()
310 err = aes_cmac(tfm_cmac, w, m, sizeof(m), res); in smp_f6()
345 static int smp_h6(struct crypto_shash *tfm_cmac, const u8 w[16], in smp_h6()
350 SMP_DBG("w %16phN key_id %4phN", w, key_id); in smp_h6()
352 err = aes_cmac(tfm_cmac, w, key_id, 4, res); in smp_h6()
3551 const u8 w[32] = { in test_f5() local
[all …]
/net/strparser/
Dstrparser.c412 static void strp_rx_work(struct work_struct *w) in strp_rx_work() argument
414 do_strp_rx_work(container_of(w, struct strparser, rx_work)); in strp_rx_work()
/net/decnet/
Ddn_fib.c460 int w; in dn_fib_select_multipath() local
479 w = jiffies % fi->fib_power; in dn_fib_select_multipath()
483 if ((w -= nh->nh_power) <= 0) { in dn_fib_select_multipath()
/net/ceph/
Dosdmap.c1296 u32 w; in decode_new_up_state_weight() local
1300 w = ceph_decode_32(p); in decode_new_up_state_weight()
1302 pr_info("osd%d weight 0x%x %s\n", osd, w, in decode_new_up_state_weight()
1303 w == CEPH_OSD_IN ? "(in)" : in decode_new_up_state_weight()
1304 (w == CEPH_OSD_OUT ? "(out)" : "")); in decode_new_up_state_weight()
1305 map->osd_weight[osd] = w; in decode_new_up_state_weight()
1311 if (w) { in decode_new_up_state_weight()
/net/dsa/
Dslave.c883 static void dsa_slave_get_wol(struct net_device *dev, struct ethtool_wolinfo *w) in dsa_slave_get_wol() argument
889 ds->ops->get_wol(ds, p->port, w); in dsa_slave_get_wol()
892 static int dsa_slave_set_wol(struct net_device *dev, struct ethtool_wolinfo *w) in dsa_slave_set_wol() argument
899 ret = ds->ops->set_wol(ds, p->port, w); in dsa_slave_set_wol()
/net/sunrpc/xprtrdma/
Drpc_rdma.c818 __be32 *w = (__be32 *) cur_wchunk; in rpcrdma_count_chunks() local
819 if (*w++ != xdr_zero) in rpcrdma_count_chunks()
821 cur_wchunk = (struct rpcrdma_write_chunk *) w; in rpcrdma_count_chunks()
/net/irda/
Dirlap_frame.c1149 int w, x, y, z; in irlap_recv_frmr_frame() local
1167 w = frame[3] & 0x01; in irlap_recv_frmr_frame()
1172 if (w) { in irlap_recv_frmr_frame()

12