MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ccp_release_interrupts

Function ccp_release_interrupts

freebsd/crypto/ccp/ccp_hardware.c:722–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720}
721
722static void
723ccp_release_interrupts(struct ccp_softc *sc)
724{
725 unsigned i;
726
727 for (i = 0; i < sc->intr_count; i++) {
728 if (sc->intr_tag[i] != NULL)
729 bus_teardown_intr(sc->dev, sc->intr_res[i],
730 sc->intr_tag[i]);
731 if (sc->intr_res[i] != NULL)
732 bus_release_resource(sc->dev, SYS_RES_IRQ,
733 rman_get_rid(sc->intr_res[i]), sc->intr_res[i]);
734 }
735
736 pci_release_msi(sc->dev);
737}
738
739int
740ccp_hw_attach(device_t dev)

Callers 2

ccp_hw_attachFunction · 0.85
ccp_hw_detachFunction · 0.85

Calls 3

bus_teardown_intrFunction · 0.85
bus_release_resourceFunction · 0.85
rman_get_ridFunction · 0.85

Tested by

no test coverage detected