Home
last modified time | relevance | path

Searched refs:swsm (Results 1 – 8 of 8) sorted by relevance

/drivers/net/ethernet/intel/ixgbe/
Dixgbe_x540.c688 u32 swsm; in ixgbe_get_swfw_sync_semaphore() local
696 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM); in ixgbe_get_swfw_sync_semaphore()
697 if (!(swsm & IXGBE_SWSM_SMBI)) { in ixgbe_get_swfw_sync_semaphore()
707 swsm = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC); in ixgbe_get_swfw_sync_semaphore()
708 if (!(swsm & IXGBE_SWFW_REGSMP)) in ixgbe_get_swfw_sync_semaphore()
729 u32 swsm; in ixgbe_release_swfw_sync_semaphore() local
733 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM); in ixgbe_release_swfw_sync_semaphore()
734 swsm &= ~IXGBE_SWSM_SMBI; in ixgbe_release_swfw_sync_semaphore()
735 IXGBE_WRITE_REG(hw, IXGBE_SWSM, swsm); in ixgbe_release_swfw_sync_semaphore()
737 swsm = IXGBE_READ_REG(hw, IXGBE_SWFW_SYNC); in ixgbe_release_swfw_sync_semaphore()
[all …]
Dixgbe_common.c1361 u32 swsm; in ixgbe_get_eeprom_semaphore() local
1369 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM); in ixgbe_get_eeprom_semaphore()
1370 if (!(swsm & IXGBE_SWSM_SMBI)) { in ixgbe_get_eeprom_semaphore()
1394 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM); in ixgbe_get_eeprom_semaphore()
1395 if (!(swsm & IXGBE_SWSM_SMBI)) in ixgbe_get_eeprom_semaphore()
1402 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM); in ixgbe_get_eeprom_semaphore()
1405 swsm |= IXGBE_SWSM_SWESMBI; in ixgbe_get_eeprom_semaphore()
1406 IXGBE_WRITE_REG(hw, IXGBE_SWSM, swsm); in ixgbe_get_eeprom_semaphore()
1412 swsm = IXGBE_READ_REG(hw, IXGBE_SWSM); in ixgbe_get_eeprom_semaphore()
1413 if (swsm & IXGBE_SWSM_SWESMBI) in ixgbe_get_eeprom_semaphore()
[all …]
/drivers/net/ethernet/intel/igb/
De1000_i210.c46 u32 swsm; in igb_get_hw_semaphore_i210() local
52 swsm = rd32(E1000_SWSM); in igb_get_hw_semaphore_i210()
53 if (!(swsm & E1000_SWSM_SMBI)) in igb_get_hw_semaphore_i210()
68 swsm = rd32(E1000_SWSM); in igb_get_hw_semaphore_i210()
69 if (!(swsm & E1000_SWSM_SMBI)) in igb_get_hw_semaphore_i210()
85 swsm = rd32(E1000_SWSM); in igb_get_hw_semaphore_i210()
86 wr32(E1000_SWSM, swsm | E1000_SWSM_SWESMBI); in igb_get_hw_semaphore_i210()
De1000_mac.c1196 u32 swsm; in igb_get_hw_semaphore() local
1203 swsm = rd32(E1000_SWSM); in igb_get_hw_semaphore()
1204 if (!(swsm & E1000_SWSM_SMBI)) in igb_get_hw_semaphore()
1219 swsm = rd32(E1000_SWSM); in igb_get_hw_semaphore()
1220 wr32(E1000_SWSM, swsm | E1000_SWSM_SWESMBI); in igb_get_hw_semaphore()
1249 u32 swsm; in igb_put_hw_semaphore() local
1251 swsm = rd32(E1000_SWSM); in igb_put_hw_semaphore()
1253 swsm &= ~(E1000_SWSM_SMBI | E1000_SWSM_SWESMBI); in igb_put_hw_semaphore()
1255 wr32(E1000_SWSM, swsm); in igb_put_hw_semaphore()
/drivers/net/ethernet/intel/e1000e/
D82571.c221 u32 swsm = 0; in e1000_init_mac_params_82571() local
322 swsm = er32(SWSM); in e1000_init_mac_params_82571()
323 if (swsm & E1000_SWSM_SMBI) { in e1000_init_mac_params_82571()
330 ew32(SWSM, swsm & ~E1000_SWSM_SMBI); in e1000_init_mac_params_82571()
464 u32 swsm; in e1000_get_hw_semaphore_82571() local
481 swsm = er32(SWSM); in e1000_get_hw_semaphore_82571()
482 if (!(swsm & E1000_SWSM_SMBI)) in e1000_get_hw_semaphore_82571()
495 swsm = er32(SWSM); in e1000_get_hw_semaphore_82571()
496 ew32(SWSM, swsm | E1000_SWSM_SWESMBI); in e1000_get_hw_semaphore_82571()
523 u32 swsm; in e1000_put_hw_semaphore_82571() local
[all …]
Dmac.c1375 u32 swsm; in e1000e_get_hw_semaphore() local
1381 swsm = er32(SWSM); in e1000e_get_hw_semaphore()
1382 if (!(swsm & E1000_SWSM_SMBI)) in e1000e_get_hw_semaphore()
1396 swsm = er32(SWSM); in e1000e_get_hw_semaphore()
1397 ew32(SWSM, swsm | E1000_SWSM_SWESMBI); in e1000e_get_hw_semaphore()
1424 u32 swsm; in e1000e_put_hw_semaphore() local
1426 swsm = er32(SWSM); in e1000e_put_hw_semaphore()
1427 swsm &= ~(E1000_SWSM_SMBI | E1000_SWSM_SWESMBI); in e1000e_put_hw_semaphore()
1428 ew32(SWSM, swsm); in e1000e_put_hw_semaphore()
Dnetdev.c2240 u32 swsm; in e1000e_get_hw_control() local
2244 swsm = er32(SWSM); in e1000e_get_hw_control()
2245 ew32(SWSM, swsm | E1000_SWSM_DRV_LOAD); in e1000e_get_hw_control()
2266 u32 swsm; in e1000e_release_hw_control() local
2270 swsm = er32(SWSM); in e1000e_release_hw_control()
2271 ew32(SWSM, swsm & ~E1000_SWSM_DRV_LOAD); in e1000e_release_hw_control()
/drivers/staging/silicom/
Dbpctl_mod.c2092 u32 swsm; in bp75_put_hw_semaphore_generic() local
2094 swsm = BPCTL_READ_REG(pbpctl_dev, SWSM); in bp75_put_hw_semaphore_generic()
2096 swsm &= ~(BPCTLI_SWSM_SMBI | BPCTLI_SWSM_SWESMBI); in bp75_put_hw_semaphore_generic()
2098 BPCTL_WRITE_REG(pbpctl_dev, SWSM, swsm); in bp75_put_hw_semaphore_generic()
2103 u32 swsm; in bp75_get_hw_semaphore_generic() local
2110 swsm = BPCTL_READ_REG(pbpctl_dev, SWSM); in bp75_get_hw_semaphore_generic()
2111 if (!(swsm & BPCTLI_SWSM_SMBI)) in bp75_get_hw_semaphore_generic()
2127 swsm = BPCTL_READ_REG(pbpctl_dev, SWSM); in bp75_get_hw_semaphore_generic()
2128 BPCTL_WRITE_REG(pbpctl_dev, SWSM, swsm | BPCTLI_SWSM_SWESMBI); in bp75_get_hw_semaphore_generic()