Home
last modified time | relevance | path

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

/freebsd-11-stable/contrib/tcsh/
HDtc.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-11-stable/sys/net/altq/
HDaltq_fairq.c544 uint64_t cur_time = read_machclk(); in fairq_dequeue() local
556 m = fairq_getq(best_cl, cur_time); in fairq_dequeue()
572 m = fairq_pollq(cl, cur_time, &hit_limit); in fairq_dequeue()
599 m = fairq_getq(best_cl, cur_time); in fairq_dequeue()
684 fairq_getq(struct fairq_class *cl, uint64_t cur_time) in fairq_getq() argument
716 delta = (cur_time - cl->cl_last_time); in fairq_getq()
721 cl->cl_last_time = cur_time; in fairq_getq()
728 delta = (cur_time - b->last_time); in fairq_getq()
733 b->last_time = cur_time; in fairq_getq()
746 fairq_pollq(struct fairq_class *cl, uint64_t cur_time, int *hit_limit) in fairq_pollq() argument
[all …]
HDaltq_hfsc.c748 u_int64_t cur_time; in hfsc_dequeue() local
756 cur_time = read_machclk(); in hfsc_dequeue()
764 realtime = (cl->cl_e <= cur_time); in hfsc_dequeue()
771 if ((cl = hfsc_get_mindl(hif, cur_time)) in hfsc_dequeue()
785 cl = actlist_firstfit(cl, cur_time); in hfsc_dequeue()
820 update_vf(cl, len, cur_time); in hfsc_dequeue()
942 u_int64_t cur_time; in init_ed() local
944 cur_time = read_machclk(); in init_ed()
947 rtsc_min(&cl->cl_deadline, cl->cl_rsc, cur_time, cl->cl_cumul); in init_ed()
986 u_int64_t vt, f, cur_time; in init_vf() local
[all …]
HDaltq_hfsc.h94 u_int64_t cur_time; member
162 u_int64_t cur_time; /* current time */ member
/freebsd-11-stable/sbin/dhclient/
HDdhclient.c87 time_t cur_time; variable
423 time(&cur_time); in main()
601 ip->client->first_sending = cur_time; in state_reboot()
628 ip->client->first_sending = cur_time; in state_init()
698 ip->client->new->expiry = cur_time + 12000; in state_selecting()
699 ip->client->new->renewal += cur_time + 8000; in state_selecting()
700 ip->client->new->rebind += cur_time + 10000; in state_selecting()
712 ip->client->first_sending = cur_time; in state_selecting()
776 ip->client->new->expiry > TIME_MAX - cur_time) in dhcpack()
777 ip->client->new->expiry = TIME_MAX - cur_time; in dhcpack()
[all …]
HDdispatch.c187 if (timeouts->when <= cur_time) { in dispatch()
202 howlong = timeouts->when - cur_time; in dispatch()
232 time(&cur_time); in dispatch()
239 time(&cur_time); in dispatch()
HDdhcpd.h358 extern time_t cur_time;
HDclparse.c587 if (ip->client->active->expiry < cur_time) in parse_client_lease_statement()
/freebsd-11-stable/usr.bin/ctlstat/
HDctlstat.c121 struct timespec cur_time, prev_time; member
138 struct ctl_io_stats **xstats, struct timespec *cur_time, int *time_valid);
157 struct timespec *cur_time, int *flags) in getstats() argument
199 cur_time->tv_sec = get_stats.timestamp.tv_sec; in getstats()
200 cur_time->tv_nsec = get_stats.timestamp.tv_nsec; in getstats()
396 etime = ctx->cur_time.tv_sec - ctx->prev_time.tv_sec + in ctlstat_standard()
397 (ctx->prev_time.tv_nsec - ctx->cur_time.tv_nsec) * 1e-9; in ctlstat_standard()
699 ctx.prev_time = ctx.cur_time; in main()
702 &ctx.cur_stats, &ctx.cur_time, &ctx.flags) != 0) in main()
/freebsd-11-stable/sbin/camcontrol/
HDtimestamp.c467 const struct tm *restrict cur_time; in timestamp() local
471 cur_time = gmtime(&time_var); in timestamp()
473 cur_time = localtime(&time_var); in timestamp()
477 cur_time); in timestamp()
/freebsd-11-stable/contrib/llvm-project/openmp/runtime/src/
HDkmp_barrier.cpp1457 kmp_uint64 cur_time = __itt_get_timestamp(); in __kmp_barrier_template() local
1463 __kmp_itt_frame_submit(gtid, this_thr->th.th_frame_time, cur_time, 0, in __kmp_barrier_template()
1465 this_thr->th.th_frame_time = cur_time; in __kmp_barrier_template()
1469 __kmp_itt_frame_submit(gtid, this_thr->th.th_bar_min_time, cur_time, in __kmp_barrier_template()
1475 kmp_uint64 delta = cur_time - this_thr->th.th_bar_arrive_time; in __kmp_barrier_template()
1480 delta += (cur_time - other_threads[i]->th.th_bar_arrive_time); in __kmp_barrier_template()
1484 cur_time, delta, in __kmp_barrier_template()
1487 __kmp_itt_frame_submit(gtid, this_thr->th.th_frame_time, cur_time, 0, in __kmp_barrier_template()
1489 this_thr->th.th_frame_time = cur_time; in __kmp_barrier_template()
1842 kmp_uint64 cur_time = __itt_get_timestamp(); in __kmp_join_barrier() local
[all …]
HDkmp_tasking.cpp1529 kmp_uint64 cur_time; in __kmp_invoke_task() local
1537 cur_time = __itt_get_timestamp(); in __kmp_invoke_task()
1556 thread->th.th_bar_arrive_time += (__itt_get_timestamp() - cur_time); in __kmp_invoke_task()
/freebsd-11-stable/sys/dev/vxge/
HDvxge-osdep.h191 struct timeval cur_time; \
192 gettimeofday(&cur_time, 0); \
194 cur_time.tv_sec, cur_time.tv_usec); \
/freebsd-11-stable/lib/libdevstat/
HDdevstat.h171 long double devstat_compute_etime(struct bintime *cur_time,
HDdevstat.c1203 devstat_compute_etime(struct bintime *cur_time, struct bintime *prev_time) in devstat_compute_etime() argument
1207 etime = cur_time->sec; in devstat_compute_etime()
1208 etime += cur_time->frac * BINTIME_SCALE; in devstat_compute_etime()
/freebsd-11-stable/sys/dev/twa/
HDtw_cl_io.c603 TW_TIME cur_time; in tw_cl_ioctl() local
608 cur_time = tw_osl_get_local_time(); in tw_cl_ioctl()
614 (cur_time >= ctlr->ioctl_lock.timeout)) { in tw_cl_ioctl()
619 cur_time + (lock_pkt.timeout_msec / 1000); in tw_cl_ioctl()
626 (ctlr->ioctl_lock.timeout - cur_time) * 1000); in tw_cl_ioctl()
/freebsd-11-stable/sys/dev/mpr/
HDmpr.c3277 struct timeval cur_time, start_time; in mpr_wait_command() local
3306 getmicrouptime(&cur_time); in mpr_wait_command()
3307 timevalsub(&cur_time, &start_time); in mpr_wait_command()
3317 getmicrouptime(&cur_time); in mpr_wait_command()
3318 timevalsub(&cur_time, &start_time); in mpr_wait_command()
3319 if (cur_time.tv_sec > timeout) { in mpr_wait_command()
3329 (intmax_t)cur_time.tv_sec); in mpr_wait_command()
3353 struct timeval cur_time, start_time; in mpr_request_polled() local
3375 getmicrouptime(&cur_time); in mpr_request_polled()
3376 timevalsub(&cur_time, &start_time); in mpr_request_polled()
[all …]
HDmpr_sas_lsi.c1473 struct timeval cur_time, start_time; in mprsas_SSU_to_SATA_devices() local
1549 getmicrotime(&cur_time); in mprsas_SSU_to_SATA_devices()
1550 if ((cur_time.tv_sec - start_time.tv_sec) > 60) { in mprsas_SSU_to_SATA_devices()
/freebsd-11-stable/contrib/ntp/ntpd/
HDntpd.c1602 time_t cur_time; local
1617 cur_time = time(NULL);
1618 wait_rem = (wait_end_time > cur_time)
1619 ? (wait_end_time - cur_time)
/freebsd-11-stable/contrib/ofed/opensm/opensm/
HDosm_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-11-stable/usr.sbin/lpr/lpd/
HDprintjob.c1267 time_t amtslept, cur_time, prev_mtime; in wait4data() local
1307 cur_time = time(NULL); in wait4data()
1308 if (statdf.st_mtime >= cur_time - MINWAIT_4DATA) { in wait4data()
1309 if (statdf.st_mtime >= cur_time) /* some TOD oddity */ in wait4data()
1312 sleepreq = cur_time - statdf.st_mtime; in wait4data()
/freebsd-11-stable/contrib/ntp/sntp/libopts/
HDsave.c553 time_t cur_time = time(NULL); in open_sv_file() local
554 char * time_str = ctime(&cur_time); in open_sv_file()
/freebsd-11-stable/sys/dev/mps/
HDmps.c2547 struct timeval cur_time, start_time; in mps_wait_command() local
2575 getmicrouptime(&cur_time); in mps_wait_command()
2576 timevalsub(&cur_time, &start_time); in mps_wait_command()
2586 getmicrouptime(&cur_time); in mps_wait_command()
2587 timevalsub(&cur_time, &start_time); in mps_wait_command()
2588 if (cur_time.tv_sec > timeout) { in mps_wait_command()
2598 (intmax_t)cur_time.tv_sec); in mps_wait_command()