/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | cfsetispeed.c | 41 cfsetispeed(struct termios *termios_p, speed_t speed) in cfsetispeed() argument 46 if (speed == 0) { in cfsetispeed() 47 speed = termios_p->c_cflag & CBAUD; in cfsetispeed() 49 speed += (CBAUD + 1); in cfsetispeed() 52 if ((speed << 16) > CIBAUD) { in cfsetispeed() 54 speed -= ((CIBAUD >> 16) + 1); in cfsetispeed() 58 (termios_p->c_cflag & ~CIBAUD) | ((speed << 16) & CIBAUD); in cfsetispeed()
|
H A D | cfsetospeed.c | 41 cfsetospeed(struct termios *termios_p, speed_t speed) in cfsetospeed() argument 43 if (speed > CBAUD) { in cfsetospeed() 45 speed -= (CBAUD + 1); in cfsetospeed() 50 (termios_p->c_cflag & ~CBAUD) | (speed & CBAUD); in cfsetospeed()
|
/illumos-gate/usr/src/cmd/powertop/common/ |
H A D | cpufreq.c | 47 #define HZ2MHZ(speed) ((speed) / MICROSEC) argument 210 if (state->speed > max_cpufreq) in pt_cpufreq_stat_prepare() 211 max_cpufreq = state->speed; in pt_cpufreq_stat_prepare() 342 uint64_t speed; in pt_cpufreq_stat_account() local 347 speed = cpu_pow->current_pstate; in pt_cpufreq_stat_account() 360 if (g_pstate_info[i].speed == speed) { in pt_cpufreq_stat_account() 443 uint64_t speed; in pt_cpufreq_dtrace_walk() local 461 if (speed == 0) in pt_cpufreq_dtrace_walk() 462 speed = max_cpufreq; in pt_cpufreq_dtrace_walk() 464 speed = HZ2MHZ(speed); in pt_cpufreq_dtrace_walk() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/printers/ |
H A D | putprinter.c | 216 speed = Strdup(prbufp->speed); in putprinter() 218 speed = 0; in putprinter() 249 if (speed) in putprinter() 287 Free (speed); in putprinter() 288 speed = 0; in putprinter() 302 if (speed) in putprinter() 303 Free (speed); in putprinter() 310 if (speed) in putprinter() 311 Free (speed); in putprinter() 458 if (speed) in putprinter() [all …]
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | ef10_phy.c | 135 speed = 100; in ef10_phy_link_ev() 138 speed = 1000; in ef10_phy_link_ev() 141 speed = 10000; in ef10_phy_link_ev() 144 speed = 40000; in ef10_phy_link_ev() 147 speed = 0; in ef10_phy_link_ev() 319 speed = 100; in ef10_phy_reconfigure() 322 speed = 1000; in ef10_phy_reconfigure() 325 speed = 10000; in ef10_phy_reconfigure() 328 speed = 40000; in ef10_phy_reconfigure() 331 speed = 0; in ef10_phy_reconfigure() [all …]
|
H A D | siena_phy.c | 117 unsigned int speed; in siena_phy_link_ev() local 128 speed = 100; in siena_phy_link_ev() 131 speed = 1000; in siena_phy_link_ev() 134 speed = 10000; in siena_phy_link_ev() 137 speed = 0; in siena_phy_link_ev() 277 unsigned int speed; in siena_phy_reconfigure() local 305 speed = 100; in siena_phy_reconfigure() 308 speed = 1000; in siena_phy_reconfigure() 311 speed = 10000; in siena_phy_reconfigure() 314 speed = 0; in siena_phy_reconfigure() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | sis900.c | 798 int speed, duplex; in sis900_check_mode() local 812 if (speed == HW_SPEED_HOME || speed == HW_SPEED_10_MBPS) { in sis900_check_mode() 855 *speed = HW_SPEED_100_MBPS; in sis900_read_mode() 952 *speed = HW_SPEED_100_MBPS; in ics1893_read_mode() 954 *speed = HW_SPEED_10_MBPS; in ics1893_read_mode() 989 *speed = HW_SPEED_100_MBPS; in rtl8201_read_mode() 993 *speed = HW_SPEED_100_MBPS; in rtl8201_read_mode() 997 *speed = HW_SPEED_10_MBPS; in rtl8201_read_mode() 1001 *speed = HW_SPEED_10_MBPS; in rtl8201_read_mode() 1041 *speed = HW_SPEED_10_MBPS; in vt6103_read_mode() [all …]
|
H A D | sundance.c | 292 unsigned int speed; member 591 int speed; in sundance_probe() local 658 sdc->speed = 100; in sundance_probe() 662 sdc->speed = 100; in sundance_probe() 666 sdc->speed = 10; in sundance_probe() 670 sdc->speed = 10; in sundance_probe() 683 sdc->speed = 100; in sundance_probe() 700 sdc->speed, in sundance_probe() 721 sdc->speed = 10; in sundance_probe() 723 sdc->speed = 10; in sundance_probe() [all …]
|
/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/ |
H A D | bnx_hw_phy.c | 282 lm_medium_t speed; in init_utp() local 413 switch(speed) in init_utp() 855 lm_medium_t speed; in init_5708_serdes() local 1098 switch(speed) in init_5708_serdes() 1275 lm_medium_t speed, in force_5709_serdes_link() argument 1467 lm_medium_t speed; in init_5709_serdes() local 1618 lm_medium_t speed; in init_5706_serdes() local 1708 switch(speed) in init_5706_serdes() 2126 lm_medium_t speed; in link_setting_to_netlink() local 2133 switch(speed) in link_setting_to_netlink() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/hcd/ |
H A D | README | 41 2.Full speed bus 136 the full speed. 141 one low-speed transaction takes 0x628h full speed bits (197 bytes), 220 3.High speed bus 322 * For all low/full speed devices, and for high speed devices with 397 For a high speed usb device, you only need high speed bandwidth. For a 398 full/low speed device connected through a high speed hub, you need both 405 speed host controller. Refer to the "Full speed bus" section for more 417 High speed Non Split Transaction (for High speed devices only): 457 High speed split transactions (for full and low speed devices only): [all …]
|
/illumos-gate/usr/src/uts/intel/io/dnet/ |
H A D | dnet_mii.c | 828 *speed = 100; in getspeed_NS83840() 831 *speed = 100; in getspeed_NS83840() 834 *speed = 100; in getspeed_NS83840() 837 *speed = 10; in getspeed_NS83840() 840 *speed = 10; in getspeed_NS83840() 954 *speed = 100; in getspeed_generic() 957 *speed = 100; in getspeed_generic() 960 *speed = 100; in getspeed_generic() 963 *speed = 10; in getspeed_generic() 966 *speed = 10; in getspeed_generic() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | line.c | 125 int speed = -1; local 145 speed = ps->sp_name; 148 if (speed < 0) 150 ASSERT(speed >= 0, "BAD SPEED", "", spwant); 152 cfsetospeed(&ttbufs, speed); 401 int speed = -1; local 418 speed = ps->sp_name; 425 cfsetospeed(&ttbufs, speed); 492 int speed = -1; local 502 speed = ps->sp_name; [all …]
|
H A D | dial.c | 169 char speed[10]; /* character value of speed passed to dial */ local 189 if (call.speed <= 0) 190 strcpy(speed,"Any"); 192 sprintf(speed,"%d",call.speed); 203 alt[F_CLASS] = speed;
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | toshiba.c | 108 toshiba_speed_ctrl(cd_device *dev, int cmd, int speed) in toshiba_speed_ctrl() argument 129 if (speed == 32) { in toshiba_speed_ctrl() 134 if ((speed != 1) && (speed != 2) && (speed != 4) && in toshiba_speed_ctrl() 135 (speed != 12)) { in toshiba_speed_ctrl() 166 mpage[14] = rev_speed_tbl[speed]; in toshiba_speed_ctrl()
|
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | dial.c | 159 char speed[10]; /* character value of speed passed to dial */ in dial() local 179 if (call.speed <= 0) in dial() 180 (void) strcpy(speed, "Any"); in dial() 182 (void) sprintf(speed, "%d", call.speed); in dial() 193 alt[F_CLASS] = speed; in dial()
|
H A D | line.c | 110 int speed = -1; in fixline() local 128 speed = ps->sp_name; in fixline() 131 if (speed < 0) { in fixline() 135 ASSERT(speed >= 0, "BAD SPEED", "", spwant); in fixline() 137 (void) cfsetospeed(&ttbufs, speed); in fixline() 168 ttbufs.c_cflag |= (CREAD | (speed ? HUPCL : 0)); in fixline() 191 ttbufs.c_cflag |= (CS8 | CREAD | (speed ? HUPCL : 0)); in fixline()
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | ports.c | 92 int speed, fd; in open_dialup() local 97 if (pp->speed == NULL || (speed = atoi(pp->speed)) <= 0) in open_dialup() 98 speed = -1; in open_dialup() 101 call.speed = speed; in open_dialup()
|
/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_ndd.c | 110 int speed; in nge_nd_init() local 130 speed = NGE_PROP_GET_INT(dip, transfer_speed_propname); in nge_nd_init() 132 transfer_speed_propname, speed); in nge_nd_init() 134 switch (speed) { in nge_nd_init() 188 speed = NGE_PROP_GET_INT(dip, speed_propname); in nge_nd_init() 191 speed_propname, speed); in nge_nd_init() 195 switch (speed) { in nge_nd_init()
|
H A D | nge_xmii.c | 488 uint_t speed; in nge_check_copper() local 494 speed = UNKOWN_SPEED; in nge_check_copper() 529 speed = NGE_1000M; in nge_check_copper() 537 speed = NGE_100M; in nge_check_copper() 540 speed = NGE_100M; in nge_check_copper() 543 speed = NGE_10M; in nge_check_copper() 546 speed = NGE_10M; in nge_check_copper() 558 speed = NGE_100M; in nge_check_copper() 561 speed = NGE_100M; in nge_check_copper() 564 speed = NGE_10M; in nge_check_copper() [all …]
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlether.c | 141 uint32_t speed; in i_dladm_get_spdx() local 149 KSTAT_DATA_UINT32, &speed)) != DLADM_STATUS_OK) { in i_dladm_get_spdx() 163 if (speed == 0) in i_dladm_get_spdx() 232 int speed; in dladm_ether_spdx2str() local 242 speed = spdx[i].lesd_speed; in dladm_ether_spdx2str() 249 if (speed == spdx[j].lesd_speed) in dladm_ether_spdx2str() 255 if ((speed % 1000) == 0) { in dladm_ether_spdx2str() 256 speed = speed/1000; in dladm_ether_spdx2str() 262 speed, speed_unit); in dladm_ether_spdx2str()
|
/illumos-gate/usr/src/uts/common/io/bge/ |
H A D | bge_ndd.c | 126 int speed; in bge_nd_init() local 202 speed = BGE_PROP_GET_INT(dip, transfer_speed_propname); in bge_nd_init() 204 transfer_speed_propname, speed); in bge_nd_init() 206 switch (speed) { in bge_nd_init() 260 speed = BGE_PROP_GET_INT(dip, speed_propname); in bge_nd_init() 263 speed_propname, speed); in bge_nd_init() 267 switch (speed) { in bge_nd_init()
|
/illumos-gate/usr/src/uts/common/io/ixgbe/core/ |
H A D | ixgbe_82599.h | 40 ixgbe_link_speed *speed, bool *autoneg); 46 ixgbe_link_speed speed); 48 ixgbe_link_speed speed, 52 s32 ixgbe_setup_mac_link_82599(struct ixgbe_hw *hw, ixgbe_link_speed speed,
|
H A D | ixgbe_82598.c | 50 ixgbe_link_speed *speed, 59 ixgbe_link_speed speed, 62 ixgbe_link_speed speed, 298 ixgbe_link_speed *speed, in ixgbe_get_link_capabilities_82598() argument 318 *speed = IXGBE_LINK_SPEED_1GB_FULL; in ixgbe_get_link_capabilities_82598() 323 *speed = IXGBE_LINK_SPEED_10GB_FULL; in ixgbe_get_link_capabilities_82598() 328 *speed = IXGBE_LINK_SPEED_1GB_FULL; in ixgbe_get_link_capabilities_82598() 334 *speed = IXGBE_LINK_SPEED_UNKNOWN; in ixgbe_get_link_capabilities_82598() 733 ixgbe_link_speed speed, in ixgbe_setup_mac_link_82598() argument 747 speed &= link_capabilities; in ixgbe_setup_mac_link_82598() [all …]
|
H A D | ixgbe_82599.c | 50 ixgbe_link_speed speed, 417 ixgbe_link_speed *speed, in ixgbe_get_link_capabilities_82599() argument 433 *speed = IXGBE_LINK_SPEED_1GB_FULL; in ixgbe_get_link_capabilities_82599() 450 *speed = IXGBE_LINK_SPEED_1GB_FULL; in ixgbe_get_link_capabilities_82599() 471 *speed = IXGBE_LINK_SPEED_UNKNOWN; in ixgbe_get_link_capabilities_82599() 749 ixgbe_link_speed speed) in ixgbe_set_hard_rate_select_speed() argument 753 switch (speed) { in ixgbe_set_hard_rate_select_speed() 779 ixgbe_link_speed speed, in ixgbe_setup_mac_link_smartspeed() argument 891 ixgbe_link_speed speed, in ixgbe_setup_mac_link_82599() argument 913 speed &= link_capabilities; in ixgbe_setup_mac_link_82599() [all …]
|
/illumos-gate/usr/src/cmd/tip/aculib/ |
H A D | df.c | 44 int speed = 0; in df_dialer() local 64 speed = cfgetospeed(&buf); in df_dialer() 85 if (df03 && speed) { in df_dialer() 88 (void) cfsetospeed(&buf, speed); in df_dialer()
|