Home
last modified time | relevance | path

Searched refs:ifs (Results 1 – 25 of 33) sorted by relevance

12

/drivers/net/wan/
Dhdlc_raw.c22 static int raw_ioctl(struct net_device *dev, struct if_settings *ifs);
36 static int raw_ioctl(struct net_device *dev, struct if_settings *ifs) in raw_ioctl() argument
38 raw_hdlc_proto __user *raw_s = ifs->ifs_ifsu.raw_hdlc; in raw_ioctl()
44 switch (ifs->type) { in raw_ioctl()
48 ifs->type = IF_PROTO_HDLC; in raw_ioctl()
49 if (ifs->size < size) { in raw_ioctl()
50 ifs->size = size; /* data size wanted */ in raw_ioctl()
Dhdlc_raw_eth.c23 static int raw_eth_ioctl(struct net_device *dev, struct if_settings *ifs);
51 static int raw_eth_ioctl(struct net_device *dev, struct if_settings *ifs) in raw_eth_ioctl() argument
53 raw_hdlc_proto __user *raw_s = ifs->ifs_ifsu.raw_hdlc; in raw_eth_ioctl()
60 switch (ifs->type) { in raw_eth_ioctl()
64 ifs->type = IF_PROTO_HDLC_ETH; in raw_eth_ioctl()
65 if (ifs->size < size) { in raw_eth_ioctl()
66 ifs->size = size; /* data size wanted */ in raw_eth_ioctl()
Dpc300too.c189 static int pc300_ioctl(struct net_device *dev, struct if_settings *ifs) in pc300_ioctl() argument
193 sync_serial_settings __user *line = ifs->ifs_ifsu.sync; in pc300_ioctl()
197 if (ifs->type == IF_GET_IFACE) { in pc300_ioctl()
198 ifs->type = port->iface; in pc300_ioctl()
199 if (ifs->size < size) { in pc300_ioctl()
200 ifs->size = size; /* data size wanted */ in pc300_ioctl()
209 (ifs->type == IF_IFACE_SYNC_SERIAL || in pc300_ioctl()
210 ifs->type == IF_IFACE_X21)) in pc300_ioctl()
214 (ifs->type == IF_IFACE_SYNC_SERIAL || in pc300_ioctl()
215 ifs->type == IF_IFACE_V35)) in pc300_ioctl()
[all …]
Dhdlc_x25.c32 static int x25_ioctl(struct net_device *dev, struct if_settings *ifs);
277 static int x25_ioctl(struct net_device *dev, struct if_settings *ifs) in x25_ioctl() argument
279 x25_hdlc_proto __user *x25_s = ifs->ifs_ifsu.x25; in x25_ioctl()
285 switch (ifs->type) { in x25_ioctl()
289 ifs->type = IF_PROTO_X25; in x25_ioctl()
290 if (ifs->size < size) { in x25_ioctl()
291 ifs->size = size; /* data size wanted */ in x25_ioctl()
306 if (ifs->size == 0) { in x25_ioctl()
Dhdlc_fr.c149 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()
1182 static int fr_ioctl(struct net_device *dev, struct if_settings *ifs) in fr_ioctl() argument
1184 fr_proto __user *fr_s = ifs->ifs_ifsu.fr; in fr_ioctl()
[all …]
Dhdlc_cisco.c59 static int cisco_ioctl(struct net_device *dev, struct if_settings *ifs);
309 static int cisco_ioctl(struct net_device *dev, struct if_settings *ifs) in cisco_ioctl() argument
311 cisco_proto __user *cisco_s = ifs->ifs_ifsu.cisco; in cisco_ioctl()
317 switch (ifs->type) { in cisco_ioctl()
321 ifs->type = IF_PROTO_CISCO; in cisco_ioctl()
322 if (ifs->size < size) { in cisco_ioctl()
323 ifs->size = size; /* data size wanted */ in cisco_ioctl()
Dc101.c231 static int c101_ioctl(struct net_device *dev, struct if_settings *ifs) in c101_ioctl() argument
235 sync_serial_settings __user *line = ifs->ifs_ifsu.sync; in c101_ioctl()
238 switch (ifs->type) { in c101_ioctl()
240 ifs->type = IF_IFACE_SYNC_SERIAL; in c101_ioctl()
241 if (ifs->size < size) { in c101_ioctl()
242 ifs->size = size; /* data size wanted */ in c101_ioctl()
270 return hdlc_ioctl(dev, ifs); in c101_ioctl()
Dpci200syn.c182 static int pci200_ioctl(struct net_device *dev, struct if_settings *ifs) in pci200_ioctl() argument
186 sync_serial_settings __user *line = ifs->ifs_ifsu.sync; in pci200_ioctl()
189 switch (ifs->type) { in pci200_ioctl()
191 ifs->type = IF_IFACE_V35; in pci200_ioctl()
192 if (ifs->size < size) { in pci200_ioctl()
193 ifs->size = size; /* data size wanted */ in pci200_ioctl()
223 return hdlc_ioctl(dev, ifs); in pci200_ioctl()
Dn2.c242 static int n2_ioctl(struct net_device *dev, struct if_settings *ifs) in n2_ioctl() argument
246 sync_serial_settings __user *line = ifs->ifs_ifsu.sync; in n2_ioctl()
249 switch (ifs->type) { in n2_ioctl()
251 ifs->type = IF_IFACE_SYNC_SERIAL; in n2_ioctl()
252 if (ifs->size < size) { in n2_ioctl()
253 ifs->size = size; /* data size wanted */ in n2_ioctl()
281 return hdlc_ioctl(dev, ifs); in n2_ioctl()
Dfarsync.c1787 struct if_settings *ifs) in fst_set_iface() argument
1792 if (ifs->size != sizeof(sync)) in fst_set_iface()
1795 if (copy_from_user(&sync, ifs->ifs_ifsu.sync, sizeof(sync))) in fst_set_iface()
1803 switch (ifs->type) { in fst_set_iface()
1859 struct if_settings *ifs) in fst_get_iface() argument
1870 ifs->type = IF_IFACE_E1; in fst_get_iface()
1873 ifs->type = IF_IFACE_T1; in fst_get_iface()
1876 ifs->type = IF_IFACE_V35; in fst_get_iface()
1879 ifs->type = IF_IFACE_V24; in fst_get_iface()
1882 ifs->type = IF_IFACE_X21D; in fst_get_iface()
[all …]
Dwanxl.c346 static int wanxl_ioctl(struct net_device *dev, struct if_settings *ifs) in wanxl_ioctl() argument
352 switch (ifs->type) { in wanxl_ioctl()
354 ifs->type = IF_IFACE_SYNC_SERIAL; in wanxl_ioctl()
355 if (ifs->size < size) { in wanxl_ioctl()
356 ifs->size = size; /* data size wanted */ in wanxl_ioctl()
364 if (copy_to_user(ifs->ifs_ifsu.sync, &line, size)) in wanxl_ioctl()
374 if (copy_from_user(&line, ifs->ifs_ifsu.sync, in wanxl_ioctl()
389 return hdlc_ioctl(dev, ifs); in wanxl_ioctl()
Dhdlc.c199 int hdlc_ioctl(struct net_device *dev, struct if_settings *ifs) in hdlc_ioctl() argument
205 result = dev_to_hdlc(dev)->proto->ioctl(dev, ifs); in hdlc_ioctl()
213 result = proto->ioctl(dev, ifs); in hdlc_ioctl()
Dfsl_ucc_hdlc.c679 static int uhdlc_ioctl(struct net_device *dev, struct if_settings *ifs) in uhdlc_ioctl() argument
685 switch (ifs->type) { in uhdlc_ioctl()
687 ifs->type = IF_IFACE_E1; in uhdlc_ioctl()
688 if (ifs->size < size) { in uhdlc_ioctl()
689 ifs->size = size; /* data size wanted */ in uhdlc_ioctl()
695 if (copy_to_user(ifs->ifs_ifsu.sync, &line, size)) in uhdlc_ioctl()
700 return hdlc_ioctl(dev, ifs); in uhdlc_ioctl()
Dixp4xx_hss.c1257 static int hss_hdlc_ioctl(struct net_device *dev, struct if_settings *ifs) in hss_hdlc_ioctl() argument
1261 sync_serial_settings __user *line = ifs->ifs_ifsu.sync; in hss_hdlc_ioctl()
1266 switch (ifs->type) { in hss_hdlc_ioctl()
1268 ifs->type = IF_IFACE_V35; in hss_hdlc_ioctl()
1269 if (ifs->size < size) { in hss_hdlc_ioctl()
1270 ifs->size = size; /* data size wanted */ in hss_hdlc_ioctl()
1323 return hdlc_ioctl(dev, ifs); in hss_hdlc_ioctl()
Dhdlc_ppp.c103 static int ppp_ioctl(struct net_device *dev, struct if_settings *ifs);
658 static int ppp_ioctl(struct net_device *dev, struct if_settings *ifs) in ppp_ioctl() argument
664 switch (ifs->type) { in ppp_ioctl()
668 ifs->type = IF_PROTO_PPP; in ppp_ioctl()
/drivers/net/wireless/ralink/rt2x00/
Drt2x00queue.h305 enum ifs ifs; member
Drt2x00reg.h80 enum ifs { enum
Drt2x00queue.c244 txdesc->u.plcp.ifs = IFS_BACKOFF; in rt2x00queue_create_tx_descriptor_plcp()
246 txdesc->u.plcp.ifs = IFS_SIFS; in rt2x00queue_create_tx_descriptor_plcp()
/drivers/net/wan/lmc/
Dlmc.h22 int lmc_ioctl(struct net_device *dev, struct if_settings *ifs);
/drivers/block/aoe/
Daoeblk.c74 ifp = (*t)->ifs; in aoedisk_show_netif()
144 ifp = (*t)->ifs; in aoedisk_debugfs_show()
145 ife = ifp + ARRAY_SIZE((*t)->ifs); in aoedisk_debugfs_show()
Daoecmd.c163 if (ifp >= &t->ifs[NAOEIFS] || ifp->nd == NULL) in ifrotate()
164 ifp = t->ifs; in ifrotate()
530 p = t->ifs; in getif()
546 e = t->ifs + NAOEIFS - 1; in ejectif()
803 && (ifp != t->ifs || t->ifs[1].nd)) { in rexmit_timer()
1453 t->ifp = t->ifs; in addtgt()
1491 p = t->ifs; in setifbcnt()
Daoedev.c504 for (ifp = t->ifs; ifp < &t->ifs[NAOEIFS]; ++ifp) { in freetgt()
Daoe.h143 struct aoeif ifs[NAOEIFS]; member
/drivers/net/ethernet/i825xx/
Dsun3_82586.h235 unsigned char ifs; /* inter frame spacing */ member
/drivers/char/pcmcia/
Dsynclink_cs.c4057 static int hdlcdev_wan_ioctl(struct net_device *dev, struct if_settings *ifs) in hdlcdev_wan_ioctl() argument
4061 sync_serial_settings __user *line = ifs->ifs_ifsu.sync; in hdlcdev_wan_ioctl()
4074 switch (ifs->type) { in hdlcdev_wan_ioctl()
4077 ifs->type = IF_IFACE_SYNC_SERIAL; in hdlcdev_wan_ioctl()
4078 if (ifs->size < size) { in hdlcdev_wan_ioctl()
4079 ifs->size = size; /* data size wanted */ in hdlcdev_wan_ioctl()
4148 return hdlc_ioctl(dev, ifs); in hdlcdev_wan_ioctl()

12