src/dpdk/drivers/net/ixgbe/base/ixgbe_x540.c
s32 ixgbe_blink_led_stop_X540(struct ixgbe_hw *hw, u32 index)
{
	u32 macc_reg;
	u32 ledctl_reg;

	if (index > 3)
		return IXGBE_ERR_PARAM;

	DEBUGFUNC("ixgbe_blink_led_stop_X540");

	/* Restore the LED to its default value. */
	ledctl_reg = IXGBE_READ_REG(hw, IXGBE_LEDCTL);
	ledctl_reg &= ~IXGBE_LED_MODE_MASK(index);
	ledctl_reg |= IXGBE_LED_LINK_ACTIVE << IXGBE_LED_MODE_SHIFT(index);
	ledctl_reg &= ~IXGBE_LED_BLINK(index);
	IXGBE_WRITE_REG(hw, IXGBE_LEDCTL, ledctl_reg);

	/* Unforce link and speed in the MAC. */
	macc_reg = IXGBE_READ_REG(hw, IXGBE_MACC);
	macc_reg &= ~(IXGBE_MACC_FLU | IXGBE_MACC_FSV_10G | IXGBE_MACC_FS);
	IXGBE_WRITE_REG(hw, IXGBE_MACC, macc_reg);
	IXGBE_WRITE_FLUSH(hw);

	return IXGBE_SUCCESS;
}
/**
 * ixgbe_blink_led_stop_X540 - Stop blinking LED based on index.
 * @hw: pointer to hardware structure
 * @index: led number to stop blinking
 *
 * Devices that implement the version 2 interface:
 *  X540
 **/
Stop blinking LED based on index.
@hw: pointer to hardware structure
@index: led number to stop blinking

Devices that implement the version 2 interface:
X540
Stop blinking LED based on index . @hw : pointer to hardware structure @index : led number to stop blinking Devices that implement the version 2 interface : X540
s32 ixgbe_blink_led_stop_X540(struct ixgbe_hw *hw, u32 index)
{
	u32 macc_reg;
	u32 ledctl_reg;
	if (index > 3)
		return IXGBE_ERR_PARAM;
	DEBUGFUNC("ixgbe_blink_led_stop_X540");
	ledctl_reg = IXGBE_READ_REG(hw, IXGBE_LEDCTL);
	ledctl_reg &= ~IXGBE_LED_MODE_MASK(index);
	ledctl_reg |= IXGBE_LED_LINK_ACTIVE << IXGBE_LED_MODE_SHIFT(index);
	ledctl_reg &= ~IXGBE_LED_BLINK(index);
	IXGBE_WRITE_REG(hw, IXGBE_LEDCTL, ledctl_reg);
	macc_reg = IXGBE_READ_REG(hw, IXGBE_MACC);
	macc_reg &= ~(IXGBE_MACC_FLU | IXGBE_MACC_FSV_10G | IXGBE_MACC_FS);
	IXGBE_WRITE_REG(hw, IXGBE_MACC, macc_reg);
	IXGBE_WRITE_FLUSH(hw);
	return IXGBE_SUCCESS;
}
s32 ixgbe_blink_led_stop_X540 ( struct ixgbe_hw * hw , u32 index ) { u32 macc_reg ; u32 ledctl_reg ; if ( index > 3 ) return IXGBE_ERR_PARAM ; DEBUGFUNC ( " " ) ; ledctl_reg = IXGBE_READ_REG ( hw , IXGBE_LEDCTL ) ; ledctl_reg &= ~ IXGBE_LED_MODE_MASK ( index ) ; ledctl_reg |= IXGBE_LED_LINK_ACTIVE << IXGBE_LED_MODE_SHIFT ( index ) ; ledctl_reg &= ~ IXGBE_LED_BLINK ( index ) ; IXGBE_WRITE_REG ( hw , IXGBE_LEDCTL , ledctl_reg ) ; macc_reg = IXGBE_READ_REG ( hw , IXGBE_MACC ) ; macc_reg &= ~ ( IXGBE_MACC_FLU | IXGBE_MACC_FSV_10G | IXGBE_MACC_FS ) ; IXGBE_WRITE_REG ( hw , IXGBE_MACC , macc_reg ) ; IXGBE_WRITE_FLUSH ( hw ) ; return IXGBE_SUCCESS ; }
ixgbe_blink_led_stop_X540 - Stop blinking LED based on index.
ixgbe_blink_led_stop_X540 - Stop blinking LED based on index .
/* Restore the LED to its default value. */ /* Unforce link and speed in the MAC. */