Searched refs:useraddr (Results 1 – 1 of 1) sorted by relevance
/net/core/ |
D | ethtool.c | 98 static int ethtool_get_features(struct net_device *dev, void __user *useraddr) in ethtool_get_features() argument 120 sizeaddr = useraddr + offsetof(struct ethtool_gfeatures, size); in ethtool_get_features() 127 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_features() 129 useraddr += sizeof(cmd); in ethtool_get_features() 130 if (copy_to_user(useraddr, features, copy_size * sizeof(*features))) in ethtool_get_features() 136 static int ethtool_set_features(struct net_device *dev, void __user *useraddr) in ethtool_set_features() argument 143 if (copy_from_user(&cmd, useraddr, sizeof(cmd))) in ethtool_set_features() 145 useraddr += sizeof(cmd); in ethtool_set_features() 150 if (copy_from_user(features, useraddr, sizeof(features))) in ethtool_set_features() 234 char __user *useraddr, u32 ethcmd) in ethtool_get_one_feature() argument [all …]
|