Lines Matching refs:hr
164 pcib_host_res_init(device_t pcib, struct pcib_host_resources *hr)
167 hr->hr_pcib = pcib;
168 resource_list_init(&hr->hr_rl);
173 pcib_host_res_free(device_t pcib, struct pcib_host_resources *hr)
176 resource_list_free(&hr->hr_rl);
181 pcib_host_res_decodes(struct pcib_host_resources *hr, int type, rman_res_t start,
188 device_printf(hr->hr_pcib, "decoding %d %srange %#jx-%#jx\n",
191 rid = resource_list_add_next(&hr->hr_rl, type, start, end,
196 rle = resource_list_find(&hr->hr_rl, type, rid);
203 pcib_host_res_alloc(struct pcib_host_resources *hr, device_t dev, int type,
214 rle = resource_list_find(&hr->hr_rl, type, 0);
220 return (bus_generic_alloc_resource(hr->hr_pcib, dev, type, rid,
238 r = bus_generic_alloc_resource(hr->hr_pcib, dev, type, rid,
242 device_printf(hr->hr_pcib,
256 rle = resource_list_find(&hr->hr_rl, type, 0);
263 pcib_host_res_adjust(struct pcib_host_resources *hr, device_t dev, int type,
268 rle = resource_list_find(&hr->hr_rl, type, 0);
274 return (bus_generic_adjust_resource(hr->hr_pcib, dev, type, r,
281 return (bus_generic_adjust_resource(hr->hr_pcib, dev,