Home
last modified time | relevance | path

Searched refs:interval (Results 1 – 25 of 168) sorted by relevance

1234567

/illumos-gate/usr/src/cmd/stat/common/
H A Dcommon.c63 sleep_until(hrtime_t *wakeup, hrtime_t interval, int forever, in sleep_until() argument
71 pause = *wakeup + interval - now; in sleep_until()
73 if (pause <= 0 || pause < (interval / 4)) in sleep_until()
76 *wakeup = now + interval; in sleep_until()
77 pause = interval; in sleep_until()
90 pause = interval / 2; in sleep_until()
91 *wakeup += interval; in sleep_until()
94 *wakeup += interval; in sleep_until()
/illumos-gate/usr/src/cmd/powertop/common/
H A Dpowertop.c95 double interval, interval_usr; in main() local
123 interval = interval_usr = INTERVAL_DEFAULT; in main()
165 if (*endptr != '\0' || interval < 1 || in main()
166 interval > INTERVAL_MAX) { in main()
222 (float)interval); in main()
289 (int)(interval * MILLISEC)) > 0) in main()
292 (void) sleep((int)interval); in main()
359 interval = 3; in main()
404 (g_total_events/interval) < 1) in main()
405 interval = INTERVAL_DEFAULT; in main()
[all …]
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Dlpq.c80 int interval = 0; in main() local
103 interval = atoi(av[optind++]); in main()
121 if (interval != 0) in main()
127 if ((interval != 0) && (num_jobs > 0)) in main()
128 sleep(interval); in main()
129 } while ((interval > 0) && (num_jobs > 0)); in main()
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_timers.c42 clock_t interval; in ibmf_i_set_timer() local
64 interval = msgimplp->im_retrans.retrans_rtv + in ibmf_i_set_timer()
71 tnf_long, interval, interval, in ibmf_i_set_timer()
76 (void *)msgimplp, drv_usectohz(interval)); in ibmf_i_set_timer()
86 interval = IBMF_RETRANS_DEF_TRANS_TO; in ibmf_i_set_timer()
93 tnf_long, interval, interval); in ibmf_i_set_timer()
100 interval = (msgimplp->im_retrans.retrans_rtv + in ibmf_i_set_timer()
114 tnf_long, interval, interval); in ibmf_i_set_timer()
130 tnf_long, new_interval, interval); in ibmf_i_set_timer()
136 tnf_long, interval, interval); in ibmf_i_set_timer()
[all …]
/illumos-gate/usr/src/cmd/dispadmin/
H A Dsubr.c103 long interval; in _hrtnewres() local
125 interval = htp->hrt_rem; in _hrtnewres()
126 if (interval == 0) { in _hrtnewres()
139 numerator = interval * new_res; in _hrtnewres()
141 if (numerator / new_res == interval) { in _hrtnewres()
216 dint = interval; in _hrtnewres()
/illumos-gate/usr/src/uts/common/io/usb/hcd/ehci/
H A Dehci_util.c2195 int interval; in ehci_allocate_high_speed_bandwidth() local
2469 int interval; in ehci_deallocate_high_speed_bandwidth() local
2896 interval = in ehci_adjust_polling_interval()
2941 interval = 1; in ehci_adjust_high_speed_polling_interval()
2943 interval = interval/EHCI_MAX_UFRAMES; in ehci_adjust_high_speed_polling_interval()
3090 int interval) in ehci_find_bestfit_hs_mask() argument
3181 interval); in ehci_find_bestfit_hs_mask()
3205 int interval) in ehci_find_bestfit_ls_intr_mask() argument
3287 interval); in ehci_find_bestfit_ls_intr_mask()
3313 int interval) in ehci_find_bestfit_sitd_in_mask() argument
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Dnis_ldap.c142 int interval; in touchRootDir() local
144 interval = t->initTtlHi - t->initTtlLo + 1; in touchRootDir()
146 if (interval > 1) { in touchRootDir()
148 ttl = (lrand48() % interval); in touchRootDir()
/illumos-gate/usr/src/uts/sun4u/opl/io/pcicmu/
H A Dpcmu_ib.c181 interval = curr - prev; in pcmu_ib_intr_disable()
182 if (interval > jump) in pcmu_ib_intr_disable()
183 intr_timeout += interval; in pcmu_ib_intr_disable()
267 interval = curr - prev; in pcmu_ib_intr_dist()
268 if (interval > jump) in pcmu_ib_intr_dist()
269 intr_timeout += interval; in pcmu_ib_intr_dist()
535 interval = curr - prev; in pcmu_ib_ino_add_intr()
536 if (interval > jump) in pcmu_ib_ino_add_intr()
537 intr_timeout += interval; in pcmu_ib_ino_add_intr()
623 interval = curr - prev; in pcmu_ib_ino_rem_intr()
[all …]
/illumos-gate/usr/src/cmd/hal/addons/network-devices/
H A Daddon-network-discovery.c95 nds_EnablePrinterScanningViaSNMP(LibHalContext *ctx, char *parent, int interval, in nds_EnablePrinterScanningViaSNMP() argument
99 ctx, NP(parent), interval, NP(community), NP(network))); in nds_EnablePrinterScanningViaSNMP()
118 g_timeout_add(interval * 1000, nds_snmp_scan_cb, snmp_cb_data); in nds_EnablePrinterScanningViaSNMP()
165 int interval = -1; in nds_filter_function() local
171 DBUS_TYPE_INT32, &interval, in nds_filter_function()
179 rc = nds_EnablePrinterScanningViaSNMP(ctx, udi, interval, in nds_filter_function()
183 int interval = -1; in nds_filter_function() local
/illumos-gate/usr/src/cmd/ndmpstat/
H A Dndmpstat_main.c86 long interval; in main() local
90 interval = strtol(argv[0], &endptr, 10); in main()
92 if (errno > 0 || *endptr != '\0' || interval <= 0 || in main()
93 interval > MAXLONG) { in main()
97 poll_interval = 1000 * interval; in main()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/mmp/
H A Dmmp_reset_interval.ksh72 for interval in $(seq $MMP_INTERVAL_MIN 200 $MMP_INTERVAL_DEFAULT); do
74 log_must set_tunable64 zfs_multihost_interval $interval
83 if [ $interval -ne $mmp_write ]; then
84 log_fail "ERROR: mmp_write $mmp_write != $interval"
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_work.c61 dtrace_optval_t interval = dtp->dt_options[opt]; in dtrace_sleep() local
72 if (*((hrtime_t *)a) + interval < earliest) in dtrace_sleep()
73 earliest = *((hrtime_t *)a) + interval; in dtrace_sleep()
116 dtrace_optval_t interval = dtp->dt_options[DTRACEOPT_STATUSRATE]; in dtrace_status() local
126 if (now - dtp->dt_laststatus < interval) in dtrace_status()
129 dtp->dt_laststatus += interval; in dtrace_status()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppstats/
H A Dpppstats.c95 static int interval, count; variable
306 #define KBPS(n) ((n) / (interval * 1000.0))
334 (void)alarm(interval); in intpr()
463 (void)alarm(interval); in intpr()
512 interval = atoi(optarg);
513 if (interval <= 0)
523 if (!interval && count)
524 interval = 5;
525 if (interval && !count)
527 if (!interval && !count)
/illumos-gate/usr/src/cmd/connstat/
H A Dconnstat_main.c164 int interval = 0; in main() local
206 interval = strtonum(optarg, 1, INT_MAX, &errstr); in main()
285 if (count != 0 && interval == 0) { in main()
290 if (interval == 0 && count == 0) { in main()
305 show_stats(proto, ofmt, flags, &filter, timestamp_fmt, interval, count); in main()
475 uint_t interval, uint_t count) in show_stats() argument
505 (void) sleep(interval); in show_stats()
/illumos-gate/usr/src/cmd/kvmstat/
H A Dkvmstat.c399 int interval = 1; in main() local
425 interval = strtol(argv[1], &endp, 10); in main()
427 if (*endp != '\0' || interval <= 0) in main()
451 itimer.it_value.tv_sec = interval; in main()
452 itimer.it_interval.tv_sec = interval; in main()
455 fatal("could not set timer to %d second%s", interval, in main()
456 interval == 1 ? "" : "s"); in main()
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_lock.c57 timespec_t interval; /* suspend interval */ member
636 if (interval) in dr_req_update_entry()
637 req->interval = *interval; in dr_req_update_entry()
639 bzero(&req->interval, sizeof (timespec_t)); in dr_req_update_entry()
672 timespec_t *interval, rcm_info_t **info) in dr_req_add() argument
731 if (interval) in dr_req_add()
732 req->interval = *interval; in dr_req_add()
734 bzero(&req->interval, sizeof (timespec_t)); in dr_req_add()
963 timespec_t interval; in clean_dr_list() member
1004 tmp->interval = dr_req_list->req[i].interval; in clean_dr_list()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsstat/
H A Dnfsstat.c174 interval = 0; in main()
232 if (interval < 1) in main()
252 stats_timer(interval); in main()
317 if (interval) in main()
320 if (interval > 0) in main()
802 if (interval && knp_old != NULL) { in req_print()
824 ((interval && knp_old != NULL) ? in req_print()
885 if (interval) { in req_print_v4()
909 ((interval && kptr_old != NULL) ? in req_print_v4()
981 (interval && knp_old != NULL) ? in stat_print()
[all …]
/illumos-gate/usr/src/uts/common/io/ral/
H A Dral_rate.c118 long interval; in ral_rssadapt_updatestats() local
128 interval = MAX(100000, 10000000 / MAX(1, 10 * ra->ra_pktrate)); in ral_rssadapt_updatestats()
129 ra->ra_raise_interval.tv_sec = interval / (1000 * 1000); in ral_rssadapt_updatestats()
130 ra->ra_raise_interval.tv_usec = interval % (1000 * 1000); in ral_rssadapt_updatestats()
/illumos-gate/usr/src/uts/common/io/usb/hcd/
H A DREADME202 varies based on polling interval and current bandwidth load on this
209 - Depending on the polling interval, we need to add the above calculated
215 Ex: Assume a give polling interval of 4 and a static node value of 3.
323 * a polling interval greater than or equal to 8us (125us).
334 /* For high speed devices with a polling interval of 4us. */
340 /* For high speed devices with a polling interval of 2us. */
344 /* For high speed devices with a polling interval of 1us. */
436 based on polling interval and current bandwidth load on this schedule.
438 Ex: If a polling interval is 32us and its corresponding frame polling
443 - Depending on the polling interval, we need to add the above calculated
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdsv3_debug.c355 clock_t interval; member
363 #define DEFINE_RATELIMIT_STATE(name, interval, burst) \ argument
364 static struct ratelimit_state name = {interval, burst, }
377 if (rs->interval) { in rdsv3_printk_ratelimit()
384 if (current < rs->begin + TICK_TO_NSEC(rs->interval)) { in rdsv3_printk_ratelimit()
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Deventlib.c214 struct timespec interval; in evGetNext() local
296 interval = evSubTime(ctx->lastEventTime, in evGetNext()
298 if (interval.tv_sec > 0 || interval.tv_nsec > 0) in evGetNext()
301 interval.tv_sec, interval.tv_nsec, in evGetNext()
479 struct timespec interval; in evDispatch() local
566 interval = evSubTime(evNowTime(), start_time); in evDispatch()
573 if (interval.tv_sec > 0 || interval.tv_nsec > 50000000) in evDispatch()
576 interval.tv_sec, interval.tv_nsec, in evDispatch()
/illumos-gate/usr/src/cmd/xvm/ipagent/
H A Dsvc-ipagent25 interval=$2
56 /usr/lib/xen/bin/ipagent $interval &
/illumos-gate/usr/src/uts/common/os/
H A Dddi_periodic.c380 i_timeout(void (*func)(void *), void *arg, hrtime_t interval, int level) in i_timeout() argument
402 if (ddi_periodic_resolution > interval) { in i_timeout()
407 interval, ddi_periodic_resolution); in i_timeout()
408 interval = ddi_periodic_resolution; in i_timeout()
415 dpr->dpr_interval = roundup(interval, ddi_periodic_resolution); in i_timeout()
H A Dclock_realtime.c78 timespec_t *val, *interval; in clock_realtime_fire() local
87 interval = &it->it_itime.it_interval; in clock_realtime_fire()
91 if (!timerspecisset(interval)) { in clock_realtime_fire()
112 interval2nth = *interval; in clock_realtime_fire()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Druptime.c64 static char *interval();
196 interval((int)(now - hsp->hs_wd->wd_recvtime), in main()
203 interval(hsp->hs_wd->wd_sendtime - in main()
220 interval(int time, char *updown) in interval() function

1234567