src/dpdk/drivers/net/igc/base/igc_api.c
s32 igc_get_speed_and_duplex(struct igc_hw *hw, u16 *speed, u16 *duplex)
{
	if (hw->mac.ops.get_link_up_info)
		return hw->mac.ops.get_link_up_info(hw, speed, duplex);

	return -IGC_ERR_CONFIG;
}
/**
 *  igc_get_speed_and_duplex - Returns current speed and duplex
 *  @hw: pointer to the HW structure
 *  @speed: pointer to a 16-bit value to store the speed
 *  @duplex: pointer to a 16-bit value to store the duplex.
 *
 *  This returns the speed and duplex of the adapter in the two 'out'
 *  variables passed in. This is a function pointer entry point called
 *  by drivers.
 **/
Returns current speed and duplex
@hw: pointer to the HW structure
@speed: pointer to a 16-bit value to store the speed
@duplex: pointer to a 16-bit value to store the duplex.

This returns the speed and duplex of the adapter in the two 'out'
variables passed in. This is a function pointer entry point called
by drivers.
Returns current speed and duplex @hw : pointer to the HW structure @speed : pointer to a 16 - bit value to store the speed @duplex : pointer to a 16 - bit value to store the duplex . This returns the speed and duplex of the adapter in the two ' out ' variables passed in . This is a function pointer entry point called by drivers .
s32 igc_get_speed_and_duplex(struct igc_hw *hw, u16 *speed, u16 *duplex)
{
	if (hw->mac.ops.get_link_up_info)
		return hw->mac.ops.get_link_up_info(hw, speed, duplex);
	return -IGC_ERR_CONFIG;
}
s32 igc_get_speed_and_duplex ( struct igc_hw * hw , u16 * speed , u16 * duplex ) { if ( hw -> mac . ops . get_link_up_info ) return hw -> mac . ops . get_link_up_info ( hw , speed , duplex ) ; return - IGC_ERR_CONFIG ; }
igc_get_speed_and_duplex - Returns current speed and duplex
  @hw: pointer to the HW structure
  @speed: pointer to a 16-bit value to store the speed
  @duplex: pointer to a 16-bit value to store the duplex.
igc_get_speed_and_duplex - Returns current speed and duplex @hw : pointer to the HW structure @speed : pointer to a 16 - bit value to store the speed @duplex : pointer to a 16 - bit value to store the duplex .