| /freebsd/contrib/unbound/util/ |
| H A D | rtt.c | 53 calc_rto(const struct rtt_info* rtt) in calc_rto() argument 56 int rto = rtt->srtt + 4*rtt->rttvar; in calc_rto() 65 rtt_init(struct rtt_info* rtt) in rtt_init() argument 67 rtt->srtt = 0; in rtt_init() 68 rtt->rttvar = UNKNOWN_SERVER_NICENESS/4; in rtt_init() 69 rtt->rto = calc_rto(rtt); in rtt_init() 75 rtt_timeout(const struct rtt_info* rtt) in rtt_timeout() argument 77 return rtt->rto; in rtt_timeout() 81 rtt_unclamped(const struct rtt_info* rtt) in rtt_unclamped() argument 83 if(calc_rto(rtt) != rtt->rto) { in rtt_unclamped() [all …]
|
| H A D | rtt.h | 67 void rtt_init(struct rtt_info* rtt); 74 int rtt_timeout(const struct rtt_info* rtt); 82 int rtt_unclamped(const struct rtt_info* rtt); 89 int rtt_notimeout(const struct rtt_info* rtt); 96 void rtt_update(struct rtt_info* rtt, int ms); 105 void rtt_lost(struct rtt_info* rtt, int orig);
|
| /freebsd/contrib/ofed/infiniband-diags/src/ |
| H A D | ibping.c | 114 uint64_t start, rtt; in ibping() local 131 rtt = cl_get_time_stamp() - start; in ibping() 138 data, portid2str(portid), rtt / 1000, rtt % 1000); in ibping() 140 return rtt; in ibping() 205 uint64_t rtt; in main() local 265 if ((rtt = ibping(&portid, flood)) == ~0ull) { in main() 269 if (rtt < minrtt) in main() 270 minrtt = rtt; in main() 271 if (rtt > maxrtt) in main() 272 maxrtt = rtt; in main() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/rtc/ |
| H A D | atmel,at91sam9-rtc.txt | 5 - "atmel,at91sam9260-rtt" 6 - "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt" 8 - interrupts: rtt alarm/event interrupt 10 - atmel,rtt-rtc-time-reg: should encode the GPBR register used to store 19 rtt@fffffd20 { 20 compatible = "atmel,at91sam9260-rtt"; 24 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
|
| /freebsd/contrib/unbound/services/cache/ |
| H A D | infra.c | 533 rtt_init(&data->rtt); in data_entry_init() 597 int old = ((struct infra_data*)e->data)->rtt.rto; in infra_host() 612 ((struct infra_data*)e->data)->rtt.rto in infra_host() 628 *to = rtt_timeout(&data->rtt); in infra_host() 636 *to = rtt_timeout(&data->rtt); in infra_host() 638 rtt_notimeout(&data->rtt)*4 <= *to)) { in infra_host() 707 if(data->rtt.rto >= RTT_MAX_TIMEOUT) in infra_update_tcp_works() 710 data->rtt.rto = still_useful_timeout(); in infra_update_tcp_works() 740 data->rtt.rto = orig_rtt; in infra_rtt_update() 743 rtt_lost(&data->rtt, orig_rtt); in infra_rtt_update() [all …]
|
| H A D | infra.h | 2 * services/cache/infra.h - infrastructure cache, server rtt and capabilities 49 #include "util/rtt.h" 56 * even if another type has completely rtt maxed it, the different type 95 struct rtt_info rtt; 265 * Lameness is empty. EDNS is 0 (try with first), and rtt is returned for 306 * Update rtt information for the host. 315 * @param orig_rtt: original rtt for the query that timed out (roundtrip==-1). 365 * @param rtt: if function returns true, this returns avg rtt of the server. 366 * The rtt valu 82 struct rtt_info rtt; global() member [all...] |
| /freebsd/crypto/openssl/ssl/quic/ |
| H A D | quic_fc.c | 256 static int rxfc_should_bump_window_size(QUIC_RXFC *rxfc, OSSL_TIME rtt) in rxfc_should_bump_window_size() argument 287 return ossl_time_compare(t_window, ossl_time_multiply(rtt, 4)) < 0; in rxfc_should_bump_window_size() 291 OSSL_TIME rtt) in rxfc_adjust_window_size() argument 298 if (rxfc_should_bump_window_size(rxfc, rtt)) in rxfc_adjust_window_size() 311 OSSL_TIME rtt) in rxfc_update_cwm() argument 318 rxfc_adjust_window_size(rxfc, min_window_size, rtt); in rxfc_update_cwm() 329 OSSL_TIME rtt) in rxfc_on_retire() argument 336 rxfc_update_cwm(rxfc, min_window_size, rtt); in rxfc_on_retire() 342 OSSL_TIME rtt) in ossl_quic_rxfc_on_retire() argument 354 rxfc_on_retire(rxfc, num_bytes, 0, rtt); in ossl_quic_rxfc_on_retire() [all …]
|
| H A D | quic_rstream.c | 139 OSSL_TIME rtt; in get_rtt() local 145 rtt = rtt_info.smoothed_rtt; in get_rtt() 147 rtt = ossl_time_zero(); in get_rtt() 149 return rtt; in get_rtt() 155 OSSL_TIME rtt = get_rtt(qrs); in ossl_quic_rstream_read() local 161 && !ossl_quic_rxfc_on_retire(qrs->rxfc, *readbytes, rtt)) in ossl_quic_rstream_read() 253 OSSL_TIME rtt = get_rtt(qrs); in ossl_quic_rstream_release_record() local 255 if (!ossl_quic_rxfc_on_retire(qrs->rxfc, offset, rtt)) in ossl_quic_rstream_release_record()
|
| H A D | quic_ackm.c | 756 OSSL_RTT_INFO rtt; in ackm_detect_and_remove_lost_pkts() local 761 ossl_statm_get_rtt_info(ackm->statm, &rtt); in ackm_detect_and_remove_lost_pkts() 765 loss_delay = ossl_time_multiply(ossl_time_max(rtt.latest_rtt, in ackm_detect_and_remove_lost_pkts() 766 rtt.smoothed_rtt), in ackm_detect_and_remove_lost_pkts() 833 OSSL_RTT_INFO rtt; in ackm_get_pto_time_and_space() local 838 ossl_statm_get_rtt_info(ackm->statm, &rtt); in ackm_get_pto_time_and_space() 841 = ossl_time_add(rtt.smoothed_rtt, in ackm_get_pto_time_and_space() 842 ossl_time_max(ossl_time_multiply(rtt.rtt_variance, 4), in ackm_get_pto_time_and_space() 954 OSSL_RTT_INFO rtt; in ackm_on_pkts_lost() local 991 ossl_statm_get_rtt_info(ackm->statm, &rtt); in ackm_on_pkts_lost() [all …]
|
| /freebsd/contrib/ldns/ |
| H A D | resolver.c | 185 size_t *rtt; in ldns_resolver_nameserver_rtt() local 189 rtt = ldns_resolver_rtt(r); in ldns_resolver_nameserver_rtt() 195 return rtt[pos]; in ldns_resolver_nameserver_rtt() 255 size_t *rtt; in ldns_resolver_pop_nameserver() local 261 rtt = ldns_resolver_rtt(r); in ldns_resolver_pop_nameserver() 270 LDNS_FREE(rtt); in ldns_resolver_pop_nameserver() 277 rtt = LDNS_XREALLOC(rtt, size_t, (ns_count - 1)); in ldns_resolver_pop_nameserver() 280 ldns_resolver_set_rtt(r, rtt); in ldns_resolver_pop_nameserver() 292 size_t *rtt; in ldns_resolver_push_nameserver() local 301 rtt = ldns_resolver_rtt(r); in ldns_resolver_push_nameserver() [all …]
|
| /freebsd/sys/netinet/ |
| H A D | sctp_cc_functions.c | 255 if (net->rtt > net->cc_mod.rtcc.lbw_rtt + rtt_offset) { in cc_bw_same() 265 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), in cc_bw_same() 286 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), in cc_bw_same() 299 if (net->rtt < net->cc_mod.rtcc.lbw_rtt - rtt_offset) { in cc_bw_same() 310 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), in cc_bw_same() 322 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), in cc_bw_same() 336 net->cc_mod.rtcc.lbw_rtt = net->rtt; in cc_bw_same() 353 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), in cc_bw_same() 391 if (net->rtt > net->cc_mod.rtcc.lbw_rtt + rtt_offset) { in cc_bw_decrease() 402 ((net->cc_mod.rtcc.lbw_rtt << 32) | net->rtt), in cc_bw_decrease() [all …]
|
| /freebsd/sys/netinet/cc/ |
| H A D | cc_chd.c | 244 int backoff, new_measurement, qdly, rtt; in chd_ack_received() local 251 chd_data->maxrtt_in_rtt = imax(e_t->rtt, chd_data->maxrtt_in_rtt); in chd_ack_received() 258 rtt = V_chd_use_max ? chd_data->maxrtt_in_rtt : e_t->rtt; in chd_ack_received() 261 if (rtt && e_t->minrtt && !IN_RECOVERY(CCV(ccv, t_flags))) { in chd_ack_received() 262 qdly = rtt - e_t->minrtt; in chd_ack_received() 349 qdly = imax(e_t->rtt, chd_data->maxrtt_in_rtt) - e_t->minrtt; in chd_cong_signal()
|
| /freebsd/contrib/netbsd-tests/net/route/ |
| H A D | t_route.sh | 236 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 252 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 268 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 286 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 311 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 326 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 342 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 360 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
|
| H A D | t_change.sh | 129 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 148 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 196 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 215 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 263 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 282 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
|
| /freebsd/tools/regression/sockets/udp_pingpong/ |
| H A D | udp_pingpong.c | 94 struct rtt { struct 508 calc_rtt(struct test_pkt *tpp, struct rtt *rttp) in calc_rtt() 574 struct rtt rtt; in test_run() local 578 calc_rtt(&test_ctx.test_pkts[i], &rtt); in test_run() 579 if (!timespeccmp(&rtt.e2e, &rtt.a2b_b2a, >)) in test_run() 581 if (!timespeccmp(&rtt.e2e, &max_ts, <)) in test_run() 583 if (!timespeccmp(&rtt.a2b, &zero_ts, >)) in test_run() 585 if (!timespeccmp(&rtt.b2a, &zero_ts, >)) in test_run()
|
| /freebsd/crypto/openssl/test/ |
| H A D | ssl_handshake_rtt_test.c | 53 uint64_t rtt; in test_handshake_rtt() local 117 if (!TEST_int_gt(SSL_get_handshake_rtt(SSL_CONNECTION_GET_SSL(s), &rtt), 0)) in test_handshake_rtt() 120 if (!TEST_uint64_t_ge(rtt, 1000)) in test_handshake_rtt()
|
| /freebsd/sys/netinet/khelp/ |
| H A D | h_ertt.c | 353 e_t->rtt = tcp_ts_getticks() - txsi->tx_ts + 1; in ertt_packet_measurement_hook() 355 if (e_t->rtt < e_t->minrtt || e_t->minrtt == 0) in ertt_packet_measurement_hook() 356 e_t->minrtt = e_t->rtt; in ertt_packet_measurement_hook() 358 if (e_t->rtt > e_t->maxrtt || e_t->maxrtt == 0) in ertt_packet_measurement_hook() 359 e_t->maxrtt = e_t->rtt; in ertt_packet_measurement_hook() 522 e_t->rtt = 0; in ertt_uma_ctor()
|
| H A D | h_ertt.h | 69 int rtt; member
|
| /freebsd/sys/dev/hyperv/utilities/ |
| H A D | vmbus_timesync.c | 110 uint64_t hv_ns, vm_ns, rtt = 0; in vmbus_timesync() local 113 rtt = hyperv_tc64() - sent_tc; in vmbus_timesync() 115 hv_ns = (hvtime - VMBUS_ICMSG_TS_BASE + rtt) * HYPERV_TIMER_NS_FACTOR; in vmbus_timesync()
|
| /freebsd/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | ftm-initiator.c | 1107 s64 rtt_avg, rtt = res->ftm.rtt_avg; in iwl_mvm_ftm_rtt_smoothing() local 1114 WARN_ON(rtt < 0); in iwl_mvm_ftm_rtt_smoothing() 1138 resp->rtt_avg = rtt; in iwl_mvm_ftm_rtt_smoothing() 1147 resp->rtt_avg = rtt; in iwl_mvm_ftm_rtt_smoothing() 1159 rtt_avg = div_s64(alpha * rtt + (100 - alpha) * resp->rtt_avg, 100); in iwl_mvm_ftm_rtt_smoothing() 1163 resp->addr, resp->rtt_avg, rtt_avg, rtt); in iwl_mvm_ftm_rtt_smoothing() 1172 if (rtt_avg > rtt && (rtt_avg - rtt) > undershoot) { in iwl_mvm_ftm_rtt_smoothing() 1177 (rtt_avg - rtt)); in iwl_mvm_ftm_rtt_smoothing() 1178 } else if (rtt_avg < rtt && (rtt - rtt_avg) > in iwl_mvm_ftm_rtt_smoothing() 1183 (rtt - rtt_avg)); in iwl_mvm_ftm_rtt_smoothing() [all …]
|
| /freebsd/sys/netgraph/ |
| H A D | ng_pptpgre.c | 192 int32_t rtt; /* round trip time estimate */ member 852 diff = sample - hpriv->rtt; in ng_pptpgre_rcvdata_lower() 853 hpriv->rtt += PPTP_ACK_ALPHA(diff); in ng_pptpgre_rcvdata_lower() 858 hpriv->ato = hpriv->rtt + PPTP_ACK_CHI(hpriv->dev + 2); in ng_pptpgre_rcvdata_lower() 1100 hpriv->rtt = PPTP_ACK_DELTA(hpriv->rtt) + 1; /* +1 to avoid delta*0 case */ in ng_pptpgre_recv_ack_timeout() 1101 hpriv->ato = hpriv->rtt + PPTP_ACK_CHI(hpriv->dev); in ng_pptpgre_recv_ack_timeout() 1123 ackTimeout = (hpriv->rtt >> 2); in ng_pptpgre_start_send_ack_timer() 1245 hpriv->rtt = PPTP_TIME_SCALE / 10; in ng_pptpgre_reset() 1247 hpriv->rtt *= hpriv->conf.peerPpd; in ng_pptpgre_reset()
|
| /freebsd/usr.bin/script/ |
| H A D | script.c | 103 struct termios rtt, stt; in main() local 253 rtt = tt; in main() 254 cfmakeraw(&rtt); in main() 255 rtt.c_lflag &= ~ECHO; in main() 256 (void)tcsetattr(STDIN_FILENO, TCSAFLUSH, &rtt); in main()
|
| /freebsd/sys/contrib/device-tree/src/arm/microchip/ |
| H A D | at91sam9260ek.dts | 117 atmel,wakeup-rtt-timer; 121 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
|
| /freebsd/sys/net80211/ |
| H A D | ieee80211_tdma.c | 592 int32_t rtt; in tdma_process_params() 601 rtt = rstamp - (le64toh(tstamp) & 0x7fff); in tdma_process_params() 602 if (rtt < 0) in tdma_process_params() 603 rtt += 0x7fff; in tdma_process_params() 607 rtt, rstamp, in tdma_process_params()
|
| /freebsd/sbin/route/ |
| H A D | keywords | 44 rtt
|