Searched refs:cnt (Results 1 - 25 of 31) sorted by relevance

12

/net/ipv4/
H A Dtcp_bic.c50 u32 cnt; /* increase cwnd by 1 after ACKs */ member in struct:bictcp
62 ca->cnt = 0;
98 ca->cnt = cwnd;
109 ca->cnt = cwnd / max_increment;
112 ca->cnt = (cwnd * smooth_part) / BICTCP_B;
115 ca->cnt = cwnd / dist;
120 ca->cnt = (cwnd * smooth_part) / BICTCP_B;
123 ca->cnt = (cwnd * (BICTCP_B-1))
127 ca->cnt = cwnd / max_increment;
132 if (ca->cnt > 2
200 bictcp_acked(struct sock *sk, u32 cnt, s32 rtt) argument
[all...]
H A Dtcp_vegas.h20 void tcp_vegas_pkts_acked(struct sock *sk, u32 cnt, s32 rtt_us);
H A Dtcp_cubic.c84 u32 cnt; /* increase cwnd by 1 after ACKs */ member in struct:bictcp
109 ca->cnt = 0;
274 ca->cnt = cwnd / (bic_target - cwnd);
276 ca->cnt = 100 * cwnd; /* very small increment*/
283 if (ca->last_max_cwnd == 0 && ca->cnt > 20)
284 ca->cnt = 20; /* increase cwnd 5% per RTT */
299 if (ca->cnt > max_cnt)
300 ca->cnt = max_cnt;
304 ca->cnt = (ca->cnt << ACK_RATIO_SHIF
399 bictcp_acked(struct sock *sk, u32 cnt, s32 rtt_us) argument
[all...]
H A Dtcp_probe.c205 size_t cnt = 0; local
210 while (cnt < len) {
229 if (cnt + width < len)
236 if (cnt + width >= len)
239 if (copy_to_user(buf + cnt, tbuf, width))
241 cnt += width;
244 return cnt == 0 ? error : cnt;
H A Dtcp_veno.c72 static void tcp_veno_pkts_acked(struct sock *sk, u32 cnt, s32 rtt_us) argument
H A Dinetpeer.c389 int cnt = 0; local
413 cnt++;
416 return cnt;
H A Dtcp_vegas.c110 void tcp_vegas_pkts_acked(struct sock *sk, u32 cnt, s32 rtt_us) argument
H A Dtcp_westwood.c102 static void tcp_westwood_pkts_acked(struct sock *sk, u32 cnt, s32 rtt) argument
H A Dtcp_input.c1044 int cnt = 0; local
1058 if (cnt == tp->retrans_out)
1086 cnt += tcp_skb_pcount(skb);
1257 /* Lost marker hint past SACKed? Tweak RFC3517 cnt */
2219 int cnt, oldcnt; local
2228 cnt = tp->lost_cnt_hint;
2234 cnt = 0;
2243 tp->lost_cnt_hint = cnt;
2248 oldcnt = cnt;
2251 cnt
[all...]
/net/dccp/
H A Dprobe.c121 int error = 0, cnt = 0; local
139 cnt = kfifo_out_locked(&dccpw.fifo, tbuf, len, &dccpw.lock);
140 error = copy_to_user(buf, tbuf, cnt) ? -EFAULT : 0;
145 return error ? error : cnt;
/net/wimax/
H A Dstack.c451 unsigned int cnt, total; local
453 for (total = cnt = 0; cnt < addr_len; cnt++)
455 "%02x%c", addr[cnt],
456 cnt == addr_len - 1 ? '\0' : ':');
/net/sctp/
H A Dprobe.c96 int error = 0, cnt = 0; local
114 cnt = kfifo_out_locked(&sctpw.fifo, tbuf, len, &sctpw.lock);
115 error = copy_to_user(buf, tbuf, cnt) ? -EFAULT : 0;
120 return error ? error : cnt;
H A Dsocket.c455 int cnt; local
465 for (cnt = 0; cnt < addrcnt; cnt++) {
484 if (cnt > 0)
485 sctp_bindx_rem(sk, addrs, cnt);
631 int cnt; local
642 for (cnt = 0; cnt < addrcnt; cnt
4796 int cnt = 0; local
4848 int cnt = 0; local
4893 int cnt = 0; local
5257 int cnt = 0; local
[all...]
/net/mac80211/
H A Dkey.h110 int cnt; member in struct:ieee80211_key::__anon82
H A Ddebugfs_key.c253 key->debugfs.cnt = keycount;
311 sprintf(buf, "../keys/%d", key->debugfs.cnt);
325 sprintf(buf, "../keys/%d", key->debugfs.cnt);
343 sprintf(buf, "../keys/%d", key->debugfs.cnt);
/net/bridge/
H A Dbr_if.c168 u32 cnt = 0; local
172 cnt++;
174 if (br->auto_cnt != cnt) {
175 br->auto_cnt = cnt;
/net/bluetooth/
H A Dhci_core.c4754 int cnt, q; local
4758 cnt = hdev->acl_cnt;
4762 cnt = hdev->sco_cnt;
4765 cnt = hdev->le_mtu ? hdev->le_cnt : hdev->acl_cnt;
4768 cnt = 0;
4772 q = cnt / num;
4809 int cnt, q, conn_num = 0; local
4861 cnt = hdev->acl_cnt;
4864 cnt = hdev->block_cnt;
4868 cnt
4940 __check_timeout(struct hci_dev *hdev, unsigned int cnt) argument
4953 unsigned int cnt = hdev->acl_cnt; local
4991 unsigned int cnt = hdev->block_cnt; local
5118 int quote, cnt, tmp; local
[all...]
/net/bridge/netfilter/
H A Debtables.c360 unsigned int *cnt)
385 (*cnt)++;
391 unsigned int *cnt)
416 (*cnt)++;
495 unsigned int *n, unsigned int *cnt,
509 if (*n != *cnt) {
530 *cnt = 0;
545 (*cnt)++;
624 ebt_cleanup_entry(struct ebt_entry *e, struct net *net, unsigned int *cnt) argument
632 if (cnt
359 ebt_check_match(struct ebt_entry_match *m, struct xt_mtchk_param *par, unsigned int *cnt) argument
390 ebt_check_watcher(struct ebt_entry_watcher *w, struct xt_tgchk_param *par, unsigned int *cnt) argument
493 ebt_check_entry_size_and_hooks(const struct ebt_entry *e, const struct ebt_table_info *newinfo, unsigned int *n, unsigned int *cnt, unsigned int *totalcnt, unsigned int *udc_cnt) argument
649 ebt_check_entry(struct ebt_entry *e, struct net *net, const struct ebt_table_info *newinfo, const char *name, unsigned int *cnt, struct ebt_cl_stack *cl_s, unsigned int udc_cnt) argument
[all...]
/net/ipv4/netfilter/
H A Dnf_nat_snmp_basic.c213 unsigned char ch, cnt; local
226 cnt = ch & 0x7F;
229 while (cnt > 0) {
234 cnt--;
/net/tipc/
H A Dbcast.c946 int cnt = pl_ptr->count; local
948 for (; ; cnt -= item_sz, item = item->next) {
949 if (cnt < PLSIZE)
950 item_sz = cnt;
/net/netfilter/
H A Dnf_conntrack_core.c727 unsigned int i = 0, cnt = 0; local
752 cnt++;
758 if (ct || cnt >= NF_CT_EVICTION_RANGE)
1440 int cnt = 0, cpu; local
1445 cnt += atomic_read(&ct->ct_general.use) - 1;
1447 return cnt;
/net/llc/
H A Dllc_conn.c645 u16 cnt = 0; local
650 ++cnt;
651 return cnt;
974 printk(KERN_DEBUG "Destruction of LLC sock %p delayed in %s, cnt=%d\n",
/net/sunrpc/
H A Drpcb_clnt.c166 int cnt; local
172 cnt = sn->rpcb_users;
175 return cnt;
/net/wireless/
H A Dcore.c417 u32 cnt = 0; local
469 cnt += c->limits[j].max;
479 if (WARN_ON(cnt < c->max_interfaces))
/net/sched/
H A Dcls_u32.c958 __u32 cnt = *per_cpu_ptr(n->pcpu_success, cpum); local
960 mark.success += cnt;

Completed in 315 milliseconds

12