/netbsd/external/bsd/unbound/dist/util/ |
H A D | rtt.c | 56 int rto = rtt->srtt + 4*rtt->rttvar; in calc_rto() 67 rtt->srtt = 0; in rtt_init() 69 rtt->rto = calc_rto(rtt); in rtt_init() 77 return rtt->rto; in rtt_timeout() 83 if(calc_rto(rtt) != rtt->rto) { in rtt_unclamped() 85 return rtt->rto; in rtt_unclamped() 88 return rtt->srtt + 4*rtt->rttvar; in rtt_unclamped() 98 rtt->rttvar += (delta - rtt->rttvar) / 4; /* h = 1/4 */ in rtt_update() 99 rtt->rto = calc_rto(rtt); in rtt_update() 108 if(rtt->rto < orig) in rtt_lost() [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);
|
/netbsd/external/bsd/unbound/dist/services/cache/ |
H A D | infra.c | 388 rtt_init(&data->rtt); in data_entry_init() 483 *to = rtt_timeout(&data->rtt); in infra_host() 491 *to = rtt_timeout(&data->rtt); in infra_host() 595 data->rtt.rto = orig_rtt; in infra_rtt_update() 598 rtt_lost(&data->rtt, orig_rtt); in infra_rtt_update() 614 rtt_init(&data->rtt); in infra_rtt_update() 623 if(data->rtt.rto > 0) in infra_rtt_update() 624 rto = data->rtt.rto; in infra_rtt_update() 645 memmove(rtt, &data->rtt, sizeof(*rtt)); in infra_get_host_rto() 700 *rtt = rtt_unclamped(&host->rtt); in infra_get_lame_rtt() [all …]
|
H A D | infra.h | 82 struct rtt_info rtt; member 342 int* lame, int* dnsseclame, int* reclame, int* rtt, time_t timenow); 362 size_t namelen, struct rtt_info* rtt, int* delay, time_t timenow,
|
/netbsd/sys/netinet/ |
H A D | dccp_tcplike.c | 170 if (cb->rtt == 0xffff) { in tcplike_rtt_sample() 172 cb->rtt = sample; in tcplike_rtt_sample() 173 cb->rto = cb->rtt << 1; in tcplike_rtt_sample() 178 if (sample >= cb->rtt) { in tcplike_rtt_sample() 179 err = sample - cb->rtt; in tcplike_rtt_sample() 180 cb->rtt = cb->rtt + (err >> 3); in tcplike_rtt_sample() 182 err = cb->rtt - sample; in tcplike_rtt_sample() 183 cb->rtt = cb->rtt - (err >> 3); in tcplike_rtt_sample() 186 if (cb->rtt < TCPLIKE_MIN_RTT) in tcplike_rtt_sample() 187 cb->rtt = TCPLIKE_MIN_RTT; in tcplike_rtt_sample() [all …]
|
H A D | tcp_congctl.c | 865 tcp_cubic_getW(struct tcpcb *tp, uint32_t ms_elapsed, uint32_t rtt) in tcp_cubic_getW() argument 874 tK3 = (long)(ms_elapsed + rtt) - (long)K; in tcp_cubic_getW() 927 uint32_t ms_elapsed, rtt; in tcp_cubic_newack() local 937 (rtt = (tp->t_srtt << 5) / PR_SLOWHZ) > 0) { in tcp_cubic_newack() 942 ms_elapsed / rtt / 3; in tcp_cubic_newack() 946 tp->snd_cwnd += (tcp_cubic_getW(tp, ms_elapsed, rtt) - in tcp_cubic_newack()
|
H A D | dccp_tfrc.c | 316 cb->x_calc = *tfrc_calcX(cb->s, cb->rtt, &cb->p); in tfrc_updateX() 331 t_rtt.tv_usec = cb->rtt % 1000000; in tfrc_updateX() 332 t_rtt.tv_sec = cb->rtt / 1000000; in tfrc_updateX() 345 cb->x.denom *= cb->rtt; in tfrc_updateX() 417 v.denom *= cb->rtt; in tfrc_time_no_feedback() 683 if (cb->rtt) in tfrc_send_packet() 685 / cb->rtt / TFRC_WIN_COUNT_PER_RTT; in tfrc_send_packet() 924 cb->rtt = r_sample; in tfrc_send_packet_recv() 926 cb->rtt = (u_int32_t) (TFRC_RTT_FILTER_CONST * cb->rtt + in tfrc_send_packet_recv() 930 TFRC_DEBUG((LOG_INFO, "TFRC - New RTT estimate %u (tfrc_send_packet_recv)\n", cb->rtt)); in tfrc_send_packet_recv() [all …]
|
H A D | dccp_tcplike.h | 59 u_int16_t rtt; /* estimated round trip-time */ member
|
H A D | dccp_tfrc.h | 89 u_int32_t rtt; /* Estimate of current round trip time */ member
|
/netbsd/tests/net/route/ |
H A D | t_change.sh | 136 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 155 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 203 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 222 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 270 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 289 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
|
H A D | t_route.sh | 238 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 254 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 270 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 288 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 313 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 328 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 344 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire 362 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
|
/netbsd/usr.sbin/sysinst/ |
H A D | run.c | 421 struct termios rtt, tt; in launch_subwin() local 431 rtt = tt; in launch_subwin() 472 rtt = tt; in launch_subwin() 473 rtt.c_lflag |= (ICANON|ECHO); in launch_subwin() 474 (void)tcsetattr(slave, TCSANOW, &rtt); in launch_subwin() 560 if (!(rtt.c_lflag & ECHO)) in launch_subwin() 566 memcpy(&rtt, ibuf, sizeof(rtt)); in launch_subwin()
|
/netbsd/sys/dev/i2c/ |
H A D | cwfg.c | 138 u_int vcell, rtt, tmp; in cwfg_sensor_refresh() local 179 rtt = __SHIFTOUT(val, RTT_HI) << 8; in cwfg_sensor_refresh() 182 rtt |= __SHIFTOUT(val, RTT_LO); in cwfg_sensor_refresh() 184 if (rtt != 0x1fff) { in cwfg_sensor_refresh() 186 e->value_cur = rtt; /* minutes */ in cwfg_sensor_refresh()
|
/netbsd/usr.bin/script/ |
H A D | script.c | 106 struct termios rtt; in main() local 182 rtt = tt; in main() 183 cfmakeraw(&rtt); in main() 184 rtt.c_lflag &= ~ECHO; in main() 185 (void)tcsetattr(STDIN_FILENO, TCSAFLUSH, &rtt); in main()
|
/netbsd/sys/dev/hyperv/ |
H A D | hvtimesync.c | 127 uint64_t hv_ns, vm_ns, rtt = 0; in do_timesync() local 131 rtt = hyperv_tc64() - sent_tc; in do_timesync() 133 hv_ns = (hvtime - VMBUS_ICMSG_TS_BASE + rtt) * HYPERV_TIMER_NS_FACTOR; in do_timesync()
|
/netbsd/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
H A D | at91sam9260ek.dts | 117 atmel,wakeup-rtt-timer; 121 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
|
H A D | sama7g5.dtsi | 132 atmel,wakeup-rtt-timer; 136 rtt: rtt@e001d020 { label 137 compatible = "microchip,sama7g5-rtt", "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt";
|
H A D | at91sam9g20ek_common.dtsi | 122 atmel,wakeup-rtt-timer; 126 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
|
H A D | usb_a9260.dts | 27 atmel,wakeup-rtt-timer;
|
H A D | sam9x60.dtsi | 687 atmel,wakeup-rtt-timer; 691 rtt: rtt@fffffe20 { label 692 compatible = "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt";
|
/netbsd/external/mpl/bind/dist/bin/dig/ |
H A D | host.c | 279 const char *rtt; in printsection() local 287 rtt = t->text; in printsection() 297 rtt = typebuf2; in printsection() 299 say_message(print_name, rtt, &rdata, in printsection()
|
/netbsd/sys/nfs/ |
H A D | nfsrtt.h | 57 int rtt; /* Measured round trip time */ member
|
/netbsd/external/bsd/unbound/dist/iterator/ |
H A D | iter_utils.c | 230 int rtt, lame, reclame, dnsseclame; in iter_filter_unsuitable() local 247 &rtt, now)) { in iter_filter_unsuitable() 249 verbose(VERB_ALGO, " rtt=%d%s%s%s%s", rtt, in iter_filter_unsuitable() 256 else if(rtt >= USEFUL_SERVER_TOP_TIMEOUT) in iter_filter_unsuitable() 266 return rtt+USEFUL_SERVER_TOP_TIMEOUT*3; /* nonpref */ in iter_filter_unsuitable() 268 return rtt+USEFUL_SERVER_TOP_TIMEOUT*2; /* nonpref */ in iter_filter_unsuitable() 270 return rtt+USEFUL_SERVER_TOP_TIMEOUT+1; /* nonpref */ in iter_filter_unsuitable() 271 else return rtt; in iter_filter_unsuitable()
|
/netbsd/sbin/route/ |
H A D | keywords.sh | 47 rtt
|
/netbsd/external/bsd/unbound/dist/contrib/ |
H A D | unbound-fuzzme.patch | 88 $(srcdir)/util/rtt.h $(srcdir)/services/authzone.h $(srcdir)/validator/val_kcache.h \ 96 + $(srcdir)/util/rbtree.h $(srcdir)/util/rtt.h $(srcdir)/util/data/msgreply.h $(srcdir)/util/fptr_w…
|