src/dpdk/drivers/net/txgbe/base/txgbe_hw.c
s32 txgbe_led_off(struct txgbe_hw *hw, u32 index)
{
	u32 led_reg = rd32(hw, TXGBE_LEDCTL);

	DEBUGFUNC("txgbe_led_off");

	if (index > 4)
		return TXGBE_ERR_PARAM;

	/* To turn off the LED, set mode to OFF. */
	led_reg &= ~(TXGBE_LEDCTL_SEL(index));
	led_reg &= ~(TXGBE_LEDCTL_ORD(index));
	wr32(hw, TXGBE_LEDCTL, led_reg);
	txgbe_flush(hw);

	return 0;
}
/**
 *  txgbe_led_off - Turns off the software controllable LEDs.
 *  @hw: pointer to hardware structure
 *  @index: led number to turn off
 **/
Turns off the software controllable LEDs.
@hw: pointer to hardware structure
@index: led number to turn off
Turns off the software controllable LEDs . @hw : pointer to hardware structure @index : led number to turn off
s32 txgbe_led_off(struct txgbe_hw *hw, u32 index)
{
	u32 led_reg = rd32(hw, TXGBE_LEDCTL);
	DEBUGFUNC("txgbe_led_off");
	if (index > 4)
		return TXGBE_ERR_PARAM;
	led_reg &= ~(TXGBE_LEDCTL_SEL(index));
	led_reg &= ~(TXGBE_LEDCTL_ORD(index));
	wr32(hw, TXGBE_LEDCTL, led_reg);
	txgbe_flush(hw);
	return 0;
}
s32 txgbe_led_off ( struct txgbe_hw * hw , u32 index ) { u32 led_reg = rd32 ( hw , TXGBE_LEDCTL ) ; DEBUGFUNC ( " " ) ; if ( index > 4 ) return TXGBE_ERR_PARAM ; led_reg &= ~ ( TXGBE_LEDCTL_SEL ( index ) ) ; led_reg &= ~ ( TXGBE_LEDCTL_ORD ( index ) ) ; wr32 ( hw , TXGBE_LEDCTL , led_reg ) ; txgbe_flush ( hw ) ; return 0 ; }
txgbe_led_off - Turns off the software controllable LEDs.
txgbe_led_off - Turns off the software controllable LEDs .
/* To turn off the LED, set mode to OFF. */