Lines Matching defs:type
180 pcib_host_res_decodes(struct pcib_host_resources *hr, int type, u_long start,
188 type, flags & RF_PREFETCHABLE ? "prefetchable ": "", start,
190 rid = resource_list_add_next(&hr->hr_rl, type, start, end,
193 KASSERT(type == SYS_RES_MEMORY,
195 rle = resource_list_find(&hr->hr_rl, type, rid);
202 pcib_host_res_alloc(struct pcib_host_resources *hr, device_t dev, int type,
210 KASSERT(type == SYS_RES_MEMORY,
213 rle = resource_list_find(&hr->hr_rl, type, 0);
216 * No decoding ranges for this resource type, just pass
219 return (bus_generic_alloc_resource(hr->hr_pcib, dev, type, rid,
226 if (rle->type != type)
237 r = bus_generic_alloc_resource(hr->hr_pcib, dev, type, rid,
242 "allocated type %d (%#lx-%#lx) for rid %x of %s\n",
243 type, rman_get_start(r), rman_get_end(r),
255 rle = resource_list_find(&hr->hr_rl, type, 0);
262 pcib_host_res_adjust(struct pcib_host_resources *hr, device_t dev, int type,
267 rle = resource_list_find(&hr->hr_rl, type, 0);
270 * No decoding ranges for this resource type, just pass
273 return (bus_generic_adjust_resource(hr->hr_pcib, dev, type, r,
281 type, r, start, end));