Lines Matching defs:type
178 pxa_smi_alloc_resource(device_t dev, device_t child, int type, int *rid,
192 if (type == SYS_RES_IOPORT)
193 type = SYS_RES_MEMORY;
195 rle = resource_list_find(rl, type, *rid);
204 switch (type) {
215 if (bus_activate_resource(child, type, *rid, rv) != 0) {
224 rv = bus_alloc_resource(dev, type, rid, rle->start, rle->end,
229 if (bus_activate_resource(child, type, *rid, rv) != 0) {
230 bus_release_resource(dev, type, *rid, rv);
245 pxa_smi_release_resource(device_t dev, device_t child, int type, int rid,
252 if (type == SYS_RES_IRQ)
258 if (type == SYS_RES_IOPORT)
259 type = SYS_RES_MEMORY;
261 rle = resource_list_find(rl, type, rid);
274 pxa_smi_activate_resource(device_t dev, device_t child, int type, int rid,
281 if (type == SYS_RES_IRQ)