Lines Matching refs:ires
74 static int tsec_setup_intr(struct tsec_softc *sc, struct resource **ires,
76 static void tsec_release_intr(struct tsec_softc *sc, struct resource *ires,
275 tsec_setup_intr(struct tsec_softc *sc, struct resource **ires, void **ihand, in tsec_setup_intr() argument
280 *ires = bus_alloc_resource_any(sc->dev, SYS_RES_IRQ, irid, RF_ACTIVE); in tsec_setup_intr()
281 if (*ires == NULL) { in tsec_setup_intr()
285 error = bus_setup_intr(sc->dev, *ires, INTR_TYPE_NET | INTR_MPSAFE, in tsec_setup_intr()
289 if (bus_release_resource(sc->dev, SYS_RES_IRQ, *irid, *ires)) in tsec_setup_intr()
291 *ires = NULL; in tsec_setup_intr()
298 tsec_release_intr(struct tsec_softc *sc, struct resource *ires, void *ihand, in tsec_release_intr() argument
303 if (ires == NULL) in tsec_release_intr()
306 error = bus_teardown_intr(sc->dev, ires, ihand); in tsec_release_intr()
311 error = bus_release_resource(sc->dev, SYS_RES_IRQ, irid, ires); in tsec_release_intr()