src/dpdk/drivers/net/txgbe/base/txgbe_hw.c
s32 txgbe_reset_pipeline_raptor(struct txgbe_hw *hw)
{
	s32 err = 0;
	u64 autoc;

	autoc = hw->mac.autoc_read(hw);

	/* Enable link if disabled in NVM */
	if (autoc & TXGBE_AUTOC_LINK_DIA_MASK)
		autoc &= ~TXGBE_AUTOC_LINK_DIA_MASK;

	autoc |= TXGBE_AUTOC_AN_RESTART;
	/* Write AUTOC register with toggled LMS[2] bit and Restart_AN */
	hw->mac.autoc_write(hw, autoc ^ TXGBE_AUTOC_LMS_AN);

	/* Write AUTOC register with original LMS field and Restart_AN */
	hw->mac.autoc_write(hw, autoc);
	txgbe_flush(hw);

	return err;
}
/**
 * txgbe_reset_pipeline_raptor - perform pipeline reset
 *
 *  @hw: pointer to hardware structure
 *
 * Reset pipeline by asserting Restart_AN together with LMS change to ensure
 * full pipeline reset.  This function assumes the SW/FW lock is held.
 **/
perform pipeline reset
@hw: pointer to hardware structure

Reset pipeline by asserting Restart_AN together with LMS change to ensure
full pipeline reset.  This function assumes the SW/FW lock is held.
perform pipeline reset @hw : pointer to hardware structure Reset pipeline by asserting Restart_AN together with LMS change to ensure full pipeline reset . This function assumes the SW / FW lock is held .
s32 txgbe_reset_pipeline_raptor(struct txgbe_hw *hw)
{
	s32 err = 0;
	u64 autoc;
	autoc = hw->mac.autoc_read(hw);
	if (autoc & TXGBE_AUTOC_LINK_DIA_MASK)
		autoc &= ~TXGBE_AUTOC_LINK_DIA_MASK;
	autoc |= TXGBE_AUTOC_AN_RESTART;
	hw->mac.autoc_write(hw, autoc ^ TXGBE_AUTOC_LMS_AN);
	hw->mac.autoc_write(hw, autoc);
	txgbe_flush(hw);
	return err;
}
s32 txgbe_reset_pipeline_raptor ( struct txgbe_hw * hw ) { s32 err = 0 ; u64 autoc ; autoc = hw -> mac . autoc_read ( hw ) ; if ( autoc & TXGBE_AUTOC_LINK_DIA_MASK ) autoc &= ~ TXGBE_AUTOC_LINK_DIA_MASK ; autoc |= TXGBE_AUTOC_AN_RESTART ; hw -> mac . autoc_write ( hw , autoc ^ TXGBE_AUTOC_LMS_AN ) ; hw -> mac . autoc_write ( hw , autoc ) ; txgbe_flush ( hw ) ; return err ; }
txgbe_reset_pipeline_raptor - perform pipeline reset
  @hw: pointer to hardware structure
txgbe_reset_pipeline_raptor - perform pipeline reset @hw : pointer to hardware structure
/* Enable link if disabled in NVM */ /* Write AUTOC register with toggled LMS[2] bit and Restart_AN */ /* Write AUTOC register with original LMS field and Restart_AN */