Lines Matching refs:ifr
1853 struct ifreq *ifr)
1858 if (ifr->ifr_settings.size != sizeof (sync)) {
1863 (&sync, ifr->ifr_settings.ifs_ifsu.sync, sizeof (sync))) {
1872 switch (ifr->ifr_settings.type) {
1928 struct ifreq *ifr)
1939 ifr->ifr_settings.type = IF_IFACE_E1;
1942 ifr->ifr_settings.type = IF_IFACE_T1;
1945 ifr->ifr_settings.type = IF_IFACE_V35;
1948 ifr->ifr_settings.type = IF_IFACE_V24;
1951 ifr->ifr_settings.type = IF_IFACE_X21D;
1955 ifr->ifr_settings.type = IF_IFACE_X21;
1958 if (ifr->ifr_settings.size == 0) {
1961 if (ifr->ifr_settings.size < sizeof (sync)) {
1973 if (copy_to_user(ifr->ifr_settings.ifs_ifsu.sync, &sync, sizeof (sync))) {
1977 ifr->ifr_settings.size = sizeof (sync);
1982 fst_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
1991 dbg(DBG_IOCTL, "ioctl: %x, %p\n", cmd, ifr->ifr_data);
2015 if (ifr->ifr_data == NULL) {
2018 if (copy_from_user(&wrthdr, ifr->ifr_data,
2033 buf = memdup_user(ifr->ifr_data + sizeof(struct fstioc_write),
2066 if (ifr->ifr_data == NULL) {
2072 if (copy_to_user(ifr->ifr_data, &info, sizeof (info))) {
2089 if (copy_from_user(&info, ifr->ifr_data, sizeof (info))) {
2096 switch (ifr->ifr_settings.type) {
2098 return fst_get_iface(card, port, ifr);
2107 return fst_set_iface(card, port, ifr);
2115 ifr->ifr_settings.type = IF_PROTO_RAW;
2118 return hdlc_ioctl(dev, ifr, cmd);
2123 ifr->ifr_settings.type);
2124 return hdlc_ioctl(dev, ifr, cmd);
2129 return hdlc_ioctl(dev, ifr, cmd);