src/dpdk/drivers/net/ixgbe/base/ixgbe_x540.c
void ixgbe_init_swfw_sync_X540(struct ixgbe_hw *hw)
{
	u32 rmask;

	/* First try to grab the semaphore but we don't need to bother
	 * looking to see whether we got the lock or not since we do
	 * the same thing regardless of whether we got the lock or not.
	 * We got the lock - we release it.
	 * We timeout trying to get the lock - we force its release.
	 */
	ixgbe_get_swfw_sync_semaphore(hw);
	ixgbe_release_swfw_sync_semaphore(hw);

	/* Acquire and release all software resources. */
	rmask = IXGBE_GSSR_EEP_SM | IXGBE_GSSR_PHY0_SM |
		IXGBE_GSSR_PHY1_SM | IXGBE_GSSR_MAC_CSR_SM |
		IXGBE_GSSR_SW_MNG_SM;

	rmask |= IXGBE_GSSR_I2C_MASK;
	ixgbe_acquire_swfw_sync_X540(hw, rmask);
	ixgbe_release_swfw_sync_X540(hw, rmask);
}
/**
 * ixgbe_init_swfw_sync_X540 - Release hardware semaphore
 * @hw: pointer to hardware structure
 *
 * This function reset hardware semaphore bits for a semaphore that may
 * have be left locked due to a catastrophic failure.
 **/
Release hardware semaphore
@hw: pointer to hardware structure

This function reset hardware semaphore bits for a semaphore that may
have be left locked due to a catastrophic failure.
Release hardware semaphore @hw : pointer to hardware structure This function reset hardware semaphore bits for a semaphore that may have be left locked due to a catastrophic failure .
void ixgbe_init_swfw_sync_X540(struct ixgbe_hw *hw)
{
	u32 rmask;
	ixgbe_get_swfw_sync_semaphore(hw);
	ixgbe_release_swfw_sync_semaphore(hw);
	rmask = IXGBE_GSSR_EEP_SM | IXGBE_GSSR_PHY0_SM |
		IXGBE_GSSR_PHY1_SM | IXGBE_GSSR_MAC_CSR_SM |
		IXGBE_GSSR_SW_MNG_SM;
	rmask |= IXGBE_GSSR_I2C_MASK;
	ixgbe_acquire_swfw_sync_X540(hw, rmask);
	ixgbe_release_swfw_sync_X540(hw, rmask);
}
void ixgbe_init_swfw_sync_X540 ( struct ixgbe_hw * hw ) { u32 rmask ; ixgbe_get_swfw_sync_semaphore ( hw ) ; ixgbe_release_swfw_sync_semaphore ( hw ) ; rmask = IXGBE_GSSR_EEP_SM | IXGBE_GSSR_PHY0_SM | IXGBE_GSSR_PHY1_SM | IXGBE_GSSR_MAC_CSR_SM | IXGBE_GSSR_SW_MNG_SM ; rmask |= IXGBE_GSSR_I2C_MASK ; ixgbe_acquire_swfw_sync_X540 ( hw , rmask ) ; ixgbe_release_swfw_sync_X540 ( hw , rmask ) ; }
ixgbe_init_swfw_sync_X540 - Release hardware semaphore
 @hw: pointer to hardware structure
ixgbe_init_swfw_sync_X540 - Release hardware semaphore @hw : pointer to hardware structure
/* First try to grab the semaphore but we don't need to bother
	 * looking to see whether we got the lock or not since we do
	 * the same thing regardless of whether we got the lock or not.
	 * We got the lock - we release it.
	 * We timeout trying to get the lock - we force its release.
	 */ /* Acquire and release all software resources. */