Searched refs:copy_ks (Results 1 – 2 of 2) sorted by relevance
2247 struct ethtool_link_ksettings copy_ks = *ks; in ice_set_link_ksettings() local2287 autoneg = copy_ks.base.autoneg; in ice_set_link_ksettings()2295 if (!bitmap_subset(copy_ks.link_modes.advertising, in ice_set_link_ksettings()2306 safe_ks.base.cmd = copy_ks.base.cmd; in ice_set_link_ksettings()2308 copy_ks.base.link_mode_masks_nwords; in ice_set_link_ksettings()2312 copy_ks.base.autoneg = safe_ks.base.autoneg; in ice_set_link_ksettings()2314 copy_ks.base.speed = safe_ks.base.speed; in ice_set_link_ksettings()2319 if (memcmp(©_ks.base, &safe_ks.base, sizeof(copy_ks.base))) { in ice_set_link_ksettings()
1222 struct ethtool_link_ksettings copy_ks; in i40e_set_link_ksettings() local1261 memcpy(©_ks, ks, sizeof(struct ethtool_link_ksettings)); in i40e_set_link_ksettings()1264 autoneg = copy_ks.base.autoneg; in i40e_set_link_ksettings()1265 speed = copy_ks.base.speed; in i40e_set_link_ksettings()1269 safe_ks.base.cmd = copy_ks.base.cmd; in i40e_set_link_ksettings()1271 copy_ks.base.link_mode_masks_nwords; in i40e_set_link_ksettings()1277 if (!bitmap_subset(copy_ks.link_modes.advertising, in i40e_set_link_ksettings()1283 copy_ks.base.autoneg = safe_ks.base.autoneg; in i40e_set_link_ksettings()1284 copy_ks.base.speed = safe_ks.base.speed; in i40e_set_link_ksettings()1289 if (memcmp(©_ks.base, &safe_ks.base, in i40e_set_link_ksettings()