Searched refs:swsm (Results 1 – 6 of 6) sorted by relevance
/titanic_50/usr/src/uts/common/io/ixgbe/core/ |
H A D | ixgbe_x540.c | 874 u32 swsm; in ixgbe_get_swfw_sync_semaphore() local 884 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM_BY_MAC(hw)); in ixgbe_get_swfw_sync_semaphore() 885 if (!(swsm & IXGBE_SWSM_SMBI)) { in ixgbe_get_swfw_sync_semaphore() 895 swsm = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC_BY_MAC(hw)); in ixgbe_get_swfw_sync_semaphore() 896 if (!(swsm & IXGBE_SWFW_REGSMP)) in ixgbe_get_swfw_sync_semaphore() 929 u32 swsm; in ixgbe_release_swfw_sync_semaphore() local 935 swsm = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC_BY_MAC(hw)); in ixgbe_release_swfw_sync_semaphore() 936 swsm &= ~IXGBE_SWFW_REGSMP; in ixgbe_release_swfw_sync_semaphore() 937 IXGBE_WRITE_REG(hw, IXGBE_SWFW_SYNC_BY_MAC(hw), swsm); in ixgbe_release_swfw_sync_semaphore() 939 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM_BY_MAC(hw)); in ixgbe_release_swfw_sync_semaphore() [all …]
|
H A D | ixgbe_common.c | 1778 u32 swsm; in ixgbe_get_eeprom_semaphore() local 1789 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM_BY_MAC(hw)); in ixgbe_get_eeprom_semaphore() 1790 if (!(swsm & IXGBE_SWSM_SMBI)) { in ixgbe_get_eeprom_semaphore() 1814 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM_BY_MAC(hw)); in ixgbe_get_eeprom_semaphore() 1815 if (!(swsm & IXGBE_SWSM_SMBI)) in ixgbe_get_eeprom_semaphore() 1822 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM_BY_MAC(hw)); in ixgbe_get_eeprom_semaphore() 1825 swsm |= IXGBE_SWSM_SWESMBI; in ixgbe_get_eeprom_semaphore() 1826 IXGBE_WRITE_REG(hw, IXGBE_SWSM_BY_MAC(hw), swsm); in ixgbe_get_eeprom_semaphore() 1832 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM_BY_MAC(hw)); in ixgbe_get_eeprom_semaphore() 1833 if (swsm & IXGBE_SWSM_SWESMBI) in ixgbe_get_eeprom_semaphore() [all …]
|
/titanic_50/usr/src/uts/common/io/e1000api/ |
H A D | e1000_i210.c | 164 u32 swsm; in e1000_get_hw_semaphore_i210() local 172 swsm = E1000_READ_REG(hw, E1000_SWSM); in e1000_get_hw_semaphore_i210() 173 if (!(swsm & E1000_SWSM_SMBI)) in e1000_get_hw_semaphore_i210() 188 swsm = E1000_READ_REG(hw, E1000_SWSM); in e1000_get_hw_semaphore_i210() 189 if (!(swsm & E1000_SWSM_SMBI)) in e1000_get_hw_semaphore_i210() 205 swsm = E1000_READ_REG(hw, E1000_SWSM); in e1000_get_hw_semaphore_i210() 206 E1000_WRITE_REG(hw, E1000_SWSM, swsm | E1000_SWSM_SWESMBI); in e1000_get_hw_semaphore_i210()
|
H A D | e1000_82571.c | 289 u32 swsm = 0; in e1000_init_mac_params_82571() local 425 swsm = E1000_READ_REG(hw, E1000_SWSM); in e1000_init_mac_params_82571() 426 if (swsm & E1000_SWSM_SMBI) { in e1000_init_mac_params_82571() 433 E1000_WRITE_REG(hw, E1000_SWSM, swsm & ~E1000_SWSM_SMBI); in e1000_init_mac_params_82571() 516 u32 swsm; in e1000_get_hw_semaphore_82571() local 535 swsm = E1000_READ_REG(hw, E1000_SWSM); in e1000_get_hw_semaphore_82571() 536 if (!(swsm & E1000_SWSM_SMBI)) in e1000_get_hw_semaphore_82571() 549 swsm = E1000_READ_REG(hw, E1000_SWSM); in e1000_get_hw_semaphore_82571() 550 E1000_WRITE_REG(hw, E1000_SWSM, swsm | E1000_SWSM_SWESMBI); in e1000_get_hw_semaphore_82571() 577 u32 swsm; in e1000_put_hw_semaphore_82571() local [all …]
|
H A D | e1000_mac.c | 1717 u32 swsm; in e1000_get_hw_semaphore_generic() local 1725 swsm = E1000_READ_REG(hw, E1000_SWSM); in e1000_get_hw_semaphore_generic() 1726 if (!(swsm & E1000_SWSM_SMBI)) in e1000_get_hw_semaphore_generic() 1740 swsm = E1000_READ_REG(hw, E1000_SWSM); in e1000_get_hw_semaphore_generic() 1741 E1000_WRITE_REG(hw, E1000_SWSM, swsm | E1000_SWSM_SWESMBI); in e1000_get_hw_semaphore_generic() 1768 u32 swsm; in e1000_put_hw_semaphore_generic() local 1772 swsm = E1000_READ_REG(hw, E1000_SWSM); in e1000_put_hw_semaphore_generic() 1774 swsm &= ~(E1000_SWSM_SMBI | E1000_SWSM_SWESMBI); in e1000_put_hw_semaphore_generic() 1776 E1000_WRITE_REG(hw, E1000_SWSM, swsm); in e1000_put_hw_semaphore_generic()
|
/titanic_50/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_main.c | 6659 uint32_t swsm; in e1000g_get_driver_control() local 6664 swsm = E1000_READ_REG(hw, E1000_SWSM); in e1000g_get_driver_control() 6665 E1000_WRITE_REG(hw, E1000_SWSM, swsm | E1000_SWSM_DRV_LOAD); in e1000g_get_driver_control() 6694 uint32_t swsm; in e1000g_release_driver_control() local 6699 swsm = E1000_READ_REG(hw, E1000_SWSM); in e1000g_release_driver_control() 6700 E1000_WRITE_REG(hw, E1000_SWSM, swsm & ~E1000_SWSM_DRV_LOAD); in e1000g_release_driver_control()
|