Lines Matching refs:dev
45 #include <dev/ofw/openfirm.h>
46 #include <dev/ofw/ofw_bus.h>
47 #include <dev/ofw/ofw_bus_subr.h>
71 device_t dev;
89 pmu_probe(device_t dev)
92 if (!ofw_bus_status_okay(dev))
95 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data != 0) {
96 device_set_desc(dev, "Samsung Exynos 5 Power Management Unit");
143 pmu_attach(device_t dev)
147 sc = device_get_softc(dev);
148 sc->dev = dev;
149 sc->model = ofw_bus_search_compatible(dev, compat_data)->ocd_data;
151 if (bus_alloc_resources(dev, pmu_spec, sc->res)) {
152 device_printf(dev, "could not allocate resources\n");