| /net/ipv4/ |
| A D | tcp_bic.c | 62 ca->cnt = 0; in bictcp_reset() 97 ca->cnt = cwnd; in bictcp_update() 108 ca->cnt = cwnd / max_increment; in bictcp_update() 114 ca->cnt = cwnd / dist; in bictcp_update() 122 ca->cnt = (cwnd * (BICTCP_B-1)) in bictcp_update() 126 ca->cnt = cwnd / max_increment; in bictcp_update() 132 ca->cnt = 20; in bictcp_update() 135 ca->cnt = (ca->cnt << ACK_RATIO_SHIFT) / ca->delayed_ack; in bictcp_update() 136 if (ca->cnt == 0) /* cannot be zero */ in bictcp_update() 137 ca->cnt = 1; in bictcp_update() [all …]
|
| A D | tcp_cubic.c | 87 u32 cnt; /* increase cwnd by 1 after ACKs */ member 287 ca->cnt = cwnd / (bic_target - cwnd); in bictcp_update() 289 ca->cnt = 100 * cwnd; /* very small increment*/ in bictcp_update() 296 if (ca->last_max_cwnd == 0 && ca->cnt > 20) in bictcp_update() 297 ca->cnt = 20; /* increase cwnd 5% per RTT */ in bictcp_update() 313 if (ca->cnt > max_cnt) in bictcp_update() 314 ca->cnt = max_cnt; in bictcp_update() 321 ca->cnt = max(ca->cnt, 2U); in bictcp_update() 338 tcp_cong_avoid_ai(tp, ca->cnt, acked); in cubictcp_cong_avoid()
|
| A D | tcp_sigpool.c | 38 unsigned int cnt; member 47 while (stf->cnt--) in free_old_scratches() 48 kfree(stf->scratches[stf->cnt]); in free_old_scratches() 69 stf->cnt = 0; in sigpool_reserve_scratch() 88 stf->scratches[stf->cnt++] = old_scratch; in sigpool_reserve_scratch()
|
| A D | tcp_nv.c | 184 u32 cnt; in tcpnv_cong_avoid() local 200 cnt = tcp_snd_cwnd(tp) << -ca->cwnd_growth_factor; in tcpnv_cong_avoid() 201 tcp_cong_avoid_ai(tp, cnt, acked); in tcpnv_cong_avoid() 203 cnt = max(4U, tcp_snd_cwnd(tp) >> ca->cwnd_growth_factor); in tcpnv_cong_avoid() 204 tcp_cong_avoid_ai(tp, cnt, acked); in tcpnv_cong_avoid()
|
| /net/ethtool/ |
| A D | fec.c | 18 u8 cnt; member 78 grp->cnt = stats->total != ETHTOOL_STAT_NOT_SET; in fec_stats_recalc() 82 grp->cnt = 1; in fec_stats_recalc() 89 grp->stats[grp->cnt++] = stats->lanes[i]; in fec_stats_recalc() 176 sizeof(u64) * data->corr.cnt, in fec_put_stats() 179 sizeof(u64) * data->uncorr.cnt, in fec_put_stats() 182 sizeof(u64) * data->corr_bits.cnt, in fec_put_stats()
|
| /net/xdp/ |
| A D | xsk_queue.h | 224 static inline void xskq_cons_release_n(struct xsk_queue *q, u32 cnt) in xskq_cons_release_n() argument 226 q->cached_cons += cnt; in xskq_cons_release_n() 334 static inline void xskq_cons_cancel_n(struct xsk_queue *q, u32 cnt) in xskq_cons_cancel_n() argument 336 q->cached_cons -= cnt; in xskq_cons_cancel_n() 366 static inline void xskq_prod_cancel_n(struct xsk_queue *q, u32 cnt) in xskq_prod_cancel_n() argument 368 q->cached_prod -= cnt; in xskq_prod_cancel_n()
|
| /net/sched/ |
| A D | cls_flower.c | 2154 keys[cnt].key_id = id; \ 2156 cnt++; \ 2169 size_t cnt = 0; in fl_init_dissector() local 2171 FL_KEY_SET_IF_MASKED(mask, keys, cnt, in fl_init_dissector() 2175 FL_KEY_SET_IF_MASKED(mask, keys, cnt, in fl_init_dissector() 2177 FL_KEY_SET_IF_MASKED(mask, keys, cnt, in fl_init_dissector() 2179 FL_KEY_SET_IF_MASKED(mask, keys, cnt, in fl_init_dissector() 2181 FL_KEY_SET_IF_MASKED(mask, keys, cnt, in fl_init_dissector() 2183 FL_KEY_SET_IF_MASKED(mask, keys, cnt, in fl_init_dissector() 2185 FL_KEY_SET_IF_MASKED(mask, keys, cnt, in fl_init_dissector() [all …]
|
| A D | sch_dualpi2.c | 458 int cnt, byte_len, orig_len; in dualpi2_qdisc_enqueue() local 466 cnt = 1; in dualpi2_qdisc_enqueue() 488 ++cnt; in dualpi2_qdisc_enqueue() 492 if (cnt > 1) { in dualpi2_qdisc_enqueue() 496 --cnt; in dualpi2_qdisc_enqueue() 499 qdisc_tree_reduce_backlog(sch, -cnt, -byte_len); in dualpi2_qdisc_enqueue()
|
| /net/bluetooth/ |
| A D | hci_core.c | 3379 int cnt, q; in hci_quote_sent() local 3406 cnt = 0; in hci_quote_sent() 3410 q = cnt / num; in hci_quote_sent() 3615 int quote, *cnt; in hci_sched_sco() local 3627 cnt = &pkts; in hci_sched_sco() 3639 (*cnt)--; in hci_sched_sco() 3720 tmp = *cnt; in hci_sched_le() 3736 (*cnt)--; in hci_sched_le() 3746 if (*cnt != tmp) in hci_sched_le() 3755 int quote, *cnt; in hci_sched_iso() local [all …]
|
| /net/bridge/ |
| A D | br_vlan_options.c | 539 u32 cnt; in br_vlan_process_global_one_opts() local 541 cnt = nla_get_u32(tb[BRIDGE_VLANDB_GOPTS_MCAST_LAST_MEMBER_CNT]); in br_vlan_process_global_one_opts() 542 v->br_mcast_ctx.multicast_last_member_count = cnt; in br_vlan_process_global_one_opts() 546 u32 cnt; in br_vlan_process_global_one_opts() local 548 cnt = nla_get_u32(tb[BRIDGE_VLANDB_GOPTS_MCAST_STARTUP_QUERY_CNT]); in br_vlan_process_global_one_opts() 549 v->br_mcast_ctx.multicast_startup_query_count = cnt; in br_vlan_process_global_one_opts()
|
| A D | br_if.c | 234 u32 cnt = 0; in nbp_update_port_count() local 238 cnt++; in nbp_update_port_count() 240 if (br->auto_cnt != cnt) { in nbp_update_port_count() 241 br->auto_cnt = cnt; in nbp_update_port_count()
|
| /net/netfilter/ipvs/ |
| A D | ip_vs_core.c | 135 u64_stats_inc(&s->cnt.inpkts); in ip_vs_in_stats() 136 u64_stats_add(&s->cnt.inbytes, skb->len); in ip_vs_in_stats() 142 u64_stats_inc(&s->cnt.inpkts); in ip_vs_in_stats() 143 u64_stats_add(&s->cnt.inbytes, skb->len); in ip_vs_in_stats() 148 u64_stats_inc(&s->cnt.inpkts); in ip_vs_in_stats() 171 u64_stats_inc(&s->cnt.outpkts); in ip_vs_out_stats() 178 u64_stats_inc(&s->cnt.outpkts); in ip_vs_out_stats() 184 u64_stats_inc(&s->cnt.outpkts); in ip_vs_out_stats() 203 u64_stats_inc(&s->cnt.conns); in ip_vs_conn_stats() 208 u64_stats_inc(&s->cnt.conns); in ip_vs_conn_stats() [all …]
|
| A D | ip_vs_est.c | 101 conns = u64_stats_read(&c->cnt.conns); in ip_vs_chain_estimation() 102 inpkts = u64_stats_read(&c->cnt.inpkts); in ip_vs_chain_estimation() 103 outpkts = u64_stats_read(&c->cnt.outpkts); in ip_vs_chain_estimation() 104 inbytes = u64_stats_read(&c->cnt.inbytes); in ip_vs_chain_estimation() 105 outbytes = u64_stats_read(&c->cnt.outbytes); in ip_vs_chain_estimation()
|
| /net/sctp/ |
| A D | bind_addr.c | 341 int cnt = 0; in sctp_bind_addrs_check() local 352 cnt = 0; in sctp_bind_addrs_check() 355 cnt++; in sctp_bind_addrs_check() 359 return (cnt == cnt2) ? 0 : (exist ? -EEXIST : 1); in sctp_bind_addrs_check()
|
| A D | socket.c | 508 int cnt; in sctp_bindx_add() local 518 for (cnt = 0; cnt < addrcnt; cnt++) { in sctp_bindx_add() 537 if (cnt > 0) in sctp_bindx_add() 683 int cnt; in sctp_bindx_rem() local 694 for (cnt = 0; cnt < addrcnt; cnt++) { in sctp_bindx_rem() 739 if (cnt > 0) in sctp_bindx_rem() 6184 cnt++; in sctp_getsockopt_peer_addrs() 6232 cnt++; in sctp_copy_laddrs() 6238 return cnt; in sctp_copy_laddrs() 6321 cnt++; in sctp_getsockopt_local_addrs() [all …]
|
| /net/netlink/ |
| A D | genetlink.c | 217 int i, cnt = 0; in genl_op_from_split() local 221 if (family->split_ops[i + cnt].flags & GENL_CMD_CAP_DO) { in genl_op_from_split() 222 iter->doit = family->split_ops[i + cnt]; in genl_op_from_split() 224 cnt++; in genl_op_from_split() 229 if (i + cnt < family->n_split_ops && in genl_op_from_split() 230 family->split_ops[i + cnt].flags & GENL_CMD_CAP_DUMP && in genl_op_from_split() 231 (!cnt || family->split_ops[i + cnt].cmd == iter->doit.cmd)) { in genl_op_from_split() 232 iter->dumpit = family->split_ops[i + cnt]; in genl_op_from_split() 234 cnt++; in genl_op_from_split() 239 WARN_ON(!cnt); in genl_op_from_split() [all …]
|
| /net/vmw_vsock/ |
| A D | virtio_transport.c | 280 int cnt = 0, ret; in virtio_transport_cancel_pkt() local 289 cnt = virtio_transport_purge_skbs(vsk, &vsock->send_pkt_queue); in virtio_transport_cancel_pkt() 291 if (cnt) { in virtio_transport_cancel_pkt() 295 new_cnt = atomic_sub_return(cnt, &vsock->queued_replies); in virtio_transport_cancel_pkt() 296 if (new_cnt + cnt >= virtqueue_get_vring_size(rx_vq) && in virtio_transport_cancel_pkt()
|
| /net/bridge/netfilter/ |
| A D | ebtables.c | 394 unsigned int *cnt) in ebt_check_match() argument 425 (*cnt)++; in ebt_check_match() 431 unsigned int *cnt) in ebt_check_watcher() argument 462 (*cnt)++; in ebt_check_watcher() 535 unsigned int *n, unsigned int *cnt, in ebt_check_entry_size_and_hooks() argument 551 if (*n != *cnt) in ebt_check_entry_size_and_hooks() 566 *cnt = 0; in ebt_check_entry_size_and_hooks() 579 (*cnt)++; in ebt_check_entry_size_and_hooks() 664 if (cnt && (*cnt)-- == 0) in ebt_cleanup_entry() 683 const char *name, unsigned int *cnt, in ebt_check_entry() argument [all …]
|
| /net/mac80211/ |
| A D | debugfs_key.c | 334 key->debugfs.cnt = keycount; in ieee80211_debugfs_key_add() 386 sprintf(buf, "../keys/%d", key->debugfs.cnt); in ieee80211_debugfs_key_update_default() 398 sprintf(buf, "../keys/%d", key->debugfs.cnt); in ieee80211_debugfs_key_update_default()
|
| A D | cfg.c | 1162 dst->cnt = src->cnt; in ieee80211_copy_mbssid_beacon() 1163 for (i = 0; i < src->cnt; i++) { in ieee80211_copy_mbssid_beacon() 1179 dst->cnt = src->cnt; in ieee80211_copy_rnr_beacon() 1180 for (i = 0; i < src->cnt; i++) { in ieee80211_copy_rnr_beacon() 1236 mbssid->cnt); in ieee80211_assign_beacon() 1245 mbssid->cnt); in ieee80211_assign_beacon() 3792 beacon->mbssid_ies->cnt); in cfg80211_beacon_dup() 3801 elem, beacon->mbssid_ies->cnt), in cfg80211_beacon_dup() 3808 if (beacon->rnr_ies && beacon->rnr_ies->cnt) { in cfg80211_beacon_dup() 3811 elem, beacon->rnr_ies->cnt), in cfg80211_beacon_dup() [all …]
|
| A D | tx.c | 5278 i > beacon->mbssid_ies->cnt) in ieee80211_beacon_add_mbssid() 5281 if (i < beacon->mbssid_ies->cnt) { in ieee80211_beacon_add_mbssid() 5289 for (i = beacon->mbssid_ies->cnt; i < beacon->rnr_ies->cnt; i++) in ieee80211_beacon_add_mbssid() 5454 for (ema->cnt = 0; ema->cnt < beacon->mbssid_ies->cnt; ema->cnt++) { in ieee80211_beacon_get_ap_ema_list() 5455 ema->bcn[ema->cnt].skb = in ieee80211_beacon_get_ap_ema_list() 5457 &ema->bcn[ema->cnt].offs, in ieee80211_beacon_get_ap_ema_list() 5459 chanctx_conf, ema->cnt, NULL); in ieee80211_beacon_get_ap_ema_list() 5460 if (!ema->bcn[ema->cnt].skb) in ieee80211_beacon_get_ap_ema_list() 5464 if (ema->cnt == beacon->mbssid_ies->cnt) in ieee80211_beacon_get_ap_ema_list() 5530 ema_index = beacon->mbssid_ies->cnt; in __ieee80211_beacon_get() [all …]
|
| A D | key.h | 126 int cnt; member
|
| /net/rds/ |
| A D | af_rds.c | 804 unsigned int cnt = 0; in rds_sock_info() local 812 cnt = rds_sock_count; in rds_sock_info() 829 cnt++; in rds_sock_info() 833 lens->nr = cnt; in rds_sock_info()
|
| /net/smc/ |
| A D | smc_clc.c | 542 int cnt = 0; in smc_clc_prfx_set6_rcu() local 550 ipv6_addr_prefix(&ipv6_prfx[cnt].prefix, in smc_clc_prfx_set6_rcu() 552 ipv6_prfx[cnt].prefix_len = ifa->prefix_len; in smc_clc_prfx_set6_rcu() 553 cnt++; in smc_clc_prfx_set6_rcu() 554 if (cnt == SMC_CLC_MAX_V6_PREFIX) in smc_clc_prfx_set6_rcu() 557 prop->ipv6_prefixes_cnt = cnt; in smc_clc_prfx_set6_rcu() 558 if (cnt) in smc_clc_prfx_set6_rcu()
|
| /net/rose/ |
| A D | af_rose.c | 188 int i, cnt; in rose_kill_by_device() local 192 cnt = 0; in rose_kill_by_device() 197 if (cnt == ARRAY_SIZE(array)) { in rose_kill_by_device() 202 array[cnt++] = sk; in rose_kill_by_device() 207 for (i = 0; i < cnt; i++) { in rose_kill_by_device() 208 sk = array[cnt]; in rose_kill_by_device()
|