Lines Matching refs:device
98 static struct device *handle_to_device [20];
107 static int ndis_probe (struct device *dev);
108 static int pkt_probe (struct device *dev);
118 * These are the device we always support
120 static struct device ndis_dev = {
125 NDIS_NEXT_DEV, /* NULL or a 32-bit device */
129 static struct device pkt_dev = {
138 static struct device *get_device (int fd)
227 volatile struct device *dev; /* might be reset by sig_handler */
341 struct device *dev = p ? get_device(p->fd) : NULL;
351 strcpy (p->errbuf, "device statistics not available");
368 * Return detailed network/device statistics.
373 struct device *dev = p ? get_device (p->fd) : NULL;
377 strlcpy (p->errbuf, "detailed device statistics not available",
395 * device (pkt_rx1.s or 32-bit device interrupt handler).
422 * Close pcap device. Not called for offline captures.
449 struct device *dev;
455 for (dev = (struct device*)dev_base; dev; dev = dev->next)
462 probed_dev = (struct device*) dev; /* remember last probed device */
475 int pcap_lookupnet (const char *device, bpf_u_int32 *localnet,
501 ARGSUSED (device);
513 struct device *dev;
520 for (dev = (struct device*)dev_base; dev; dev = dev->next)
596 * Initialise a named network device.
598 static struct device *
601 struct device *dev;
603 for (dev = (struct device*)dev_base; dev; dev = dev->next)
616 sprintf (ebuf, "failed to detect device `%s'", dev_name);
619 probed_dev = dev; /* device is probed okay and may be used */
638 sprintf (ebuf, "failed to activate device `%s'", dev_name);
652 active_dev = dev; /* remember our active device */
660 sprintf (ebuf, "device `%s' not supported", dev_name);
667 sprintf (ebuf, "device `%s' not probed", dev_name);
680 struct device *dev = active_dev;
743 * Open the pcap device for the first client calling pcap_open_live()
747 struct device *dev;
784 * the 32-bit device.
869 struct device *dev = p ? get_device(p->fd) : NULL;
1042 struct device *active_dev = NULL; /* the device we have opened */
1043 struct device *probed_dev = NULL; /* the device we have probed */
1044 const struct device *dev_base = &pkt_dev; /* list of network devices */
1047 * PKTDRVR device functions
1051 static void pkt_close (struct device *dev)
1063 static int pkt_open (struct device *dev)
1079 static int pkt_xmit (struct device *dev, const void *buf, int len)
1094 static void *pkt_stats (struct device *dev)
1107 static int pkt_probe (struct device *dev)
1127 * NDIS device functions
1129 static void ndis_close (struct device *dev)
1137 static int ndis_open (struct device *dev)
1151 static void *ndis_stats (struct device *dev)
1160 static int ndis_probe (struct device *dev)
1183 struct device el2_dev LOCKED_VAR = {
1192 struct device el3_dev LOCKED_VAR = {
1201 struct device tc515_dev LOCKED_VAR = {
1210 struct device tc59_dev LOCKED_VAR = {
1219 struct device tc90xbc_dev LOCKED_VAR = {
1228 struct device wd_dev LOCKED_VAR = {
1237 struct device ne_dev LOCKED_VAR = {
1246 struct device acct_dev LOCKED_VAR = {
1255 struct device cs89_dev LOCKED_VAR = {
1264 struct device rtl8139_dev LOCKED_VAR = {