Lines Matching refs:copy_to_user

111 	if (copy_to_user(useraddr, &cmd, sizeof(cmd)))  in ethtool_get_features()
114 if (copy_to_user(useraddr, features, in ethtool_get_features()
258 if (copy_to_user(useraddr, &edata, sizeof(edata))) in ethtool_get_one_feature()
517 if (copy_to_user(to, &link_usettings, sizeof(link_usettings))) in store_link_ksettings_for_user()
553 if (copy_to_user(useraddr, &link_ksettings.base, in ethtool_get_link_ksettings()
677 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_settings()
820 if (copy_to_user(useraddr, &info, sizeof(info))) in ethtool_get_sset_info()
824 if (copy_to_user(useraddr, info_buf, array_size(idx, sizeof(u32)))) in ethtool_get_sset_info()
915 if (copy_to_user(useraddr, &crxnfc, min(size, sizeof(crxnfc)))) in ethtool_rxnfc_copy_to_compat()
964 ret = copy_to_user(useraddr, rxnfc, size); in ethtool_rxnfc_copy_to_user()
972 if (copy_to_user(useraddr, rule_buf, in ethtool_rxnfc_copy_to_user()
1114 if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh_indir, size), in ethtool_get_rxfh_indir()
1132 if (copy_to_user(useraddr + in ethtool_get_rxfh_indir()
1245 if (copy_to_user(useraddr, &rxfh, sizeof(rxfh))) in ethtool_get_rxfh()
1290 if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh, hfunc), in ethtool_get_rxfh()
1293 } else if (copy_to_user(useraddr + in ethtool_get_rxfh()
1298 } else if (copy_to_user(useraddr + in ethtool_get_rxfh()
1303 } else if (copy_to_user(useraddr + in ethtool_get_rxfh()
1545 if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh, rss_context), in ethtool_set_rxfh()
1646 if (copy_to_user(useraddr, &regs, sizeof(regs))) in ethtool_get_regs()
1649 if (copy_to_user(useraddr, regbuf, reglen)) in ethtool_get_regs()
1676 if (copy_to_user(useraddr, &reset, sizeof(reset))) in ethtool_reset()
1692 if (copy_to_user(useraddr, &wol, sizeof(wol))) in ethtool_get_wol()
1779 if (copy_to_user(useraddr, &eee, sizeof(eee))) in ethtool_get_eee()
1821 if (copy_to_user(useraddr, &edata, sizeof(edata))) in ethtool_get_link()
1863 if (copy_to_user(userbuf, data, eeprom.len)) { in ethtool_get_any_eeprom()
1874 if (copy_to_user(useraddr, &eeprom, sizeof(eeprom))) in ethtool_get_any_eeprom()
1956 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_coalesce()
2055 if (copy_to_user(useraddr, &ringparam, sizeof(ringparam))) in ethtool_get_ringparam()
2098 if (copy_to_user(useraddr, &channels, sizeof(channels))) in ethtool_get_channels()
2164 if (copy_to_user(useraddr, &pauseparam, sizeof(pauseparam))) in ethtool_get_pauseparam()
2214 if (copy_to_user(useraddr, &test, sizeof(test))) in ethtool_self_test()
2217 if (copy_to_user(useraddr, data, array_size(test.len, sizeof(u64)))) in ethtool_self_test()
2255 if (copy_to_user(useraddr, &gstrings, sizeof(gstrings))) in ethtool_get_strings()
2259 copy_to_user(useraddr, data, in ethtool_get_strings()
2376 if (copy_to_user(useraddr, &stats, sizeof(stats))) in ethtool_get_stats()
2379 if (n_stats && copy_to_user(useraddr, data, array_size(n_stats, sizeof(u64)))) in ethtool_get_stats()
2465 if (copy_to_user(useraddr, &stats, sizeof(stats))) { in ethtool_get_phy_stats()
2471 if (copy_to_user(useraddr, data, array_size(stats.n_stats, sizeof(u64)))) in ethtool_get_phy_stats()
2490 if (copy_to_user(useraddr, &epaddr, sizeof(epaddr))) in ethtool_get_perm_addr()
2493 if (copy_to_user(useraddr, dev->perm_addr, epaddr.size)) in ethtool_get_perm_addr()
2508 if (copy_to_user(useraddr, &edata, sizeof(edata))) in ethtool_get_value()
2584 if (copy_to_user(useraddr, &dump, sizeof(dump))) in ethtool_get_dump_flag()
2640 if (copy_to_user(useraddr, &dump, sizeof(dump))) { in ethtool_get_dump_data()
2645 if (copy_to_user(useraddr, data, len)) in ethtool_get_dump_data()
2668 if (copy_to_user(useraddr, &info, sizeof(info))) in ethtool_get_ts_info()
2708 if (copy_to_user(useraddr, &modinfo, sizeof(modinfo))) in ethtool_get_module_info()
2794 if (copy_to_user(useraddr, data, tuna.len)) in ethtool_get_tunable()
2850 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_per_queue_coalesce()
2992 if (copy_to_user(useraddr, data, tuna.len)) in get_phy_tunable()
3048 if (copy_to_user(useraddr, &fecparam, sizeof(fecparam))) in ethtool_get_fecparam()
3414 if (copy_to_user(useraddr, &state->info, sizeof(state->info))) { in dev_ethtool()