Searched refs:copy_ks (Results 1 – 2 of 2) sorted by relevance
2624 struct ethtool_link_ksettings copy_ks = *ks; in ice_set_link_ksettings() local2664 autoneg = copy_ks.base.autoneg; in ice_set_link_ksettings()2672 if (!bitmap_subset(copy_ks.link_modes.advertising, in ice_set_link_ksettings()2683 safe_ks.base.cmd = copy_ks.base.cmd; in ice_set_link_ksettings()2685 copy_ks.base.link_mode_masks_nwords; in ice_set_link_ksettings()2689 copy_ks.base.autoneg = safe_ks.base.autoneg; in ice_set_link_ksettings()2691 copy_ks.base.speed = safe_ks.base.speed; in ice_set_link_ksettings()2696 if (memcmp(©_ks.base, &safe_ks.base, sizeof(copy_ks.base))) { in ice_set_link_ksettings()
1224 struct ethtool_link_ksettings copy_ks; in i40e_set_link_ksettings() local1263 memcpy(©_ks, ks, sizeof(struct ethtool_link_ksettings)); in i40e_set_link_ksettings()1266 autoneg = copy_ks.base.autoneg; in i40e_set_link_ksettings()1267 speed = copy_ks.base.speed; in i40e_set_link_ksettings()1271 safe_ks.base.cmd = copy_ks.base.cmd; in i40e_set_link_ksettings()1273 copy_ks.base.link_mode_masks_nwords; in i40e_set_link_ksettings()1279 if (!bitmap_subset(copy_ks.link_modes.advertising, in i40e_set_link_ksettings()1285 copy_ks.base.autoneg = safe_ks.base.autoneg; in i40e_set_link_ksettings()1286 copy_ks.base.speed = safe_ks.base.speed; in i40e_set_link_ksettings()1291 if (memcmp(©_ks.base, &safe_ks.base, in i40e_set_link_ksettings()