| 1116 | } |
| 1117 | |
| 1118 | static struct its_dev * |
| 1119 | its_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 | |
| 1136 | static struct its_dev * |
| 1137 | its_device_get(device_t dev, device_t child, u_int nvecs) |
no test coverage detected