/net/ipv4/ |
D | tcp_htcp.c | 48 static inline u32 htcp_cong_time(const struct htcp *ca) in htcp_cong_time() argument 50 return jiffies - ca->last_cong; in htcp_cong_time() 53 static inline u32 htcp_ccount(const struct htcp *ca) in htcp_ccount() argument 55 return htcp_cong_time(ca) / ca->minRTT; in htcp_ccount() 58 static inline void htcp_reset(struct htcp *ca) in htcp_reset() argument 60 ca->undo_last_cong = ca->last_cong; in htcp_reset() 61 ca->undo_maxRTT = ca->maxRTT; in htcp_reset() 62 ca->undo_old_maxB = ca->old_maxB; in htcp_reset() 64 ca->last_cong = jiffies; in htcp_reset() 70 struct htcp *ca = inet_csk_ca(sk); in htcp_cwnd_undo() local [all …]
|
D | tcp_cdg.c | 140 struct cdg *ca = inet_csk_ca(sk); in tcp_cdg_hystart_update() local 143 ca->delay_min = min_not_zero(ca->delay_min, ca->rtt.min); in tcp_cdg_hystart_update() 144 if (ca->delay_min == 0) in tcp_cdg_hystart_update() 150 if (ca->last_ack == 0 || !tcp_is_cwnd_limited(sk)) { in tcp_cdg_hystart_update() 151 ca->last_ack = now_us; in tcp_cdg_hystart_update() 152 ca->round_start = now_us; in tcp_cdg_hystart_update() 153 } else if (before(now_us, ca->last_ack + 3000)) { in tcp_cdg_hystart_update() 154 u32 base_owd = max(ca->delay_min / 2U, 125U); in tcp_cdg_hystart_update() 156 ca->last_ack = now_us; in tcp_cdg_hystart_update() 157 if (after(now_us, ca->round_start + base_owd)) { in tcp_cdg_hystart_update() [all …]
|
D | tcp_cubic.c | 105 static inline void bictcp_reset(struct bictcp *ca) in bictcp_reset() argument 107 ca->cnt = 0; in bictcp_reset() 108 ca->last_max_cwnd = 0; in bictcp_reset() 109 ca->last_cwnd = 0; in bictcp_reset() 110 ca->last_time = 0; in bictcp_reset() 111 ca->bic_origin_point = 0; in bictcp_reset() 112 ca->bic_K = 0; in bictcp_reset() 113 ca->delay_min = 0; in bictcp_reset() 114 ca->epoch_start = 0; in bictcp_reset() 115 ca->ack_cnt = 0; in bictcp_reset() [all …]
|
D | tcp_bic.c | 60 static inline void bictcp_reset(struct bictcp *ca) in bictcp_reset() argument 62 ca->cnt = 0; in bictcp_reset() 63 ca->last_max_cwnd = 0; in bictcp_reset() 64 ca->last_cwnd = 0; in bictcp_reset() 65 ca->last_time = 0; in bictcp_reset() 66 ca->epoch_start = 0; in bictcp_reset() 67 ca->delayed_ack = 2 << ACK_RATIO_SHIFT; in bictcp_reset() 72 struct bictcp *ca = inet_csk_ca(sk); in bictcp_init() local 74 bictcp_reset(ca); in bictcp_init() 75 ca->loss_cwnd = 0; in bictcp_init() [all …]
|
D | tcp_cong.c | 38 const struct tcp_congestion_ops *ca = tcp_ca_find(name); in __tcp_ca_find_autoload() local 40 if (!ca && capable(CAP_NET_ADMIN)) { in __tcp_ca_find_autoload() 44 ca = tcp_ca_find(name); in __tcp_ca_find_autoload() 47 return ca; in __tcp_ca_find_autoload() 67 int tcp_register_congestion_control(struct tcp_congestion_ops *ca) in tcp_register_congestion_control() argument 72 if (!ca->ssthresh || !ca->cong_avoid) { in tcp_register_congestion_control() 73 pr_err("%s does not implement required ops\n", ca->name); in tcp_register_congestion_control() 77 ca->key = jhash(ca->name, sizeof(ca->name), strlen(ca->name)); in tcp_register_congestion_control() 80 if (ca->key == TCP_CA_UNSPEC || tcp_ca_find_key(ca->key)) { in tcp_register_congestion_control() 82 ca->name); in tcp_register_congestion_control() [all …]
|
D | tcp_illinois.c | 59 struct illinois *ca = inet_csk_ca(sk); in rtt_reset() local 61 ca->end_seq = tp->snd_nxt; in rtt_reset() 62 ca->cnt_rtt = 0; in rtt_reset() 63 ca->sum_rtt = 0; in rtt_reset() 70 struct illinois *ca = inet_csk_ca(sk); in tcp_illinois_init() local 72 ca->alpha = ALPHA_MAX; in tcp_illinois_init() 73 ca->beta = BETA_BASE; in tcp_illinois_init() 74 ca->base_rtt = 0x7fffffff; in tcp_illinois_init() 75 ca->max_rtt = 0; in tcp_illinois_init() 77 ca->acked = 0; in tcp_illinois_init() [all …]
|
D | tcp_dctcp.c | 71 static void dctcp_reset(const struct tcp_sock *tp, struct dctcp *ca) in dctcp_reset() argument 73 ca->next_seq = tp->snd_nxt; in dctcp_reset() 75 ca->acked_bytes_ecn = 0; in dctcp_reset() 76 ca->acked_bytes_total = 0; in dctcp_reset() 86 struct dctcp *ca = inet_csk_ca(sk); in dctcp_init() local 88 ca->prior_snd_una = tp->snd_una; in dctcp_init() 89 ca->prior_rcv_nxt = tp->rcv_nxt; in dctcp_init() 91 ca->dctcp_alpha = min(dctcp_alpha_on_init, DCTCP_MAX_ALPHA); in dctcp_init() 93 ca->loss_cwnd = 0; in dctcp_init() 94 ca->ce_state = 0; in dctcp_init() [all …]
|
D | tcp_hybla.c | 35 struct hybla *ca = inet_csk_ca(sk); in hybla_recalc_param() local 37 ca->rho_3ls = max_t(u32, in hybla_recalc_param() 40 ca->rho = ca->rho_3ls >> 3; in hybla_recalc_param() 41 ca->rho2_7ls = (ca->rho_3ls * ca->rho_3ls) << 1; in hybla_recalc_param() 42 ca->rho2 = ca->rho2_7ls >> 7; in hybla_recalc_param() 48 struct hybla *ca = inet_csk_ca(sk); in hybla_init() local 50 ca->rho = 0; in hybla_init() 51 ca->rho2 = 0; in hybla_init() 52 ca->rho_3ls = 0; in hybla_init() 53 ca->rho2_7ls = 0; in hybla_init() [all …]
|
D | tcp_highspeed.c | 102 struct hstcp *ca = inet_csk_ca(sk); in hstcp_init() local 104 ca->ai = 0; in hstcp_init() 114 struct hstcp *ca = inet_csk_ca(sk); in hstcp_cong_avoid() local 129 if (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd) { in hstcp_cong_avoid() 130 while (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd && in hstcp_cong_avoid() 131 ca->ai < HSTCP_AIMD_MAX - 1) in hstcp_cong_avoid() 132 ca->ai++; in hstcp_cong_avoid() 133 } else if (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) { in hstcp_cong_avoid() 134 while (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) in hstcp_cong_avoid() 135 ca->ai--; in hstcp_cong_avoid() [all …]
|
D | tcp_vegas.c | 292 const struct vegas *ca = inet_csk_ca(sk); in tcp_vegas_get_info() local 295 info->vegas.tcpv_enabled = ca->doing_vegas_now, in tcp_vegas_get_info() 296 info->vegas.tcpv_rttcnt = ca->cntRTT, in tcp_vegas_get_info() 297 info->vegas.tcpv_rtt = ca->baseRTT, in tcp_vegas_get_info() 298 info->vegas.tcpv_minrtt = ca->minRTT, in tcp_vegas_get_info()
|
D | tcp_westwood.c | 262 const struct westwood *ca = inet_csk_ca(sk); in tcp_westwood_info() local 267 info->vegas.tcpv_rtt = jiffies_to_usecs(ca->rtt), in tcp_westwood_info() 268 info->vegas.tcpv_minrtt = jiffies_to_usecs(ca->rtt_min), in tcp_westwood_info()
|
D | tcp_minisocks.c | 417 const struct tcp_congestion_ops *ca; in tcp_ca_openreq_child() local 420 ca = tcp_ca_find_key(ca_key); in tcp_ca_openreq_child() 421 if (likely(ca && try_module_get(ca->owner))) { in tcp_ca_openreq_child() 423 icsk->icsk_ca_ops = ca; in tcp_ca_openreq_child()
|
D | tcp_output.c | 3096 const struct tcp_congestion_ops *ca; in tcp_ca_dst_init() local 3103 ca = tcp_ca_find_key(ca_key); in tcp_ca_dst_init() 3104 if (likely(ca && try_module_get(ca->owner))) { in tcp_ca_dst_init() 3107 icsk->icsk_ca_ops = ca; in tcp_ca_dst_init()
|
/net/bluetooth/hidp/ |
D | sock.c | 52 struct hidp_connadd_req ca; in hidp_sock_ioctl() local 67 if (copy_from_user(&ca, argp, sizeof(ca))) in hidp_sock_ioctl() 70 csock = sockfd_lookup(ca.ctrl_sock, &err); in hidp_sock_ioctl() 74 isock = sockfd_lookup(ca.intr_sock, &err); in hidp_sock_ioctl() 79 ca.name[sizeof(ca.name)-1] = 0; in hidp_sock_ioctl() 81 err = hidp_connection_add(&ca, csock, isock); in hidp_sock_ioctl() 82 if (!err && copy_to_user(argp, &ca, sizeof(ca))) in hidp_sock_ioctl() 166 struct compat_hidp_connadd_req ca; in hidp_sock_compat_ioctl() local 171 if (copy_from_user(&ca, (void __user *) arg, sizeof(ca))) in hidp_sock_compat_ioctl() 174 if (put_user(ca.ctrl_sock, &uca->ctrl_sock) || in hidp_sock_compat_ioctl() [all …]
|
/net/sched/ |
D | act_connmark.c | 39 struct tcf_connmark_info *ca = a->priv; in tcf_connmark() local 44 spin_lock(&ca->tcf_lock); in tcf_connmark() 45 ca->tcf_tm.lastuse = jiffies; in tcf_connmark() 46 bstats_update(&ca->tcf_bstats, skb); in tcf_connmark() 66 ca->tcf_qstats.overlimits++; in tcf_connmark() 71 proto, ca->net, &tuple)) in tcf_connmark() 74 zone.id = ca->zone; in tcf_connmark() 77 thash = nf_conntrack_find_get(ca->net, &zone, &tuple); in tcf_connmark() 83 ca->tcf_qstats.overlimits++; in tcf_connmark() 88 spin_unlock(&ca->tcf_lock); in tcf_connmark() [all …]
|
/net/bluetooth/bnep/ |
D | sock.c | 55 struct bnep_connadd_req ca; in bnep_sock_ioctl() local 70 if (copy_from_user(&ca, argp, sizeof(ca))) in bnep_sock_ioctl() 73 nsock = sockfd_lookup(ca.sock, &err); in bnep_sock_ioctl() 81 ca.device[sizeof(ca.device)-1] = 0; in bnep_sock_ioctl() 83 err = bnep_add_connection(&ca, nsock); in bnep_sock_ioctl() 85 if (copy_to_user(argp, &ca, sizeof(ca))) in bnep_sock_ioctl()
|
/net/bluetooth/cmtp/ |
D | sock.c | 68 struct cmtp_connadd_req ca; in cmtp_sock_ioctl() local 83 if (copy_from_user(&ca, argp, sizeof(ca))) in cmtp_sock_ioctl() 86 nsock = sockfd_lookup(ca.sock, &err); in cmtp_sock_ioctl() 95 err = cmtp_add_connection(&ca, nsock); in cmtp_sock_ioctl() 97 if (copy_to_user(argp, &ca, sizeof(ca))) in cmtp_sock_ioctl()
|
/net/ipv6/ |
D | sit.c | 295 unsigned int cmax, c = 0, ca, len; in ipip6_tunnel_get_prl() local 313 ca = t->prl_count < cmax ? t->prl_count : cmax; in ipip6_tunnel_get_prl() 321 kp = kcalloc(ca, sizeof(*kp), GFP_ATOMIC); in ipip6_tunnel_get_prl()
|