/titanic_50/usr/src/cmd/stat/common/ |
H A D | common.c | 63 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()
|
/titanic_50/usr/src/cmd/powertop/common/ |
H A D | powertop.c | 98 double interval, interval_usr; in main() local 126 interval = interval_usr = INTERVAL_DEFAULT; in main() 165 interval = interval_usr = (double)strtod(optarg, in main() 168 if (*endptr != NULL || interval < 1 || in main() 169 interval > INTERVAL_MAX) { in main() 225 (float)interval); in main() 292 (int)(interval * MILLISEC)) > 0) in main() 295 (void) sleep((int)interval); in main() 362 interval = 3; in main() 407 (g_total_events/interval) < 1) in main() [all …]
|
/titanic_50/usr/src/lib/libshell/common/scripts/ |
H A D | filemutexdemo1.sh | 119 float interval=0.2 123 while ! _.try_lock_shared ; do sleep ${interval} ; (( interval+=interval/10. )) ; done 138 float interval=0.2 142 while ! _.try_lock_exclusive ; do sleep ${interval} ; (( interval+=interval/10. )) ; done
|
/titanic_50/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | lpq.c | 80 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()
|
/titanic_50/usr/src/uts/common/io/ib/mgt/ibmf/ |
H A D | ibmf_timers.c | 42 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() 73 tnf_uint, interval, msgimplp->im_retrans.retrans_rttv); 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() 122 (msgimplp->im_retrans.retrans_trans_to < interval)) { in ibmf_i_set_timer() [all …]
|
/titanic_50/usr/src/cmd/dispadmin/ |
H A D | subr.c | 103 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()
|
/titanic_50/usr/src/uts/common/io/usb/hcd/ehci/ |
H A D | ehci_util.c | 202 static uint_t ehci_lattice_height(uint_t interval); 206 int interval); 217 int interval); 225 int interval); 233 int interval); 239 int interval); 2181 int interval; in ehci_allocate_high_speed_bandwidth() local 2217 interval = ehci_adjust_polling_interval(ehcip, endpoint, port_status); in ehci_allocate_high_speed_bandwidth() 2218 if (interval == USB_FAILURE) { in ehci_allocate_high_speed_bandwidth() 2231 endpoint, sbandwidth, interval); in ehci_allocate_high_speed_bandwidth() [all …]
|
/titanic_50/usr/src/lib/libnisdb/ |
H A D | nis_ldap.c | 142 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()
|
/titanic_50/usr/src/uts/sun4u/opl/io/pcicmu/ |
H A D | pcmu_ib.c | 154 hrtime_t prev, curr, interval, jump; in pcmu_ib_intr_disable() local 181 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() 241 hrtime_t prev, curr, interval, jump; in pcmu_ib_intr_dist() local 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() 502 hrtime_t prev, curr, interval, jump; in pcmu_ib_ino_add_intr() local 535 interval = curr - prev; in pcmu_ib_ino_add_intr() [all …]
|
/titanic_50/usr/src/cmd/hal/addons/network-devices/ |
H A D | addon-network-discovery.c | 95 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
|
/titanic_50/usr/src/cmd/ndmpstat/ |
H A D | ndmpstat_main.c | 86 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()
|
/titanic_50/usr/src/lib/libdtrace/common/ |
H A D | dt_work.c | 61 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()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/pppstats/ |
H A D | pppstats.c | 101 static int interval, count; variable 312 #define KBPS(n) ((n) / (interval * 1000.0)) 340 (void)alarm(interval); in intpr() 469 (void)alarm(interval); in intpr() 518 interval = atoi(optarg); 519 if (interval <= 0) 529 if (!interval && count) 530 interval = 5; 531 if (interval && !count) 533 if (!interval && !count)
|
/titanic_50/usr/src/cmd/kvmstat/ |
H A D | kvmstat.c | 399 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()
|
/titanic_50/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_lock.c | 57 timespec_t interval; /* suspend interval */ member 479 int seq_num, timespec_t *interval, rcm_info_t **infop) in dr_req_update_entry() argument 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 694 error = dr_req_update_entry(device, pid, flag, state, seq_num, interval, in dr_req_add() 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() [all …]
|
/titanic_50/usr/src/uts/common/io/ral/ |
H A D | ral_rate.c | 118 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()
|
/titanic_50/usr/src/cmd/fs.d/nfs/nfsstat/ |
H A D | nfsstat.c | 114 static int interval; /* interval between stats */ variable 174 interval = 0; in main() 231 interval = safe_strtoi(argv[optind], "invalid interval"); 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() 816 if (tot && interval && knp_old != NULL) in req_print() 824 ((interval && knp_old != NULL) ? in req_print() [all …]
|
/titanic_50/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | rdsv3_debug.c | 355 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()
|
/titanic_50/usr/src/uts/common/io/usb/hcd/ |
H A D | README | 201 so that it will be polled as per the required polling interval. This value 202 varies based on polling interval and current bandwidth load on this 205 Ex: If a polling interval is 4ms, then, the endpoint will be linked to one 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. */ 430 - Map a given high speed endpoint's polling interval in micro seconds to an [all …]
|
/titanic_50/usr/src/uts/common/sys/scsi/ |
H A D | scsi_watch.h | 59 int interval, int sense_length, 62 int interval, int sense_length,
|
/titanic_50/usr/src/lib/libresolv2/common/isc/ |
H A D | eventlib.c | 218 struct timespec interval; in evGetNext() local 300 interval = evSubTime(ctx->lastEventTime, in evGetNext() 302 if (interval.tv_sec > 0 || interval.tv_nsec > 0) in evGetNext() 305 interval.tv_sec, interval.tv_nsec, in evGetNext() 483 struct timespec interval; in evDispatch() local 570 interval = evSubTime(evNowTime(), start_time); in evDispatch() 577 if (interval.tv_sec > 0 || interval.tv_nsec > 50000000) in evDispatch() 580 interval.tv_sec, interval.tv_nsec, in evDispatch()
|
/titanic_50/usr/src/uts/common/os/ |
H A D | ddi_periodic.c | 380 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 D | clock_realtime.c | 78 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()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | ruptime.c | 64 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
|
/titanic_50/usr/src/lib/libc/port/rt/ |
H A D | sched.c | 508 sched_rr_get_interval(pid_t pid, timespec_t *interval) in sched_rr_get_interval() argument 530 interval->tv_sec = 0; in sched_rr_get_interval() 531 interval->tv_nsec = 0; in sched_rr_get_interval() 539 interval->tv_sec = rtp->rt_tqsecs; in sched_rr_get_interval() 540 interval->tv_nsec = rtp->rt_tqnsecs; in sched_rr_get_interval() 548 interval->tv_sec = fxp->fx_tqsecs; in sched_rr_get_interval() 549 interval->tv_nsec = fxp->fx_tqnsecs; in sched_rr_get_interval()
|