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

Function its_device_find

freebsd/arm64/arm64/gicv3_its.c:1118–1134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116}
1117
1118static struct its_dev *
1119its_device_find(device_t dev, device_t child)
1120{
1121 struct gicv3_its_softc *sc;
1122 struct its_dev *its_dev = NULL;
1123
1124 sc = device_get_softc(dev);
1125
1126 mtx_lock_spin(&sc->sc_its_dev_lock);
1127 TAILQ_FOREACH(its_dev, &sc->sc_its_dev_list, entry) {
1128 if (its_dev->pci_dev == child)
1129 break;
1130 }
1131 mtx_unlock_spin(&sc->sc_its_dev_lock);
1132
1133 return (its_dev);
1134}
1135
1136static struct its_dev *
1137its_device_get(device_t dev, device_t child, u_int nvecs)

Callers 3

its_device_getFunction · 0.85
gicv3_its_release_msiFunction · 0.85
gicv3_its_release_msixFunction · 0.85

Calls 1

device_get_softcFunction · 0.85

Tested by

no test coverage detected