Lines Matching defs:res
60 #define RES2HDR(res) ((struct smapi_bios_header *)rman_get_virtual(res))
66 struct resource * res;
179 struct resource *res;
185 res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
186 if (res == NULL) {
192 if (smapi_header_cksum(RES2HDR(res))) {
199 if (res)
200 bus_release_resource(dev, SYS_RES_MEMORY, rid, res);
215 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->rid,
217 if (sc->res == NULL) {
222 sc->header = (struct smapi_bios_header *)rman_get_virtual(sc->res);
263 if (sc->res)
264 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res);
277 if (sc->res)
278 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res);