Lines Matching defs:type
251 simplebus_alloc_resource(device_t bus, device_t child, int type, int *rid,
266 if (type == SYS_RES_IOPORT)
267 type = SYS_RES_MEMORY;
269 rle = resource_list_find(&di->di_res, type, *rid);
273 "rid = %d, type = %d\n", *rid, type);
281 if (type == SYS_RES_IRQ &&
285 return (bus_generic_alloc_resource(bus, child, type, rid, start, end,
290 simplebus_activate_resource(device_t dev, device_t child, int type, int rid,
295 if (type == SYS_RES_IRQ &&
299 return (bus_generic_activate_resource(dev, child, type, rid, r));
303 simplebus_deactivate_resource(device_t dev, device_t child, int type, int rid,
308 if (type == SYS_RES_IRQ &&
312 return (bus_generic_deactivate_resource(dev, child, type, rid, r));
316 simplebus_release_resource(device_t dev, device_t child, int type, int rid,
321 if (type == SYS_RES_IRQ &&
325 return (bus_generic_release_resource(dev, child, type, rid, r));