src/dpdk/drivers/net/ixgbe/base/ixgbe_x550.c
s32 ixgbe_led_off_t_X550em(struct ixgbe_hw *hw, u32 led_idx)
{
	u16 phy_data;

	DEBUGFUNC("ixgbe_led_off_t_X550em");

	if (led_idx >= IXGBE_X557_MAX_LED_INDEX)
		return IXGBE_ERR_PARAM;

	/* To turn on the LED, set mode to ON. */
	ixgbe_read_phy_reg(hw, IXGBE_X557_LED_PROVISIONING + led_idx,
			   IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, &phy_data);
	phy_data &= ~IXGBE_X557_LED_MANUAL_SET_MASK;
	ixgbe_write_phy_reg(hw, IXGBE_X557_LED_PROVISIONING + led_idx,
			    IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, phy_data);

	/* Some designs have the LEDs wired to the MAC */
	return ixgbe_led_off_generic(hw, led_idx);
}
/**
 * ixgbe_led_off_t_X550em - Turns off the software controllable LEDs.
 * @hw: pointer to hardware structure
 * @led_idx: led number to turn off
 **/
Turns off the software controllable LEDs.
@hw: pointer to hardware structure
@led_idx: led number to turn off
Turns off the software controllable LEDs . @hw : pointer to hardware structure @led_idx : led number to turn off
s32 ixgbe_led_off_t_X550em(struct ixgbe_hw *hw, u32 led_idx)
{
	u16 phy_data;
	DEBUGFUNC("ixgbe_led_off_t_X550em");
	if (led_idx >= IXGBE_X557_MAX_LED_INDEX)
		return IXGBE_ERR_PARAM;
	ixgbe_read_phy_reg(hw, IXGBE_X557_LED_PROVISIONING + led_idx,
			   IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, &phy_data);
	phy_data &= ~IXGBE_X557_LED_MANUAL_SET_MASK;
	ixgbe_write_phy_reg(hw, IXGBE_X557_LED_PROVISIONING + led_idx,
			    IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE, phy_data);
	return ixgbe_led_off_generic(hw, led_idx);
}
s32 ixgbe_led_off_t_X550em ( struct ixgbe_hw * hw , u32 led_idx ) { u16 phy_data ; DEBUGFUNC ( " " ) ; if ( led_idx >= IXGBE_X557_MAX_LED_INDEX ) return IXGBE_ERR_PARAM ; ixgbe_read_phy_reg ( hw , IXGBE_X557_LED_PROVISIONING + led_idx , IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE , & phy_data ) ; phy_data &= ~ IXGBE_X557_LED_MANUAL_SET_MASK ; ixgbe_write_phy_reg ( hw , IXGBE_X557_LED_PROVISIONING + led_idx , IXGBE_MDIO_VENDOR_SPECIFIC_1_DEV_TYPE , phy_data ) ; return ixgbe_led_off_generic ( hw , led_idx ) ; }
ixgbe_led_off_t_X550em - Turns off the software controllable LEDs.
ixgbe_led_off_t_X550em - Turns off the software controllable LEDs .
/* To turn on the LED, set mode to ON. */ /* Some designs have the LEDs wired to the MAC */