Lines Matching refs:ifr
13884 static int tg3_hwtstamp_set(struct net_device *dev, struct ifreq *ifr)
13892 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf)))
13967 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ?
13971 static int tg3_hwtstamp_get(struct net_device *dev, struct ifreq *ifr)
14028 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ?
14032 static int tg3_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
14034 struct mii_ioctl_data *data = if_mii(ifr);
14043 return phy_mii_ioctl(phydev, ifr, cmd);
14085 return tg3_hwtstamp_set(dev, ifr);
14088 return tg3_hwtstamp_get(dev, ifr);