Lines Matching refs:ires
65 static int sec_setup_intr(struct sec_softc *sc, struct resource **ires,
67 static void sec_release_intr(struct sec_softc *sc, struct resource *ires,
460 sec_setup_intr(struct sec_softc *sc, struct resource **ires, void **ihand, in sec_setup_intr() argument
465 (*ires) = bus_alloc_resource_any(sc->sc_dev, SYS_RES_IRQ, irid, in sec_setup_intr()
468 if ((*ires) == NULL) { in sec_setup_intr()
473 error = bus_setup_intr(sc->sc_dev, *ires, INTR_MPSAFE | INTR_TYPE_NET, in sec_setup_intr()
478 if (bus_release_resource(sc->sc_dev, SYS_RES_IRQ, *irid, *ires)) in sec_setup_intr()
482 (*ires) = NULL; in sec_setup_intr()
490 sec_release_intr(struct sec_softc *sc, struct resource *ires, void *ihand, in sec_release_intr() argument
495 if (ires == NULL) in sec_release_intr()
498 error = bus_teardown_intr(sc->sc_dev, ires, ihand); in sec_release_intr()
503 error = bus_release_resource(sc->sc_dev, SYS_RES_IRQ, irid, ires); in sec_release_intr()