Lines Matching refs:device
96 static struct device *handle_to_device [20];
106 static int ndis_probe (struct device *dev);
107 static int pkt_probe (struct device *dev);
117 * These are the device we always support
119 static struct device ndis_dev = {
124 NDIS_NEXT_DEV, /* NULL or a 32-bit device */
128 static struct device pkt_dev = {
137 static struct device *get_device (int fd)
152 pcap_t *pcap_create_interface (const char *device, char *ebuf)
156 p = pcap_create_common(device, ebuf, sizeof (struct pcap_dos));
241 volatile struct device *dev; /* might be reset by sig_handler */
357 struct device *dev = p ? get_device(p->fd) : NULL;
367 strcpy (p->errbuf, "device statistics not available");
385 * Return detailed network/device statistics.
390 struct device *dev = p ? get_device (p->fd) : NULL;
394 strlcpy (p->errbuf, "detailed device statistics not available",
412 * device (pkt_rx1.s or 32-bit device interrupt handler).
439 * Close pcap device. Not called for offline captures.
469 struct device *dev;
475 for (dev = (struct device*)dev_base; dev; dev = dev->next)
482 probed_dev = (struct device*) dev; /* remember last probed device */
495 int pcap_lookupnet (const char *device, bpf_u_int32 *localnet,
521 ARGSUSED (device);
533 struct device *dev;
540 for (dev = (struct device*)dev_base; dev; dev = dev->next)
618 * Initialise a named network device.
620 static struct device *
623 struct device *dev;
625 for (dev = (struct device*)dev_base; dev; dev = dev->next)
638 sprintf (ebuf, "failed to detect device `%s'", dev_name);
641 probed_dev = dev; /* device is probed okay and may be used */
660 sprintf (ebuf, "failed to activate device `%s'", dev_name);
674 device */
682 sprintf (ebuf, "device `%s' not supported", dev_name);
689 sprintf (ebuf, "device `%s' not probed", dev_name);
702 struct device *dev = active_dev;
765 * Open the pcap device for the first client calling pcap_activate()
769 struct device *dev;
806 * the 32-bit device.
891 struct device *dev = p ? get_device(p->fd) : NULL;
1064 struct device *active_dev = NULL; /* the device we have opened */
1065 struct device *probed_dev = NULL; /* the device we have probed */
1066 const struct device *dev_base = &pkt_dev; /* list of network devices */
1069 * PKTDRVR device functions
1073 static void pkt_close (struct device *dev)
1085 static int pkt_open (struct device *dev)
1101 static int pkt_xmit (struct device *dev, const void *buf, int len)
1116 static void *pkt_stats (struct device *dev)
1129 static int pkt_probe (struct device *dev)
1149 * NDIS device functions
1151 static void ndis_close (struct device *dev)
1159 static int ndis_open (struct device *dev)
1173 static void *ndis_stats (struct device *dev)
1182 static int ndis_probe (struct device *dev)
1205 struct device el2_dev LOCKED_VAR = {
1214 struct device el3_dev LOCKED_VAR = {
1223 struct device tc515_dev LOCKED_VAR = {
1232 struct device tc59_dev LOCKED_VAR = {
1241 struct device tc90xbc_dev LOCKED_VAR = {
1250 struct device wd_dev LOCKED_VAR = {
1259 struct device ne_dev LOCKED_VAR = {
1268 struct device acct_dev LOCKED_VAR = {
1277 struct device cs89_dev LOCKED_VAR = {
1286 struct device rtl8139_dev LOCKED_VAR = {