src/dpdk/drivers/net/igc/base/igc_mac.c
void igc_put_hw_semaphore_generic(struct igc_hw *hw)
{
	u32 swsm;

	DEBUGFUNC("igc_put_hw_semaphore_generic");

	swsm = IGC_READ_REG(hw, IGC_SWSM);

	swsm &= ~(IGC_SWSM_SMBI | IGC_SWSM_SWESMBI);

	IGC_WRITE_REG(hw, IGC_SWSM, swsm);
}
/**
 *  igc_put_hw_semaphore_generic - Release hardware semaphore
 *  @hw: pointer to the HW structure
 *
 *  Release hardware semaphore used to access the PHY or NVM
 **/
Release hardware semaphore
@hw: pointer to the HW structure

Release hardware semaphore used to access the PHY or NVM
Release hardware semaphore @hw : pointer to the HW structure Release hardware semaphore used to access the PHY or NVM
void igc_put_hw_semaphore_generic(struct igc_hw *hw)
{
	u32 swsm;
	DEBUGFUNC("igc_put_hw_semaphore_generic");
	swsm = IGC_READ_REG(hw, IGC_SWSM);
	swsm &= ~(IGC_SWSM_SMBI | IGC_SWSM_SWESMBI);
	IGC_WRITE_REG(hw, IGC_SWSM, swsm);
}
void igc_put_hw_semaphore_generic ( struct igc_hw * hw ) { u32 swsm ; DEBUGFUNC ( " " ) ; swsm = IGC_READ_REG ( hw , IGC_SWSM ) ; swsm &= ~ ( IGC_SWSM_SMBI | IGC_SWSM_SWESMBI ) ; IGC_WRITE_REG ( hw , IGC_SWSM , swsm ) ; }
igc_put_hw_semaphore_generic - Release hardware semaphore
  @hw: pointer to the HW structure
igc_put_hw_semaphore_generic - Release hardware semaphore @hw : pointer to the HW structure