Home
last modified time | relevance | path

Searched refs:speeds (Results 1 – 25 of 40) sorted by relevance

12

/illumos-gate/usr/src/uts/i86pc/sys/
H A Dcpudrv_mach.h88 #define CPUDRV_GET_SPEEDS(cpudsp, speeds, nspeeds) \ argument
89 nspeeds = cpudrv_get_speeds(cpudsp, &speeds);
90 #define CPUDRV_FREE_SPEEDS(speeds, nspeeds) \ argument
91 cpudrv_free_speeds(speeds, nspeeds);
102 #define CPUDRV_IDLE_CNT_PERCENT(hwm, speeds, i) \ argument
103 (100 - (((100 - hwm) * speeds[0]) / speeds[i]))
108 #define CPUDRV_USER_CNT_PERCENT(hwm, speeds, i) \ argument
109 ((hwm * speeds[i]) / speeds[i - 1]);
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dcpudrv_mach.h75 #define CPUDRV_GET_SPEEDS(cpudsp, speeds, nspeeds) { \ argument
77 DDI_PROP_DONTPASS, "clock-divisors", &speeds, \
85 #define CPUDRV_FREE_SPEEDS(speeds, nspeeds) { \ argument
87 ddi_prop_free(speeds); \
98 #define CPUDRV_IDLE_CNT_PERCENT(hwm, speeds, i) \ argument
99 (100 - ((100 - hwm) * speeds[i]))
104 #define CPUDRV_USER_CNT_PERCENT(hwm, speeds, i) \ argument
105 ((hwm * speeds[i - 1]) / speeds[i])
/illumos-gate/usr/src/uts/common/io/ixgbe/
H A Dixgbe_gld.c382 ixgbe_link_speed speeds = 0; in ixgbe_m_setprop() local
396 speeds = hw->phy.speeds_supported; in ixgbe_m_setprop()
397 if (speeds == 0) in ixgbe_m_setprop()
398 speeds = ixgbe->speeds_supported; in ixgbe_m_setprop()
417 speeds & IXGBE_LINK_SPEED_10GB_FULL) { in ixgbe_m_setprop()
426 speeds & IXGBE_LINK_SPEED_5GB_FULL) { in ixgbe_m_setprop()
435 speeds & IXGBE_LINK_SPEED_2_5GB_FULL) { in ixgbe_m_setprop()
444 speeds & IXGBE_LINK_SPEED_1GB_FULL) { in ixgbe_m_setprop()
453 speeds & IXGBE_LINK_SPEED_100_FULL) { in ixgbe_m_setprop()
565 ixgbe_link_speed speeds = 0; in ixgbe_m_getprop() local
[all …]
H A Dixgbe_stat.c466 ixgbe_link_speed speeds = 0; in ixgbe_m_stat() local
478 speeds = hw->phy.speeds_supported; in ixgbe_m_stat()
479 if (speeds == 0) in ixgbe_m_stat()
480 speeds = ixgbe->speeds_supported; in ixgbe_m_stat()
623 *val = (speeds & IXGBE_LINK_SPEED_10GB_FULL) ? 1 : 0; in ixgbe_m_stat()
627 *val = (speeds & IXGBE_LINK_SPEED_5GB_FULL) ? 1 : 0; in ixgbe_m_stat()
631 *val = (speeds & IXGBE_LINK_SPEED_2_5GB_FULL) ? 1 : 0; in ixgbe_m_stat()
635 *val = (speeds & IXGBE_LINK_SPEED_1GB_FULL) ? 1 : 0; in ixgbe_m_stat()
639 *val = (speeds & IXGBE_LINK_SPEED_100_FULL) ? 1 : 0; in ixgbe_m_stat()
/illumos-gate/usr/src/uts/sun4u/io/
H A Dcpudrv_mach.c99 int *speeds; in cpudrv_set_supp_freqs() local
102 CPUDRV_GET_SPEEDS(cpudsp, speeds, nspeeds); in cpudrv_set_supp_freqs()
105 cpupm_set_supp_freqs(cpudsp->cp, speeds, nspeeds); in cpudrv_set_supp_freqs()
106 CPUDRV_FREE_SPEEDS(speeds, nspeeds); in cpudrv_set_supp_freqs()
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dbaudrate.c43 static const t_baud speeds[] = { variable
91 for (i = 0; speeds[i].speed != (speed_t) -1; ++i) { in baudrate()
92 if (speeds[i].speed == value) { in baudrate()
97 return (speeds[i].value); in baudrate()
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dbaudrate.c43 static t_baud speeds[] = { variable
95 for (i = 0; speeds[i].speed != (speed_t) -1; ++i) { in baudrate()
96 if (speeds[i].speed == value) { in baudrate()
101 return __m_return_int("baudrate", speeds[i].value); in baudrate()
/illumos-gate/usr/src/cmd/ttymon/
H A Dstty.h59 struct speeds { struct
71 extern const struct speeds speeds[]; argument
H A Dsttyparse.c188 for (match = 0, i = 0; speeds[i].string; i++) {
189 if (eq(speeds[i].string)) {
191 speeds[i].code);
201 for (match = 0, i = 0; speeds[i].string; i++) {
202 if (eq(speeds[i].string)) {
204 speeds[i].code);
213 for (match = 0, i = 0; speeds[i].string; i++) {
214 if (eq(speeds[i].string)) {
216 speeds[i].code);
218 speeds[i].code);
H A Dsttytable.c40 const struct speeds speeds[] = { variable
/illumos-gate/usr/src/ucbcmd/stty/
H A Dsttyparse.c57 extern const struct speeds speeds[];
160 for(i=0; speeds[i].string; i++)
161 if(eq(speeds[i].string))
162 cfsetospeed(cb, speeds[i].speed);
170 for(i=0; speeds[i].string; i++)
171 if(eq(speeds[i].string))
172 cfsetispeed(cb, speeds[i].speed);
181 for(i=0; speeds[i].string; i++)
182 if(eq(speeds[i].string)) {
185 cfsetospeed(cb, speeds[i].speed);
H A Dstty.c71 extern const struct speeds speeds[]; in main()
105 for (i = 0; speeds[i].string; i++) in main()
107 speeds[i].speed) { in main()
109 speeds[i].string); in main()
113 for (i = 0; speeds[i].string; i++) in main()
115 speeds[i].speed) { in main()
117 speeds[i].string); in main()
H A Dstty.h35 struct speeds { struct
H A Dsttytable.c38 const struct speeds speeds[] = { variable
/illumos-gate/usr/src/uts/common/os/
H A Dcpupm.c34 cpupm_set_supp_freqs(cpu_t *cp, int *speeds, uint_t nspeeds) in cpupm_set_supp_freqs() argument
43 if (speeds == NULL) { in cpupm_set_supp_freqs()
51 speeds[j]); in cpupm_set_supp_freqs()
/illumos-gate/usr/src/cmd/hal/utils/
H A Dcdutils.c286 get_write_speeds(uchar_t *page, int n, intlist_t **speeds, int *n_speeds, intlist_t **speeds_mem) in get_write_speeds() argument
295 *speeds = NULL; in get_write_speeds()
307 for (nextp = speeds; *nextp != NULL; nextp = &((*nextp)->next)) { in get_write_speeds()
325 intlist_t **speeds, int *n_speeds, intlist_t **speeds_mem) in get_read_write_speeds() argument
332 *speeds = *speeds_mem = NULL; in get_read_write_speeds()
361 get_write_speeds(&p[32], n, speeds, n_speeds, speeds_mem); in get_read_write_speeds()
363 if (*speeds != NULL) { in get_read_write_speeds()
364 *write_speed = max(*write_speed, (*speeds)[0].val); in get_read_write_speeds()
/illumos-gate/usr/src/uts/i86pc/os/cpupm/
H A Dcpupm_mach.c151 int *speeds; in cpupm_init() local
200 nspeeds = cpupm_get_speeds(cp, &speeds); in cpupm_init()
205 cpupm_set_supp_freqs(cp, speeds, nspeeds); in cpupm_init()
206 cpupm_free_speeds(speeds, nspeeds); in cpupm_init()
702 int *speeds = NULL; in cpupm_plat_state_enumerate() local
711 nspeeds = cpupm_get_speeds(cp, &speeds); in cpupm_plat_state_enumerate()
719 states[i].cps_speed = speeds[i]; in cpupm_plat_state_enumerate()
723 cpupm_free_speeds(speeds, nspeeds); in cpupm_plat_state_enumerate()
746 cpupm_get_speeds(cpu_t *cp, int **speeds) in cpupm_get_speeds() argument
751 return (cpu_acpi_get_speeds(mach_state->ms_acpi_handle, speeds)); in cpupm_get_speeds()
[all …]
H A Dcpu_acpi.c1058 cpu_acpi_get_speeds(cpu_acpi_handle_t handle, int **speeds) in cpu_acpi_get_speeds() argument
1072 *speeds = hspeeds; in cpu_acpi_get_speeds()
1080 cpu_acpi_free_speeds(int *speeds, uint_t nspeeds) in cpu_acpi_free_speeds() argument
1082 kmem_free(speeds, nspeeds * sizeof (int)); in cpu_acpi_free_speeds()
/illumos-gate/usr/src/uts/i86pc/io/
H A Dcpudrv_mach.c337 cpudrv_get_speeds(cpudrv_devstate_t *cpudsp, int **speeds) in cpudrv_get_speeds() argument
345 return (cpupm_get_speeds(cpudsp->cp, speeds)); in cpudrv_get_speeds()
349 cpudrv_free_speeds(int *speeds, uint_t nspeeds) in cpudrv_free_speeds() argument
351 cpupm_free_speeds(speeds, nspeeds); in cpudrv_free_speeds()
/illumos-gate/usr/src/uts/common/io/
H A Dcpudrv.c658 int *speeds; in cpudrv_init() local
664 CPUDRV_GET_SPEEDS(cpudsp, speeds, nspeeds); in cpudrv_init()
667 CPUDRV_FREE_SPEEDS(speeds, nspeeds); in cpudrv_init()
699 cur_spd->speed = speeds[i]; in cpudrv_init()
729 cpudrv_idle_hwm, speeds, i); in cpudrv_init()
747 cpudrv_user_hwm, speeds, i); in cpudrv_init()
773 CPUDRV_FREE_SPEEDS(speeds, nspeeds); in cpudrv_init()
/illumos-gate/usr/src/cmd/tput/
H A Dtput.c294 static int speeds[] = { variable
624 CurrentBaudRate = speeds[B1200]; in initterm()
626 CurrentBaudRate = speeds[SPEED(termmode)]; in initterm()
635 CurrentBaudRate = speeds[SPEEDS(termmodes)]; in initterm()
/illumos-gate/usr/src/ucbcmd/tset/
H A Dtset.c355 } speeds[] = { variable
893 for (i = 0; speeds[i].string; i++) in main()
894 if (speeds[i].baudrate == PadBaud) { in main()
895 PadBaud = speeds[i].speed; in main()
1518 for (i = 0; speeds[i].string; i++) in baudrate()
1519 if (sequal(speeds[i].string, buf)) in baudrate()
1520 return (speeds[i].speed); in baudrate()
/illumos-gate/usr/src/cmd/pcieadm/
H A Dpcieadm_devs.c653 boolean_t speeds = B_FALSE; in pcieadm_show_devs() local
678 speeds = B_TRUE; in pcieadm_show_devs()
697 if (fields != NULL && speeds) { in pcieadm_show_devs()
702 if (speeds) { in pcieadm_show_devs()
/illumos-gate/usr/src/cmd/login/
H A Dlogin.c1539 static char *speeds[] = { variable
1547 #define NSPEEDS (sizeof (speeds) / sizeof (speeds[0]))
1567 for (cpp = speeds; cpp < &speeds[NSPEEDS]; cpp++) { in doremoteterm()
1569 (void) cfsetospeed(&tp, cpp-speeds); in doremoteterm()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Drlogin.c170 static char *speeds[] = variable
618 if (speed > 0 && speed < sizeof (speeds)/sizeof (char *) && in main()
619 strlen(term) + strlen("/") + strlen(speeds[speed]) + 1 < in main()
622 (void) strcat(term, speeds[speed]); in main()

12