Lines Matching defs:type
226 pxa_alloc_resource(device_t dev, device_t child, int type, int *rid,
241 rle = resource_list_find(rl, type, *rid);
244 if (type == SYS_RES_IRQ)
245 return (pxa_alloc_gpio_irq(dev, child, type, rid,
252 switch (type) {
273 if (type == SYS_RES_MEMORY) {
279 if (bus_activate_resource(child, type, *rid, rv)) {
289 pxa_release_resource(device_t dev, device_t child, int type, int rid,
299 if (type == SYS_RES_IOPORT)
300 type = SYS_RES_MEMORY;
302 rle = resource_list_find(rl, type, rid);
316 pxa_activate_resource(device_t dev, device_t child, int type, int rid,
353 pxa_alloc_gpio_irq(device_t dev, device_t child, int type, int *rid,
375 resource_list_add(rl, type, *rid, start, end, count);
376 rle = resource_list_find(rl, type, *rid);
386 if (bus_activate_resource(child, type, *rid, rv)) {