Lines Matching defs:dev
32 __FBSDID("$FreeBSD: stable/11/sys/dev/amdsmn/amdsmn.c 355562 2019-12-09 17:14:43Z mav $");
49 #include <dev/pci/pcivar.h>
52 #include <dev/amdsmn/amdsmn.h>
106 static int amdsmn_probe(device_t dev);
107 static int amdsmn_attach(device_t dev);
108 static int amdsmn_detach(device_t dev);
166 amdsmn_probe(device_t dev)
173 if (!amdsmn_match(device_get_parent(dev), NULL))
187 device_set_desc_copy(dev, buf);
193 amdsmn_attach(device_t dev)
195 struct amdsmn_softc *sc = device_get_softc(dev);
197 if (!amdsmn_match(device_get_parent(dev), &sc->smn_pciid))
205 amdsmn_detach(device_t dev)
207 struct amdsmn_softc *sc = device_get_softc(dev);
214 amdsmn_read(device_t dev, uint32_t addr, uint32_t *value)
216 struct amdsmn_softc *sc = device_get_softc(dev);
219 parent = device_get_parent(dev);
230 amdsmn_write(device_t dev, uint32_t addr, uint32_t value)
232 struct amdsmn_softc *sc = device_get_softc(dev);
235 parent = device_get_parent(dev);