Lines Matching refs:link_usettings
459 struct ethtool_link_usettings link_usettings; in load_link_ksettings_from_user() local
461 if (copy_from_user(&link_usettings, from, sizeof(link_usettings))) in load_link_ksettings_from_user()
464 memcpy(&to->base, &link_usettings.base, sizeof(to->base)); in load_link_ksettings_from_user()
466 link_usettings.link_modes.supported, in load_link_ksettings_from_user()
469 link_usettings.link_modes.advertising, in load_link_ksettings_from_user()
472 link_usettings.link_modes.lp_advertising, in load_link_ksettings_from_user()
504 struct ethtool_link_usettings link_usettings; in store_link_ksettings_for_user() local
506 memcpy(&link_usettings, from, sizeof(link_usettings)); in store_link_ksettings_for_user()
507 bitmap_to_arr32(link_usettings.link_modes.supported, in store_link_ksettings_for_user()
510 bitmap_to_arr32(link_usettings.link_modes.advertising, in store_link_ksettings_for_user()
513 bitmap_to_arr32(link_usettings.link_modes.lp_advertising, in store_link_ksettings_for_user()
517 if (copy_to_user(to, &link_usettings, sizeof(link_usettings))) in store_link_ksettings_for_user()