Searched refs:gstrings (Results 1 – 1 of 1) sorted by relevance
564 struct ethtool_gstrings gstrings; in ethtool_get_strings() local572 if (copy_from_user(&gstrings, useraddr, sizeof(gstrings))) in ethtool_get_strings()575 switch (gstrings.string_set) { in ethtool_get_strings()579 gstrings.len = ops->self_test_count(dev); in ethtool_get_strings()584 gstrings.len = ops->get_stats_count(dev); in ethtool_get_strings()590 data = kmalloc(gstrings.len * ETH_GSTRING_LEN, GFP_USER); in ethtool_get_strings()594 ops->get_strings(dev, gstrings.string_set, data); in ethtool_get_strings()597 if (copy_to_user(useraddr, &gstrings, sizeof(gstrings))) in ethtool_get_strings()599 useraddr += sizeof(gstrings); in ethtool_get_strings()600 if (copy_to_user(useraddr, data, gstrings.len * ETH_GSTRING_LEN)) in ethtool_get_strings()