/titanic_41/usr/src/cmd/intrd/ |
H A D | intrd.pl | 362 my ($delta) = @_; 367 syslog('debug', " RECONFIGURATION IN DELTA") if $delta->{missing} > 0; 369 $delta->{avgintrload} * 100, $delta->{avgintrnsec}); 370 syslog('debug', " goodness: %5.2f%%", $delta->{goodness} * 100) 371 if exists($delta->{goodness}); 375 while (my ($cpu, $cpst) = each %$delta) { 405 my %delta = (); 411 $delta{minsnap} = $stat->{snaptime}; 412 $delta{maxsnap} = $newstat->{snaptime}; 413 if (VERIFY($delta{maxsnap} > $delta{minsnap}, [all …]
|
/titanic_41/usr/src/lib/libfakekernel/common/ |
H A D | cond.c | 106 clock_t delta; in cv_timedwait() local 108 delta = abstime - ddi_get_lbolt(); in cv_timedwait() 109 return (cv__twait(cv, mp, delta, 0)); in cv_timedwait() 115 clock_t delta; in cv_timedwait_sig() local 117 delta = abstime - ddi_get_lbolt(); in cv_timedwait_sig() 118 return (cv__twait(cv, mp, delta, 1)); in cv_timedwait_sig() 122 cv_reltimedwait(kcondvar_t *cv, kmutex_t *mp, clock_t delta, time_res_t res) in cv_reltimedwait() argument 126 return (cv__twait(cv, mp, delta, 0)); in cv_reltimedwait() 130 cv_reltimedwait_sig(kcondvar_t *cv, kmutex_t *mp, clock_t delta, in cv_reltimedwait_sig() argument 135 return (cv__twait(cv, mp, delta, 1)); in cv_reltimedwait_sig() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/md/ |
H A D | md_rename.c | 189 md_rename_lock(md_rendelta_t *delta, md_rentxn_t *rtxnp) in md_rename_lock() argument 194 ASSERT(delta); in md_rename_lock() 197 if (!delta || !rtxnp) { in md_rename_lock() 201 mnum = md_getminor(delta->dev); in md_rename_lock() 212 ASSERT(delta->uip); in md_rename_lock() 213 if (!delta->uip) { in md_rename_lock() 218 ASSERT(delta->unp); in md_rename_lock() 219 if (!delta->unp) { in md_rename_lock() 224 ASSERT(!UNIT_WRITER_HELD(delta->unp)); in md_rename_lock() 226 (void) md_unit_writerlock(delta->uip); in md_rename_lock() [all …]
|
/titanic_41/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_time.c | 52 fmd_time_addhrtime(hrtime_t delta) in fmd_time_addhrtime() argument 54 fmd.d_clockops->fto_addhrtime(delta); in fmd_time_addhrtime() 58 fmd_time_waithrtime(hrtime_t delta) in fmd_time_waithrtime() argument 60 fmd.d_clockops->fto_waithrtime(delta); in fmd_time_waithrtime() 86 hrtime_t t0, t1, delta; in fmd_time_sync() local 92 delta = t1 - t0; in fmd_time_sync() 94 if (delta < hrtmin) { in fmd_time_sync() 95 hrtmin = delta; in fmd_time_sync() 96 hrtbase = t0 + delta / 2; in fmd_time_sync() 289 fmd_simulator_add(hrtime_t delta) in fmd_simulator_add() argument [all …]
|
H A D | fmd_timerq.c | 49 fmd_timer_f *func, void *arg, fmd_event_t *ep, hrtime_t delta) in fmd_timerq_install() argument 72 if (delta < 0) in fmd_timerq_install() 73 delta = 0; /* ensure delta is at least 0ns from now */ in fmd_timerq_install() 75 if (base + delta < base) in fmd_timerq_install() 78 hrt = base + delta; in fmd_timerq_install() 109 ids->ids_name, id, delta)); in fmd_timerq_install() 124 hrtime_t delta = 0; in fmd_timerq_remove() local 139 delta = tp->tmr_hrt - fmd_time_gethrtime(); in fmd_timerq_remove() 165 ids->ids_name, id, delta > 0 ? delta : 0LL)); in fmd_timerq_remove()
|
H A D | fmd_eventq.c | 121 hrtime_t new, delta; in fmd_eventqstat_dispatch() local 127 delta = new - eqs->eqs_wlastupdate.fmds_value.ui64; in fmd_eventqstat_dispatch() 132 eqs->eqs_wlentime.fmds_value.ui64 += delta * wcnt; in fmd_eventqstat_dispatch() 133 eqs->eqs_wtime.fmds_value.ui64 += delta; in fmd_eventqstat_dispatch() 239 hrtime_t new, delta; in fmd_eventq_delete() local 284 delta = new - eqs->eqs_wlastupdate.fmds_value.ui64; in fmd_eventq_delete() 292 eqs->eqs_wlentime.fmds_value.ui64 += delta * wcnt; in fmd_eventq_delete() 293 eqs->eqs_wtime.fmds_value.ui64 += delta; in fmd_eventq_delete() 313 hrtime_t new, delta; in fmd_eventq_done() local 318 delta = new - eqs->eqs_dlastupdate.fmds_value.ui64; in fmd_eventq_done() [all …]
|
/titanic_41/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_tnode.c | 63 size_t delta, /* size needed */ in tmp_resv() argument 66 pgcnt_t pages = btopr(delta); in tmp_resv() 83 (anon_try_resv_zone(delta, zone) == 0))) { in tmp_resv() 96 tp, delta); in tmp_resv() 111 size_t delta) in tmp_unresv() argument 116 anon_unresv_zone(delta, tm->tm_vfsp->vfs_zone); in tmp_unresv() 119 tm->tm_anonmem -= btopr(delta); in tmp_unresv() 122 TRACE_2(TR_FAC_VM, TR_ANON_TMPFS, "anon tmpfs:%p %lu", tp, delta); in tmp_unresv() 234 size_t delta; in tmpnode_trunc() local 251 delta = P2ROUNDUP(newsize, PAGESIZE) - in tmpnode_trunc() [all …]
|
/titanic_41/usr/src/uts/common/syscall/ |
H A D | alarm.c | 61 clock_t delta = (uint_t)deltat; in alarm() local 91 if (delta > (LONG_MAX / hz) || delta < 0) in alarm() 92 delta = LONG_MAX / hz; in alarm() 94 if (delta) in alarm() 95 p->p_alarmid = realtime_timeout(sigalarm2proc, p, delta * hz); in alarm()
|
H A D | lwp_timer.c | 58 timespec_t now, delta; in lwp_timer_timeout() local 71 delta = lwptp->lwpt_rqtime; in lwp_timer_timeout() 72 timespecsub(&delta, &now); in lwp_timer_timeout() 74 lwp_timer_timeout, lwptp, ts2hrt(&delta), nsec_per_tick, in lwp_timer_timeout() 148 timespec_t now, delta; in lwp_timer_enqueue() local 161 delta = lwptp->lwpt_rqtime; in lwp_timer_enqueue() 162 timespecsub(&delta, &now); in lwp_timer_enqueue() 164 lwp_timer_timeout, lwptp, ts2hrt(&delta), nsec_per_tick, in lwp_timer_enqueue()
|
/titanic_41/usr/src/cmd/dtrace/test/tst/common/rates/ |
H A D | tst.statusrate.d | 53 /(this->delta = timestamp - ts) > 2 * NANOSEC/ 59 /this->delta <= 2 * NANOSEC/ 62 this->delta); 67 /this->delta > 20 * NANOSEC/ 70 this->delta);
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | finger.c | 838 struct tm *delta; in stimeprint() local 840 delta = gmtime(dt); in stimeprint() 841 if (delta->tm_yday == 0) in stimeprint() 842 if (delta->tm_hour == 0) in stimeprint() 843 if (delta->tm_min == 0) in stimeprint() 846 (void) printf(" %2d", delta->tm_min); in stimeprint() 848 if (delta->tm_hour >= 10) in stimeprint() 849 (void) printf("%3d:", delta->tm_hour); in stimeprint() 852 delta->tm_hour, delta->tm_min); in stimeprint() 854 (void) printf("%3dd", delta->tm_yday); in stimeprint() [all …]
|
/titanic_41/usr/src/common/atomic/ |
H A D | atomic.c | 110 atomic_add_16(volatile uint16_t *target, int16_t delta) in atomic_add_16() argument 111 { *target += delta; } in atomic_add_16() 118 atomic_add_32(volatile uint32_t *target, int32_t delta) in atomic_add_32() argument 119 { *target += delta; } in atomic_add_32() 126 atomic_add_long(volatile ulong_t *target, long delta) in atomic_add_long() argument 127 { *target += delta; } in atomic_add_long() 130 atomic_add_64(volatile uint64_t *target, int64_t delta) in atomic_add_64() argument 131 { *target += delta; } in atomic_add_64() 270 atomic_add_16_nv(volatile uint16_t *target, int16_t delta) in atomic_add_16_nv() argument 271 { return (*target += delta); } in atomic_add_16_nv() [all …]
|
/titanic_41/usr/src/uts/i86pc/io/pcplusmp/ |
H A D | apic_timer.c | 251 int64_t delta; in oneshot_timer_reprogram() local 255 delta = time - now; in oneshot_timer_reprogram() 257 if (delta <= 0) { in oneshot_timer_reprogram() 263 } else if (delta > apic_nsec_max) { in oneshot_timer_reprogram() 276 ticks = APIC_NSECS_TO_TICKS(delta); in oneshot_timer_reprogram() 328 int64_t delta; in deadline_timer_reprogram() local 335 delta = time - gethrtime(); in deadline_timer_reprogram() 338 delta = max(delta, 0); in deadline_timer_reprogram() 341 ticks = (uint64_t)tsc_read() + unscalehrtime(delta); in deadline_timer_reprogram()
|
/titanic_41/usr/src/uts/common/io/lvm/trans/ |
H A D | trans_ioctl.c | 2158 md_rendelta_t *delta, in trans_rename_update_self() argument 2167 ASSERT(delta); in trans_rename_update_self() 2168 ASSERT(delta->unp); in trans_rename_update_self() 2169 ASSERT(delta->uip); in trans_rename_update_self() 2172 ASSERT(delta->old_role == MDRR_SELF); in trans_rename_update_self() 2173 ASSERT(delta->new_role == MDRR_SELF); in trans_rename_update_self() 2177 un = (mt_unit_t *)delta->unp; in trans_rename_update_self() 2184 MD_SID(delta->unp) = to_min; in trans_rename_update_self() 2198 MDI_VOIDUNIT(to_min) = delta->uip; in trans_rename_update_self() 2199 MD_VOIDUNIT(to_min) = delta->unp; in trans_rename_update_self() [all …]
|
/titanic_41/usr/src/uts/intel/io/pci/ |
H A D | pci_memlist.c | 223 uint64_t delta, total_size; in memlist_find() local 230 delta = next->ml_address & ((align != 0) ? (align - 1) : 0); in memlist_find() 231 if (delta != 0) in memlist_find() 232 total_size = size + align - delta; in memlist_find() 245 if (delta) in memlist_find() 246 paddr += align - delta; in memlist_find() 260 uint64_t delta, total_size; in memlist_find_with_startaddr() local 272 delta = next->ml_address & ((align != 0) ? (align - 1) : 0); in memlist_find_with_startaddr() 273 if (delta != 0) in memlist_find_with_startaddr() 274 total_size = size + align - delta; in memlist_find_with_startaddr() [all …]
|
/titanic_41/usr/src/cmd/fm/fminject/common/ |
H A D | inj_log.c | 53 hrtime_t delta; in inj_logfile_event() local 78 delta = (rec_sec - ilf->ilf_sec) * NANOSEC; in inj_logfile_event() 79 delta += (hrtime_t)rec_nsec - (hrtime_t)ilf->ilf_nsec; in inj_logfile_event() 81 if (delta < 0) in inj_logfile_event() 84 if (delta > 0) in inj_logfile_event() 85 inj_cmds_add(inj_cmd_addhrt(delta)); in inj_logfile_event()
|
/titanic_41/usr/src/lib/libzonestat/common/ |
H A D | zonestat_impl.h | 80 #define TIMESTRUC_DELTA(delta, new, old) \ argument 82 (delta).tv_sec = (new).tv_sec - (old).tv_sec; \ 83 (delta).tv_nsec = (new).tv_nsec - (old).tv_nsec;\ 84 if ((delta).tv_nsec < 0) { \ 85 delta.tv_nsec += NANOSEC; \ 86 delta.tv_sec -= 1; \ 88 if ((delta).tv_sec < 0) { \ 89 delta.tv_sec = 0; \ 90 delta.tv_nsec = 0; \
|
/titanic_41/usr/src/cmd/audio/audiotest/ |
H A D | wavedata.c | 131 int predictor[2], delta[2], samp1[2], samp2[2]; in uncompress_wave() local 148 delta[i] = (short)le_int(&buf[x], 2); in uncompress_wave() 178 new = pred + (delta[i] * i_delta); in uncompress_wave() 181 delta[i] = delta[i] * in uncompress_wave() 183 if (delta[i] < 16) in uncompress_wave() 184 delta[i] = 16; in uncompress_wave()
|
/titanic_41/usr/src/uts/common/os/ |
H A D | condvar.c | 245 cv_reltimedwait(kcondvar_t *cvp, kmutex_t *mp, clock_t delta, time_res_t res) in cv_reltimedwait() argument 251 if (delta <= 0) in cv_reltimedwait() 254 if ((exp = TICK_TO_NSEC(delta)) < 0) in cv_reltimedwait() 504 cv_reltimedwait_sig(kcondvar_t *cvp, kmutex_t *mp, clock_t delta, in cv_reltimedwait_sig() argument 511 if (delta > 0) { in cv_reltimedwait_sig() 512 if ((exp = TICK_TO_NSEC(delta)) < 0) in cv_reltimedwait_sig() 770 timestruc_t delta; in cv_waituntil_sig() local 778 delta = *when; in cv_waituntil_sig() 779 timespecsub(&delta, &now); in cv_waituntil_sig() 780 if (delta.tv_sec < 0 || (delta.tv_sec == 0 && delta.tv_nsec == 0)) { in cv_waituntil_sig() [all …]
|
H A D | callout.c | 437 callout_queue_process(callout_table_t *ct, hrtime_t delta, int timechange) in callout_queue_process() argument 484 if (delta && !(cl->cl_flags & CALLOUT_LIST_FLAG_ABSOLUTE)) { in callout_queue_process() 485 expiration = cl->cl_expiration + delta; in callout_queue_process() 859 callout_heap_process(callout_table_t *ct, hrtime_t delta, int timechange) in callout_heap_process() argument 931 if (delta && !(cl->cl_flags & CALLOUT_LIST_FLAG_ABSOLUTE)) { in callout_heap_process() 934 expiration = cl->cl_expiration + delta; in callout_heap_process() 1194 timeout(void (*func)(void *), void *arg, clock_t delta) in timeout() argument 1201 if (delta <= 0) in timeout() 1202 delta = 1; in timeout() 1203 else if (delta > callout_max_ticks) in timeout() [all …]
|
/titanic_41/usr/src/uts/i86pc/io/ |
H A D | todpc_subr.c | 236 int delta, asec, amin, ahr, adom, amon; in todpc_setalarm() local 258 delta = nsecs + BCD_TO_BYTE(rtc.rtc_sec); in todpc_setalarm() 259 asec = delta % 60; in todpc_setalarm() 261 delta = (delta / 60) + BCD_TO_BYTE(rtc.rtc_min); in todpc_setalarm() 262 amin = delta % 60; in todpc_setalarm() 264 delta = (delta / 60) + BCD_TO_BYTE(rtc.rtc_hr); in todpc_setalarm() 265 ahr = delta % 24; in todpc_setalarm() 267 if (day_alrm == 0 && delta >= 24) { in todpc_setalarm() 277 adom = (delta / 24) + BCD_TO_BYTE(rtc.rtc_dom); in todpc_setalarm()
|
/titanic_41/usr/src/uts/common/c2/ |
H A D | audit_syscalls.c | 125 int hdrlen, delta; in audit() local 192 delta = 1 + 2 + 2; in audit() 193 hdrlen = 1 + 4 + delta + (sizeof (int32_t) * 2); in audit() 200 delta = 1 + 2 + 2; in audit() 201 hdrlen = 1 + 4 + delta + (sizeof (int64_t) * 2); in audit() 217 delta = 1 + 2 + 2 + 4 + host_len; in audit() 218 hdrlen = 1 + 4 + delta + (sizeof (int32_t) * 2); in audit() 234 delta = 1 + 2 + 2 + 4 + host_len; in audit() 235 hdrlen = 1 + 4 + delta + (sizeof (int64_t) * 2); in audit() 306 hadr.adr_now += delta; in audit()
|
/titanic_41/usr/src/cmd/fm/fmstat/common/ |
H A D | fmstat.c | 262 uint64_t delta; in modstat_compute() local 304 delta = u64delta(old->snaptime.fmds_value.ui64 ? in modstat_compute() 308 elapsed = delta ? (double)delta : (double)NANOSEC; in modstat_compute() 314 delta = u64delta(old->wlentime.fmds_value.ui64, in modstat_compute() 317 if (delta != 0) in modstat_compute() 318 mp->m_wait = (double)delta / elapsed; in modstat_compute() 326 delta = u64delta(old->dispatched.fmds_value.ui64, in modstat_compute() 329 if (delta != 0) { in modstat_compute() 331 new->wtime.fmds_value.ui64) / (double)delta; in modstat_compute() 339 delta = u64delta(old->dequeued.fmds_value.ui64, in modstat_compute() [all …]
|
/titanic_41/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_client.c | 214 hrtime_t delta, now; in smbfs_attrcache_fa() local 258 delta = 0; in smbfs_attrcache_fa() 260 delta = now - np->r_mtime; in smbfs_attrcache_fa() 262 if (delta < smi->smi_acdirmin) in smbfs_attrcache_fa() 263 delta = smi->smi_acdirmin; in smbfs_attrcache_fa() 264 else if (delta > smi->smi_acdirmax) in smbfs_attrcache_fa() 265 delta = smi->smi_acdirmax; in smbfs_attrcache_fa() 267 if (delta < smi->smi_acregmin) in smbfs_attrcache_fa() 268 delta = smi->smi_acregmin; in smbfs_attrcache_fa() 269 else if (delta > smi->smi_acregmax) in smbfs_attrcache_fa() [all …]
|
/titanic_41/usr/src/cmd/mailx/ |
H A D | stralloc.c | 127 register unsigned s, delta; in srealloc() local 140 delta = s - (sp->s_nextFree - (char *)optr); in srealloc() 141 if (delta <= sp->s_nleft) { in srealloc() 142 sp->s_nextFree += delta; in srealloc() 143 sp->s_nleft -= delta; in srealloc()
|