/freebsd-11-stable/sys/dev/dpaa/ |
H A D | portals_common.c | 56 struct resource_list_entry *rle; local 73 rle = resource_list_find(res, SYS_RES_MEMORY, 0); 76 SYS_RES_MEMORY, &sc->sc_rrid[0], rle->start + sc->sc_dp_pa, 77 rle->end + sc->sc_dp_pa, rle->count, RF_ACTIVE); 84 rle->start + sc->sc_dp_pa, rle->count, _TLB_ENTRY_MEM); 86 rle = resource_list_find(res, SYS_RES_MEMORY, 1); 89 SYS_RES_MEMORY, &sc->sc_rrid[1], rle->start + sc->sc_dp_pa, 90 rle [all...] |
H A D | bman_fdt.c | 138 struct resource_list_entry *rle; local 199 rle = resource_list_find(&di.di_res, SYS_RES_MEMORY, 0); 202 sc->sc_dp_pa = portal_pa - rle->start; 204 portal_size = rle->end + 1; 205 rle = resource_list_find(&di.di_res, SYS_RES_MEMORY, 1); 206 portal_size = ulmax(rle->end + 1, portal_size);
|
H A D | qman_fdt.c | 138 struct resource_list_entry *rle; local 199 rle = resource_list_find(&di.di_res, SYS_RES_MEMORY, 0); 202 sc->sc_dp_pa = portal_pa - rle->start; 204 portal_size = rle->end + 1; 205 rle = resource_list_find(&di.di_res, SYS_RES_MEMORY, 1); 206 portal_size = ulmax(rle->end + 1, portal_size);
|
/freebsd-11-stable/sys/arm/at91/ |
H A D | at91.c | 153 struct resource_list_entry *rle; local 162 rle = resource_list_find(rl, type, *rid); 163 if (rle == NULL) 165 if (rle->res) 168 start = rle->start; 169 count = ulmax(count, rle->count); 170 end = ulmax(rle->end, start + count - 1); 175 rle->res = rman_reserve_resource(&sc->sc_irq_rman, 179 rle->res = rman_reserve_resource(&sc->sc_mem_rman, 181 if (rle 212 struct resource_list_entry *rle; local [all...] |
/freebsd-11-stable/sys/dev/ofw/ |
H A D | ofwbus.c | 189 struct resource_list_entry *rle; local 195 rle = NULL; 197 rle = resource_list_find(BUS_GET_RESOURCE_LIST(bus, child), 199 if (rle == NULL) { 205 start = rle->start; 206 count = ummax(count, rle->count); 207 end = ummax(rle->end, start + count - 1); 233 if (!passthrough && rle != NULL) { 234 rle->res = rv; 235 rle 276 struct resource_list_entry *rle; local [all...] |
/freebsd-11-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-11-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-11-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-11-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-11-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-11-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-11-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-11-stable/sys/dev/pccard/ |
H A D | pccard.c | 472 struct resource_list_entry *rle; local 520 rle = resource_list_add(rl, SYS_RES_IOPORT, 522 if (rle == NULL) 524 rle->res = r; 546 rle = resource_list_add(rl, SYS_RES_MEMORY, 548 if (rle == NULL) 550 rle->res = r; 565 rle = resource_list_add(rl, SYS_RES_IRQ, rid, 567 if (rle == NULL) 569 rle 592 struct resource_list_entry *rle; local 781 struct resource_list_entry *rle = local 871 struct resource_list_entry *rle; local 959 struct resource_list_entry *rle; local 1118 struct resource_list_entry *rle = NULL; local 1168 struct resource_list_entry *rle = NULL; local [all...] |
/freebsd-11-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-11-stable/sys/dev/if_ndis/ |
H A D | if_ndis_pci.c | 179 struct resource_list_entry *rle; local 202 STAILQ_FOREACH(rle, rl, link) { 203 switch (rle->type) { 205 sc->ndis_io_rid = rle->rid; 225 sc->ndis_altmem_rid = rle->rid; 239 sc->ndis_mem_rid = rle->rid; 254 rid = rle->rid;
|
/freebsd-11-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-11-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-11-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-11-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-11-stable/sys/mips/atheros/ |
H A D | apb.c | 169 struct resource_list_entry *rle; local 179 rle = NULL; 196 rle = resource_list_find(&ivar->resources, type, *rid); 197 if (rle == NULL) { 201 if (rle->res != NULL) { 204 start = rle->start; 205 end = rle->end; 206 count = rle->count; 269 struct resource_list_entry *rle; local 274 rle [all...] |
/freebsd-11-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-11-stable/sys/kern/ |
H A D | subr_bus.c | 3103 struct resource_list_entry *rle; local 3105 while ((rle = STAILQ_FIRST(rl)) != NULL) { 3106 if (rle->res) 3109 free(rle, M_BUS); 3158 struct resource_list_entry *rle; local 3160 rle = resource_list_find(rl, type, rid); 3161 if (!rle) { 3162 rle = malloc(sizeof(struct resource_list_entry), M_BUS, 3164 if (!rle) 3166 STAILQ_INSERT_TAIL(rl, rle, lin 3197 struct resource_list_entry *rle; local 3226 struct resource_list_entry *rle; local 3247 struct resource_list_entry *rle; local 3266 struct resource_list_entry *rle = resource_list_find(rl, type, rid); local 3316 struct resource_list_entry *rle = NULL; local 3373 struct resource_list_entry *rle = NULL; local 3446 struct resource_list_entry *rle = NULL; local 3503 struct resource_list_entry *rle; local 3546 struct resource_list_entry *rle = NULL; local 3584 struct resource_list_entry *rle; local 3618 struct resource_list_entry *rle; local 4344 struct resource_list_entry * rle = NULL; local [all...] |
/freebsd-11-stable/sys/dev/pccbb/ |
H A D | pccbb.c | 182 struct cbb_reslist *rle; local 184 SLIST_FOREACH(rle, &sc->rl, link) { 185 if (rle->res == res) { 186 SLIST_REMOVE(&sc->rl, rle, cbb_reslist, link); 187 free(rle, M_DEVBUF); 196 struct cbb_reslist *rle; local 198 SLIST_FOREACH(rle, &sc->rl, link) 199 if (SYS_RES_MEMORY == rle->type && rid == rle->rid) 200 return (rle 208 struct cbb_reslist *rle; local 226 struct cbb_reslist *rle; local 1123 struct cbb_reslist *rle; local [all...] |