Home
last modified time | relevance | path

Searched refs:lasttime (Results 1 – 22 of 22) sorted by relevance

/freebsd-12.1/stand/i386/libi386/
H A Dspinconsole.c85 static time_t lasttime = 0; in spinc_putchar() local
89 if (now < (lasttime + 1)) in spinc_putchar()
92 if (lasttime > 0) in spinc_putchar()
95 lasttime = now; in spinc_putchar()
H A Dtime.c73 static time_t lasttime; in time() local
86 if (now < lasttime) in time()
88 lasttime = now; in time()
/freebsd-12.1/contrib/libevent/sample/
H A Dtime-test.c38 struct timeval lasttime; variable
50 evutil_timersub(&newtime, &lasttime, &difference); in timeout_cb()
56 lasttime = newtime; in timeout_cb()
101 evutil_gettimeofday(&lasttime, NULL); in main()
/freebsd-12.1/contrib/ntp/scripts/monitoring/
H A Dntploopstat267 undef($lasttime);
395 if (defined($lasttime) && ($lasttime + 2) >= $time)
423 $lasttime = $time;
/freebsd-12.1/sys/netgraph/
H A Dng_async.c85 long lasttime; /* Time of last async packet sent */ member
370 sc->lasttime = 0; in nga_disconnect()
456 if (time.tv_sec >= sc->lasttime + 1) { in nga_rcv_sync()
458 sc->lasttime = time.tv_sec; in nga_rcv_sync()
/freebsd-12.1/sys/kern/
H A Dkern_time.c1035 ratecheck(struct timeval *lasttime, const struct timeval *mininterval) in ratecheck() argument
1042 timevalsub(&delta, lasttime); in ratecheck()
1049 (lasttime->tv_sec == 0 && lasttime->tv_usec == 0)) { in ratecheck()
1050 *lasttime = tv; in ratecheck()
1072 ppsratecheck(struct timeval *lasttime, int *curpps, int maxpps) in ppsratecheck() argument
1082 if (lasttime->tv_sec == 0 || (u_int)(now - lasttime->tv_sec) >= hz) { in ppsratecheck()
1083 lasttime->tv_sec = now; in ppsratecheck()
H A Dkern_sig.c3356 struct timespec lasttime; in corefile_open_last() local
3391 lasttime.tv_sec > vattr.va_mtime.tv_sec || in corefile_open_last()
3392 (lasttime.tv_sec == vattr.va_mtime.tv_sec && in corefile_open_last()
3393 lasttime.tv_nsec >= vattr.va_mtime.tv_nsec)) { in corefile_open_last()
3397 lasttime = vattr.va_mtime; in corefile_open_last()
/freebsd-12.1/contrib/ntp/ntpd/
H A Drefclock_bancomm.c157 u_long lasttime; /* last time clock heard from */ member
429 vme->lasttime = current_time; in vme_poll()
H A Drefclock_msfees.c251 u_long lasttime; /* last time clock heard from */ member
762 ees->lasttime = current_time; in ees_receive()
1443 if ((current_time - eesunits[unit]->lasttime) > 150) in msfees_poll()
/freebsd-12.1/sys/fs/nfs/
H A Dnfs_commonport.c405 static time_t lasttime = 0; in newnfs_timer() local
411 if (lasttime != NFSD_MONOSEC) { in newnfs_timer()
412 lasttime = NFSD_MONOSEC; in newnfs_timer()
H A Dnfs_commonsubs.c3666 static time_t lasttime = 0; in nfssvc_idname() local
3911 if (lasttime < NFSD_MONOSEC && in nfssvc_idname()
3988 lasttime = NFSD_MONOSEC; in nfssvc_idname()
/freebsd-12.1/sys/compat/linuxkpi/common/include/linux/
H A Dkernel.h507 struct timeval lasttime; member
514 return (ppsratecheck(&rl->lasttime, &rl->counter, 1)); in linux_ratelimited()
/freebsd-12.1/contrib/ntp/ntpq/
H A Dntpq-subs.c1489 l_fp *lasttime; in when() local
1492 lasttime = rec; in when()
1494 lasttime = reftime; in when()
1498 if (ts->l_ui < lasttime->l_ui) in when()
1500 return (ts->l_ui - lasttime->l_ui); in when()
/freebsd-12.1/sys/netinet/
H A Dsctp_cc_functions.c1937 net->cc_mod.htcp_ca.lasttime = now; in measure_achieved_throughput()
1943 (now - net->cc_mod.htcp_ca.lasttime >= net->cc_mod.htcp_ca.minRTT) && in measure_achieved_throughput()
1945 …32_t cur_Bi = net->cc_mod.htcp_ca.bytecount / net->mtu * hz / (now - net->cc_mod.htcp_ca.lasttime); in measure_achieved_throughput()
1958 net->cc_mod.htcp_ca.lasttime = now; in measure_achieved_throughput()
H A Dsctp_structs.h223 uint32_t lasttime; member
/freebsd-12.1/contrib/ntp/ntpdc/
H A Dlayout.std314 offsetof(lasttime) = 0
H A Dntpdc_ops.c2064 (u_long)ntohl(oml->lasttime), in monlist()
/freebsd-12.1/contrib/ntp/include/
H A Dntp_request.h725 u_int32 lasttime; /* last packet from this host */ member
/freebsd-12.1/sys/contrib/ipfilter/netinet/
H A Dfil.c5489 ppsratecheck(lasttime, curpps, maxpps) in ppsratecheck() argument
5490 struct timeval *lasttime; in ppsratecheck()
5499 delta.tv_sec = tv.tv_sec - lasttime->tv_sec;
5500 delta.tv_usec = tv.tv_usec - lasttime->tv_usec;
5514 if ((lasttime->tv_sec == 0 && lasttime->tv_usec == 0) ||
5516 *lasttime = tv;
/freebsd-12.1/usr.sbin/ntp/ntpdc/
H A Dnl.c619 (int) offsetof(struct old_info_monitor, lasttime));
/freebsd-12.1/sys/dev/ncr/
H A Dncr.c1076 time_t lasttime; member
3779 np->lasttime=0;
5065 if (np->lasttime != thistime) {
5066 np->lasttime = thistime;
/freebsd-12.1/contrib/ntp/
H A DCommitLog151200 use, lasttime -> avg_int and firsttime -> last_int.
151212 use, lasttime -> avg_int and firsttime -> last_int
151220 use, lasttime -> avg_int and firsttime -> last_int.
151242 use, lasttime -> avg_int and firsttime -> last_int.
151269 use, lasttime -> avg_int and firsttime -> last_int.
151284 use, lasttime -> avg_int and firsttime -> last_int
151288 use, lasttime -> avg_int and firsttime -> last_int