Lines Matching refs:ifr
1849 struct ifreq *ifr)
1854 if (ifr->ifr_settings.size != sizeof (sync)) {
1859 (&sync, ifr->ifr_settings.ifs_ifsu.sync, sizeof (sync))) {
1868 switch (ifr->ifr_settings.type) {
1924 struct ifreq *ifr)
1935 ifr->ifr_settings.type = IF_IFACE_E1;
1938 ifr->ifr_settings.type = IF_IFACE_T1;
1941 ifr->ifr_settings.type = IF_IFACE_V35;
1944 ifr->ifr_settings.type = IF_IFACE_V24;
1947 ifr->ifr_settings.type = IF_IFACE_X21D;
1951 ifr->ifr_settings.type = IF_IFACE_X21;
1954 if (ifr->ifr_settings.size == 0) {
1957 if (ifr->ifr_settings.size < sizeof (sync)) {
1969 if (copy_to_user(ifr->ifr_settings.ifs_ifsu.sync, &sync, sizeof (sync))) {
1973 ifr->ifr_settings.size = sizeof (sync);
1978 fst_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
1987 dbg(DBG_IOCTL, "ioctl: %x, %p\n", cmd, ifr->ifr_data);
2011 if (ifr->ifr_data == NULL) {
2014 if (copy_from_user(&wrthdr, ifr->ifr_data,
2029 buf = memdup_user(ifr->ifr_data + sizeof(struct fstioc_write),
2062 if (ifr->ifr_data == NULL) {
2068 if (copy_to_user(ifr->ifr_data, &info, sizeof (info))) {
2085 if (copy_from_user(&info, ifr->ifr_data, sizeof (info))) {
2092 switch (ifr->ifr_settings.type) {
2094 return fst_get_iface(card, port, ifr);
2103 return fst_set_iface(card, port, ifr);
2111 ifr->ifr_settings.type = IF_PROTO_RAW;
2114 return hdlc_ioctl(dev, ifr, cmd);
2119 ifr->ifr_settings.type);
2120 return hdlc_ioctl(dev, ifr, cmd);
2125 return hdlc_ioctl(dev, ifr, cmd);