Lines Matching refs:ifr
13833 static int tg3_hwtstamp_set(struct net_device *dev, struct ifreq *ifr)
13841 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf)))
13913 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ?
13917 static int tg3_hwtstamp_get(struct net_device *dev, struct ifreq *ifr)
13974 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ?
13978 static int tg3_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
13980 struct mii_ioctl_data *data = if_mii(ifr);
13989 return phy_mii_ioctl(phydev, ifr, cmd);
14031 return tg3_hwtstamp_set(dev, ifr);
14034 return tg3_hwtstamp_get(dev, ifr);