Home
last modified time | relevance | path

Searched refs:nsec (Results 1 – 25 of 74) sorted by relevance

123

/illumos-gate/usr/src/uts/common/os/
H A Dtimers.c92 int usec, nsec; in uniqtime() local
104 nsec = ts.tv_nsec; in uniqtime()
105 usec = nsec + (nsec >> 2); in uniqtime()
900 int nsec; in timespectohz() local
911 if (nsec < 0) { in timespectohz()
913 nsec += NANOSEC; in timespectohz()
916 nsec -= NANOSEC; in timespectohz()
946 int64_t nsec; in timespectohz64() local
951 if (nsec < 0) { in timespectohz64()
1300 t = (nsec >> 7) + (nsec >> 8) + (nsec >> 12); in hrt2tv()
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_chunk1.c3 static void perf_calculate_period(unsigned long nsec, unsigned long count) in perf_calculate_period() argument
5 if (nsec + count > 64) in perf_calculate_period()
8 __smatch_implied(nsec + count); in perf_calculate_period()
9 nsec = 100; in perf_calculate_period()
10 __smatch_implied(nsec + count); in perf_calculate_period()
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dutil.h64 #define NSEC_TO_SEC(nsec) (nsec) / (long)NANOSEC argument
65 #define NSEC_TO_FRACNSEC(nsec) (nsec) % (long)NANOSEC argument
H A Devents.c578 nwamd_event_dequeue(long nsec) in nwamd_event_dequeue() argument
584 if (event == NULL && nsec == 0) { in nwamd_event_dequeue()
592 if (nsec != 0) { in nwamd_event_dequeue()
594 waitcap.tv_nsec += nsec; in nwamd_event_dequeue()
604 (nsec == 0 || !in_past(waitcap))) { in nwamd_event_dequeue()
613 if (nsec == 0) { in nwamd_event_dequeue()
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dtime_util.c45 uint32_t sec, nsec, tmp; in hrt2ts()
59 nsec = (uint32_t)hrt - (tmp << 9); in hrt2ts()
60 while (nsec >= NANOSEC) { in hrt2ts()
61 nsec -= NANOSEC; in hrt2ts()
65 tsp->tv_nsec = nsec; in hrt2ts()
/illumos-gate/usr/src/uts/i86pc/sys/
H A Dmachclock.h67 #define TODOP_SETWD(top, nsec) ((top)->tod_set_watchdog_timer(top, nsec)) argument
69 #define TODOP_SETWAKE(top, nsec) ((top)->tod_set_wake_alarm(top, nsec)) argument
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dclock.c96 uint32_t sec, nsec, tmp; in hrt2ts() local
110 nsec = (uint32_t)hrt - (tmp << 9); in hrt2ts()
111 while (nsec >= NANOSEC) { in hrt2ts()
112 nsec -= NANOSEC; in hrt2ts()
116 tsp->tv_nsec = nsec; in hrt2ts()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/
H A Dasorelax.c39 asorelax(long nsec)
45 tv.tv_nsec = nsec;
51 ts.tv_nsec = nsec;
/illumos-gate/usr/src/lib/fm/libfmd_log/common/
H A Dfmd_filter.c85 uint64_t nsec = ((struct timeval *)arg)->tv_usec * (NANOSEC / MICROSEC); in fmd_log_filter_before() local
86 return (rp->rec_sec == sec ? rp->rec_nsec <= nsec : rp->rec_sec <= sec); in fmd_log_filter_before()
94 uint64_t nsec = ((struct timeval *)arg)->tv_usec * (NANOSEC / MICROSEC); in fmd_log_filter_after() local
95 return (rp->rec_sec == sec ? rp->rec_nsec >= nsec : rp->rec_sec >= sec); in fmd_log_filter_after()
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dbios.c32 int nsec, int segment);
53 unsigned long long sector, int nsec, int segment) in biosdisk() argument
81 dap.blocks = nsec; in biosdisk()
91 if (err == 0 && dap.blocks != nsec) in biosdisk()
105 return biosdisk (read, drive, geometry, sector, nsec, segment); in biosdisk()
126 nsec, segment); in biosdisk()
/illumos-gate/usr/src/cmd/svc/common/
H A Dr.manifest88 while [ ${nsec:=0} -lt $wait_time ]; do
97 nsec=`expr ${nsec} + 1`
/illumos-gate/usr/src/cmd/fm/modules/sun4u/datapath-retire/
H A Dcda_main.c190 hrtime_t nsec; in _fmd_init() local
208 nsec = fmd_prop_get_int64(hdl, "cpu_delay"); in _fmd_init()
209 cda.cda_cpu_delay.tv_sec = nsec / NANOSEC; in _fmd_init()
210 cda.cda_cpu_delay.tv_nsec = nsec % NANOSEC; in _fmd_init()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtmsleep.c35 tmsleep(time_t sec, time_t nsec) in tmsleep() argument
40 tv.tv_nsec = nsec; in tmsleep()
H A Dtmxscan.c40 int32_t nsec; member
55 …week=s.weektype=s.yday=s.mday=s.wday=s.hour=s.min=s.sec=s.meridian=(-1),s.nsec=1000000000L,s.zone=…
123 if (set->nsec < 1000000000L) in gen()
124 tm->tm_nsec = set->nsec; in gen()
152 if (set->nsec < 1000000000L) in gen()
159 tm->tm_nsec = set->nsec; in gen()
307 set.nsec = n; in scan()
/illumos-gate/usr/src/grub/grub-0.97/grub/
H A Dasmstub.c934 unsigned long long sector, int nsec, int segment) in biosdisk() argument
973 if (sector == 0 && nsec > 1) in biosdisk()
982 nsec--; in biosdisk()
985 if (nread (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE) in biosdisk()
994 nsec, sector, drive, device_map[drive]); in biosdisk()
995 hex_dump (buf, nsec * SECTOR_SIZE); in biosdisk()
998 if (nwrite (fd, buf, nsec * SECTOR_SIZE) != nsec * SECTOR_SIZE) in biosdisk()
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dsubr.c258 smb_time_NT2local(uint64_t nsec, int tzoff, struct timeval *tsp) in smb_time_NT2local() argument
260 smb_time_server2local(nsec / 10000000 - DIFF1970TO1601, 0, tsp); in smb_time_NT2local()
265 smb_time_local2NT(struct timeval *tsp, int tzoff, uint64_t *nsec) in smb_time_local2NT() argument
270 *nsec = (((uint64_t)(seconds) & ~1) + DIFF1970TO1601) * in smb_time_local2NT()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_time.c119 uint32_t sec, nsec, tmp; in fmd_time_hrt2ftv() local
133 nsec = (uint32_t)hrt - (tmp << 9); in fmd_time_hrt2ftv()
135 while (nsec >= NANOSEC) { in fmd_time_hrt2ftv()
136 nsec -= NANOSEC; in fmd_time_hrt2ftv()
141 ftv->ftv_nsec = nsec; in fmd_time_hrt2ftv()
/illumos-gate/usr/src/cmd/sa/
H A Dtimex.c45 #define NSEC_TO_TICK(nsec) ((nsec) / nsec_per_tick) argument
46 #define NSEC_TO_TICK_ROUNDUP(nsec) NSEC_TO_TICK((nsec) + \ argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_display.c612 time_t sec, nsec; in getxdr_date_ns() local
615 nsec = getxdr_long(); in getxdr_date_ns()
619 return (format_time(sec, nsec)); in getxdr_date_ns()
626 format_time(int64_t sec, uint32_t nsec) in format_time() argument
636 (void) sprintf(buff, "%lld.%06d", sec, nsec); in format_time()
642 (void) sprintf(buff, "%lld.%06d", sec, nsec); in format_time()
650 (void) sprintf(p, "%09d GMT", nsec); in format_time()
/illumos-gate/usr/src/uts/common/sys/
H A Dtime.h299 #define NSEC_TO_TICK(nsec) ((nsec) / nsec_per_tick) argument
300 #define NSEC_TO_TICK_ROUNDUP(nsec) \ argument
301 ((nsec) == 0 ? 0 : NSEC_TO_TICK((nsec) - 1) + 1)
/illumos-gate/usr/src/lib/libzonestat/common/
H A Dzonestat_impl.h60 #define TIMESTRUC_ADD_NANOSEC(ts, nsec) \ argument
62 (ts).tv_sec += (time_t)((nsec) / NANOSEC); \
63 (ts).tv_nsec += (long)((nsec) % NANOSEC); \
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_inode.c1748 int32_t usec, nsec; in ufs_imark() local
1766 nsec = now.tv_nsec; in ufs_imark()
1767 usec = nsec + (nsec >> 2); in ufs_imark()
1768 usec = nsec + (usec >> 1); in ufs_imark()
1769 usec = nsec + (usec >> 2); in ufs_imark()
1770 usec = nsec + (usec >> 4); in ufs_imark()
1771 usec = nsec - (usec >> 3); in ufs_imark()
1772 usec = nsec + (usec >> 2); in ufs_imark()
1773 usec = nsec + (usec >> 3); in ufs_imark()
1774 usec = nsec + (usec >> 4); in ufs_imark()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfpkrd.c188 long nsec = tm < 0 ? 0 : (tm+999)/1000; local
189 while(nsec > 0 && r < 0)
205 if(r < 0 && nsec-- > 0)
/illumos-gate/usr/src/compat/bhyve/sys/
H A Dtime.h130 uint64_t nsec = hrt % NANOSEC; in sbinuptime() local
133 (nsec * (((uint64_t)1 << 63) / 500000000) >> 32)); in sbinuptime()
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/profile-n/
H A Derr.D_PDESC_ZEROonensec.d40 profile-1nsec

123