Lines Matching refs:active_dev
188 else if (stricmp(active_dev->name,device_name)) in pcap_open_live()
192 "(`%s' vs. `%s')", active_dev->name, device_name); in pcap_open_live()
196 handle_to_device [pcap->fd-1] = active_dev; in pcap_open_live()
652 active_dev = dev; /* remember our active device */ in open_driver()
680 struct device *dev = active_dev; in close_driver()
688 active_dev = NULL; in close_driver()
713 if (active_dev->irq > 0) /* excludes IRQ 0 */ in exc_handler()
715 disable_irq (active_dev->irq); in exc_handler()
716 irq_eoi_cmd (active_dev->irq); in exc_handler()
857 if (active_dev && active_dev->xmit) in pcap_xmit_hook()
858 if ((*active_dev->xmit) (active_dev, buf, len) > 0) in pcap_xmit_hook()
1042 struct device *active_dev = NULL; /* the device we have opened */ variable
1282 PCAP_ASSERT (pktq_check (&active_dev->queue)); in peek_rxbuf()
1285 tail = pktq_out_elem (&active_dev->queue); in peek_rxbuf()
1286 head = pktq_in_elem (&active_dev->queue); in peek_rxbuf()
1291 PCAP_ASSERT (tail->size < active_dev->queue.elem_size-4-2); in peek_rxbuf()
1306 struct rx_elem *tail = pktq_out_elem (&active_dev->queue); in release_rxbuf()
1312 pktq_inc_out (&active_dev->queue); in release_rxbuf()
1327 idx = pktq_in_index (&active_dev->queue); in get_rxbuf()
1339 if (idx != active_dev->queue.out_index) in get_rxbuf()
1341 struct rx_elem *head = pktq_in_elem (&active_dev->queue); in get_rxbuf()
1344 active_dev->queue.in_index = idx; in get_rxbuf()
1350 pktq_clear (&active_dev->queue); in get_rxbuf()