Home
last modified time | relevance | path

Searched refs:rle (Results 1 – 25 of 44) sorted by relevance

12

/freebsd/sys/dev/dpaa/
H A Dportals_common.c54 struct resource_list_entry *rle; in dpaa_portal_alloc_res() local
71 rle = resource_list_find(res, SYS_RES_MEMORY, 0); in dpaa_portal_alloc_res()
74 SYS_RES_MEMORY, &sc->sc_rrid[0], rle->start + sc->sc_dp_pa, in dpaa_portal_alloc_res()
75 rle->end + sc->sc_dp_pa, rle->count, RF_ACTIVE); in dpaa_portal_alloc_res()
82 rle->start + sc->sc_dp_pa, rle->count, _TLB_ENTRY_MEM); in dpaa_portal_alloc_res()
84 rle = resource_list_find(res, SYS_RES_MEMORY, 1); in dpaa_portal_alloc_res()
87 SYS_RES_MEMORY, &sc->sc_rrid[1], rle->start + sc->sc_dp_pa, in dpaa_portal_alloc_res()
88 rle->end + sc->sc_dp_pa, rle->count, RF_ACTIVE); in dpaa_portal_alloc_res()
97 rle->start + sc->sc_dp_pa, rle->count, _TLB_ENTRY_IO); in dpaa_portal_alloc_res()
101 rle = resource_list_find(res, SYS_RES_MEMORY, 0); in dpaa_portal_alloc_res()
[all …]
H A Dfman.c122 struct resource_list_entry *rle; in fman_release_resource() local
137 rle = resource_list_find(rl, rman_get_type(res), in fman_release_resource()
139 KASSERT(rle != NULL, in fman_release_resource()
141 KASSERT(rle->res != NULL, in fman_release_resource()
143 rle->res = NULL; in fman_release_resource()
156 struct resource_list_entry *rle = NULL; in fman_alloc_resource() local
169 rle = resource_list_find(rl, type, *rid); in fman_alloc_resource()
170 if (rle == NULL) in fman_alloc_resource()
172 KASSERT(rle->res == NULL, in fman_alloc_resource()
175 start = rle->start; in fman_alloc_resource()
[all …]
H A Dbman_fdt.c162 struct resource_list_entry *rle; in bman_portals_fdt_attach() local
224 rle = resource_list_find(&di.di_res, SYS_RES_MEMORY, 0); in bman_portals_fdt_attach()
227 sc->sc_dp_pa = portal_pa - rle->start; in bman_portals_fdt_attach()
229 portal_size = rle->end + 1; in bman_portals_fdt_attach()
230 rle = resource_list_find(&di.di_res, SYS_RES_MEMORY, 1); in bman_portals_fdt_attach()
231 portal_size = ulmax(rle->end + 1, portal_size); in bman_portals_fdt_attach()
/freebsd/sys/dev/ofw/
H A Dofwbus.c137 struct resource_list_entry *rle; in ofwbus_alloc_resource() local
142 rle = NULL; in ofwbus_alloc_resource()
144 rle = resource_list_find(BUS_GET_RESOURCE_LIST(bus, child), in ofwbus_alloc_resource()
146 if (rle == NULL) { in ofwbus_alloc_resource()
152 start = rle->start; in ofwbus_alloc_resource()
153 count = ummax(count, rle->count); in ofwbus_alloc_resource()
154 end = ummax(rle->end, start + count - 1); in ofwbus_alloc_resource()
163 if (!passthrough && rle != NULL) { in ofwbus_alloc_resource()
164 rle->res = rv; in ofwbus_alloc_resource()
165 rle->start = rman_get_start(rv); in ofwbus_alloc_resource()
[all …]
/freebsd/sys/dev/pci/
H A Dpci_subr.c183 struct resource_list_entry *rle; in pcib_host_res_decodes() local
195 rle = resource_list_find(&hr->hr_rl, type, rid); in pcib_host_res_decodes()
196 rle->flags = RLE_PREFETCH; in pcib_host_res_decodes()
205 struct resource_list_entry *rle; in pcib_host_res_alloc() local
213 rle = resource_list_find(&hr->hr_rl, type, 0); in pcib_host_res_alloc()
214 if (rle == NULL) { in pcib_host_res_alloc()
225 for (; rle != NULL; rle = STAILQ_NEXT(rle, link)) { in pcib_host_res_alloc()
226 if (rle->type != type) in pcib_host_res_alloc()
229 ((rle->flags & RLE_PREFETCH) != 0)) in pcib_host_res_alloc()
231 new_start = ummax(start, rle->start); in pcib_host_res_alloc()
[all …]
H A Dpci.c1823 struct resource_list_entry *rle; in pci_alloc_msix_method() local
1833 rle = resource_list_find(&dinfo->resources, SYS_RES_IRQ, 0); in pci_alloc_msix_method()
1834 if (rle != NULL && rle->res != NULL) in pci_alloc_msix_method()
1850 rle = resource_list_find(&dinfo->resources, SYS_RES_MEMORY, in pci_alloc_msix_method()
1852 if (rle == NULL || rle->res == NULL || in pci_alloc_msix_method()
1853 !(rman_get_flags(rle->res) & RF_ACTIVE)) in pci_alloc_msix_method()
1855 cfg->msix.msix_table_res = rle->res; in pci_alloc_msix_method()
1857 rle = resource_list_find(&dinfo->resources, SYS_RES_MEMORY, in pci_alloc_msix_method()
1859 if (rle == NULL || rle->res == NULL || in pci_alloc_msix_method()
1860 !(rman_get_flags(rle->res) & RF_ACTIVE)) in pci_alloc_msix_method()
[all …]
/freebsd/sys/isa/
H A Disa_common.c477 struct resource_list_entry *rle; in isa_claim_resources() local
480 STAILQ_FOREACH(rle, rl, link) { in isa_claim_resources()
481 if (!rle->res) { in isa_claim_resources()
482 rid = rle->rid; in isa_claim_resources()
483 resource_list_alloc(rl, dev, child, rle->type, &rid, in isa_claim_resources()
683 struct resource_list_entry *rle; in isa_read_ivar() local
687 rle = resource_list_find(rl, SYS_RES_IOPORT, 0); in isa_read_ivar()
688 if (rle) in isa_read_ivar()
689 *result = rle->start; in isa_read_ivar()
695 rle = resource_list_find(rl, SYS_RES_IOPORT, 1); in isa_read_ivar()
[all …]
H A Disahint.c90 struct resource_list_entry *rle; in isa_match_resource_hint() local
92 STAILQ_FOREACH(rle, rl, link) { in isa_match_resource_hint()
93 if (rle->type != type) in isa_match_resource_hint()
95 if (rle->start <= value && rle->end >= value) in isa_match_resource_hint()
/freebsd/sys/dev/quicc/
H A Dquicc_core.c100 struct resource_list_entry *rle; in quicc_bfe_attach() local
186 rle = resource_list_find(&qd->qd_rlist, SYS_RES_IRQ, 0); in quicc_bfe_attach()
187 rle->res = sc->sc_ires; in quicc_bfe_attach()
258 struct resource_list_entry *rle; in quicc_bus_alloc_resource() local
268 rle = resource_list_find(&qd->qd_rlist, type, *rid); in quicc_bus_alloc_resource()
269 if (rle == NULL) in quicc_bus_alloc_resource()
272 if (rle->res == NULL) { in quicc_bus_alloc_resource()
273 rle->res = rman_reserve_resource(qd->qd_rman, rle->start, in quicc_bus_alloc_resource()
274 rle in quicc_bus_alloc_resource()
288 struct resource_list_entry *rle; quicc_bus_get_resource() local
339 struct resource_list_entry *rle; quicc_bus_release_resource() local
[all...]
/freebsd/sys/kern/
H A Dsubr_bus.c2875 struct resource_list_entry *rle; in resource_list_free() local
2877 while ((rle = STAILQ_FIRST(rl)) != NULL) { in resource_list_free()
2878 if (rle->res) in resource_list_free()
2881 free(rle, M_BUS); in resource_list_free()
2930 struct resource_list_entry *rle; in resource_list_add() local
2932 rle = resource_list_find(rl, type, rid); in resource_list_add()
2933 if (!rle) { in resource_list_add()
2934 rle = malloc(sizeof(struct resource_list_entry), M_BUS, in resource_list_add()
2936 if (!rle) in resource_list_add()
2938 STAILQ_INSERT_TAIL(rl, rle, link); in resource_list_add()
[all …]
/freebsd/sys/dev/scc/
H A Dscc_core.c99 struct resource_list_entry *rle; in scc_bfe_attach() local
180 rle = resource_list_find(&ch->ch_rlist, sc->sc_rtype, 0); in scc_bfe_attach()
181 rle->res = &ch->ch_rres; in scc_bfe_attach()
184 rman_set_bushandle(rle->res, bh); in scc_bfe_attach()
185 rman_set_bustag(rle->res, rman_get_bustag(sc->sc_rres)); in scc_bfe_attach()
188 rle = resource_list_find(&ch->ch_rlist, SYS_RES_IRQ, 0); in scc_bfe_attach()
189 rle->res = (ch->ch_ires != NULL) ? ch->ch_ires : in scc_bfe_attach()
412 struct resource_list_entry *rle; in scc_bus_alloc_resource() local
425 rle = resource_list_find(&ch->ch_rlist, type, 0); in scc_bus_alloc_resource()
426 if (rle in scc_bus_alloc_resource()
436 struct resource_list_entry *rle; scc_bus_get_resource() local
500 struct resource_list_entry *rle; scc_bus_release_resource() local
[all...]
/freebsd/sys/dev/pccbb/
H A Dpccbb.c176 struct cbb_reslist *rle; in cbb_remove_res() local
178 SLIST_FOREACH(rle, &sc->rl, link) { in cbb_remove_res()
179 if (rle->res == res) { in cbb_remove_res()
180 SLIST_REMOVE(&sc->rl, rle, cbb_reslist, link); in cbb_remove_res()
181 free(rle, M_DEVBUF); in cbb_remove_res()
190 struct cbb_reslist *rle; in cbb_find_res() local
192 SLIST_FOREACH(rle, &sc->rl, link) in cbb_find_res()
193 if (SYS_RES_MEMORY == rle->type && rid == rle->rid) in cbb_find_res()
194 return (rle->res); in cbb_find_res()
202 struct cbb_reslist *rle; in cbb_insert_res() local
[all …]
/freebsd/sys/powerpc/powermac/
H A Duninorth.c487 struct resource_list_entry *rle; in unin_chip_alloc_resource() local
494 rle = resource_list_find(&dinfo->udi_resources, SYS_RES_MEMORY, in unin_chip_alloc_resource()
496 if (rle == NULL) { in unin_chip_alloc_resource()
502 rle->end = rle->end - 1; /* Hack? */ in unin_chip_alloc_resource()
504 if (start < rle->start) in unin_chip_alloc_resource()
505 adjstart = rle->start; in unin_chip_alloc_resource()
506 else if (start > rle->end) in unin_chip_alloc_resource()
507 adjstart = rle->end; in unin_chip_alloc_resource()
511 if (end < rle->start) in unin_chip_alloc_resource()
512 adjend = rle->start; in unin_chip_alloc_resource()
[all …]
H A Dmacio.c530 struct resource_list_entry *rle; in macio_alloc_resource() local
537 rle = resource_list_find(&dinfo->mdi_resources, SYS_RES_MEMORY, in macio_alloc_resource()
539 if (rle == NULL) { in macio_alloc_resource()
545 if (start < rle->start) in macio_alloc_resource()
546 adjstart = rle->start; in macio_alloc_resource()
547 else if (start > rle->end) in macio_alloc_resource()
548 adjstart = rle->end; in macio_alloc_resource()
552 if (end < rle->start) in macio_alloc_resource()
553 adjend = rle->start; in macio_alloc_resource()
554 else if (end > rle->end) in macio_alloc_resource()
[all …]
/freebsd/sys/powerpc/ps3/
H A Dps3bus.c556 struct resource_list_entry *rle; in ps3bus_alloc_resource() local
562 rle = resource_list_find(&dinfo->resources, SYS_RES_MEMORY, in ps3bus_alloc_resource()
564 if (rle == NULL) { in ps3bus_alloc_resource()
570 if (start < rle->start) in ps3bus_alloc_resource()
571 adjstart = rle->start; in ps3bus_alloc_resource()
572 else if (start > rle->end) in ps3bus_alloc_resource()
573 adjstart = rle->end; in ps3bus_alloc_resource()
577 if (end < rle->start) in ps3bus_alloc_resource()
578 adjend = rle->start; in ps3bus_alloc_resource()
579 else if (end > rle->end) in ps3bus_alloc_resource()
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_pci.c495 struct resource_list_entry *rle; in linux_pci_get_rle() local
499 rle = resource_list_find(rl, type, rid); in linux_pci_get_rle()
501 if (rle == NULL && reserve_bar) in linux_pci_get_rle()
502 rle = linux_pci_reserve_bar(pdev, rl, type, rid); in linux_pci_get_rle()
503 return (rle); in linux_pci_get_rle()
510 struct resource_list_entry *rle; in linux_pci_attach_device() local
535 rle = linux_pci_get_rle(pdev, SYS_RES_IRQ, 0, false); in linux_pci_attach_device()
536 if (rle != NULL) in linux_pci_attach_device()
537 pdev->dev.irq = rle->start; in linux_pci_attach_device()
1054 struct resource_list_entry *rle; in pci_resource_start() local
[all …]
/freebsd/sys/arm64/cavium/
H A Dthunder_pcie_fdt.c235 struct resource_list_entry *rle; in thunder_pcie_fdt_alloc_resource() local
256 rle = resource_list_find(&di->di_rl, type, *rid); in thunder_pcie_fdt_alloc_resource()
257 if (rle == NULL) in thunder_pcie_fdt_alloc_resource()
260 start = rle->start; in thunder_pcie_fdt_alloc_resource()
261 end = rle->end; in thunder_pcie_fdt_alloc_resource()
262 count = rle->count; in thunder_pcie_fdt_alloc_resource()
/freebsd/sys/dev/vnic/
H A Dmrml_bridge.c136 struct resource_list_entry *rle; in mrmlb_ofw_bus_alloc_res() local
146 rle = resource_list_find(&di->di_rl, type, *rid); in mrmlb_ofw_bus_alloc_res()
147 if (rle == NULL) in mrmlb_ofw_bus_alloc_res()
150 start = rle->start; in mrmlb_ofw_bus_alloc_res()
151 end = rle->end; in mrmlb_ofw_bus_alloc_res()
152 count = rle->count; in mrmlb_ofw_bus_alloc_res()
/freebsd/sys/x86/isa/
H A Disa.c97 struct resource_list_entry *rle; in isa_alloc_resource() local
100 rle = resource_list_find(rl, type, *rid); in isa_alloc_resource()
101 if (!rle) { in isa_alloc_resource()
/freebsd/sys/dev/bhnd/cores/chipc/
H A Dchipc.c772 struct resource_list_entry *rle; in chipc_alloc_resource() local
781 rle = NULL; in chipc_alloc_resource()
795 rle = resource_list_find(BUS_GET_RESOURCE_LIST(dev, child), in chipc_alloc_resource()
797 if (rle == NULL) { in chipc_alloc_resource()
805 if (rle->res != NULL) { in chipc_alloc_resource()
810 rman_get_flags(rle->res)); in chipc_alloc_resource()
815 start = rle->start; in chipc_alloc_resource()
816 end = rle->end; in chipc_alloc_resource()
817 count = ulmax(count, rle->count); in chipc_alloc_resource()
861 if (rle != NULL) { in chipc_alloc_resource()
[all …]
/freebsd/sys/netinet/
H A Dtcp_ratelimit.h109 tcp_hw_highest_rate(const struct tcp_hwrate_limit_table *rle) in tcp_hw_highest_rate() argument
111 return (rle->ptbl->rs_rlt[rle->ptbl->rs_highest_valid].rate); in tcp_hw_highest_rate()
167 tcp_hw_highest_rate(const struct tcp_hwrate_limit_table *rle) in tcp_hw_highest_rate() argument
/freebsd/sys/arm/mv/
H A Dmv_pci_ctrl.c243 struct resource_list_entry *rle; in mv_pcib_ctrl_alloc_resource() local
254 rle = resource_list_find(&di->di_rl, type, *rid); in mv_pcib_ctrl_alloc_resource()
256 if (rle == NULL) in mv_pcib_ctrl_alloc_resource()
259 start = rle->start; in mv_pcib_ctrl_alloc_resource()
260 end = rle->end; in mv_pcib_ctrl_alloc_resource()
261 count = rle->count; in mv_pcib_ctrl_alloc_resource()
/freebsd/sys/riscv/riscv/
H A Dnexus.c232 struct resource_list_entry *rle; in nexus_alloc_resource() local
243 rle = resource_list_find(&ndev->nx_resources, type, *rid); in nexus_alloc_resource()
244 if (rle == NULL) in nexus_alloc_resource()
246 start = rle->start; in nexus_alloc_resource()
247 end = rle->end; in nexus_alloc_resource()
248 count = rle->count; in nexus_alloc_resource()
/freebsd/sys/dev/acpica/
H A Dacpi.c1135 struct resource_list_entry *rle; in acpi_match_resource_hint() local
1137 STAILQ_FOREACH(rle, rl, link) { in acpi_match_resource_hint()
1138 if (rle->type != type) in acpi_match_resource_hint()
1140 if (rle->start <= value && rle->end >= value) in acpi_match_resource_hint()
1343 struct resource_list_entry *rle; in acpi_sysres_alloc() local
1360 STAILQ_FOREACH(rle, &sc->sysres_rl, link) { in acpi_sysres_alloc()
1361 if (rle->res != NULL) { in acpi_sysres_alloc()
1362 device_printf(dev, "duplicate resource for %jx\n", rle->start); in acpi_sysres_alloc()
1367 rm = acpi_get_rman(dev, rle->type, 0); in acpi_sysres_alloc()
1372 res = bus_alloc_resource(dev, rle->type, in acpi_sysres_alloc()
[all …]
/freebsd/sys/arm64/arm64/
H A Dnexus.c239 struct resource_list_entry *rle; in nexus_alloc_resource() local
250 rle = resource_list_find(&ndev->nx_resources, type, *rid); in nexus_alloc_resource()
251 if (rle == NULL) in nexus_alloc_resource()
253 start = rle->start; in nexus_alloc_resource()
254 end = rle->end; in nexus_alloc_resource()
255 count = rle->count; in nexus_alloc_resource()

12