Lines Matching refs:hr
166 pcib_host_res_init(device_t pcib, struct pcib_host_resources *hr)
169 hr->hr_pcib = pcib;
170 resource_list_init(&hr->hr_rl);
175 pcib_host_res_free(device_t pcib, struct pcib_host_resources *hr)
178 resource_list_free(&hr->hr_rl);
183 pcib_host_res_decodes(struct pcib_host_resources *hr, int type, rman_res_t start,
190 device_printf(hr->hr_pcib, "decoding %d %srange %#jx-%#jx\n",
193 rid = resource_list_add_next(&hr->hr_rl, type, start, end,
198 rle = resource_list_find(&hr->hr_rl, type, rid);
205 pcib_host_res_alloc(struct pcib_host_resources *hr, device_t dev, int type,
216 rle = resource_list_find(&hr->hr_rl, type, 0);
222 return (bus_generic_alloc_resource(hr->hr_pcib, dev, type, rid,
240 r = bus_generic_alloc_resource(hr->hr_pcib, dev, type, rid,
244 device_printf(hr->hr_pcib,
258 rle = resource_list_find(&hr->hr_rl, type, 0);
265 pcib_host_res_adjust(struct pcib_host_resources *hr, device_t dev, int type,
270 rle = resource_list_find(&hr->hr_rl, type, 0);
276 return (bus_generic_adjust_resource(hr->hr_pcib, dev, type, r,
283 return (bus_generic_adjust_resource(hr->hr_pcib, dev,