Searched refs:swsm (Results 1 – 9 of 9) sorted by relevance
/Linux-v6.6/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 | 1391 u32 swsm; in ixgbe_get_eeprom_semaphore() local 1399 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM(hw)); in ixgbe_get_eeprom_semaphore() 1400 if (!(swsm & IXGBE_SWSM_SMBI)) in ixgbe_get_eeprom_semaphore() 1419 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM(hw)); in ixgbe_get_eeprom_semaphore() 1420 if (swsm & IXGBE_SWSM_SMBI) { in ixgbe_get_eeprom_semaphore() 1428 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM(hw)); in ixgbe_get_eeprom_semaphore() 1431 swsm |= IXGBE_SWSM_SWESMBI; in ixgbe_get_eeprom_semaphore() 1432 IXGBE_WRITE_REG(hw, IXGBE_SWSM(hw), swsm); in ixgbe_get_eeprom_semaphore() 1437 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM(hw)); in ixgbe_get_eeprom_semaphore() 1438 if (swsm & IXGBE_SWSM_SWESMBI) in ixgbe_get_eeprom_semaphore() [all …]
|
/Linux-v6.6/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()
|
/Linux-v6.6/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 | 2266 u32 swsm; in e1000e_get_hw_control() local 2270 swsm = er32(SWSM); in e1000e_get_hw_control() 2271 ew32(SWSM, swsm | E1000_SWSM_DRV_LOAD); in e1000e_get_hw_control() 2292 u32 swsm; in e1000e_release_hw_control() local 2296 swsm = er32(SWSM); in e1000e_release_hw_control() 2297 ew32(SWSM, swsm & ~E1000_SWSM_DRV_LOAD); in e1000e_release_hw_control()
|
/Linux-v6.6/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 | 1266 u32 swsm; in igb_get_hw_semaphore() local 1273 swsm = rd32(E1000_SWSM); in igb_get_hw_semaphore() 1274 if (!(swsm & E1000_SWSM_SMBI)) in igb_get_hw_semaphore() 1289 swsm = rd32(E1000_SWSM); in igb_get_hw_semaphore() 1290 wr32(E1000_SWSM, swsm | E1000_SWSM_SWESMBI); in igb_get_hw_semaphore() 1319 u32 swsm; in igb_put_hw_semaphore() local 1321 swsm = rd32(E1000_SWSM); in igb_put_hw_semaphore() 1323 swsm &= ~(E1000_SWSM_SMBI | E1000_SWSM_SWESMBI); in igb_put_hw_semaphore() 1325 wr32(E1000_SWSM, swsm); in igb_put_hw_semaphore()
|