Home
last modified time | relevance | path

Searched refs:useraddr (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/net/ethtool/
Dioctl.c84 static int ethtool_get_features(struct net_device *dev, void __user *useraddr) in ethtool_get_features() argument
106 sizeaddr = useraddr + offsetof(struct ethtool_gfeatures, size); in ethtool_get_features()
113 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_features()
115 useraddr += sizeof(cmd); in ethtool_get_features()
116 if (copy_to_user(useraddr, features, in ethtool_get_features()
123 static int ethtool_set_features(struct net_device *dev, void __user *useraddr) in ethtool_set_features() argument
130 if (copy_from_user(&cmd, useraddr, sizeof(cmd))) in ethtool_set_features()
132 useraddr += sizeof(cmd); in ethtool_set_features()
137 if (copy_from_user(features, useraddr, sizeof(features))) in ethtool_set_features()
252 char __user *useraddr, u32 ethcmd) in ethtool_get_one_feature() argument
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_main.c2136 void __user *useraddr, in cxgb_siocdevprivate() argument
2146 if (copy_from_user(&cmd, useraddr, sizeof(cmd))) in cxgb_siocdevprivate()
2159 if (copy_from_user(&t, useraddr, sizeof(t))) in cxgb_siocdevprivate()
2259 if (copy_from_user(&t, useraddr, sizeof(t))) in cxgb_siocdevprivate()
2296 if (copy_to_user(useraddr, &t, sizeof(t))) in cxgb_siocdevprivate()
2308 if (copy_from_user(&edata, useraddr, sizeof(edata))) in cxgb_siocdevprivate()
2340 if (copy_to_user(useraddr, &edata, sizeof(edata))) in cxgb_siocdevprivate()
2350 if (copy_from_user(&t, useraddr, sizeof(t))) in cxgb_siocdevprivate()
2355 fw_data = memdup_user(useraddr + sizeof(t), t.len); in cxgb_siocdevprivate()
2375 if (copy_from_user(&m, useraddr, sizeof(m))) in cxgb_siocdevprivate()
[all …]