Home
last modified time | relevance | path

Searched refs:cur_time (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/tcsh/
H A Dtc.sched.c62 time_t cur_time; in dosched() local
150 (void) time(&cur_time); in dosched()
151 ltp = localtime(&cur_time); in dosched()
167 tp->t_when = cur_time - ltp->tm_sec + dif_hour * 3600 + dif_min * 60; in dosched()
169 tp->t_when = cur_time - ltp->tm_sec + dif_hour * 3600L + dif_min * 60L; in dosched()
186 time_t cur_time; in sched_run() local
195 (void) time(&cur_time); in sched_run()
203 if (!(sched_ptr && sched_ptr->t_when < cur_time)) { in sched_run()
211 while ((tp = sched_ptr) != NULL && tp->t_when < cur_time) { in sched_run()
/freebsd/crypto/openssl/test/
H A Dquic_fifd_test.c15 static OSSL_TIME cur_time; variable
19 return cur_time; in fake_now()
24 cur_time = ossl_time_add(cur_time, ossl_ms2time(ms)); in step_time()
126 cur_time = ossl_seconds2time(1000); in test_generic()
182 pkt->ackm_pkt.time = cur_time; in test_generic()
209 cur_time))) in test_generic()
240 pkt2->ackm_pkt.time = cur_time; in test_generic()
251 pn_space, cur_time))) in test_generic()
H A Dquic_fc_test.c196 static OSSL_TIME cur_time; variable
200 return cur_time; in fake_now()
484 cur_time = ossl_time_zero(); in run_rxfc_script()
615 cur_time = ossl_time_add(cur_time, ossl_ticks2time(op->arg0)); in run_rxfc_script()
/freebsd/sys/net/altq/
H A Daltq_fairq.c542 uint64_t cur_time = read_machclk(); in fairq_dequeue() local
554 m = fairq_getq(best_cl, cur_time); in fairq_dequeue()
570 m = fairq_pollq(cl, cur_time, &hit_limit); in fairq_dequeue()
597 m = fairq_getq(best_cl, cur_time); in fairq_dequeue()
682 fairq_getq(struct fairq_class *cl, uint64_t cur_time) in fairq_getq() argument
714 delta = (cur_time - cl->cl_last_time); in fairq_getq()
719 cl->cl_last_time = cur_time; in fairq_getq()
726 delta = (cur_time - b->last_time); in fairq_getq()
731 b->last_time = cur_time; in fairq_getq()
744 fairq_pollq(struct fairq_class *cl, uint64_t cur_time, int *hit_limit) in fairq_pollq() argument
[all …]
H A Daltq_hfsc.c716 u_int64_t cur_time; in hfsc_dequeue() local
724 cur_time = read_machclk(); in hfsc_dequeue()
731 realtime = (cl->cl_e <= cur_time); in hfsc_dequeue()
738 if ((cl = hfsc_get_mindl(hif, cur_time)) in hfsc_dequeue()
751 cl = actlist_firstfit(cl, cur_time); in hfsc_dequeue()
786 update_vf(cl, len, cur_time); in hfsc_dequeue()
908 u_int64_t cur_time; in init_ed() local
910 cur_time = read_machclk(); in init_ed()
913 rtsc_min(&cl->cl_deadline, cl->cl_rsc, cur_time, cl->cl_cumul); in init_ed()
952 u_int64_t vt, f, cur_time; in init_vf() local
[all …]
H A Daltq_hfsc.h102 u_int64_t cur_time; member
145 u_int64_t cur_time; member
/freebsd/sbin/dhclient/
H A Ddhclient.c93 time_t cur_time; /* Seconds since epoch. */ variable
453 cur_time = time(NULL); in main()
640 ip->client->first_sending = cur_time; in state_reboot()
667 ip->client->first_sending = cur_time; in state_init()
737 ip->client->new->expiry = cur_time + 12000; in state_selecting()
738 ip->client->new->renewal += cur_time + 8000; in state_selecting()
739 ip->client->new->rebind += cur_time + 10000; in state_selecting()
751 ip->client->first_sending = cur_time; in state_selecting()
815 ip->client->new->expiry > TIME_MAX - cur_time) in dhcpack()
816 ip->client->new->expiry = TIME_MAX - cur_time; in dhcpack()
[all …]
H A Ddispatch.c227 cur_time = time(NULL); in dispatch()
235 cur_time = time(NULL); in dispatch()
370 cur_time = time(NULL); in add_timeout()
372 when.tv_sec += when_s - cur_time; in add_timeout()
H A Ddhcpd.h365 extern time_t cur_time; /* Seconds since epoch */
/freebsd/sbin/camcontrol/
H A Dtimestamp.c464 const struct tm *restrict cur_time; in timestamp() local
468 cur_time = gmtime(&time_var); in timestamp()
470 cur_time = localtime(&time_var); in timestamp()
474 cur_time); in timestamp()
/freebsd/usr.bin/ctlstat/
H A Dctlstat.c124 struct timespec cur_time, prev_time; member
151 struct ctl_io_stats **xstats, struct timespec *cur_time, int *time_valid,
171 struct timespec *cur_time, int *flags, bool ports) in getstats() argument
213 cur_time->tv_sec = get_stats.timestamp.tv_sec; in getstats()
214 cur_time->tv_nsec = get_stats.timestamp.tv_nsec; in getstats()
628 etime = ctx->cur_time.tv_sec - ctx->prev_time.tv_sec + in ctlstat_standard()
629 (ctx->prev_time.tv_nsec - ctx->cur_time.tv_nsec) * 1e-9; in ctlstat_standard()
821 ctx->prev_time = ctx->cur_time; in get_and_print_stats()
824 &ctx->cur_stats, &ctx->cur_time, &ctx->flags, ports) != 0) in get_and_print_stats()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteClientBase.cpp72 auto cur_time = steady_clock::now(); in SendContinuePacketAndWaitForResponse() local
73 if (cur_time >= m_interrupt_endpoint) in SendContinuePacketAndWaitForResponse()
80 auto new_wait = m_interrupt_endpoint - cur_time; in SendContinuePacketAndWaitForResponse()
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_barrier.cpp1955 kmp_uint64 cur_time = __itt_get_timestamp(); in __kmp_barrier_template() local
1961 __kmp_itt_frame_submit(gtid, this_thr->th.th_frame_time, cur_time, 0, in __kmp_barrier_template()
1963 this_thr->th.th_frame_time = cur_time; in __kmp_barrier_template()
1967 __kmp_itt_frame_submit(gtid, this_thr->th.th_bar_min_time, cur_time, in __kmp_barrier_template()
1973 kmp_uint64 delta = cur_time - this_thr->th.th_bar_arrive_time; in __kmp_barrier_template()
1978 delta += (cur_time - other_threads[i]->th.th_bar_arrive_time); in __kmp_barrier_template()
1982 cur_time, delta, in __kmp_barrier_template()
1985 __kmp_itt_frame_submit(gtid, this_thr->th.th_frame_time, cur_time, 0, in __kmp_barrier_template()
1987 this_thr->th.th_frame_time = cur_time; in __kmp_barrier_template()
2359 kmp_uint64 cur_time = __itt_get_timestamp(); in __kmp_join_barrier() local
[all …]
/freebsd/contrib/libpcap/
H A Dpcap-dpdk.c267 struct timeval cur_time; in calculate_timestamp() local
269 cur_time.tv_sec = (time_t)(cycles/helper->hz); in calculate_timestamp()
270 cur_time.tv_usec = (suseconds_t)((cycles%helper->hz)*1e6/helper->hz); in calculate_timestamp()
271 timeradd(&(helper->start_time), &cur_time, ts); in calculate_timestamp()
/freebsd/lib/libdevstat/
H A Ddevstat.h171 long double devstat_compute_etime(struct bintime *cur_time,
H A Ddevstat.c1208 devstat_compute_etime(struct bintime *cur_time, struct bintime *prev_time) in devstat_compute_etime() argument
1212 etime = cur_time->sec; in devstat_compute_etime()
1213 etime += cur_time->frac * BINTIME_SCALE; in devstat_compute_etime()
/freebsd/contrib/ntp/ntpd/
H A Dntpd.c1645 time_t cur_time;
1660 cur_time = time(NULL);
1661 wait_rem = (wait_end_time > cur_time)
1662 ? (wait_end_time - cur_time)
1627 time_t cur_time; global() local
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_perfmgr_db.c123 time_t cur_time = 0; in malloc_node() local
135 cur_time = time(NULL); in malloc_node()
137 rc->ports[i].last_reset = cur_time; in malloc_node()
138 rc->ports[i].err_previous.time = cur_time; in malloc_node()
139 rc->ports[i].dc_previous.time = cur_time; in malloc_node()
/freebsd/usr.sbin/lpr/lpd/
H A Dprintjob.c1255 time_t amtslept, cur_time, prev_mtime; in wait4data() local
1295 cur_time = time(NULL); in wait4data()
1296 if (statdf.st_mtime >= cur_time - MINWAIT_4DATA) { in wait4data()
1297 if (statdf.st_mtime >= cur_time) /* some TOD oddity */ in wait4data()
1300 sleepreq = cur_time - statdf.st_mtime; in wait4data()
/freebsd/sys/dev/mpr/
H A Dmpr.c3798 struct timeval cur_time, start_time; in mpr_wait_command() local
3823 getmicrouptime(&cur_time); in mpr_wait_command()
3824 timevalsub(&cur_time, &start_time); in mpr_wait_command()
3834 getmicrouptime(&cur_time); in mpr_wait_command()
3835 timevalsub(&cur_time, &start_time); in mpr_wait_command()
3836 if (cur_time.tv_sec > timeout) { in mpr_wait_command()
3847 (intmax_t)cur_time.tv_sec); in mpr_wait_command()
3873 struct timeval cur_time, start_time; in mpr_request_polled() local
3895 getmicrouptime(&cur_time); in mpr_request_polled()
3896 timevalsub(&cur_time, &start_time); in mpr_request_polled()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76x02_mac.c1144 ktime_t cur_time; in mt76x02_edcca_check() local
1147 cur_time = ktime_get_boottime(); in mt76x02_edcca_check()
1150 active = ktime_to_us(ktime_sub(cur_time, dev->ed_time)); in mt76x02_edcca_check()
1151 dev->ed_time = cur_time; in mt76x02_edcca_check()
/freebsd/contrib/ntp/sntp/libopts/
H A Dsave.c625 time_t cur_time = time(NULL); in open_sv_file() local
626 char * time_str = ctime(&cur_time); in open_sv_file()
/freebsd/sys/dev/mps/
H A Dmps.c3071 struct timeval cur_time, start_time; in mps_wait_command() local
3099 getmicrouptime(&cur_time); in mps_wait_command()
3100 timevalsub(&cur_time, &start_time); in mps_wait_command()
3110 getmicrouptime(&cur_time); in mps_wait_command()
3111 timevalsub(&cur_time, &start_time); in mps_wait_command()
3112 if (cur_time.tv_sec > timeout) { in mps_wait_command()
3123 (intmax_t)cur_time.tv_sec); in mps_wait_command()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/
H A Dmac.c1649 ktime_t cur_time; in mt7603_edcca_check() local
1675 cur_time = ktime_get_boottime(); in mt7603_edcca_check()
1678 active = ktime_to_us(ktime_sub(cur_time, dev->ed_time)); in mt7603_edcca_check()
1679 dev->ed_time = cur_time; in mt7603_edcca_check()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dmac.c1951 ktime_t cur_time; in mt7615_update_survey() local
1961 cur_time = ktime_get_boottime(); in mt7615_update_survey()
1963 mt76_update_survey_active_time(&mdev->phy, cur_time); in mt7615_update_survey()
1965 mt76_update_survey_active_time(mphy_ext, cur_time); in mt7615_update_survey()

12