Lines Matching refs:ifr
315 int pvc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in pvc_ioctl() argument
320 if (ifr->ifr_settings.type == IF_GET_PROTO) { in pvc_ioctl()
322 ifr->ifr_settings.type = IF_PROTO_FR_ETH_PVC; in pvc_ioctl()
324 ifr->ifr_settings.type = IF_PROTO_FR_PVC; in pvc_ioctl()
326 if (ifr->ifr_settings.size < sizeof(info)) { in pvc_ioctl()
328 ifr->ifr_settings.size = sizeof(info); in pvc_ioctl()
334 if (copy_to_user(ifr->ifr_settings.ifs_ifsu.fr_pvc_info, in pvc_ioctl()
1045 int hdlc_fr_ioctl(hdlc_device *hdlc, struct ifreq *ifr) in hdlc_fr_ioctl() argument
1047 fr_proto *fr_s = ifr->ifr_settings.ifs_ifsu.fr; in hdlc_fr_ioctl()
1054 switch (ifr->ifr_settings.type) { in hdlc_fr_ioctl()
1056 ifr->ifr_settings.type = IF_PROTO_FR; in hdlc_fr_ioctl()
1057 if (ifr->ifr_settings.size < size) { in hdlc_fr_ioctl()
1058 ifr->ifr_settings.size = size; /* data size wanted */ in hdlc_fr_ioctl()
1122 if (copy_from_user(&pvc, ifr->ifr_settings.ifs_ifsu.fr_pvc, in hdlc_fr_ioctl()
1129 if (ifr->ifr_settings.type == IF_PROTO_FR_ADD_ETH_PVC || in hdlc_fr_ioctl()
1130 ifr->ifr_settings.type == IF_PROTO_FR_DEL_ETH_PVC) in hdlc_fr_ioctl()
1135 if (ifr->ifr_settings.type == IF_PROTO_FR_ADD_PVC || in hdlc_fr_ioctl()
1136 ifr->ifr_settings.type == IF_PROTO_FR_ADD_ETH_PVC) in hdlc_fr_ioctl()