| /net/ipv4/ |
| A D | tcp_westwood.c | 89 if (w->bw_ns_est == 0 && w->bw_est == 0) { in westwood_filter() 90 w->bw_ns_est = w->bk / delta; in westwood_filter() 91 w->bw_est = w->bw_ns_est; in westwood_filter() 93 w->bw_ns_est = westwood_do_filter(w->bw_ns_est, w->bk / delta); in westwood_filter() 94 w->bw_est = westwood_do_filter(w->bw_est, w->bw_ns_est); in westwood_filter() 151 w->rtt_min = w->rtt; in update_rtt_min() 154 w->rtt_min = min(w->rtt, w->rtt_min); in update_rtt_min() 170 w->bk += tp->snd_una - w->snd_una; in westwood_fast_bw() 197 if (w->accounted >= w->cumul_ack) { in westwood_acked_count() 198 w->accounted -= w->cumul_ack; in westwood_acked_count() [all …]
|
| A D | tcp_cong.c | 469 __bpf_kfunc void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w, u32 acked) in tcp_cong_avoid_ai() argument 472 if (tp->snd_cwnd_cnt >= w) { in tcp_cong_avoid_ai() 478 if (tp->snd_cwnd_cnt >= w) { in tcp_cong_avoid_ai() 479 u32 delta = tp->snd_cwnd_cnt / w; in tcp_cong_avoid_ai() 481 tp->snd_cwnd_cnt -= delta * w; in tcp_cong_avoid_ai()
|
| A D | tcp_bbr.c | 364 u64 w; in bbr_bdp() local 375 w = (u64)bw * bbr->min_rtt_us; in bbr_bdp() 380 bdp = (((w * gain) >> BBR_SCALE) + BW_UNIT - 1) / BW_UNIT; in bbr_bdp()
|
| A D | fib_semantics.c | 829 int w; in fib_rebalance() local 846 w = 0; in fib_rebalance() 856 w += nexthop_nh->fib_nh_weight; in fib_rebalance() 857 upper_bound = DIV_ROUND_CLOSEST_ULL((u64)w << 31, in fib_rebalance()
|
| /net/ipv6/ |
| A D | ip6_fib.c | 610 w->node = w->root; in fib6_dump_table() 611 w->skip = w->count; in fib6_dump_table() 1931 w, w->state, nstate); in fib6_repair_tree() 1940 w, w->state); in fib6_repair_tree() 1944 w, w->state); in fib6_repair_tree() 2171 err = w->func(w); in fib6_walk_continue() 2216 w->node = w->root; in fib6_walk() 2645 iter->w.node = iter->w.root; in ipv6_route_seq_setup_walk() 2680 iter->w.node = iter->w.root; in ipv6_route_check_sernum() 2682 iter->w.skip = iter->w.count; in ipv6_route_check_sernum() [all …]
|
| A D | route.c | 642 container_of(w, struct __rt6_probe_work, work); in rt6_probe_deferred() 5993 struct fib6_nh_exception_dump_walker *w = arg; in rt6_nh_dump_exceptions() local 5994 struct rt6_rtnl_dump_arg *dump = w->dump; in rt6_nh_dump_exceptions() 6005 if (w->skip) { in rt6_nh_dump_exceptions() 6006 w->skip--; in rt6_nh_dump_exceptions() 6022 w->count++; in rt6_nh_dump_exceptions() 6030 dump->cb->nlh->nlmsg_seq, w->flags); in rt6_nh_dump_exceptions() 6034 w->count++; in rt6_nh_dump_exceptions() 6097 &w); in rt6_dump_route() 6099 err = rt6_nh_dump_exceptions(rt->fib6_nh, &w); in rt6_dump_route() [all …]
|
| /net/wireless/ |
| A D | debugfs.c | 133 struct debugfs_read_work *w = container_of(work, typeof(*w), work); in wiphy_locked_debugfs_read_work() local 135 w->ret = w->handler(w->wiphy, w->file, w->buf, w->bufsize, w->data); in wiphy_locked_debugfs_read_work() 136 complete(&w->completion); in wiphy_locked_debugfs_read_work() 142 struct debugfs_read_work *w = data; in wiphy_locked_debugfs_read_cancel() local 144 wiphy_work_cancel(w->wiphy, &w->work); in wiphy_locked_debugfs_read_cancel() 145 complete(&w->completion); in wiphy_locked_debugfs_read_cancel() 213 struct debugfs_write_work *w = container_of(work, typeof(*w), work); in wiphy_locked_debugfs_write_work() local 215 w->ret = w->handler(w->wiphy, w->file, w->buf, w->count, w->data); in wiphy_locked_debugfs_write_work() 216 complete(&w->completion); in wiphy_locked_debugfs_write_work() 224 wiphy_work_cancel(w->wiphy, &w->work); in wiphy_locked_debugfs_write_cancel() [all …]
|
| /net/netfilter/ |
| A D | nf_nat_masquerade.c | 81 struct masq_dev_work *w; in iterate_cleanup_work() local 85 iter_data.net = w->net; in iterate_cleanup_work() 89 put_net_track(w->net, &w->ns_tracker); in iterate_cleanup_work() 90 kfree(w); in iterate_cleanup_work() 106 struct masq_dev_work *w; in nf_nat_masq_schedule() local 118 w = kzalloc(sizeof(*w), gfp_flags); in nf_nat_masq_schedule() 119 if (w) { in nf_nat_masq_schedule() 124 w->ifindex = ifindex; in nf_nat_masq_schedule() 125 w->net = net; in nf_nat_masq_schedule() 127 w->iter = iter; in nf_nat_masq_schedule() [all …]
|
| A D | xt_time.c | 82 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/ |
| A D | utils.c | 127 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 213 *d++ = w & 0xff; in in6_pton() 215 w = 0; in in6_pton() 257 w = (w << 4) | (0xff & c); in in6_pton() [all …]
|
| /net/netfilter/ipvs/ |
| A D | ip_vs_ovf.c | 29 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/ |
| A D | mapper.c | 150 w &= 0xffff; in bucket_list_choose() 156 w = w >> 16; in bucket_list_choose() 200 __u32 w; in bucket_tree_choose() local 865 w->work = v; in crush_init_workspace() 871 w->work[b] = v; in crush_init_workspace() 877 w->work[b]->perm_x = 0; in crush_init_workspace() 878 w->work[b]->perm_n = 0; in crush_init_workspace() 879 w->work[b]->perm = v; in crush_init_workspace() 907 int *w = a; in crush_do_rule() local 1017 bno = -1 - w[i]; in crush_do_rule() [all …]
|
| /net/nfc/hci/ |
| A D | llc_shdlc.c | 40 u8 w; /* window size */ member 98 #define SHDLC_T1_VALUE_MS(w) ((5 * w) / 4) argument 240 msecs_to_jiffies(SHDLC_T1_VALUE_MS(shdlc->w))); in llc_shdlc_rcv_i_frame() 391 u8 w = SHDLC_MAX_WINDOW; in llc_shdlc_rcv_u_frame() local 407 w = skb->data[0]; in llc_shdlc_rcv_u_frame() 413 if ((w <= SHDLC_MAX_WINDOW) && in llc_shdlc_rcv_u_frame() 415 shdlc->w = w; in llc_shdlc_rcv_u_frame() 522 shdlc->w - llc_shdlc_w_used(shdlc->ns, shdlc->dnr), in llc_shdlc_handle_send_queue() 525 while (shdlc->send_q.qlen && shdlc->ack_pending_q.qlen < shdlc->w && in llc_shdlc_handle_send_queue() 742 shdlc->w = SHDLC_MAX_WINDOW; in llc_shdlc_init()
|
| /net/sched/ |
| A D | sch_api.c | 1413 struct qdisc_walker w; member 1428 arg.w.stop = arg.w.skip = arg.w.count = 0; in check_loop() 1429 arg.w.fn = check_loop_fn; in check_loop() 2073 struct tcf_walker w; member 2094 struct qdisc_walker w; member 2101 struct qdisc_walker *w) in tc_bind_class_walker() argument 2311 struct qdisc_walker w; member 2344 arg.w.stop = 0; in tc_dump_tclass_qdisc() 2345 arg.w.skip = cb->args[1]; in tc_dump_tclass_qdisc() 2346 arg.w.count = 0; in tc_dump_tclass_qdisc() [all …]
|
| A D | cls_api.c | 2750 struct tcf_walker w; member 2807 arg.w.fn = tcf_node_dump; in tcf_chain_dump() 2813 arg.w.stop = 0; in tcf_chain_dump() 2814 arg.w.skip = cb->args[1] - 1; in tcf_chain_dump() 2815 arg.w.count = 0; in tcf_chain_dump() 2816 arg.w.cookie = cb->args[2]; in tcf_chain_dump() 2818 tp->ops->walk(tp, &arg.w, true); in tcf_chain_dump() 2819 cb->args[2] = arg.w.cookie; in tcf_chain_dump() 2820 cb->args[1] = arg.w.count + 1; in tcf_chain_dump() 2821 if (arg.w.stop) in tcf_chain_dump()
|
| /net/bridge/netfilter/ |
| A D | ebtables.c | 96 par->target = w->u.watcher; in ebt_do_watcher() 97 par->targinfo = w->data; in ebt_do_watcher() 98 w->u.watcher->target(skb, par); in ebt_do_watcher() 451 w->u.watcher = watcher; in ebt_check_watcher() 454 par->targinfo = w->data; in ebt_check_watcher() 455 ret = xt_check_target(par, w->watcher_size, in ebt_check_watcher() 646 par.target = w->u.watcher; in ebt_cleanup_watcher() 647 par.targinfo = w->data; in ebt_cleanup_watcher() 1473 w->u.watcher->name, w->data, sizeof(*w), in ebt_watcher_to_user() 1474 w->u.watcher->usersize, w->watcher_size, in ebt_watcher_to_user() [all …]
|
| A D | ebt_among.c | 176 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/ |
| A D | netlink.c | 1830 struct work_struct w; member 1836 struct urelease_work *w = container_of(work, struct urelease_work, w); in nfc_urelease_event_work() local 1840 pr_debug("portid %d\n", w->portid); in nfc_urelease_event_work() 1850 if (dev->genl_data.poll_req_portid == w->portid) { in nfc_urelease_event_work() 1864 kfree(w); in nfc_urelease_event_work() 1871 struct urelease_work *w; in nfc_genl_rcv_nl_event() local 1878 w = kmalloc(sizeof(*w), GFP_ATOMIC); in nfc_genl_rcv_nl_event() 1879 if (w) { in nfc_genl_rcv_nl_event() 1880 INIT_WORK(&w->w, nfc_urelease_event_work); in nfc_genl_rcv_nl_event() 1881 w->portid = n->portid; in nfc_genl_rcv_nl_event() [all …]
|
| /net/strparser/ |
| A D | strparser.c | 419 static void strp_work(struct work_struct *w) in strp_work() argument 421 do_strp_work(container_of(w, struct strparser, work)); in strp_work() 424 static void strp_msg_timeout(struct work_struct *w) in strp_msg_timeout() argument 426 struct strparser *strp = container_of(w, struct strparser, in strp_msg_timeout()
|
| /net/tipc/ |
| A D | msg.h | 210 static inline void msg_set_word(struct tipc_msg *m, u32 w, u32 val) in msg_set_word() argument 212 m->hdr[w] = htonl(val); in msg_set_word() 215 static inline u32 msg_bits(struct tipc_msg *m, u32 w, u32 pos, u32 mask) in msg_bits() argument 217 return (msg_word(m, w) >> pos) & mask; in msg_bits() 220 static inline void msg_set_bits(struct tipc_msg *m, u32 w, in msg_set_bits() argument 225 m->hdr[w] &= ~htonl(mask); in msg_set_bits() 226 m->hdr[w] |= htonl(val); in msg_set_bits()
|
| /net/bluetooth/ |
| A D | smp.c | 249 SMP_DBG("w %32phN", w); in smp_f5() 253 err = aes_cmac(tfm_cmac, salt, w, 32, t); in smp_f5() 293 SMP_DBG("w %16phN", w); in smp_f6() 344 SMP_DBG("w %16phN key_id %4phN", w, key_id); in smp_h6() 346 err = aes_cmac(tfm_cmac, w, key_id, 4, res); in smp_h6() 360 SMP_DBG("w %16phN salt %16phN", w, salt); in smp_h7() 362 err = aes_cmac(tfm_cmac, salt, w, 16, res); in smp_h7() 3618 const u8 w[32] = { in test_f5() local 3655 const u8 w[16] = { in test_f6() local 3720 const u8 w[16] = { in test_h6() local [all …]
|
| /net/ceph/ |
| A D | osdmap.c | 326 struct crush_weight_set *w = &arg->weight_set[i]; in decode_choose_arg() local 328 w->weights = decode_array_32_alloc(p, end, &w->size); in decode_choose_arg() 329 if (IS_ERR(w->weights)) { in decode_choose_arg() 330 ret = PTR_ERR(w->weights); in decode_choose_arg() 331 w->weights = NULL; in decode_choose_arg() 1877 u32 w; in decode_new_up_state_weight() local 1881 w = ceph_decode_32(p); in decode_new_up_state_weight() 1884 w == CEPH_OSD_IN ? "(in)" : in decode_new_up_state_weight() 1885 (w == CEPH_OSD_OUT ? "(out)" : "")); in decode_new_up_state_weight() 1886 map->osd_weight[osd] = w; in decode_new_up_state_weight() [all …]
|
| /net/tls/ |
| A D | tls_strp.c | 570 static void tls_strp_work(struct work_struct *w) in tls_strp_work() argument 573 container_of(w, struct tls_strparser, work); in tls_strp_work()
|
| /net/kcm/ |
| A D | kcmsock.c | 301 static void kcm_done_work(struct work_struct *w) in kcm_done_work() argument 303 kcm_done(container_of(w, struct kcm_sock, done_work)); in kcm_done_work() 712 static void kcm_tx_work(struct work_struct *w) in kcm_tx_work() argument 714 struct kcm_sock *kcm = container_of(w, struct kcm_sock, tx_work); in kcm_tx_work()
|
| /net/dsa/ |
| A D | user.c | 1197 static void dsa_user_get_wol(struct net_device *dev, struct ethtool_wolinfo *w) in dsa_user_get_wol() argument 1202 phylink_ethtool_get_wol(dp->pl, w); in dsa_user_get_wol() 1205 ds->ops->get_wol(ds, dp->index, w); in dsa_user_get_wol() 1208 static int dsa_user_set_wol(struct net_device *dev, struct ethtool_wolinfo *w) in dsa_user_set_wol() argument 1214 phylink_ethtool_set_wol(dp->pl, w); in dsa_user_set_wol() 1217 ret = ds->ops->set_wol(ds, dp->index, w); in dsa_user_set_wol()
|