Lines Matching refs:active_dev
216 else if (stricmp(active_dev->name,pcap->opt.device)) in pcap_activate_dos()
220 "(`%s' vs. `%s')", active_dev->name, pcap->opt.device); in pcap_activate_dos()
224 handle_to_device [pcap->fd-1] = active_dev; in pcap_activate_dos()
706 active_dev = dev; /* remember our active device */ in open_driver()
734 struct device *dev = active_dev; in close_driver()
742 active_dev = NULL; in close_driver()
767 if (active_dev->irq > 0) /* excludes IRQ 0 */ in exc_handler()
769 disable_irq (active_dev->irq); in exc_handler()
770 irq_eoi_cmd (active_dev->irq); in exc_handler()
911 if (active_dev && active_dev->xmit) in pcap_xmit_hook()
912 if ((*active_dev->xmit) (active_dev, buf, len) > 0) in pcap_xmit_hook()
1096 struct device *active_dev = NULL; /* the device we have opened */ variable
1336 PCAP_ASSERT (pktq_check (&active_dev->queue)); in peek_rxbuf()
1339 tail = pktq_out_elem (&active_dev->queue); in peek_rxbuf()
1340 head = pktq_in_elem (&active_dev->queue); in peek_rxbuf()
1345 PCAP_ASSERT (tail->size < active_dev->queue.elem_size-4-2); in peek_rxbuf()
1360 struct rx_elem *tail = pktq_out_elem (&active_dev->queue); in release_rxbuf()
1366 pktq_inc_out (&active_dev->queue); in release_rxbuf()
1381 idx = pktq_in_index (&active_dev->queue); in get_rxbuf()
1393 if (idx != active_dev->queue.out_index) in get_rxbuf()
1395 struct rx_elem *head = pktq_in_elem (&active_dev->queue); in get_rxbuf()
1398 active_dev->queue.in_index = idx; in get_rxbuf()
1404 pktq_clear (&active_dev->queue); in get_rxbuf()