Lines Matching defs:ifr
60 struct ifreq ifr;
88 struct mii_ioctl_data *mii = if_mii(&drv->ifr);
93 if (ioctl(drv->fd, SIOCGMIIREG, &drv->ifr) < 0) {
105 struct mii_ioctl_data *mii = if_mii(&drv->ifr);
111 if (ioctl(drv->fd, SIOCSMIIREG, &drv->ifr) < 0) {
396 os_memset(&drv->ifr, 0, sizeof(drv->ifr));
397 os_strlcpy(drv->ifr.ifr_name, drv->ifname, IFNAMSIZ);
398 if (ioctl(drv->fd, SIOCGMIIPHY, &drv->ifr) < 0) {
405 if (if_mii(&drv->ifr)->phy_id != ROBO_PHY_ADDR &&
406 if_mii(&drv->ifr)->phy_id != 0) {