Lines Matching refs:ifs
149 static int fr_ioctl(struct net_device *dev, struct if_settings *ifs);
360 static int pvc_ioctl(struct net_device *dev, struct if_settings *ifs) in pvc_ioctl() argument
365 if (ifs->type == IF_GET_PROTO) { in pvc_ioctl()
367 ifs->type = IF_PROTO_FR_ETH_PVC; in pvc_ioctl()
369 ifs->type = IF_PROTO_FR_PVC; in pvc_ioctl()
371 if (ifs->size < sizeof(info)) { in pvc_ioctl()
373 ifs->size = sizeof(info); in pvc_ioctl()
379 if (copy_to_user(ifs->ifs_ifsu.fr_pvc_info, in pvc_ioctl()
1184 static int fr_ioctl(struct net_device *dev, struct if_settings *ifs) in fr_ioctl() argument
1186 fr_proto __user *fr_s = ifs->ifs_ifsu.fr; in fr_ioctl()
1193 switch (ifs->type) { in fr_ioctl()
1197 ifs->type = IF_PROTO_FR; in fr_ioctl()
1198 if (ifs->size < size) { in fr_ioctl()
1199 ifs->size = size; /* data size wanted */ in fr_ioctl()
1261 if (copy_from_user(&pvc, ifs->ifs_ifsu.fr_pvc, in fr_ioctl()
1268 if (ifs->type == IF_PROTO_FR_ADD_ETH_PVC || in fr_ioctl()
1269 ifs->type == IF_PROTO_FR_DEL_ETH_PVC) in fr_ioctl()
1274 if (ifs->type == IF_PROTO_FR_ADD_PVC || in fr_ioctl()
1275 ifs->type == IF_PROTO_FR_ADD_ETH_PVC) in fr_ioctl()