Lines Matching refs:copy_to_user
107 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_features()
110 if (copy_to_user(useraddr, features, in ethtool_get_features()
254 if (copy_to_user(useraddr, &edata, sizeof(edata))) in ethtool_get_one_feature()
513 if (copy_to_user(to, &link_usettings, sizeof(link_usettings))) in store_link_ksettings_for_user()
549 if (copy_to_user(useraddr, &link_ksettings.base, in ethtool_get_link_ksettings()
670 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_settings()
812 if (copy_to_user(useraddr, &info, sizeof(info))) in ethtool_get_sset_info()
816 if (copy_to_user(useraddr, info_buf, array_size(idx, sizeof(u32)))) in ethtool_get_sset_info()
907 if (copy_to_user(useraddr, &crxnfc, min(size, sizeof(crxnfc)))) in ethtool_rxnfc_copy_to_compat()
956 ret = copy_to_user(useraddr, rxnfc, size); in ethtool_rxnfc_copy_to_user()
964 if (copy_to_user(useraddr, rule_buf, in ethtool_rxnfc_copy_to_user()
1080 if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh_indir, size), in ethtool_get_rxfh_indir()
1099 if (copy_to_user(useraddr + in ethtool_get_rxfh_indir()
1208 if (copy_to_user(useraddr, &rxfh, sizeof(rxfh))) in ethtool_get_rxfh()
1236 if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh, hfunc), in ethtool_get_rxfh()
1239 } else if (copy_to_user(useraddr + in ethtool_get_rxfh()
1346 if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh, rss_context), in ethtool_set_rxfh()
1393 if (copy_to_user(useraddr, ®s, sizeof(regs))) in ethtool_get_regs()
1396 if (copy_to_user(useraddr, regbuf, reglen)) in ethtool_get_regs()
1420 if (copy_to_user(useraddr, &reset, sizeof(reset))) in ethtool_reset()
1436 if (copy_to_user(useraddr, &wol, sizeof(wol))) in ethtool_get_wol()
1488 if (copy_to_user(useraddr, &edata, sizeof(edata))) in ethtool_get_eee()
1528 if (copy_to_user(useraddr, &edata, sizeof(edata))) in ethtool_get_link()
1570 if (copy_to_user(userbuf, data, eeprom.len)) { in ethtool_get_any_eeprom()
1581 if (copy_to_user(useraddr, &eeprom, sizeof(eeprom))) in ethtool_get_any_eeprom()
1663 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_coalesce()
1762 if (copy_to_user(useraddr, &ringparam, sizeof(ringparam))) in ethtool_get_ringparam()
1805 if (copy_to_user(useraddr, &channels, sizeof(channels))) in ethtool_get_channels()
1880 if (copy_to_user(useraddr, &pauseparam, sizeof(pauseparam))) in ethtool_get_pauseparam()
1930 if (copy_to_user(useraddr, &test, sizeof(test))) in ethtool_self_test()
1933 if (copy_to_user(useraddr, data, array_size(test.len, sizeof(u64)))) in ethtool_self_test()
1971 if (copy_to_user(useraddr, &gstrings, sizeof(gstrings))) in ethtool_get_strings()
1975 copy_to_user(useraddr, data, in ethtool_get_strings()
2085 if (copy_to_user(useraddr, &stats, sizeof(stats))) in ethtool_get_stats()
2088 if (n_stats && copy_to_user(useraddr, data, array_size(n_stats, sizeof(u64)))) in ethtool_get_stats()
2174 if (copy_to_user(useraddr, &stats, sizeof(stats))) { in ethtool_get_phy_stats()
2180 if (copy_to_user(useraddr, data, array_size(stats.n_stats, sizeof(u64)))) in ethtool_get_phy_stats()
2199 if (copy_to_user(useraddr, &epaddr, sizeof(epaddr))) in ethtool_get_perm_addr()
2202 if (copy_to_user(useraddr, dev->perm_addr, epaddr.size)) in ethtool_get_perm_addr()
2217 if (copy_to_user(useraddr, &edata, sizeof(edata))) in ethtool_get_value()
2293 if (copy_to_user(useraddr, &dump, sizeof(dump))) in ethtool_get_dump_flag()
2349 if (copy_to_user(useraddr, &dump, sizeof(dump))) { in ethtool_get_dump_data()
2354 if (copy_to_user(useraddr, data, len)) in ethtool_get_dump_data()
2370 if (copy_to_user(useraddr, &info, sizeof(info))) in ethtool_get_ts_info()
2407 if (copy_to_user(useraddr, &modinfo, sizeof(modinfo))) in ethtool_get_module_info()
2490 if (copy_to_user(useraddr, data, tuna.len)) in ethtool_get_tunable()
2546 if (copy_to_user(useraddr, &coalesce, sizeof(coalesce))) in ethtool_get_per_queue_coalesce()
2688 if (copy_to_user(useraddr, data, tuna.len)) in get_phy_tunable()
2744 if (copy_to_user(useraddr, &fecparam, sizeof(fecparam))) in ethtool_get_fecparam()
3110 if (copy_to_user(useraddr, &state->info, sizeof(state->info))) { in dev_ethtool()