Lines Matching refs:dev
48 struct device *dev;
57 linux_irq_rid(struct device *dev, int irq)
59 if (irq == dev->irq)
61 return irq - dev->msix + 1;
67 linux_irq_ent(struct device *dev, int irq)
71 list_for_each_entry(irqe, &dev->irqents, links)
84 struct device *dev;
88 dev = _pci_find_irq_dev(irq);
89 if (dev == NULL)
91 rid = linux_irq_rid(dev, irq);
92 res = bus_alloc_resource_any(dev->bsddev, SYS_RES_IRQ, &rid,
97 irqe->dev = dev;
102 error = bus_setup_intr(dev->bsddev, res, INTR_TYPE_NET | INTR_MPSAFE,
105 bus_release_resource(dev->bsddev, SYS_RES_IRQ, rid, irqe->res);
109 list_add(&irqe->links, &dev->irqents);
118 struct device *dev;
120 dev = _pci_find_irq_dev(irq);
121 if (dev == NULL)
124 irqe = linux_irq_ent(dev, irq);
128 return (-bus_bind_intr(dev->bsddev, irqe->res, cpu_id));
135 struct device *dev;
138 dev = _pci_find_irq_dev(irq);
139 if (dev == NULL)
141 rid = linux_irq_rid(dev, irq);
142 irqe = linux_irq_ent(dev, irq);
145 bus_teardown_intr(dev->bsddev, irqe->res, irqe->tag);
146 bus_release_resource(dev->bsddev, SYS_RES_IRQ, rid, irqe->res);