Home
last modified time | relevance | path

Searched refs:divisor (Results 1 – 25 of 46) sorted by relevance

12

/titanic_50/usr/src/lib/libcmdutils/common/
H A Dnicenum.c44 uint64_t divisor = 1; in nicenum_scale() local
71 uint64_t newdiv = divisor * divamt; in nicenum_scale()
75 VERIFY3U(newdiv, >=, divisor); in nicenum_scale()
80 divisor = newdiv; in nicenum_scale()
88 } else if (n % divisor == 0) { in nicenum_scale()
93 rc = snprintf(buf, buflen, "%llu%c", n / divisor, u); in nicenum_scale()
108 (double)n / divisor, u)) <= 5) in nicenum_scale()
/titanic_50/usr/src/uts/sun4u/io/
H A Dgrbeep.c335 int divisor = 0; in grbeep_freq() local
344 divisor = GRBEEP_INPUT_FREQ / freq; in grbeep_freq()
346 if (divisor > GRBEEP_DIVISOR_MAX) { in grbeep_freq()
347 divisor = GRBEEP_DIVISOR_MAX; in grbeep_freq()
348 } else if (divisor < GRBEEP_DIVISOR_MIN) { in grbeep_freq()
349 divisor = GRBEEP_DIVISOR_MIN; in grbeep_freq()
353 (divisor & 0xff), ((divisor & 0xff00) >> 8))); in grbeep_freq()
355 GRBEEP_WRITE_FREQ_DIVISOR_REG(divisor & 0xff); in grbeep_freq()
356 GRBEEP_WRITE_FREQ_DIVISOR_REG((divisor & 0xff00) >> 8); in grbeep_freq()
H A Drmc_comm.c488 uint16_t divisor; in rmc_comm_hw_reset() local
505 divisor = SIO_BAUD_TO_DIVISOR(SIO_BAUD_DEFAULT) * in rmc_comm_hw_reset()
508 divisor = SIO_BAUD_TO_DIVISOR(rcs->baud) * in rmc_comm_hw_reset()
525 sio_put_reg(rcs, SIO_LBGDH, divisor >> 8); in rmc_comm_hw_reset()
526 sio_put_reg(rcs, SIO_LBGDL, divisor & 0xff); in rmc_comm_hw_reset()
/titanic_50/usr/src/cmd/avs/dsstat/
H A Dsdbc_stats.c645 int divisor = 0; in sdbc_getvalues() local
719 divisor = 1; in sdbc_getvalues()
722 divisor *= KILOBYTE; in sdbc_getvalues()
724 divisor *= etime; in sdbc_getvalues()
726 if (divisor != 1) { in sdbc_getvalues()
727 vals->cache_read /= divisor; in sdbc_getvalues()
728 vals->disk_read /= divisor; in sdbc_getvalues()
729 vals->total_reads /= divisor; in sdbc_getvalues()
731 vals->cache_write /= divisor; in sdbc_getvalues()
732 vals->disk_write /= divisor; in sdbc_getvalues()
[all …]
/titanic_50/usr/src/uts/sun4u/cpu/
H A Dus3_jalapeno.c700 cpu_change_speed(uint64_t divisor, uint64_t arg2) in cpu_change_speed() argument
729 (divisor != JBUS_CONFIG_ECLK_1_DIV)) { in cpu_change_speed()
744 (divisor == JBUS_CONFIG_ECLK_1_DIV); in cpu_change_speed()
761 for (bceclk = bus_config_eclk; bceclk->divisor; bceclk++) { in cpu_change_speed()
762 if (bceclk->divisor != divisor) in cpu_change_speed()
778 ((divisor == JBUS_CONFIG_ECLK_2_DIV) || in cpu_change_speed()
779 (divisor == JBUS_CONFIG_ECLK_32_DIV))) { in cpu_change_speed()
787 } else if (divisor == JBUS_CONFIG_ECLK_1_DIV) { in cpu_change_speed()
794 CPU->cpu_m.divisor = (uchar_t)divisor; in cpu_change_speed()
796 divisor); in cpu_change_speed()
[all …]
H A Dus3_cheetah.c559 cpu_change_speed(uint64_t divisor, uint64_t arg2) in cpu_change_speed() argument
565 for (bceclk = bus_config_eclk; bceclk->divisor; bceclk++) { in cpu_change_speed()
566 if (bceclk->divisor != divisor) in cpu_change_speed()
572 CPU->cpu_m.divisor = (uchar_t)divisor; in cpu_change_speed()
574 divisor); in cpu_change_speed()
581 cmn_err(CE_WARN, "cpu_change_speed: bad divisor %" PRIu64, divisor); in cpu_change_speed()
H A Dus3_cheetahplus.c763 cpu_change_speed(uint64_t divisor, uint64_t arg2) in cpu_change_speed() argument
769 for (bceclk = bus_config_eclk; bceclk->divisor; bceclk++) { in cpu_change_speed()
770 if (bceclk->divisor != divisor) in cpu_change_speed()
776 CPU->cpu_m.divisor = (uchar_t)divisor; in cpu_change_speed()
778 divisor); in cpu_change_speed()
785 cmn_err(CE_WARN, "cpu_change_speed: bad divisor %" PRIu64, divisor); in cpu_change_speed()
/titanic_50/usr/src/uts/sun4/sys/
H A Dcpupm_mach.h36 #define CPUPM_SPEED_HZ(mhz, divisor) (((uint64_t)mhz * 1000000) / divisor) argument
/titanic_50/usr/src/cmd/sh/
H A Dulimit.c48 rlim_t divisor; member
162 rlimtab[res].divisor); in sysulimit()
173 rlimtab[res].divisor); in sysulimit()
212 new_limit = limit * rlimtab[res].divisor; in sysulimit()
/titanic_50/usr/src/grub/grub-0.97/docs/
H A Dkernel.c179 int divisor = 10; in itoa() local
189 divisor = 16; in itoa()
194 int remainder = ud % divisor; in itoa()
198 while (ud /= divisor); in itoa()
H A Dkernel.c.texi179 int divisor = 10;
189 divisor = 16;
194 int remainder = ud % divisor;
198 while (ud /= divisor);
/titanic_50/usr/src/uts/sun4u/sys/
H A Dcpudrv_mach.h93 #define CPUDRV_SPEED_HZ(mhz, divisor) (((uint64_t)mhz * 1000000) / divisor) argument
H A Dmachcpuvar.h103 uint16_t divisor; /* Estar %tick clock ratio */ member
H A Dcpu_module.h206 void cpu_change_speed(uint64_t divisor, uint64_t arg2);
/titanic_50/usr/src/uts/i86pc/ml/
H A Dcpr_wakecode.s489 D16 movb $DLAB, %al / divisor latch
492 D16 movl $_CONST(COM1+DLL), %edx / divisor latch lsb
493 D16 movb $B9600L, %al / divisor latch
496 D16 movl $_CONST(COM1+DLH), %edx / divisor latch hsb
497 D16 movb $B9600H, %al / divisor latch
510 D16 movb $DLAB, %al / divisor latch
513 D16 movl $_CONST(COM2+DLL), %edx / divisor latch lsb
514 D16 movb $B9600L, %al / divisor latch
517 D16 movl $_CONST(COM2+DLH), %edx / divisor latch hsb
518 D16 movb $B9600H, %al / divisor latch
/titanic_50/usr/src/grub/grub-0.97/stage2/
H A Dserial.c46 struct divisor struct
56 static struct divisor divisor_tab[] = argument
/titanic_50/usr/src/uts/common/os/
H A Dsched.c153 int divisor; in sched() local
338 divisor = 1; in sched()
341 divisor = 2; in sched()
345 needs = needs / divisor; in sched()
/titanic_50/usr/src/lib/libbc/libc/crt/sparc/
H A Dmuldiv.s47 cmp %o1,0xffffffff ! is divisor -1?
/titanic_50/usr/src/uts/sun4v/sys/
H A Dcpu_module.h113 void cpu_change_speed(uint64_t divisor, uint64_t arg2);
H A Dmachcpuvar.h118 uint16_t divisor; /* Estar %tick clock ratio */ member
/titanic_50/usr/src/uts/sun4u/io/i2c/clients/
H A Dssc050.c323 int divisor; in ssc050_ioctl() local
465 divisor = control & SSC050_FAN_CONTROL_DIVISOR; in ssc050_ioctl()
466 fan_speed = SSC050_FAN_SPEED(divisor, fan_count); in ssc050_ioctl()
/titanic_50/usr/src/lib/libsqlite/src/
H A Dutil.c573 LONGDOUBLE_TYPE divisor = 1.0; in sqliteAtoF() local
577 divisor *= 10.0; in sqliteAtoF()
580 v1 /= divisor; in sqliteAtoF()
/titanic_50/usr/src/uts/sun4/cpu/
H A Dcpu_module.c135 cpu_change_speed(uint64_t divisor, uint64_t arg2) in cpu_change_speed() argument
/titanic_50/usr/src/uts/sun4u/lw2plus/io/
H A Dlombus.c1497 uint16_t divisor; in lombus_hw_reset() local
1514 divisor = SIO_BAUD_TO_DIVISOR(SIO_BAUD_DEFAULT); in lombus_hw_reset()
1516 divisor = SIO_BAUD_TO_DIVISOR(ssp->baud); in lombus_hw_reset()
1531 sio_put_reg(ssp, SIO_LBGDH, divisor >> 8); in lombus_hw_reset()
1532 sio_put_reg(ssp, SIO_LBGDL, divisor & 0xff); in lombus_hw_reset()
/titanic_50/usr/src/uts/sun4/os/
H A Dmachdep.c555 if (cpu->cpu_m.divisor > 1) in cpu_intr_swtch_enter()
556 interval *= cpu->cpu_m.divisor; in cpu_intr_swtch_enter()

12