Lines Matching refs:ifr

1886 	      struct ifreq *ifr)  in fst_set_iface()  argument
1891 if (ifr->ifr_settings.size != sizeof (sync)) { in fst_set_iface()
1896 (&sync, ifr->ifr_settings.ifs_ifsu.sync, sizeof (sync))) { in fst_set_iface()
1905 switch (ifr->ifr_settings.type) { in fst_set_iface()
1961 struct ifreq *ifr) in fst_get_iface() argument
1972 ifr->ifr_settings.type = IF_IFACE_E1; in fst_get_iface()
1975 ifr->ifr_settings.type = IF_IFACE_T1; in fst_get_iface()
1978 ifr->ifr_settings.type = IF_IFACE_V35; in fst_get_iface()
1981 ifr->ifr_settings.type = IF_IFACE_V24; in fst_get_iface()
1984 ifr->ifr_settings.type = IF_IFACE_X21D; in fst_get_iface()
1988 ifr->ifr_settings.type = IF_IFACE_X21; in fst_get_iface()
1991 if (ifr->ifr_settings.size == 0) { in fst_get_iface()
1994 if (ifr->ifr_settings.size < sizeof (sync)) { in fst_get_iface()
2005 if (copy_to_user(ifr->ifr_settings.ifs_ifsu.sync, &sync, sizeof (sync))) { in fst_get_iface()
2009 ifr->ifr_settings.size = sizeof (sync); in fst_get_iface()
2014 fst_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in fst_ioctl() argument
2022 dbg(DBG_IOCTL, "ioctl: %x, %p\n", cmd, ifr->ifr_data); in fst_ioctl()
2046 if (ifr->ifr_data == NULL) { in fst_ioctl()
2049 if (copy_from_user(&wrthdr, ifr->ifr_data, in fst_ioctl()
2067 ifr->ifr_data + sizeof (struct fstioc_write), in fst_ioctl()
2097 if (ifr->ifr_data == NULL) { in fst_ioctl()
2103 if (copy_to_user(ifr->ifr_data, &info, sizeof (info))) { in fst_ioctl()
2121 if (copy_from_user(&info, ifr->ifr_data, sizeof (info))) { in fst_ioctl()
2128 switch (ifr->ifr_settings.type) { in fst_ioctl()
2130 return fst_get_iface(card, port, ifr); in fst_ioctl()
2139 return fst_set_iface(card, port, ifr); in fst_ioctl()
2147 ifr->ifr_settings.type = IF_PROTO_RAW; in fst_ioctl()
2150 return hdlc_ioctl(dev, ifr, cmd); in fst_ioctl()
2155 ifr->ifr_settings.type); in fst_ioctl()
2156 return hdlc_ioctl(dev, ifr, cmd); in fst_ioctl()
2161 return hdlc_ioctl(dev, ifr, cmd); in fst_ioctl()