/illumos-gate/usr/src/uts/common/io/e1000api/ |
H A D | e1000_phy.c | 1011 u16 phy_data; in e1000_set_master_slave_mode() local 1014 ret_val = hw->phy.ops.read_reg(hw, PHY_1000T_CTRL, &phy_data); in e1000_set_master_slave_mode() 1019 hw->phy.original_ms_type = (phy_data & CR_1000T_MS_ENABLE) ? in e1000_set_master_slave_mode() 1020 ((phy_data & CR_1000T_MS_VALUE) ? in e1000_set_master_slave_mode() 1026 phy_data |= (CR_1000T_MS_ENABLE | CR_1000T_MS_VALUE); in e1000_set_master_slave_mode() 1029 phy_data |= CR_1000T_MS_ENABLE; in e1000_set_master_slave_mode() 1030 phy_data &= ~(CR_1000T_MS_VALUE); in e1000_set_master_slave_mode() 1033 phy_data &= ~CR_1000T_MS_ENABLE; in e1000_set_master_slave_mode() 1039 return hw->phy.ops.write_reg(hw, PHY_1000T_CTRL, phy_data); in e1000_set_master_slave_mode() 1051 u16 phy_data; in e1000_copper_link_setup_82577() local [all …]
|
H A D | e1000_80003es2lan.c | 665 u16 phy_data; in e1000_phy_force_speed_duplex_80003es2lan() local 676 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 680 phy_data &= ~GG82563_PSCR_CROSSOVER_MODE_AUTO; in e1000_phy_force_speed_duplex_80003es2lan() 681 ret_val = hw->phy.ops.write_reg(hw, GG82563_PHY_SPEC_CTRL, phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 685 DEBUGOUT1("GG82563 PSCR: %X\n", phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 687 ret_val = hw->phy.ops.read_reg(hw, PHY_CONTROL, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 691 e1000_phy_force_speed_duplex_setup(hw, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 694 phy_data |= MII_CR_RESET; in e1000_phy_force_speed_duplex_80003es2lan() 696 ret_val = hw->phy.ops.write_reg(hw, PHY_CONTROL, phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 727 &phy_data); in e1000_phy_force_speed_duplex_80003es2lan() [all …]
|
H A D | e1000_82540.c | 533 u16 phy_data; in e1000_set_vco_speed_82540() local 548 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_GEN_CONTROL, &phy_data); in e1000_set_vco_speed_82540() 552 phy_data &= ~M88E1000_PHY_VCO_REG_BIT8; in e1000_set_vco_speed_82540() 553 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, phy_data); in e1000_set_vco_speed_82540() 563 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_GEN_CONTROL, &phy_data); in e1000_set_vco_speed_82540() 567 phy_data |= M88E1000_PHY_VCO_REG_BIT11; in e1000_set_vco_speed_82540() 568 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, phy_data); in e1000_set_vco_speed_82540()
|
H A D | e1000_82541.c | 675 u16 phy_data, phy_saved_data, speed, duplex, i; in e1000_config_dsp_after_link_change_82541() local 707 &phy_data); in e1000_config_dsp_after_link_change_82541() 711 phy_data &= ~IGP01E1000_PHY_EDAC_MU_INDEX; in e1000_config_dsp_after_link_change_82541() 715 phy_data); in e1000_config_dsp_after_link_change_82541() 729 ret_val = phy->ops.read_reg(hw, PHY_1000T_STATUS, &phy_data); in e1000_config_dsp_after_link_change_82541() 736 &phy_data); in e1000_config_dsp_after_link_change_82541() 740 idle_errs += (phy_data & SR_1000T_IDLE_ERROR_CNT); in e1000_config_dsp_after_link_change_82541() 781 &phy_data); in e1000_config_dsp_after_link_change_82541() 785 phy_data &= ~IGP01E1000_PHY_EDAC_MU_INDEX; in e1000_config_dsp_after_link_change_82541() 786 phy_data |= IGP01E1000_PHY_EDAC_SIGN_EXT_9_BITS; in e1000_config_dsp_after_link_change_82541() [all …]
|
H A D | e1000_82575.c | 3079 u16 phy_data; in e1000_set_eee_i354() local 3095 &phy_data); in e1000_set_eee_i354() 3099 phy_data |= E1000_M88E1543_EEE_CTRL_1_MS; in e1000_set_eee_i354() 3101 phy_data); in e1000_set_eee_i354() 3113 &phy_data); in e1000_set_eee_i354() 3118 phy_data |= E1000_EEE_ADV_100_SUPPORTED; in e1000_set_eee_i354() 3120 phy_data &= ~E1000_EEE_ADV_100_SUPPORTED; in e1000_set_eee_i354() 3123 phy_data |= E1000_EEE_ADV_1000_SUPPORTED; in e1000_set_eee_i354() 3125 phy_data &= ~E1000_EEE_ADV_1000_SUPPORTED; in e1000_set_eee_i354() 3129 phy_data); in e1000_set_eee_i354() [all …]
|
H A D | e1000_ich8lan.c | 2258 u16 phy_data; in e1000_write_smbus_addr() local 2266 ret_val = e1000_read_phy_reg_hv_locked(hw, HV_SMB_ADDR, &phy_data); in e1000_write_smbus_addr() 2270 phy_data &= ~HV_SMB_ADDR_MASK; in e1000_write_smbus_addr() 2271 phy_data |= (strap >> E1000_STRAP_SMBUS_ADDRESS_SHIFT); in e1000_write_smbus_addr() 2272 phy_data |= HV_SMB_ADDR_PEC_EN | HV_SMB_ADDR_VALID; in e1000_write_smbus_addr() 2277 phy_data &= ~HV_SMB_ADDR_FREQ_MASK; in e1000_write_smbus_addr() 2278 phy_data |= (freq & (1 << 0)) << in e1000_write_smbus_addr() 2280 phy_data |= (freq & (1 << 1)) << in e1000_write_smbus_addr() 2287 return e1000_write_phy_reg_hv_locked(hw, HV_SMB_ADDR, phy_data); in e1000_write_smbus_addr() 2659 u16 phy_data; in e1000_hv_phy_workarounds_ich8lan() local [all …]
|
H A D | e1000_82543.c | 1407 u16 phy_data; in e1000_config_mac_to_phy_82543() local 1423 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); in e1000_config_mac_to_phy_82543() 1428 if (phy_data & M88E1000_PSSR_DPLX) in e1000_config_mac_to_phy_82543() 1437 if ((phy_data & M88E1000_PSSR_SPEED) == M88E1000_PSSR_1000MBS) in e1000_config_mac_to_phy_82543() 1439 else if ((phy_data & M88E1000_PSSR_SPEED) == M88E1000_PSSR_100MBS) in e1000_config_mac_to_phy_82543()
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | e1000.c | 110 static int e1000_read_phy_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t *phy_data); 111 static int e1000_read_phy_reg_ex(struct e1000_hw *hw, uint32_t reg_addr, uint16_t *phy_data); 112 static int e1000_write_phy_reg(struct e1000_hw *hw, uint32_t reg_addr, uint16_t phy_data); 113 static int e1000_write_phy_reg_ex(struct e1000_hw *hw, uint32_t reg_addr, uint16_t phy_data); 1546 uint16_t phy_data; local 1601 &phy_data))) 1607 phy_data &= ~(IGP01E1000_PSCR_AUTO_MDIX | 1613 phy_data &= ~IGP01E1000_PSCR_AUTO_MDIX; 1617 phy_data &= ~IGP01E1000_PSCR_FORCE_MDI_MDIX; 1620 phy_data |= IGP01E1000_PSCR_FORCE_MDI_MDIX; [all …]
|
H A D | davicom.c | 211 u16 phy_data; in phy_read() local 242 for (phy_data=0, i=0; i<16; i++) { in phy_read() 243 phy_data<<=1; in phy_read() 244 phy_data|=phy_read_1bit(io_dcr9); in phy_read() 247 return phy_data; in phy_read() 253 static void phy_write(int location, u16 phy_data) in phy_write() argument 288 phy_write_1bit(io_dcr9, phy_data&i ? PHY_DATA_1: PHY_DATA_0); in phy_write() 294 static void phy_write_1bit(u32 ee_addr, u32 phy_data) in phy_write_1bit() argument 297 outl(phy_data, ee_addr); /* MII Clock Low */ in phy_write_1bit() 299 outl(phy_data|MDCLKH, ee_addr); /* MII Clock High */ in phy_write_1bit() [all …]
|
/illumos-gate/usr/src/uts/common/io/ixgbe/core/ |
H A D | ixgbe_phy.h | 167 u16 *phy_data); 169 u16 phy_data); 171 u32 device_type, u16 *phy_data); 173 u32 device_type, u16 phy_data);
|
H A D | ixgbe_phy.c | 585 u16 *phy_data) in ixgbe_read_phy_reg_mdi() argument 653 *phy_data = (u16)(data); in ixgbe_read_phy_reg_mdi() 667 u32 device_type, u16 *phy_data) in ixgbe_read_phy_reg_generic() argument 677 status = hw->phy.ops.read_reg_mdi(hw, reg_addr, device_type, phy_data); in ixgbe_read_phy_reg_generic() 693 u32 device_type, u16 phy_data) in ixgbe_write_phy_reg_mdi() argument 698 IXGBE_WRITE_REG(hw, IXGBE_MSRWD, (u32)phy_data); in ixgbe_write_phy_reg_mdi() 767 u32 device_type, u16 phy_data) in ixgbe_write_phy_reg_generic() argument 776 phy_data); in ixgbe_write_phy_reg_generic() 1000 u16 phy_data = 0; in ixgbe_check_phy_link_tnx() local 1018 &phy_data); in ixgbe_check_phy_link_tnx() [all …]
|
H A D | ixgbe_api.c | 530 u16 *phy_data) in ixgbe_read_phy_reg() argument 536 device_type, phy_data), IXGBE_NOT_IMPLEMENTED); in ixgbe_read_phy_reg() 549 u16 phy_data) in ixgbe_write_phy_reg() argument 555 device_type, phy_data), IXGBE_NOT_IMPLEMENTED); in ixgbe_write_phy_reg() 1240 u32 device_type, u32 *phy_data) in ixgbe_read_iosf_sb_reg() argument 1243 device_type, phy_data), IXGBE_NOT_IMPLEMENTED); in ixgbe_read_iosf_sb_reg() 1256 u32 device_type, u32 phy_data) in ixgbe_write_iosf_sb_reg() argument 1259 device_type, phy_data), IXGBE_NOT_IMPLEMENTED); in ixgbe_write_iosf_sb_reg()
|
H A D | ixgbe_api.h | 71 u16 *phy_data); 73 u16 phy_data); 213 u32 device_type, u32 *phy_data); 215 u32 device_type, u32 phy_data);
|
H A D | ixgbe_x550.h | 106 u32 device_type, u16 *phy_data); 108 u32 device_type, u16 phy_data);
|
H A D | ixgbe_x550.c | 522 u32 device_type, u16 *phy_data) in ixgbe_read_phy_reg_x550em() argument 524 UNREFERENCED_4PARAMETER(*hw, reg_addr, device_type, *phy_data); in ixgbe_read_phy_reg_x550em() 529 u32 device_type, u16 phy_data) in ixgbe_write_phy_reg_x550em() argument 531 UNREFERENCED_4PARAMETER(*hw, reg_addr, device_type, phy_data); in ixgbe_write_phy_reg_x550em() 4358 u32 device_type, u16 *phy_data) in ixgbe_read_phy_reg_x550a() argument 4368 status = hw->phy.ops.read_reg_mdi(hw, reg_addr, device_type, phy_data); in ixgbe_read_phy_reg_x550a() 4386 u32 device_type, u16 phy_data) in ixgbe_write_phy_reg_x550a() argument 4395 phy_data); in ixgbe_write_phy_reg_x550a() 4542 u16 phy_data; in ixgbe_led_on_t_X550em() local 4551 IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, &phy_data); in ixgbe_led_on_t_X550em() [all …]
|
/illumos-gate/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_rx.c | 156 uint16_t phy_data; in e1000g_rx_setup() local 334 (void) e1000_read_phy_reg(hw, PHY_REG(770, 26), &phy_data); in e1000g_rx_setup() 335 phy_data &= 0xfff8; in e1000g_rx_setup() 336 phy_data |= (1 << 2); in e1000g_rx_setup() 337 (void) e1000_write_phy_reg(hw, PHY_REG(770, 26), phy_data); in e1000g_rx_setup() 340 (void) e1000_read_phy_reg(hw, 22, &phy_data); in e1000g_rx_setup() 341 phy_data &= 0x0fff; in e1000g_rx_setup() 342 phy_data |= (1 << 14); in e1000g_rx_setup() 345 (void) e1000_write_phy_reg(hw, 22, phy_data); in e1000g_rx_setup()
|
H A D | e1000g_workarounds.c | 201 u16 phy_data = 0; in e1000_igp_ttl_workaround_82547() local 239 &phy_data); in e1000_igp_ttl_workaround_82547() 246 if (phy_data & NWAY_ER_PAR_DETECT_FAULT) { in e1000_igp_ttl_workaround_82547()
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_mac.c | 2882 uint16_t phy_data = 0; in nxge_nlp2020_i2c_read() local 2892 phy_data = ((address + 1) << NLP2020_XCVR_I2C_ADDR_SH) | reg; in nxge_nlp2020_i2c_read() 2894 phy_dev, phy_reg, phy_data) != NXGE_OK) in nxge_nlp2020_i2c_read() 2906 &phy_data); in nxge_nlp2020_i2c_read() 2907 *data = (phy_data >> 8); in nxge_nlp2020_i2c_read()
|