Searched defs:hz (Results 1 - 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/boot/sys/boot/usb/
H A Dbsd_usbloader_test.c38 #define hz 1000 macro
66 usleep((1000000 / hz) * timeout);
86 if (++time >= (1000 / hz)) {
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dclock.c26 int hz = 1000; variable
62 ts->tv_sec = clk / hz;
63 ts->tv_nsec = (clk % hz) * (NANOSEC / hz);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dwaitpid.c160 clock_t hz; local
173 hz = CLK_TCK;
174 rp->ru_utime.tv_sec = diffu / hz;
175 rp->ru_utime.tv_usec = (diffu % hz) * (1000000 / hz);
176 rp->ru_stime.tv_sec = diffs / hz;
177 rp->ru_stime.tv_usec = (diffs % hz) * (1000000 / hz);
/illumos-gate/usr/src/lib/libc/sparc/fp/
H A D_D_cplx_div.c93 int ha, hb, hc, hd, hz, hw, hs, i, j; local
111 hz = (ha > hb)? ha : hb;
131 if (hz >= 0x7fe00000) {
171 if (hz >= 0x7ff00000) { /* z is inf or nan */
234 if (hz < 0x07200000) { /* |z| < 2^-909 */
H A D_Q_cplx_div.c100 int ha, hb, hc, hd, hz, hw, hs, i, j; local
118 hz = (ha > hb)? ha : hb;
138 if (hz >= 0x7ffe0000) {
161 if (hz >= 0x7fff0000) { /* z is inf or nan */
178 if (hz < 0x00ea0000) { /* |z| < 2^-16149 */
/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dremquo.c61 int n, hx, hy, hz, ix, iy, sx, sq, i, m; local
142 hz = hx - hy;
145 hz -= 1;
146 if (hz < 0) {
151 if ((hz | lz) == 0) { /* return sign(x)*0 */
160 hx = hz + hz + (lz >> 31);
165 hz = hx - hy;
168 hz -= 1;
169 if (hz >
[all...]
H A Dfma.c78 int hx, hy, hz, ex, ey, ez, exy, sxy, sz, e, ibit; local
87 hz = zz.i[0] & ~0x80000000;
94 if (hz >= 0x7ff00000) /* z is inf or nan */
97 if ((hz | zz.i[1]) == 0) /* z is zero */
125 ez = hz >> 20;
H A Dfmal.c97 int hx, hy, hz, ex, ey, ez, exy, sxy, sz, e, ibit; local
107 hz = zz.i[0] & ~0x80000000;
147 if (hz >= 0x7fff0000) {
148 if ((hz & 0xffff) | zz.i[1] | zz.i[2] | zz.i[3]) {
149 if (!(hz & 0x8000)) {
158 } else if (hz == 0) {
449 ez = hz >> 16;
450 z0 = hz & 0xffff;
/illumos-gate/usr/src/uts/common/io/sdcard/impl/
H A Dsda_init.c398 sda_init_clock(sda_slot_t *slot, uint32_t hz) argument
410 if ((rv = sda_setprop(slot, SDA_PROP_CLOCK, hz)) != SDA_EOK) {
412 hz, rv);
420 "Clock frequency unknown (good luck).", act, hz);
/illumos-gate/usr/src/cmd/sa/
H A Dtimex.c50 static int hz; variable
79 hz = sysconf(_SC_CLK_TCK);
80 nsec_per_tick = NANOSEC / hz;
217 tk = total % hz; /* ticks % hz */
218 total /= hz;
219 ss = total % 60; /* ticks / hz % 60 */
221 mm = total % 60; /* ticks / hz / 60 % 60 */
222 hh = total / 60; /* ticks / hz / 60 / 60 */
256 (void) fprintf(stderr, "%02ld\n", tk * 100/hz);
[all...]
H A Dsar.c90 static int hz; variable
280 hz = sysconf(_SC_CLK_TCK);
542 sec_diff = tdiff / hz;
1113 sec_diff = tdiff / hz;
/illumos-gate/usr/src/cmd/stat/mpstat/
H A Dmpstat.c58 static int hz; variable
142 hz = sysconf(_SC_CLK_TCK);
247 etime = (double)ticks / hz;
250 percent = 100.0 / etime / hz;
433 etime = (double)ticks / hz;
436 percent = 100.0 / p2->ps_nr_cpus / etime / hz;
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DOption.java285 hz(int n) method in class:Option
287 return (Integer.toString(n) + "hz");
/illumos-gate/usr/src/cmd/stat/vmstat/
H A Dvmstat.c35 static int hz; variable
76 hz = sysconf(_SC_CLK_TCK);
143 etime = ss->s_sys.ss_ticks / hz;
265 etime = etime >= 1.0 ? (etime / nr_active_cpus(new)) / hz : 1.0;
/illumos-gate/usr/src/cmd/sgs/prof/common/
H A Dprofv.c323 static long hz; local
326 if ((hz = sysconf(_SC_CLK_TCK)) == -1)
339 psym->seconds = (double)nl->nticks / (double)hz;
/illumos-gate/usr/src/boot/sys/sys/
H A Dtime.h330 int hz; /* clock frequency */ member in struct:clockinfo
331 int tick; /* micro-seconds per hz tick */
405 * be used where a precision of 1/hz seconds is acceptable or where
/illumos-gate/usr/src/lib/libc/port/aio/
H A Daio.c124 int hz; /* clock ticks per second */ variable
170 hz = (int)sysconf(_SC_CLK_TCK);
1277 (void) usleep(ticks * (MICROSEC / hz));
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drstat_proc.c74 static int hz; variable
377 stats_s3.v_intr -= hz*(stats_s3.curtime.tv_sec - btm.tv_sec) +
378 hz*(stats_s3.curtime.tv_usec - btm.tv_usec)/1000000;
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dgprof.h90 long hz; variable
/illumos-gate/usr/src/cmd/su/
H A Dsu.c154 char *hz; variable
492 if (hz = getenv("HZ"))
493 (void) strlcat(hzname, hz, sizeof (hzname));
/illumos-gate/usr/src/uts/common/conf/
H A Dparam.c133 * Default hz is 100, but if we set hires_tick we get higher resolution
134 * clock behavior (currently defined to be 1000 hz). Higher values seem
137 * If we do decide to play with higher values, remember that hz should
140 * (1) hz should be in the range 100 <= hz <= MICROSEC. If hz exceeds
142 * Similarly, if hz < 100 then hz / 100 == 0 and stuff will break.
144 * (2) If hz <= 1000, it should be both a multiple of 100 and a
147 * (3) If hz > 100
159 int hz = HZ_DEFAULT; variable
[all...]
/illumos-gate/usr/src/uts/common/io/sdcard/adapters/sdhost/
H A Dsdhost.c545 sdhost_set_clock(sdslot_t *ss, uint32_t hz) argument
557 if (hz == 0) {
567 if ((hz > 25000000) && ((ss->ss_capab & CAPAB_HIGH_SPEED) != 0)) {
572 hz = min(hz, 25000000);
579 while (clk > hz) {
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_fil_solaris.c897 int hz = drv_usectohz(500000); local
901 hz);
/illumos-gate/usr/src/cmd/stat/iostat/
H A Diostat.c206 long hz; local
254 hz = sysconf(_SC_CLK_TCK);
293 getime = (getime / nr_active_cpus(newss)) / hz;
/illumos-gate/usr/src/cmd/truss/
H A Dmain.c2205 int hz = (int)sysconf(_SC_CLK_TCK); local
2207 ticks.tv_sec = lapse / hz;
2208 ticks.tv_nsec = (lapse % hz) * (1000000000 / hz);

Completed in 113 milliseconds

12