Searched refs:rle (Results 1 - 25 of 41) sorted by relevance

12

/freebsd-current/sys/dev/ofw/
H A Dofwbus.c136 struct resource_list_entry *rle; local
141 rle = NULL;
143 rle = resource_list_find(BUS_GET_RESOURCE_LIST(bus, child),
145 if (rle == NULL) {
151 start = rle->start;
152 count = ummax(count, rle->count);
153 end = ummax(rle->end, start + count - 1);
162 if (!passthrough && rle != NULL) {
163 rle->res = rv;
164 rle
175 struct resource_list_entry *rle; local
[all...]
/freebsd-current/sys/dev/dpaa/
H A Dportals_common.c54 struct resource_list_entry *rle; local
71 rle = resource_list_find(res, SYS_RES_MEMORY, 0);
74 SYS_RES_MEMORY, &sc->sc_rrid[0], rle->start + sc->sc_dp_pa,
75 rle->end + sc->sc_dp_pa, rle->count, RF_ACTIVE);
82 rle->start + sc->sc_dp_pa, rle->count, _TLB_ENTRY_MEM);
84 rle = resource_list_find(res, SYS_RES_MEMORY, 1);
87 SYS_RES_MEMORY, &sc->sc_rrid[1], rle->start + sc->sc_dp_pa,
88 rle
[all...]
H A Dbman_fdt.c162 struct resource_list_entry *rle; local
224 rle = resource_list_find(&di.di_res, SYS_RES_MEMORY, 0);
227 sc->sc_dp_pa = portal_pa - rle->start;
229 portal_size = rle->end + 1;
230 rle = resource_list_find(&di.di_res, SYS_RES_MEMORY, 1);
231 portal_size = ulmax(rle->end + 1, portal_size);
H A Dfman.c122 struct resource_list_entry *rle; local
137 rle = resource_list_find(rl, rman_get_type(res),
139 KASSERT(rle != NULL,
141 KASSERT(rle->res != NULL,
143 rle->res = NULL;
156 struct resource_list_entry *rle = NULL; local
169 rle = resource_list_find(rl, type, *rid);
170 if (rle == NULL)
172 KASSERT(rle->res == NULL,
175 start = rle
[all...]
/freebsd-current/sys/dev/pci/
H A Dpci_subr.c184 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...]
H A Dpci.c1801 struct resource_list_entry *rle; local
1809 rle = resource_list_find(&dinfo->resources, SYS_RES_IRQ, 0);
1810 if (rle != NULL && rle->res != NULL)
1826 rle = resource_list_find(&dinfo->resources, SYS_RES_MEMORY,
1828 if (rle == NULL || rle->res == NULL ||
1829 !(rman_get_flags(rle->res) & RF_ACTIVE))
1831 cfg->msix.msix_table_res = rle->res;
1833 rle
1976 struct resource_list_entry *rle; local
2097 struct resource_list_entry *rle; local
2414 struct resource_list_entry *rle; local
2583 struct resource_list_entry *rle; local
2702 struct resource_list_entry *rle; local
4593 struct resource_list_entry *rle; local
4632 struct resource_list_entry *rle; local
4858 struct resource_list_entry *rle; local
5543 struct resource_list_entry *rle; local
5863 struct resource_list_entry *rle; local
5907 struct resource_list_entry *rle; local
[all...]
/freebsd-current/sys/dev/quicc/
H A Dquicc_core.c100 struct resource_list_entry *rle; local
186 rle = resource_list_find(&qd->qd_rlist, SYS_RES_IRQ, 0);
187 rle->res = sc->sc_ires;
258 struct resource_list_entry *rle; local
268 rle = resource_list_find(&qd->qd_rlist, type, *rid);
269 if (rle == NULL)
272 if (rle->res == NULL) {
273 rle->res = rman_reserve_resource(qd->qd_rman, rle->start,
274 rle
288 struct resource_list_entry *rle; local
339 struct resource_list_entry *rle; local
[all...]
/freebsd-current/sys/isa/
H A Disa_common.c477 struct resource_list_entry *rle; local
480 STAILQ_FOREACH(rle, rl, link) {
481 if (!rle->res) {
482 rid = rle->rid;
483 resource_list_alloc(rl, dev, child, rle->type, &rid,
677 struct resource_list_entry *rle; local
681 rle = resource_list_find(rl, SYS_RES_IOPORT, 0);
682 if (rle)
683 *result = rle->start;
689 rle
898 struct resource_list_entry *rle; local
[all...]
H A Disahint.c90 struct resource_list_entry *rle; local
92 STAILQ_FOREACH(rle, rl, link) {
93 if (rle->type != type)
95 if (rle->start <= value && rle->end >= value)
/freebsd-current/sys/x86/isa/
H A Disa.c97 struct resource_list_entry *rle; local
100 rle = resource_list_find(rl, type, *rid);
101 if (!rle) {
/freebsd-current/sys/dev/scc/
H A Dscc_core.c99 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
500 struct resource_list_entry *rle; local
[all...]
/freebsd-current/sys/kern/
H A Dsubr_bus.c2805 struct resource_list_entry *rle; local
2807 while ((rle = STAILQ_FIRST(rl)) != NULL) {
2808 if (rle->res)
2811 free(rle, M_BUS);
2860 struct resource_list_entry *rle; local
2862 rle = resource_list_find(rl, type, rid);
2863 if (!rle) {
2864 rle = malloc(sizeof(struct resource_list_entry), M_BUS,
2866 if (!rle)
2868 STAILQ_INSERT_TAIL(rl, rle, lin
2899 struct resource_list_entry *rle; local
2928 struct resource_list_entry *rle; local
2949 struct resource_list_entry *rle; local
2968 struct resource_list_entry *rle = resource_list_find(rl, type, rid); local
3018 struct resource_list_entry *rle = NULL; local
3075 struct resource_list_entry *rle = NULL; local
3146 struct resource_list_entry *rle = NULL; local
3201 struct resource_list_entry *rle; local
3242 struct resource_list_entry *rle = NULL; local
3280 struct resource_list_entry *rle; local
3314 struct resource_list_entry *rle; local
4105 struct resource_list_entry * rle = NULL; local
[all...]
/freebsd-current/sys/dev/pccbb/
H A Dpccbb.c176 struct cbb_reslist *rle; local
178 SLIST_FOREACH(rle, &sc->rl, link) {
179 if (rle->res == res) {
180 SLIST_REMOVE(&sc->rl, rle, cbb_reslist, link);
181 free(rle, M_DEVBUF);
190 struct cbb_reslist *rle; local
192 SLIST_FOREACH(rle, &sc->rl, link)
193 if (SYS_RES_MEMORY == rle->type && rid == rle->rid)
194 return (rle
202 struct cbb_reslist *rle; local
220 struct cbb_reslist *rle; local
1098 struct cbb_reslist *rle; local
[all...]
/freebsd-current/sys/netinet/
H A Dtcp_ratelimit.h107 tcp_hw_highest_rate(const struct tcp_hwrate_limit_table *rle) argument
109 return (rle->ptbl->rs_rlt[rle->ptbl->rs_highest_valid].rate);
162 tcp_hw_highest_rate(const struct tcp_hwrate_limit_table *rle) argument
/freebsd-current/sys/dev/vnic/
H A Dmrml_bridge.c135 struct resource_list_entry *rle; local
145 rle = resource_list_find(&di->di_rl, type, *rid);
146 if (rle == NULL)
149 start = rle->start;
150 end = rle->end;
151 count = rle->count;
/freebsd-current/sys/arm64/cavium/
H A Dthunder_pcie_fdt.c235 struct resource_list_entry *rle; local
256 rle = resource_list_find(&di->di_rl, type, *rid);
257 if (rle == NULL)
260 start = rle->start;
261 end = rle->end;
262 count = rle->count;
/freebsd-current/sys/powerpc/powermac/
H A Duninorth.c486 struct resource_list_entry *rle; local
493 rle = resource_list_find(&dinfo->udi_resources, SYS_RES_MEMORY,
495 if (rle == NULL) {
496 device_printf(bus, "no rle for %s memory %d\n",
501 rle->end = rle->end - 1; /* Hack? */
503 if (start < rle->start)
504 adjstart = rle->start;
505 else if (start > rle->end)
506 adjstart = rle
[all...]
H A Dmacio.c529 struct resource_list_entry *rle; local
536 rle = resource_list_find(&dinfo->mdi_resources, SYS_RES_MEMORY,
538 if (rle == NULL) {
539 device_printf(bus, "no rle for %s memory %d\n",
544 if (start < rle->start)
545 adjstart = rle->start;
546 else if (start > rle->end)
547 adjstart = rle->end;
551 if (end < rle->start)
552 adjend = rle
[all...]
/freebsd-current/sys/compat/linuxkpi/common/src/
H A Dlinux_pci.c477 struct resource_list_entry *rle; local
481 rle = resource_list_find(rl, type, rid);
483 if (rle == NULL && reserve_bar)
484 rle = linux_pci_reserve_bar(pdev, rl, type, rid);
485 return (rle);
492 struct resource_list_entry *rle; local
517 rle = linux_pci_get_rle(pdev, SYS_RES_IRQ, 0, false);
518 if (rle != NULL)
519 pdev->dev.irq = rle->start;
1020 struct resource_list_entry *rle; local
1042 struct resource_list_entry *rle; local
1112 struct resource_list_entry *rle; local
1200 struct resource_list_entry *rle; local
1234 struct resource_list_entry *rle; local
[all...]
/freebsd-current/sys/arm/mv/
H A Dmv_pci_ctrl.c242 struct resource_list_entry *rle; local
253 rle = resource_list_find(&di->di_rl, type, *rid);
255 if (rle == NULL)
258 start = rle->start;
259 end = rle->end;
260 count = rle->count;
/freebsd-current/sys/riscv/riscv/
H A Dnexus.c233 struct resource_list_entry *rle; local
244 rle = resource_list_find(&ndev->nx_resources, type, *rid);
245 if (rle == NULL)
247 start = rle->start;
248 end = rle->end;
249 count = rle->count;
/freebsd-current/sys/dev/bhnd/cores/chipc/
H A Dchipc.c776 struct resource_list_entry *rle; local
785 rle = NULL;
799 rle = resource_list_find(BUS_GET_RESOURCE_LIST(dev, child),
801 if (rle == NULL) {
809 if (rle->res != NULL) {
814 rman_get_flags(rle->res));
819 start = rle->start;
820 end = rle->end;
821 count = ulmax(count, rle->count);
865 if (rle !
881 struct resource_list_entry *rle; local
[all...]
/freebsd-current/sys/powerpc/ps3/
H A Dps3bus.c555 struct resource_list_entry *rle; local
561 rle = resource_list_find(&dinfo->resources, SYS_RES_MEMORY,
563 if (rle == NULL) {
564 device_printf(bus, "no rle for %s memory %d\n",
569 if (start < rle->start)
570 adjstart = rle->start;
571 else if (start > rle->end)
572 adjstart = rle->end;
576 if (end < rle->start)
577 adjend = rle
[all...]
/freebsd-current/sys/arm64/arm64/
H A Dnexus.c241 struct resource_list_entry *rle; local
252 rle = resource_list_find(&ndev->nx_resources, type, *rid);
253 if (rle == NULL)
255 start = rle->start;
256 end = rle->end;
257 count = rle->count;
/freebsd-current/sys/dev/acpica/
H A Dacpi_ged.c152 struct resource_list_entry *rle; local
168 STAILQ_FOREACH(rle, rl, link) {
169 if (rle->type == SYS_RES_IRQ) {

Completed in 213 milliseconds

12