Searched refs:copy_ks (Results 1 – 2 of 2) sorted by relevance
2196 struct ethtool_link_ksettings copy_ks = *ks; in ice_set_link_ksettings() local2236 autoneg = copy_ks.base.autoneg; in ice_set_link_ksettings()2244 if (!bitmap_subset(copy_ks.link_modes.advertising, in ice_set_link_ksettings()2255 safe_ks.base.cmd = copy_ks.base.cmd; in ice_set_link_ksettings()2257 copy_ks.base.link_mode_masks_nwords; in ice_set_link_ksettings()2261 copy_ks.base.autoneg = safe_ks.base.autoneg; in ice_set_link_ksettings()2263 copy_ks.base.speed = safe_ks.base.speed; in ice_set_link_ksettings()2268 if (memcmp(©_ks.base, &safe_ks.base, sizeof(copy_ks.base))) { in ice_set_link_ksettings()
1223 struct ethtool_link_ksettings copy_ks; in i40e_set_link_ksettings() local1262 memcpy(©_ks, ks, sizeof(struct ethtool_link_ksettings)); in i40e_set_link_ksettings()1265 autoneg = copy_ks.base.autoneg; in i40e_set_link_ksettings()1266 speed = copy_ks.base.speed; in i40e_set_link_ksettings()1270 safe_ks.base.cmd = copy_ks.base.cmd; in i40e_set_link_ksettings()1272 copy_ks.base.link_mode_masks_nwords; in i40e_set_link_ksettings()1278 if (!bitmap_subset(copy_ks.link_modes.advertising, in i40e_set_link_ksettings()1284 copy_ks.base.autoneg = safe_ks.base.autoneg; in i40e_set_link_ksettings()1285 copy_ks.base.speed = safe_ks.base.speed; in i40e_set_link_ksettings()1290 if (memcmp(©_ks.base, &safe_ks.base, in i40e_set_link_ksettings()