src/dpdk/drivers/net/ice/base/ice_common.c
void
ice_copy_phy_caps_to_cfg(struct ice_port_info *pi,
			 struct ice_aqc_get_phy_caps_data *caps,
			 struct ice_aqc_set_phy_cfg_data *cfg)
{
	if (!pi || !caps || !cfg)
		return;

	ice_memset(cfg, 0, sizeof(*cfg), ICE_NONDMA_MEM);
	cfg->phy_type_low = caps->phy_type_low;
	cfg->phy_type_high = caps->phy_type_high;
	cfg->caps = caps->caps;
	cfg->low_power_ctrl_an = caps->low_power_ctrl_an;
	cfg->eee_cap = caps->eee_cap;
	cfg->eeer_value = caps->eeer_value;
	cfg->link_fec_opt = caps->link_fec_options;
	cfg->module_compliance_enforcement =
		caps->module_compliance_enforcement;
}
/**
 * ice_copy_phy_caps_to_cfg - Copy PHY ability data to configuration data
 * @pi: port information structure
 * @caps: PHY ability structure to copy date from
 * @cfg: PHY configuration structure to copy data to
 *
 * Helper function to copy AQC PHY get ability data to PHY set configuration
 * data structure
 */
Copy PHY ability data to configuration data
@pi: port information structure
@caps: PHY ability structure to copy date from
@cfg: PHY configuration structure to copy data to

Helper function to copy AQC PHY get ability data to PHY set configuration
data structure
Copy PHY ability data to configuration data @pi : port information structure @caps : PHY ability structure to copy date from @cfg : PHY configuration structure to copy data to Helper function to copy AQC PHY get ability data to PHY set configuration data structure
void
ice_copy_phy_caps_to_cfg(struct ice_port_info *pi,
			 struct ice_aqc_get_phy_caps_data *caps,
			 struct ice_aqc_set_phy_cfg_data *cfg)
{
	if (!pi || !caps || !cfg)
		return;
	ice_memset(cfg, 0, sizeof(*cfg), ICE_NONDMA_MEM);
	cfg->phy_type_low = caps->phy_type_low;
	cfg->phy_type_high = caps->phy_type_high;
	cfg->caps = caps->caps;
	cfg->low_power_ctrl_an = caps->low_power_ctrl_an;
	cfg->eee_cap = caps->eee_cap;
	cfg->eeer_value = caps->eeer_value;
	cfg->link_fec_opt = caps->link_fec_options;
	cfg->module_compliance_enforcement =
		caps->module_compliance_enforcement;
}
void ice_copy_phy_caps_to_cfg ( struct ice_port_info * pi , struct ice_aqc_get_phy_caps_data * caps , struct ice_aqc_set_phy_cfg_data * cfg ) { if ( ! pi || ! caps || ! cfg ) return ; ice_memset ( cfg , 0 , sizeof ( * cfg ) , ICE_NONDMA_MEM ) ; cfg -> phy_type_low = caps -> phy_type_low ; cfg -> phy_type_high = caps -> phy_type_high ; cfg -> caps = caps -> caps ; cfg -> low_power_ctrl_an = caps -> low_power_ctrl_an ; cfg -> eee_cap = caps -> eee_cap ; cfg -> eeer_value = caps -> eeer_value ; cfg -> link_fec_opt = caps -> link_fec_options ; cfg -> module_compliance_enforcement = caps -> module_compliance_enforcement ; }
ice_copy_phy_caps_to_cfg - Copy PHY ability data to configuration data
 @pi: port information structure
 @caps: PHY ability structure to copy date from
 @cfg: PHY configuration structure to copy data to
ice_copy_phy_caps_to_cfg - Copy PHY ability data to configuration data @pi : port information structure @caps : PHY ability structure to copy date from @cfg : PHY configuration structure to copy data to