Home
last modified time | relevance | path

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

12

/titanic_50/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]);
/titanic_50/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])
/titanic_50/usr/src/uts/common/io/ixgbe/
H A Dixgbe_gld.c315 ixgbe_link_speed speeds = 0; in ixgbe_m_setprop() local
329 speeds = hw->phy.speeds_supported; in ixgbe_m_setprop()
330 if (speeds == 0) in ixgbe_m_setprop()
331 speeds = ixgbe->speeds_supported; in ixgbe_m_setprop()
350 speeds & IXGBE_LINK_SPEED_10GB_FULL) { in ixgbe_m_setprop()
359 speeds & IXGBE_LINK_SPEED_5GB_FULL) { in ixgbe_m_setprop()
368 speeds & IXGBE_LINK_SPEED_2_5GB_FULL) { in ixgbe_m_setprop()
377 speeds & IXGBE_LINK_SPEED_1GB_FULL) { in ixgbe_m_setprop()
386 speeds & IXGBE_LINK_SPEED_100_FULL) { in ixgbe_m_setprop()
497 ixgbe_link_speed speeds = 0; in ixgbe_m_getprop() local
[all …]
H A Dixgbe_stat.c497 ixgbe_link_speed speeds = 0; in ixgbe_m_stat() local
509 speeds = hw->phy.speeds_supported; in ixgbe_m_stat()
510 if (speeds == 0) in ixgbe_m_stat()
511 speeds = ixgbe->speeds_supported; in ixgbe_m_stat()
678 *val = (speeds & IXGBE_LINK_SPEED_10GB_FULL) ? 1 : 0; in ixgbe_m_stat()
682 *val = (speeds & IXGBE_LINK_SPEED_5GB_FULL) ? 1 : 0; in ixgbe_m_stat()
686 *val = (speeds & IXGBE_LINK_SPEED_2_5GB_FULL) ? 1 : 0; in ixgbe_m_stat()
690 *val = (speeds & IXGBE_LINK_SPEED_1GB_FULL) ? 1 : 0; in ixgbe_m_stat()
694 *val = (speeds & IXGBE_LINK_SPEED_100_FULL) ? 1 : 0; in ixgbe_m_stat()
/titanic_50/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dbaudrate.c56 static const t_baud speeds[] = { variable
88 for (i = 0; speeds[i].speed != (speed_t) -1; ++i) in baudrate()
89 if (speeds[i].speed == value) in baudrate()
92 return (speeds[i].value); in baudrate()
/titanic_50/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dbaudrate.c51 static t_baud speeds[] = { variable
87 for (i = 0; speeds[i].speed != (speed_t) -1; ++i) in baudrate()
88 if (speeds[i].speed == value) in baudrate()
91 return __m_return_int("baudrate", speeds[i].value); in baudrate()
/titanic_50/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()
/titanic_50/usr/src/cmd/ttymon/
H A Dstty.h61 struct speeds { struct
73 extern const struct speeds speeds[]; argument
H A Dsttyparse.c182 for (match = 0, i = 0; speeds[i].string; i++) {
183 if (eq(speeds[i].string)) {
185 speeds[i].code);
195 for (match = 0, i = 0; speeds[i].string; i++) {
196 if (eq(speeds[i].string)) {
198 speeds[i].code);
207 for (match = 0, i = 0; speeds[i].string; i++) {
208 if (eq(speeds[i].string)) {
210 speeds[i].code);
212 speeds[i].code);
H A Dsttytable.c40 const struct speeds speeds[] = { variable
H A Dstty.c733 for (i = 0; speeds[i].string; i++) { in prspeed()
734 if (speeds[i].code == scode) { in prspeed()
735 sval = speeds[i].value; in prspeed()
/titanic_50/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()
/titanic_50/usr/src/ucbcmd/stty/
H A Dsttyparse.c60 extern const struct speeds speeds[];
163 for(i=0; speeds[i].string; i++)
164 if(eq(speeds[i].string))
165 cfsetospeed(cb, speeds[i].speed);
173 for(i=0; speeds[i].string; i++)
174 if(eq(speeds[i].string))
175 cfsetispeed(cb, speeds[i].speed);
184 for(i=0; speeds[i].string; i++)
185 if(eq(speeds[i].string)) {
188 cfsetospeed(cb, speeds[i].speed);
H A Dstty.c70 extern const struct speeds speeds[]; in main()
104 for (i = 0; speeds[i].string; i++) in main()
106 speeds[i].speed) { in main()
108 speeds[i].string); in main()
112 for (i = 0; speeds[i].string; i++) in main()
114 speeds[i].speed) { in main()
116 speeds[i].string); in main()
H A Dstty.h38 struct speeds { struct
H A Dsttytable.c38 const struct speeds speeds[] = { variable
/titanic_50/usr/src/cmd/hal/utils/
H A Dcdutils.c281 get_write_speeds(uchar_t *page, int n, intlist_t **speeds, int *n_speeds, intlist_t **speeds_mem) in get_write_speeds() argument
290 *speeds = NULL; in get_write_speeds()
302 for (nextp = speeds; *nextp != NULL; nextp = &((*nextp)->next)) { in get_write_speeds()
320 intlist_t **speeds, int *n_speeds, intlist_t **speeds_mem) in get_read_write_speeds() argument
327 *speeds = *speeds_mem = NULL; in get_read_write_speeds()
356 get_write_speeds(&p[32], n, speeds, n_speeds, speeds_mem); in get_read_write_speeds()
358 if (*speeds != NULL) { in get_read_write_speeds()
359 *write_speed = max(*write_speed, (*speeds)[0].val); in get_read_write_speeds()
/titanic_50/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()
703 int *speeds; in cpupm_plat_state_enumerate() local
712 nspeeds = cpupm_get_speeds(cp, &speeds); in cpupm_plat_state_enumerate()
720 states[i].cps_speed = speeds[i]; in cpupm_plat_state_enumerate()
724 cpupm_free_speeds(speeds, nspeeds); in cpupm_plat_state_enumerate()
747 cpupm_get_speeds(cpu_t *cp, int **speeds) in cpupm_get_speeds() argument
752 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()
/titanic_50/usr/src/uts/i86pc/io/
H A Dcpudrv_mach.c336 cpudrv_get_speeds(cpudrv_devstate_t *cpudsp, int **speeds) in cpudrv_get_speeds() argument
344 return (cpupm_get_speeds(cpudsp->cp, speeds)); in cpudrv_get_speeds()
348 cpudrv_free_speeds(int *speeds, uint_t nspeeds) in cpudrv_free_speeds() argument
350 cpupm_free_speeds(speeds, nspeeds); in cpudrv_free_speeds()
/titanic_50/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()
/titanic_50/usr/src/cmd/tput/
H A Dtput.c294 static int speeds[] = { variable
616 CurrentBaudRate = speeds[B1200]; in initterm()
618 CurrentBaudRate = speeds[SPEED(termmode)]; in initterm()
627 CurrentBaudRate = speeds[SPEEDS(termmodes)]; in initterm()
/titanic_50/usr/src/ucbcmd/tset/
H A Dtset.c358 } speeds[] = { variable
891 for (i = 0; speeds[i].string; i++) in main()
892 if (speeds[i].baudrate == PadBaud) { in main()
893 PadBaud = speeds[i].speed; in main()
1517 for (i = 0; speeds[i].string; i++) in baudrate()
1518 if (sequal(speeds[i].string, buf)) in baudrate()
1519 return (speeds[i].speed); in baudrate()
/titanic_50/usr/src/cmd/login/
H A Dlogin.c1537 static char *speeds[] = { variable
1544 #define NSPEEDS (sizeof (speeds) / sizeof (speeds[0]))
1564 for (cpp = speeds; cpp < &speeds[NSPEEDS]; cpp++) in doremoteterm()
1566 (void) cfsetospeed(&tp, cpp-speeds); in doremoteterm()
/titanic_50/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