/freebsd-10-stable/sys/dev/ofw/ |
H A D | ofwbus.c | 175 struct resource_list_entry *rle; local 181 rle = NULL; 183 rle = resource_list_find(BUS_GET_RESOURCE_LIST(bus, child), 185 if (rle == NULL) { 191 start = rle->start; 192 count = ulmax(count, rle->count); 193 end = ulmax(rle->end, start + count - 1); 219 if (!passthrough && rle != NULL) { 220 rle->res = rv; 221 rle 262 struct resource_list_entry *rle; local [all...] |
/freebsd-10-stable/sys/dev/pci/ |
H A D | pci_subr.c | 184 struct resource_list_entry *rle; local 196 rle = resource_list_find(&hr->hr_rl, type, rid); 197 rle->flags = RLE_PREFETCH; 206 struct resource_list_entry *rle; local 214 rle = resource_list_find(&hr->hr_rl, type, 0); 215 if (rle == NULL) { 226 for (; rle != NULL; rle = STAILQ_NEXT(rle, link)) { 227 if (rle 266 struct resource_list_entry *rle; local [all...] |
/freebsd-10-stable/sys/mips/sibyte/ |
H A D | sb_zbbus.c | 288 struct resource_list_entry *rle; local 299 rle = resource_list_find(rl, type, *rid); 300 if (rle) { 301 if (rle->res) 304 start = rle->start; 305 count = ulmax(count, rle->count); 306 end = ulmax(rle->end, start + count - 1); 330 rle = NULL; 367 if (res != NULL && rle == NULL && device_get_parent(child) == bus) { 369 rle [all...] |
/freebsd-10-stable/sys/arm/at91/ |
H A D | at91.c | 310 struct resource_list_entry *rle; local 319 rle = resource_list_find(rl, type, *rid); 320 if (rle == NULL) 322 if (rle->res) 325 start = rle->start; 326 count = ulmax(count, rle->count); 327 end = ulmax(rle->end, start + count - 1); 332 rle->res = rman_reserve_resource(&sc->sc_irq_rman, 336 rle->res = rman_reserve_resource(&sc->sc_mem_rman, 338 if (rle 369 struct resource_list_entry *rle; local [all...] |
/freebsd-10-stable/sys/dev/quicc/ |
H A D | quicc_core.c | 102 struct resource_list_entry *rle; local 188 rle = resource_list_find(&qd->qd_rlist, SYS_RES_IRQ, 0); 189 rle->res = sc->sc_ires; 260 struct resource_list_entry *rle; local 270 rle = resource_list_find(&qd->qd_rlist, type, *rid); 271 if (rle == NULL) 274 if (rle->res == NULL) { 275 rle->res = rman_reserve_resource(qd->qd_rman, rle->start, 276 rle 290 struct resource_list_entry *rle; local 342 struct resource_list_entry *rle; local [all...] |
/freebsd-10-stable/sys/arm/xscale/pxa/ |
H A D | pxa_smi.c | 185 struct resource_list_entry *rle; local 195 rle = resource_list_find(rl, type, *rid); 196 if (rle == NULL) 198 if (rle->res != NULL) 206 rv = rman_reserve_resource(&sc->ps_mem, rle->start, rle->end, 207 rle->count, flags, child); 210 rle->res = rv; 213 rman_set_bushandle(rv, rle->start); 224 rv = bus_alloc_resource(dev, type, rid, rle 250 struct resource_list_entry *rle; local [all...] |
H A D | pxa_obio.c | 233 struct resource_list_entry *rle; local 241 rle = resource_list_find(rl, type, *rid); 242 if (rle == NULL) { 249 if (rle->res != NULL) 267 rv = rman_reserve_resource(rm, rle->start, rle->end, rle->count, flags, 271 rle->res = rv; 275 rman_set_bushandle(rv, rle->start); 294 struct resource_list_entry *rle; local 359 struct resource_list_entry *rle; local [all...] |
/freebsd-10-stable/sys/ia64/isa/ |
H A D | isa.c | 95 struct resource_list_entry *rle; local 98 rle = resource_list_find(rl, type, *rid); 99 if (!rle) {
|
/freebsd-10-stable/sys/isa/ |
H A D | isa_common.c | 479 struct resource_list_entry *rle; local 482 STAILQ_FOREACH(rle, rl, link) { 483 if (!rle->res) { 484 rid = rle->rid; 485 resource_list_alloc(rl, dev, child, rle->type, &rid, 676 struct resource_list_entry *rle; local 680 rle = resource_list_find(rl, SYS_RES_IOPORT, 0); 681 if (rle) 682 *result = rle->start; 688 rle 897 struct resource_list_entry *rle; local [all...] |
H A D | isahint.c | 91 struct resource_list_entry *rle; local 93 STAILQ_FOREACH(rle, rl, link) { 94 if (rle->type != type) 96 if (rle->start <= value && rle->end >= value)
|
/freebsd-10-stable/sys/dev/mca/ |
H A D | mca_bus.c | 355 struct resource_list_entry * rle; local 366 while ((rle = resource_list_find(&(m_dev->rl), SYS_RES_IOPORT, rid++))) { 367 if (rle->count == 1) { 370 rle->start); 374 rle->start, 375 (rle->start + rle->count)); 382 while ((rle = resource_list_find(&(m_dev->rl), SYS_RES_MEMORY, rid++))) { 383 if (rle->count == 1) { 386 rle 462 struct resource_list_entry * rle; local [all...] |
/freebsd-10-stable/sys/arm/cavium/cns11xx/ |
H A D | econa.c | 414 struct resource_list_entry *rle; local 422 rle = resource_list_find(rl, type, *rid); 423 if (rle == NULL) { 426 if (rle->res) 429 start = rle->start; 430 count = ulmax(count, rle->count); 431 end = ulmax(rle->end, start + count - 1); 436 rle->res = rman_reserve_resource(&sc->ec_irq_rman, 440 rle->res = rman_reserve_resource(&sc->ec_mem_rman, 442 if (rle 470 struct resource_list_entry *rle; local [all...] |
/freebsd-10-stable/sys/mips/mips/ |
H A D | nexus.c | 243 struct resource_list_entry *rle; local 255 rle = NULL; 263 rle = resource_list_find(&ndev->nx_resources, type, *rid); 264 if (rle == NULL) 266 if (rle->res != NULL) { 269 start = rle->start; 270 end = rle->end; 271 count = rle->count; 320 struct resource_list_entry *rle; local 325 rle 339 struct resource_list_entry *rle; local [all...] |
/freebsd-10-stable/sys/dev/pccard/ |
H A D | pccard.c | 474 struct resource_list_entry *rle; local 522 rle = resource_list_add(rl, SYS_RES_IOPORT, 524 if (rle == NULL) 526 rle->res = r; 548 rle = resource_list_add(rl, SYS_RES_MEMORY, 550 if (rle == NULL) 552 rle->res = r; 567 rle = resource_list_add(rl, SYS_RES_IRQ, rid, 569 if (rle == NULL) 571 rle 594 struct resource_list_entry *rle; local 783 struct resource_list_entry *rle = local 873 struct resource_list_entry *rle; local 961 struct resource_list_entry *rle; local 1140 struct resource_list_entry *rle = 0; local 1190 struct resource_list_entry *rle = 0; local [all...] |
/freebsd-10-stable/sys/dev/scc/ |
H A D | scc_core.c | 99 struct resource_list_entry *rle; local 180 rle = resource_list_find(&ch->ch_rlist, sc->sc_rtype, 0); 181 rle->res = &ch->ch_rres; 184 rman_set_bushandle(rle->res, bh); 185 rman_set_bustag(rle->res, rman_get_bustag(sc->sc_rres)); 188 rle = resource_list_find(&ch->ch_rlist, SYS_RES_IRQ, 0); 189 rle->res = (ch->ch_ires != NULL) ? ch->ch_ires : 412 struct resource_list_entry *rle; local 425 rle = resource_list_find(&ch->ch_rlist, type, 0); 426 if (rle 436 struct resource_list_entry *rle; local 501 struct resource_list_entry *rle; local [all...] |
/freebsd-10-stable/sys/dev/if_ndis/ |
H A D | if_ndis_pci.c | 176 struct resource_list_entry *rle; local 199 STAILQ_FOREACH(rle, rl, link) { 200 switch (rle->type) { 202 sc->ndis_io_rid = rle->rid; 222 sc->ndis_altmem_rid = rle->rid; 236 sc->ndis_mem_rid = rle->rid; 251 rid = rle->rid;
|
/freebsd-10-stable/sys/sparc64/central/ |
H A D | central.c | 221 struct resource_list_entry *rle; local 234 rle = NULL; 243 rle = resource_list_find(rl, type, *rid); 244 if (rle == NULL) 246 if (rle->res != NULL) 249 start = rle->start; 250 count = ulmax(count, rle->count); 251 end = ulmax(rle->end, start + count - 1); 266 rle->res = res;
|
/freebsd-10-stable/sys/sparc64/isa/ |
H A D | isa.c | 284 struct resource_list_entry *rle; local 289 rle = resource_list_find(rl, type, *rid); 290 if (!rle) { 323 if ((rle = resource_list_find(rl, type, *rid)) == NULL) 336 if (rle->start != rle->end || rle->start <= 7) 345 if (!INRANGE(rle->start, base, limit) || 346 !INRANGE(rle->end, base, limit))
|
/freebsd-10-stable/sys/ia64/ia64/ |
H A D | nexus.c | 261 struct resource_list_entry *rle; local 273 rle = resource_list_find(&ndev->nx_resources, type, *rid); 274 if (rle == NULL) 276 start = rle->start; 277 end = rle->end; 278 count = rle->count; 444 struct resource_list_entry *rle; local 446 rle = resource_list_find(rl, type, rid); 448 type, rid, startp, countp, rle); 449 if (!rle) [all...] |
/freebsd-10-stable/sys/mips/adm5120/ |
H A D | obio.c | 230 struct resource_list_entry *rle; local 237 rle = NULL; 249 rle = resource_list_find(&ivar->resources, type, *rid); 250 if (rle == NULL) 252 if (rle->res != NULL) { 255 start = rle->start; 256 end = rle->end; 257 count = rle->count; 325 struct resource_list_entry *rle; local 330 rle [all...] |
/freebsd-10-stable/sys/mips/alchemy/ |
H A D | obio.c | 231 struct resource_list_entry *rle; local 238 rle = NULL; 250 rle = resource_list_find(&ivar->resources, type, *rid); 251 if (rle == NULL) 253 if (rle->res != NULL) { 256 start = rle->start; 257 end = rle->end; 258 count = rle->count; 326 struct resource_list_entry *rle; local 331 rle [all...] |
/freebsd-10-stable/sys/mips/atheros/ |
H A D | apb.c | 167 struct resource_list_entry *rle; local 177 rle = NULL; 194 rle = resource_list_find(&ivar->resources, type, *rid); 195 if (rle == NULL) { 199 if (rle->res != NULL) { 202 start = rle->start; 203 end = rle->end; 204 count = rle->count; 267 struct resource_list_entry *rle; local 272 rle [all...] |
/freebsd-10-stable/sys/mips/idt/ |
H A D | obio.c | 164 struct resource_list_entry *rle; local 171 rle = NULL; 183 rle = resource_list_find(&ivar->resources, type, *rid); 184 if (rle == NULL) 186 if (rle->res != NULL) { 189 start = rle->start; 190 end = rle->end; 191 count = rle->count; 250 struct resource_list_entry *rle; local 255 rle [all...] |
/freebsd-10-stable/sys/kern/ |
H A D | subr_bus.c | 3022 struct resource_list_entry *rle; local 3024 while ((rle = STAILQ_FIRST(rl)) != NULL) { 3025 if (rle->res) 3028 free(rle, M_BUS); 3077 struct resource_list_entry *rle; local 3079 rle = resource_list_find(rl, type, rid); 3080 if (!rle) { 3081 rle = malloc(sizeof(struct resource_list_entry), M_BUS, 3083 if (!rle) 3085 STAILQ_INSERT_TAIL(rl, rle, lin 3116 struct resource_list_entry *rle; local 3145 struct resource_list_entry *rle; local 3166 struct resource_list_entry *rle; local 3185 struct resource_list_entry *rle = resource_list_find(rl, type, rid); local 3235 struct resource_list_entry *rle = NULL; local 3292 struct resource_list_entry *rle = NULL; local 3365 struct resource_list_entry *rle = NULL; local 3422 struct resource_list_entry *rle; local 3465 struct resource_list_entry *rle = NULL; local 3503 struct resource_list_entry *rle; local 3537 struct resource_list_entry *rle; local 4057 struct resource_list_entry * rle = NULL; local [all...] |
/freebsd-10-stable/sys/dev/pccbb/ |
H A D | pccbb.c | 187 struct cbb_reslist *rle; local 189 SLIST_FOREACH(rle, &sc->rl, link) { 190 if (rle->res == res) { 191 SLIST_REMOVE(&sc->rl, rle, cbb_reslist, link); 192 free(rle, M_DEVBUF); 201 struct cbb_reslist *rle; local 203 SLIST_FOREACH(rle, &sc->rl, link) 204 if (SYS_RES_MEMORY == rle->type && rid == rle->rid) 205 return (rle 213 struct cbb_reslist *rle; local 231 struct cbb_reslist *rle; local 1097 struct cbb_reslist *rle; local [all...] |