Searched refs:swsm (Results 1 – 9 of 9) sorted by relevance
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_x540.c | 667 u32 swsm; in ixgbe_get_swfw_sync_semaphore() local 674 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM(hw)); in ixgbe_get_swfw_sync_semaphore() 675 if (!(swsm & IXGBE_SWSM_SMBI)) in ixgbe_get_swfw_sync_semaphore() 688 swsm = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC(hw)); in ixgbe_get_swfw_sync_semaphore() 689 if (!(swsm & IXGBE_SWFW_REGSMP)) in ixgbe_get_swfw_sync_semaphore() 711 u32 swsm; in ixgbe_release_swfw_sync_semaphore() local 715 swsm = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC(hw)); in ixgbe_release_swfw_sync_semaphore() 716 swsm &= ~IXGBE_SWFW_REGSMP; in ixgbe_release_swfw_sync_semaphore() 717 IXGBE_WRITE_REG(hw, IXGBE_SWFW_SYNC(hw), swsm); in ixgbe_release_swfw_sync_semaphore() 719 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM(hw)); in ixgbe_release_swfw_sync_semaphore() [all …]
|
D | ixgbe_common.c | 1378 u32 swsm; in ixgbe_get_eeprom_semaphore() local 1386 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM(hw)); in ixgbe_get_eeprom_semaphore() 1387 if (!(swsm & IXGBE_SWSM_SMBI)) in ixgbe_get_eeprom_semaphore() 1406 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM(hw)); in ixgbe_get_eeprom_semaphore() 1407 if (swsm & IXGBE_SWSM_SMBI) { in ixgbe_get_eeprom_semaphore() 1415 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM(hw)); in ixgbe_get_eeprom_semaphore() 1418 swsm |= IXGBE_SWSM_SWESMBI; in ixgbe_get_eeprom_semaphore() 1419 IXGBE_WRITE_REG(hw, IXGBE_SWSM(hw), swsm); in ixgbe_get_eeprom_semaphore() 1424 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM(hw)); in ixgbe_get_eeprom_semaphore() 1425 if (swsm & IXGBE_SWSM_SWESMBI) in ixgbe_get_eeprom_semaphore() [all …]
|
/drivers/net/ethernet/intel/igc/ |
D | igc_i225.c | 44 u32 swsm; in igc_get_hw_semaphore_i225() local 48 swsm = rd32(IGC_SWSM); in igc_get_hw_semaphore_i225() 49 if (!(swsm & IGC_SWSM_SMBI)) in igc_get_hw_semaphore_i225() 64 swsm = rd32(IGC_SWSM); in igc_get_hw_semaphore_i225() 65 if (!(swsm & IGC_SWSM_SMBI)) in igc_get_hw_semaphore_i225() 81 swsm = rd32(IGC_SWSM); in igc_get_hw_semaphore_i225() 82 wr32(IGC_SWSM, swsm | IGC_SWSM_SWESMBI); in igc_get_hw_semaphore_i225()
|
D | igc_mac.c | 727 u32 swsm; in igc_put_hw_semaphore() local 729 swsm = rd32(IGC_SWSM); in igc_put_hw_semaphore() 731 swsm &= ~(IGC_SWSM_SMBI | IGC_SWSM_SWESMBI); in igc_put_hw_semaphore() 733 wr32(IGC_SWSM, swsm); in igc_put_hw_semaphore()
|
/drivers/net/ethernet/intel/e1000e/ |
D | 82571.c | 195 u32 swsm = 0; in e1000_init_mac_params_82571() local 296 swsm = er32(SWSM); in e1000_init_mac_params_82571() 297 if (swsm & E1000_SWSM_SMBI) { in e1000_init_mac_params_82571() 304 ew32(SWSM, swsm & ~E1000_SWSM_SMBI); in e1000_init_mac_params_82571() 436 u32 swsm; in e1000_get_hw_semaphore_82571() local 453 swsm = er32(SWSM); in e1000_get_hw_semaphore_82571() 454 if (!(swsm & E1000_SWSM_SMBI)) in e1000_get_hw_semaphore_82571() 467 swsm = er32(SWSM); in e1000_get_hw_semaphore_82571() 468 ew32(SWSM, swsm | E1000_SWSM_SWESMBI); in e1000_get_hw_semaphore_82571() 495 u32 swsm; in e1000_put_hw_semaphore_82571() local [all …]
|
D | mac.c | 1356 u32 swsm; in e1000e_get_hw_semaphore() local 1362 swsm = er32(SWSM); in e1000e_get_hw_semaphore() 1363 if (!(swsm & E1000_SWSM_SMBI)) in e1000e_get_hw_semaphore() 1377 swsm = er32(SWSM); in e1000e_get_hw_semaphore() 1378 ew32(SWSM, swsm | E1000_SWSM_SWESMBI); in e1000e_get_hw_semaphore() 1405 u32 swsm; in e1000e_put_hw_semaphore() local 1407 swsm = er32(SWSM); in e1000e_put_hw_semaphore() 1408 swsm &= ~(E1000_SWSM_SMBI | E1000_SWSM_SWESMBI); in e1000e_put_hw_semaphore() 1409 ew32(SWSM, swsm); in e1000e_put_hw_semaphore()
|
D | netdev.c | 2272 u32 swsm; in e1000e_get_hw_control() local 2276 swsm = er32(SWSM); in e1000e_get_hw_control() 2277 ew32(SWSM, swsm | E1000_SWSM_DRV_LOAD); in e1000e_get_hw_control() 2298 u32 swsm; in e1000e_release_hw_control() local 2302 swsm = er32(SWSM); in e1000e_release_hw_control() 2303 ew32(SWSM, swsm & ~E1000_SWSM_DRV_LOAD); in e1000e_release_hw_control()
|
/drivers/net/ethernet/intel/igb/ |
D | e1000_i210.c | 24 u32 swsm; in igb_get_hw_semaphore_i210() local 30 swsm = rd32(E1000_SWSM); in igb_get_hw_semaphore_i210() 31 if (!(swsm & E1000_SWSM_SMBI)) in igb_get_hw_semaphore_i210() 46 swsm = rd32(E1000_SWSM); in igb_get_hw_semaphore_i210() 47 if (!(swsm & E1000_SWSM_SMBI)) in igb_get_hw_semaphore_i210() 63 swsm = rd32(E1000_SWSM); in igb_get_hw_semaphore_i210() 64 wr32(E1000_SWSM, swsm | E1000_SWSM_SWESMBI); in igb_get_hw_semaphore_i210()
|
D | e1000_mac.c | 1235 u32 swsm; in igb_get_hw_semaphore() local 1242 swsm = rd32(E1000_SWSM); in igb_get_hw_semaphore() 1243 if (!(swsm & E1000_SWSM_SMBI)) in igb_get_hw_semaphore() 1258 swsm = rd32(E1000_SWSM); in igb_get_hw_semaphore() 1259 wr32(E1000_SWSM, swsm | E1000_SWSM_SWESMBI); in igb_get_hw_semaphore() 1288 u32 swsm; in igb_put_hw_semaphore() local 1290 swsm = rd32(E1000_SWSM); in igb_put_hw_semaphore() 1292 swsm &= ~(E1000_SWSM_SMBI | E1000_SWSM_SWESMBI); in igb_put_hw_semaphore() 1294 wr32(E1000_SWSM, swsm); in igb_put_hw_semaphore()
|