/net/ipv4/ |
D | tcp_bic.c | 52 u32 cnt; /* increase cwnd by 1 after ACKs */ member 64 ca->cnt = 0; in bictcp_reset() 97 ca->cnt = cwnd; in bictcp_update() 108 ca->cnt = cwnd / max_increment; in bictcp_update() 111 ca->cnt = (cwnd * smooth_part) / BICTCP_B; in bictcp_update() 114 ca->cnt = cwnd / dist; in bictcp_update() 119 ca->cnt = (cwnd * smooth_part) / BICTCP_B; in bictcp_update() 122 ca->cnt = (cwnd * (BICTCP_B-1)) in bictcp_update() 126 ca->cnt = cwnd / max_increment; in bictcp_update() 131 if (ca->cnt > 20) /* increase cwnd 5% per RTT */ in bictcp_update() [all …]
|
D | tcp_cubic.c | 81 u32 cnt; /* increase cwnd by 1 after ACKs */ member 104 ca->cnt = 0; in bictcp_reset() 256 ca->cnt = cwnd / (bic_target - cwnd); in bictcp_update() 258 ca->cnt = 100 * cwnd; /* very small increment*/ in bictcp_update() 273 if (ca->cnt > max_cnt) in bictcp_update() 274 ca->cnt = max_cnt; in bictcp_update() 278 ca->cnt = (ca->cnt << ACK_RATIO_SHIFT) / ca->delayed_ack; in bictcp_update() 279 if (ca->cnt == 0) /* cannot be zero */ in bictcp_update() 280 ca->cnt = 1; in bictcp_update() 301 if (tp->snd_cwnd_cnt >= ca->cnt) { in bictcp_cong_avoid() [all …]
|
D | tcp_probe.c | 168 int error = 0, cnt = 0; in tcpprobe_read() local 173 while (cnt < len) { in tcpprobe_read() 192 if (cnt + width < len) in tcpprobe_read() 199 if (cnt + width >= len) in tcpprobe_read() 202 if (copy_to_user(buf + cnt, tbuf, width)) in tcpprobe_read() 204 cnt += width; in tcpprobe_read() 207 return cnt == 0 ? error : cnt; in tcpprobe_read()
|
D | tcp_cong.c | 306 int cnt; /* increase in packets */ in tcp_slow_start() local 319 cnt = sysctl_tcp_max_ssthresh >> 1; /* limited slow start */ in tcp_slow_start() 321 cnt = tp->snd_cwnd; /* exponential increase */ in tcp_slow_start() 327 cnt <<= 1; in tcp_slow_start() 330 tp->snd_cwnd_cnt += cnt; in tcp_slow_start()
|
D | tcp_vegas.h | 20 extern void tcp_vegas_pkts_acked(struct sock *sk, u32 cnt, s32 rtt_us);
|
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 | 111 void tcp_vegas_pkts_acked(struct sock *sk, u32 cnt, s32 rtt_us) in tcp_vegas_pkts_acked() argument
|
D | tcp_westwood.c | 103 static void tcp_westwood_pkts_acked(struct sock *sk, u32 cnt, s32 rtt) in tcp_westwood_pkts_acked() argument
|
D | tcp_input.c | 1159 int cnt = 0; in tcp_mark_lost_retrans() local 1173 if (cnt == tp->retrans_out) in tcp_mark_lost_retrans() 1193 cnt += tcp_skb_pcount(skb); in tcp_mark_lost_retrans() 2463 int cnt, oldcnt; in tcp_mark_head_lost() local 2470 cnt = tp->lost_cnt_hint; in tcp_mark_head_lost() 2473 cnt = 0; in tcp_mark_head_lost() 2482 tp->lost_cnt_hint = cnt; in tcp_mark_head_lost() 2487 oldcnt = cnt; in tcp_mark_head_lost() 2490 cnt += tcp_skb_pcount(skb); in tcp_mark_head_lost() 2492 if (cnt > packets) { in tcp_mark_head_lost() [all …]
|
/net/wimax/ |
D | stack.c | 410 unsigned cnt, total; in wimax_addr_scnprint() local 411 for (total = cnt = 0; cnt < addr_len; cnt++) in wimax_addr_scnprint() 413 "%02x%c", addr[cnt], in wimax_addr_scnprint() 414 cnt == addr_len - 1 ? '\0' : ':'); in wimax_addr_scnprint() 550 int result, cnt; in wimax_subsys_init() local 562 for (cnt = 0; cnt < ARRAY_SIZE(wimax_gnl_ops); cnt++) { in wimax_subsys_init() 564 wimax_gnl_ops[cnt]); in wimax_subsys_init() 566 "%u: %d\n", wimax_gnl_ops[cnt]->cmd, result); in wimax_subsys_init() 570 wimax_gnl_ops[cnt]->cmd, result); in wimax_subsys_init() 583 for (cnt--; cnt >= 0; cnt--) in wimax_subsys_init() [all …]
|
/net/wanrouter/ |
D | wanmain.c | 308 int cnt = skb->data[0] ? 0 : 1; /* there may be a pad present */ 311 switch (skb->data[cnt]) { 314 cnt += 1; 318 if (memcmp(&skb->data[cnt + 1], wanrouter_oui_ether, 323 skb->data[cnt+1], skb->data[cnt+2], 324 skb->data[cnt+3], dev->name); 327 ethertype = *((__be16*)&skb->data[cnt+4]); 328 cnt += 6; 336 wanrouter_modname, skb->data[cnt], dev->name); 341 skb_pull(skb, cnt);
|
/net/tipc/ |
D | bcast.h | 154 int cnt = pl_ptr->count; in tipc_port_list_add() local 156 for (; ; cnt -= item_sz, item = item->next) { in tipc_port_list_add() 157 if (cnt < PLSIZE) in tipc_port_list_add() 158 item_sz = cnt; in tipc_port_list_add()
|
D | msg.h | 767 int dsz, sz, hsz, pos, res, cnt; in msg_build() local 787 for (res = 1, cnt = 0; res && (cnt < num_sect); cnt++) { in msg_build() 790 msg_sect[cnt].iov_base, in msg_build() 791 msg_sect[cnt].iov_len); in msg_build() 794 msg_sect[cnt].iov_base, in msg_build() 795 msg_sect[cnt].iov_len); in msg_build() 796 pos += msg_sect[cnt].iov_len; in msg_build()
|
D | node.c | 601 u32 cnt = 0; in tipc_available_nodes() local 608 cnt++; in tipc_available_nodes() 611 return cnt; in tipc_available_nodes()
|
D | port.c | 168 int cnt = 0; in tipc_port_recv_mcast() local 192 for (; cnt < dp->count; cnt++) { in tipc_port_recv_mcast() 193 int index = cnt % PLSIZE; in tipc_port_recv_mcast() 201 if ((index == 0) && (cnt != 0)) { in tipc_port_recv_mcast()
|
D | name_table.c | 153 static struct sub_seq *tipc_subseq_alloc(u32 cnt) in tipc_subseq_alloc() argument 155 struct sub_seq *sseq = kcalloc(cnt, sizeof(struct sub_seq), GFP_ATOMIC); in tipc_subseq_alloc()
|
/net/dccp/ |
D | probe.c | 121 int error = 0, cnt = 0; in dccpprobe_read() local 139 cnt = kfifo_get(dccpw.fifo, tbuf, len); 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/sctp/ |
D | socket.c | 462 int cnt; in sctp_bindx_add() local 472 for (cnt = 0; cnt < addrcnt; cnt++) { in sctp_bindx_add() 491 if (cnt > 0) in sctp_bindx_add() 492 sctp_bindx_rem(sk, addrs, cnt); in sctp_bindx_add() 624 int cnt; in sctp_bindx_rem() local 635 for (cnt = 0; cnt < addrcnt; cnt++) { in sctp_bindx_rem() 676 if (cnt > 0) in sctp_bindx_rem() 677 sctp_bindx_add(sk, addrs, cnt); in sctp_bindx_rem() 4314 int cnt = 0; in sctp_getsockopt_peer_addrs_num_old() local 4330 cnt ++; in sctp_getsockopt_peer_addrs_num_old() [all …]
|
/net/bridge/netfilter/ |
D | ebtables.c | 327 unsigned int *cnt) in ebt_check_match() argument 355 (*cnt)++; in ebt_check_match() 361 unsigned int *cnt) in ebt_check_watcher() argument 390 (*cnt)++; in ebt_check_watcher() 467 unsigned int *n, unsigned int *cnt, in ebt_check_entry_size_and_hooks() argument 481 if (*n != *cnt) { in ebt_check_entry_size_and_hooks() 502 *cnt = 0; in ebt_check_entry_size_and_hooks() 517 (*cnt)++; in ebt_check_entry_size_and_hooks() 594 ebt_cleanup_entry(struct ebt_entry *e, unsigned int *cnt) in ebt_cleanup_entry() argument 602 if (cnt && (*cnt)-- == 0) in ebt_cleanup_entry() [all …]
|
/net/mac80211/ |
D | key.h | 119 int cnt; member
|
D | debugfs_key.c | 197 key->debugfs.cnt = keycount; in ieee80211_debugfs_key_add() 266 sprintf(buf, "../keys/%d", key->debugfs.cnt); in ieee80211_debugfs_key_add_default()
|
/net/ipv4/netfilter/ |
D | nf_nat_snmp_basic.c | 210 unsigned char ch, cnt; in asn1_length_decode() local 223 cnt = ch & 0x7F; in asn1_length_decode() 226 while (cnt > 0) { in asn1_length_decode() 231 cnt--; in asn1_length_decode()
|
/net/llc/ |
D | llc_conn.c | 589 u16 cnt = 0; in llc_find_next_offset() local 594 ++cnt; in llc_find_next_offset() 595 return cnt; in llc_find_next_offset()
|
/net/netfilter/ |
D | nf_conntrack_core.c | 434 unsigned int i, cnt = 0; in early_drop() local 444 cnt++; in early_drop() 449 if (ct || cnt >= NF_CT_EVICTION_RANGE) in early_drop()
|
/net/bluetooth/ |
D | hci_core.c | 1299 int cnt = (type == ACL_LINK ? hdev->acl_cnt : hdev->sco_cnt); in hci_low_sent() local 1300 int q = cnt / num; in hci_low_sent()
|