Home
last modified time | relevance | path

Searched refs:rtt (Results 1 – 25 of 69) sorted by relevance

123

/linux/net/ipv4/
H A Dtcp_cdg.c80 struct cdg_minmax rtt; member
145 ca->delay_min = min_not_zero(ca->delay_min, ca->rtt.min); in tcp_cdg_hystart_update()
178 if (ca->rtt.min > thresh) { in tcp_cdg_hystart_update()
192 s32 gmin = ca->rtt.min - ca->rtt_prev.min; in tcp_cdg_grad()
193 s32 gmax = ca->rtt.max - ca->rtt_prev.max; in tcp_cdg_grad()
272 if (after(ack, ca->rtt_seq) && ca->rtt.v64) { in tcp_cdg_cong_avoid()
278 ca->rtt_prev = ca->rtt; in tcp_cdg_cong_avoid()
279 ca->rtt.v64 = 0; in tcp_cdg_cong_avoid()
316 ca->rtt.min = min(ca->rtt.min, sample->rtt_us); in tcp_cdg_acked()
324 ca->rtt.min = min_not_zero(ca->rtt.min, sample->rtt_us); in tcp_cdg_acked()
[all …]
H A Dtcp_westwood.c40 u32 rtt; member
71 w->rtt_min = w->rtt = TCP_WESTWOOD_INIT_RTT; in tcp_westwood_init()
109 w->rtt = usecs_to_jiffies(sample->rtt_us); in tcp_westwood_pkts_acked()
140 if (w->rtt && delta > max_t(u32, w->rtt, TCP_WESTWOOD_RTT_MIN)) { in westwood_update_window()
151 w->rtt_min = w->rtt; in update_rtt_min()
154 w->rtt_min = min(w->rtt, w->rtt_min); in update_rtt_min()
270 info->vegas.tcpv_rtt = jiffies_to_usecs(ca->rtt); in tcp_westwood_info()
H A Dtcp_yeah.c114 u32 rtt, queue; in tcp_yeah_cong_avoid() local
128 rtt = yeah->vegas.minRTT; in tcp_yeah_cong_avoid()
134 bw *= rtt - yeah->vegas.baseRTT; in tcp_yeah_cong_avoid()
135 do_div(bw, rtt); in tcp_yeah_cong_avoid()
139 rtt - yeah->vegas.baseRTT > (yeah->vegas.baseRTT / TCP_YEAH_PHY)) { in tcp_yeah_cong_avoid()
H A Dtcp_vegas.c198 u32 rtt, diff; in tcp_vegas_cong_avoid() local
212 rtt = vegas->minRTT; in tcp_vegas_cong_avoid()
221 do_div(target_cwnd, rtt); in tcp_vegas_cong_avoid()
227 diff = tcp_snd_cwnd(tp) * (rtt-vegas->baseRTT) / vegas->baseRTT; in tcp_vegas_cong_avoid()
H A Dtcp_veno.c141 u32 rtt; in tcp_veno_cong_avoid() local
147 rtt = veno->minrtt; in tcp_veno_cong_avoid()
151 do_div(target_cwnd, rtt); in tcp_veno_cong_avoid()
H A Dtcp_metrics.c347 unsigned long rtt; in tcp_update_metrics() local
371 rtt = tcp_metric_get(tm, TCP_METRIC_RTT); in tcp_update_metrics()
372 m = rtt - tp->srtt_us; in tcp_update_metrics()
380 rtt = tp->srtt_us; in tcp_update_metrics()
382 rtt -= (m >> 3); in tcp_update_metrics()
383 tcp_metric_set(tm, TCP_METRIC_RTT, rtt); in tcp_update_metrics()
/linux/fs/afs/
H A Dvl_probe.c21 server->rtt = UINT_MAX; in afs_finished_vl_probe()
120 if (rtt_us < server->probe.rtt) { in afs_vlserver_probe_result()
121 server->probe.rtt = rtt_us; in afs_vlserver_probe_result()
122 server->rtt = rtt_us; in afs_vlserver_probe_result()
169 server->probe.rtt = UINT_MAX; in afs_do_probe_vlserver()
233 unsigned int rtt = UINT_MAX, rtt_s; in afs_wait_for_vl_probes() local
289 rtt_s = READ_ONCE(server->rtt); in afs_wait_for_vl_probes()
291 rtt_s < rtt) { in afs_wait_for_vl_probes()
293 rtt = rtt_s; in afs_wait_for_vl_probes()
H A Dvl_rotate.c98 unsigned int rtt; in afs_select_vlserver() local
215 rtt = UINT_MAX; in afs_select_vlserver()
222 if (s->probe.rtt <= rtt) { in afs_select_vlserver()
224 rtt = s->probe.rtt; in afs_select_vlserver()
H A Dfs_probe.c86 server->rtt = UINT_MAX; in afs_finished_fs_probe()
212 if (rtt_us < estate->rtt) { in afs_fileserver_probe_result()
213 estate->rtt = rtt_us; in afs_fileserver_probe_result()
214 server->rtt = rtt_us; in afs_fileserver_probe_result()
253 estate->rtt = UINT_MAX; in afs_fs_probe_fileserver()
/linux/samples/bpf/
H A Dhbm_kern.h75 int rtt; member
95 pkti->rtt = tp->srtt_us >> 3; in get_tcp_info()
103 pkti->rtt = 0; in get_tcp_info()
115 pkti->rtt = 0; in hbm_get_pkt_info()
192 if (pkti->rtt) in hbm_update_stats()
194 pkti->rtt); in hbm_update_stats()
/linux/net/ax25/
H A Dax25_subr.c239 ax25->t1 = t * ax25->rtt; in ax25_calculate_t1()
251 ax25->rtt = (9 * ax25->rtt + ax25->t1 - ax25_display_timer(&ax25->t1timer)) / 10; in ax25_calculate_rtt()
253 if (ax25->rtt < AX25_T1CLAMPLO) in ax25_calculate_rtt()
254 ax25->rtt = AX25_T1CLAMPLO; in ax25_calculate_rtt()
256 if (ax25->rtt > AX25_T1CLAMPHI) in ax25_calculate_rtt()
257 ax25->rtt = AX25_T1CLAMPHI; in ax25_calculate_rtt()
H A Daf_ax25.c420 ax25->rtt = (ax25_ctl.arg * HZ) / 2; in ax25_ctl_ioctl()
472 ax25->rtt = msecs_to_jiffies(ax25_dev->values[AX25_VALUES_T1]) / 2; in ax25_fillin_cb_from_dev()
506 ax25->rtt = msecs_to_jiffies(AX25_DEF_T1) / 2; in ax25_fillin_cb()
598 ax25->rtt = (opt * HZ) >> 1; in ax25_setsockopt()
955 ax25->rtt = oax25->rtt; in ax25_make_new()
1958 * magic dev src_addr dest_addr,digi1,digi2,.. st vs vr va t1 t1 t2 t2 t3 t3 idle idle n2 n2 rtt window paclen Snd-Q Rcv-Q inode in ax25_info_show()
1983 ax25->rtt / HZ, in ax25_info_show()
/linux/net/sctp/
H A Dtransport.c488 void sctp_transport_update_rto(struct sctp_transport *tp, __u32 rtt) in sctp_transport_update_rto() argument
508 + (((__u32)abs((__s64)tp->srtt - (__s64)rtt)) >> net->sctp.rto_beta); in sctp_transport_update_rto()
510 + (rtt >> net->sctp.rto_alpha); in sctp_transport_update_rto()
515 tp->srtt = rtt; in sctp_transport_update_rto()
516 tp->rttvar = rtt >> 1; in sctp_transport_update_rto()
541 tp->rtt = rtt; in sctp_transport_update_rto()
549 __func__, tp, rtt, tp->srtt, tp->rttvar, tp->rto); in sctp_transport_update_rto()
714 transport->rtt)) { in sctp_transport_lower_cwnd()
810 t->rtt = 0; in sctp_transport_reset()
/linux/drivers/rtc/
H A Drtc-at91sam9.c69 void __iomem *rtt; member
82 readl((rtc)->rtt + AT91_RTT_ ## field)
84 writel((val), (rtc)->rtt + AT91_RTT_ ## field)
360 rtc->rtt = devm_platform_ioremap_resource(pdev, 0); in at91_rtc_probe()
361 if (IS_ERR(rtc->rtt)) in at91_rtc_probe()
362 return PTR_ERR(rtc->rtt); in at91_rtc_probe()
/linux/net/rxrpc/
H A Dsendmsg.c133 signed long rtt, timeout; in rxrpc_wait_for_tx_window_waitall() local
135 rtt = READ_ONCE(call->peer->srtt_us) >> 3; in rxrpc_wait_for_tx_window_waitall()
136 rtt = usecs_to_jiffies(rtt) * 2; in rxrpc_wait_for_tx_window_waitall()
137 if (rtt < 2) in rxrpc_wait_for_tx_window_waitall()
138 rtt = 2; in rxrpc_wait_for_tx_window_waitall()
140 timeout = rtt; in rxrpc_wait_for_tx_window_waitall()
157 timeout = rtt; in rxrpc_wait_for_tx_window_waitall()
H A DMakefile30 rtt.o \
/linux/drivers/target/iscsi/
H A Discsi_target_tmr.c40 ref_cmd = iscsit_find_cmd_from_itt(conn, hdr->rtt); in iscsit_tmr_abort_task()
43 " %hu.\n", hdr->rtt, conn->cid); in iscsit_tmr_abort_task()
55 se_tmr->ref_task_tag = (__force u32)hdr->rtt; in iscsit_tmr_abort_task()
119 hdr->itt, hdr->rtt, hdr->exp_datasn, conn->cid); in iscsit_tmr_task_reassign()
127 ret = iscsit_find_cmd_for_recovery(conn->sess, &ref_cmd, &cr, hdr->rtt); in iscsit_tmr_task_reassign()
134 " connection recovery command list.\n", hdr->rtt); in iscsit_tmr_task_reassign()
164 se_tmr->ref_task_tag = (__force u32)hdr->rtt; in iscsit_tmr_task_reassign()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dftm-initiator.c1200 s64 rtt_avg, rtt = res->ftm.rtt_avg; in iwl_mvm_ftm_rtt_smoothing() local
1207 WARN_ON(rtt < 0); in iwl_mvm_ftm_rtt_smoothing()
1231 resp->rtt_avg = rtt; in iwl_mvm_ftm_rtt_smoothing()
1240 resp->rtt_avg = rtt; in iwl_mvm_ftm_rtt_smoothing()
1252 rtt_avg = div_s64(alpha * rtt + (100 - alpha) * resp->rtt_avg, 100); in iwl_mvm_ftm_rtt_smoothing()
1256 resp->addr, resp->rtt_avg, rtt_avg, rtt); in iwl_mvm_ftm_rtt_smoothing()
1265 if (rtt_avg > rtt && (rtt_avg - rtt) > undershoot) { in iwl_mvm_ftm_rtt_smoothing()
1270 (rtt_avg - rtt)); in iwl_mvm_ftm_rtt_smoothing()
1271 } else if (rtt_avg < rtt && (rtt - rtt_avg) > in iwl_mvm_ftm_rtt_smoothing()
1276 (rtt - rtt_avg)); in iwl_mvm_ftm_rtt_smoothing()
[all …]
/linux/arch/arc/kernel/
H A Dsetup.c297 int ap_num, ap_full, smart, rtt, n; in arc_cpu_mumbojumbo() local
342 rtt = bcr.ver ? 1 : 0; in arc_cpu_mumbojumbo()
344 if (ap.ver | smart | rtt) { in arc_cpu_mumbojumbo()
347 IS_AVAIL1(rtt, "RTT ")); in arc_cpu_mumbojumbo()
/linux/arch/arm/boot/dts/microchip/
H A Dusb_a9260.dts27 atmel,wakeup-rtt-timer;
H A Dusb_a9263.dts72 atmel,wakeup-rtt-timer;
/linux/drivers/nvdimm/
H A Dbtt.c725 arena->rtt = kcalloc(arena->nfree, sizeof(u32), GFP_KERNEL); in btt_rtt_init()
726 if (arena->rtt == NULL) in btt_rtt_init()
810 kfree(arena->rtt); in free_arenas()
1235 arena->rtt[lane] = RTT_VALID | postmap; in btt_read_pg()
1272 arena->rtt[lane] = RTT_INVALID; in btt_read_pg()
1283 arena->rtt[lane] = RTT_INVALID; in btt_read_pg()
1350 while (arena->rtt[i] == (RTT_VALID | new_postmap)) in btt_write_pg()
H A Dbtt.h188 u32 *rtt; member
/linux/drivers/ufs/core/
H A Dufs-sysfs.c1411 u32 rtt; in max_number_of_rtt_show() local
1422 QUERY_ATTR_IDN_MAX_NUM_OF_RTT, 0, 0, &rtt); in max_number_of_rtt_show()
1428 ret = sysfs_emit(buf, "0x%08X\n", rtt); in max_number_of_rtt_show()
1442 unsigned int rtt; in max_number_of_rtt_store() local
1445 if (kstrtouint(buf, 0, &rtt)) in max_number_of_rtt_store()
1448 if (rtt > dev_info->rtt_cap) { in max_number_of_rtt_store()
1465 QUERY_ATTR_IDN_MAX_NUM_OF_RTT, 0, 0, &rtt); in max_number_of_rtt_store()
/linux/net/batman-adv/
H A Dtp_meter.c636 u32 rtt, recv_ack, cwnd; in batadv_tp_recv_ack() local
667 rtt = jiffies_to_msecs(jiffies) - ntohl(icmp->timestamp); in batadv_tp_recv_ack()
668 if (icmp->timestamp && rtt) in batadv_tp_recv_ack()
669 batadv_tp_update_rto(tp_vars, rtt); in batadv_tp_recv_ack()

123