/net/ipv4/ |
D | tcp_bic.c | 50 u32 cnt; /* increase cwnd by 1 after ACKs */ member 62 ca->cnt = 0; in bictcp_reset() 98 ca->cnt = cwnd; in bictcp_update() 109 ca->cnt = cwnd / max_increment; in bictcp_update() 112 ca->cnt = (cwnd * smooth_part) / BICTCP_B; in bictcp_update() 115 ca->cnt = cwnd / dist; in bictcp_update() 120 ca->cnt = (cwnd * smooth_part) / BICTCP_B; in bictcp_update() 123 ca->cnt = (cwnd * (BICTCP_B-1)) in bictcp_update() 127 ca->cnt = cwnd / max_increment; in bictcp_update() 132 if (ca->cnt > 20) /* increase cwnd 5% per RTT */ in bictcp_update() [all …]
|
D | tcp_cubic.c | 84 u32 cnt; /* increase cwnd by 1 after ACKs */ member 107 ca->cnt = 0; in bictcp_reset() 299 ca->cnt = cwnd / (bic_target - cwnd); in bictcp_update() 301 ca->cnt = 100 * cwnd; /* very small increment*/ in bictcp_update() 308 if (ca->last_max_cwnd == 0 && ca->cnt > 20) in bictcp_update() 309 ca->cnt = 20; /* increase cwnd 5% per RTT */ in bictcp_update() 325 if (ca->cnt > max_cnt) in bictcp_update() 326 ca->cnt = max_cnt; in bictcp_update() 333 ca->cnt = max(ca->cnt, 2U); in bictcp_update() 350 tcp_cong_avoid_ai(tp, ca->cnt, acked); in bictcp_cong_avoid() [all …]
|
D | tcp_probe.c | 205 size_t cnt = 0; in tcpprobe_read() local 210 while (cnt < len) { in tcpprobe_read() 229 if (cnt + width < len) in tcpprobe_read() 236 if (cnt + width >= len) in tcpprobe_read() 239 if (copy_to_user(buf + cnt, tbuf, width)) in tcpprobe_read() 241 cnt += width; in tcpprobe_read() 244 return cnt == 0 ? error : cnt; in tcpprobe_read()
|
D | tcp_vegas.h | 20 void tcp_vegas_pkts_acked(struct sock *sk, u32 cnt, s32 rtt_us);
|
D | inetpeer.c | 373 int cnt = 0; in inet_peer_gc() local 397 cnt++; in inet_peer_gc() 400 return cnt; in inet_peer_gc()
|
D | tcp_veno.c | 72 static void tcp_veno_pkts_acked(struct sock *sk, u32 cnt, s32 rtt_us) in tcp_veno_pkts_acked() argument
|
D | tcp_vegas.c | 110 void tcp_vegas_pkts_acked(struct sock *sk, u32 cnt, s32 rtt_us) in tcp_vegas_pkts_acked() argument
|
D | tcp_westwood.c | 102 static void tcp_westwood_pkts_acked(struct sock *sk, u32 cnt, s32 rtt) in tcp_westwood_pkts_acked() argument
|
/net/netfilter/ipvs/ |
D | ip_vs_est.c | 74 conns = s->cnt.conns; in ip_vs_read_cpu_stats() 75 inpkts = s->cnt.inpkts; in ip_vs_read_cpu_stats() 76 outpkts = s->cnt.outpkts; in ip_vs_read_cpu_stats() 77 inbytes = s->cnt.inbytes; in ip_vs_read_cpu_stats() 78 outbytes = s->cnt.outbytes; in ip_vs_read_cpu_stats() 89 sum->conns = s->cnt.conns; in ip_vs_read_cpu_stats() 90 sum->inpkts = s->cnt.inpkts; in ip_vs_read_cpu_stats() 91 sum->outpkts = s->cnt.outpkts; in ip_vs_read_cpu_stats() 92 sum->inbytes = s->cnt.inbytes; in ip_vs_read_cpu_stats() 93 sum->outbytes = s->cnt.outbytes; in ip_vs_read_cpu_stats()
|
D | ip_vs_core.c | 123 s->cnt.inpkts++; in ip_vs_in_stats() 124 s->cnt.inbytes += skb->len; in ip_vs_in_stats() 131 s->cnt.inpkts++; in ip_vs_in_stats() 132 s->cnt.inbytes += skb->len; in ip_vs_in_stats() 138 s->cnt.inpkts++; in ip_vs_in_stats() 139 s->cnt.inbytes += skb->len; in ip_vs_in_stats() 157 s->cnt.outpkts++; in ip_vs_out_stats() 158 s->cnt.outbytes += skb->len; in ip_vs_out_stats() 165 s->cnt.outpkts++; in ip_vs_out_stats() 166 s->cnt.outbytes += skb->len; in ip_vs_out_stats() [all …]
|
/net/sched/ |
D | cls_flower.c | 359 #define FL_KEY_SET(keys, cnt, id, member) \ argument 361 keys[cnt].key_id = id; \ 362 keys[cnt].offset = FL_KEY_MEMBER_OFFSET(member); \ 363 cnt++; \ 366 #define FL_KEY_SET_IF_MASKED(mask, keys, cnt, id, member) \ argument 369 FL_KEY_SET(keys, cnt, id, member); \ 376 size_t cnt = 0; in fl_init_dissector() local 378 FL_KEY_SET(keys, cnt, FLOW_DISSECTOR_KEY_CONTROL, control); in fl_init_dissector() 379 FL_KEY_SET(keys, cnt, FLOW_DISSECTOR_KEY_BASIC, basic); in fl_init_dissector() 380 FL_KEY_SET_IF_MASKED(&mask->key, keys, cnt, in fl_init_dissector() [all …]
|
/net/dccp/ |
D | probe.c | 121 int error = 0, cnt = 0; in dccpprobe_read() local 139 cnt = kfifo_out_locked(&dccpw.fifo, tbuf, len, &dccpw.lock); in dccpprobe_read() 140 error = copy_to_user(buf, tbuf, cnt) ? -EFAULT : 0; in dccpprobe_read() 145 return error ? error : cnt; in dccpprobe_read()
|
/net/wimax/ |
D | stack.c | 451 unsigned int cnt, total; in wimax_addr_scnprint() local 453 for (total = cnt = 0; cnt < addr_len; cnt++) in wimax_addr_scnprint() 455 "%02x%c", addr[cnt], in wimax_addr_scnprint() 456 cnt == addr_len - 1 ? '\0' : ':'); in wimax_addr_scnprint()
|
/net/sctp/ |
D | probe.c | 96 int error = 0, cnt = 0; in sctpprobe_read() local 114 cnt = kfifo_out_locked(&sctpw.fifo, tbuf, len, &sctpw.lock); in sctpprobe_read() 115 error = copy_to_user(buf, tbuf, cnt) ? -EFAULT : 0; in sctpprobe_read() 120 return error ? error : cnt; in sctpprobe_read()
|
D | socket.c | 498 int cnt; in sctp_bindx_add() local 508 for (cnt = 0; cnt < addrcnt; cnt++) { in sctp_bindx_add() 527 if (cnt > 0) in sctp_bindx_add() 528 sctp_bindx_rem(sk, addrs, cnt); in sctp_bindx_add() 674 int cnt; in sctp_bindx_rem() local 685 for (cnt = 0; cnt < addrcnt; cnt++) { in sctp_bindx_rem() 730 if (cnt > 0) in sctp_bindx_rem() 731 sctp_bindx_add(sk, addrs, cnt); in sctp_bindx_rem() 4849 int cnt = 0; in sctp_getsockopt_peer_addrs() local 4883 cnt++; in sctp_getsockopt_peer_addrs() [all …]
|
/net/bluetooth/ |
D | hci_core.c | 3879 int cnt, q; in hci_low_sent() local 3883 cnt = hdev->acl_cnt; in hci_low_sent() 3887 cnt = hdev->sco_cnt; in hci_low_sent() 3890 cnt = hdev->le_mtu ? hdev->le_cnt : hdev->acl_cnt; in hci_low_sent() 3893 cnt = 0; in hci_low_sent() 3897 q = cnt / num; in hci_low_sent() 3934 int cnt, q, conn_num = 0; in hci_chan_sent() local 3986 cnt = hdev->acl_cnt; in hci_chan_sent() 3989 cnt = hdev->block_cnt; in hci_chan_sent() 3993 cnt = hdev->sco_cnt; in hci_chan_sent() [all …]
|
/net/bridge/ |
D | br_if.c | 169 u32 cnt = 0; in nbp_update_port_count() local 173 cnt++; in nbp_update_port_count() 175 if (br->auto_cnt != cnt) { in nbp_update_port_count() 176 br->auto_cnt = cnt; in nbp_update_port_count()
|
/net/mac80211/ |
D | debugfs_key.c | 339 key->debugfs.cnt = keycount; in ieee80211_debugfs_key_add() 394 sprintf(buf, "../keys/%d", key->debugfs.cnt); in ieee80211_debugfs_key_update_default() 406 sprintf(buf, "../keys/%d", key->debugfs.cnt); in ieee80211_debugfs_key_update_default() 424 sprintf(buf, "../keys/%d", key->debugfs.cnt); in ieee80211_debugfs_key_add_mgmt_default()
|
D | key.h | 122 int cnt; member
|
/net/core/ |
D | filter.c | 207 u32 cnt; in convert_bpf_extensions() local 221 cnt = convert_skb_access(SKF_AD_PKTTYPE, BPF_REG_A, BPF_REG_CTX, insn); in convert_bpf_extensions() 222 insn += cnt - 1; in convert_bpf_extensions() 246 cnt = convert_skb_access(SKF_AD_MARK, BPF_REG_A, BPF_REG_CTX, insn); in convert_bpf_extensions() 247 insn += cnt - 1; in convert_bpf_extensions() 258 cnt = convert_skb_access(SKF_AD_QUEUE, BPF_REG_A, BPF_REG_CTX, insn); in convert_bpf_extensions() 259 insn += cnt - 1; in convert_bpf_extensions() 263 cnt = convert_skb_access(SKF_AD_VLAN_TAG, in convert_bpf_extensions() 265 insn += cnt - 1; in convert_bpf_extensions() 269 cnt = convert_skb_access(SKF_AD_VLAN_TAG_PRESENT, in convert_bpf_extensions() [all …]
|
/net/bridge/netfilter/ |
D | ebtables.c | 362 unsigned int *cnt) in ebt_check_match() argument 387 (*cnt)++; in ebt_check_match() 393 unsigned int *cnt) in ebt_check_watcher() argument 424 (*cnt)++; in ebt_check_watcher() 503 unsigned int *n, unsigned int *cnt, in ebt_check_entry_size_and_hooks() argument 517 if (*n != *cnt) { in ebt_check_entry_size_and_hooks() 538 *cnt = 0; in ebt_check_entry_size_and_hooks() 553 (*cnt)++; in ebt_check_entry_size_and_hooks() 632 ebt_cleanup_entry(struct ebt_entry *e, struct net *net, unsigned int *cnt) in ebt_cleanup_entry() argument 640 if (cnt && (*cnt)-- == 0) in ebt_cleanup_entry() [all …]
|
/net/ipv4/netfilter/ |
D | nf_nat_snmp_basic.c | 213 unsigned char ch, cnt; in asn1_length_decode() local 226 cnt = ch & 0x7F; in asn1_length_decode() 229 while (cnt > 0) { in asn1_length_decode() 234 cnt--; in asn1_length_decode()
|
/net/netfilter/ |
D | nf_conntrack_core.c | 791 unsigned int i = 0, cnt = 0; in early_drop() local 816 cnt++; in early_drop() 822 if (ct || cnt >= NF_CT_EVICTION_RANGE) in early_drop() 1496 int cnt = 0, cpu; in untrack_refs() local 1501 cnt += atomic_read(&ct->ct_general.use) - 1; in untrack_refs() 1503 return cnt; in untrack_refs()
|
/net/llc/ |
D | llc_conn.c | 626 u16 cnt = 0; in llc_find_next_offset() local 631 ++cnt; in llc_find_next_offset() 632 return cnt; in llc_find_next_offset()
|
/net/sunrpc/ |
D | rpcb_clnt.c | 166 int cnt; in rpcb_get_local() local 172 cnt = sn->rpcb_users; in rpcb_get_local() 175 return cnt; in rpcb_get_local()
|