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
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()
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()
103 sc->sc_dp[cpu].dp_ce_size = rle->count; in dpaa_portal_alloc_res()
106 sc->sc_dp[cpu].dp_ci_size = rle->count; in dpaa_portal_alloc_res()
109 rle = resource_list_find(res, SYS_RES_IRQ, 0); in dpaa_portal_alloc_res()
112 SYS_RES_IRQ, &sc->sc_dp[cpu].dp_irid, rle->start, rle->end, in dpaa_portal_alloc_res()
113 rle->count, RF_ACTIVE); in dpaa_portal_alloc_res()
[all …]
H A Dfman.c122 struct resource_list_entry *rle; in fman_release_resource() local
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()
176 count = ulmax(count, rle->count); 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.c136 struct resource_list_entry *rle; in ofwbus_alloc_resource() local
141 rle = NULL; in ofwbus_alloc_resource()
145 if (rle == NULL) { in ofwbus_alloc_resource()
151 start = rle->start; in ofwbus_alloc_resource()
163 rle->res = rv; in ofwbus_alloc_resource()
164 rle->start = rman_get_start(rv); in ofwbus_alloc_resource()
165 rle->end = rman_get_end(rv); in ofwbus_alloc_resource()
166 rle->count = rle->end - rle->start + 1; in ofwbus_alloc_resource()
175 struct resource_list_entry *rle; in ofwbus_release_resource() local
183 if (rle != NULL) in ofwbus_release_resource()
[all …]
/freebsd/sys/dev/pci/
H A Dpci_subr.c184 struct resource_list_entry *rle; in pcib_host_res_decodes() local
197 rle->flags = RLE_PREFETCH; in pcib_host_res_decodes()
206 struct resource_list_entry *rle; in pcib_host_res_alloc() local
215 if (rle == NULL) { in pcib_host_res_alloc()
226 for (; rle != NULL; rle = STAILQ_NEXT(rle, link)) { in pcib_host_res_alloc()
227 if (rle->type != type) in pcib_host_res_alloc()
233 new_end = ummin(end, rle->end); in pcib_host_res_alloc()
266 struct resource_list_entry *rle; in pcib_host_res_adjust() local
269 if (rle == NULL) { in pcib_host_res_adjust()
279 for (; rle != NULL; rle = STAILQ_NEXT(rle, link)) { in pcib_host_res_adjust()
[all …]
H A Dpci.c1804 if (rle != NULL && rle->res != NULL) in pci_alloc_msix_method()
1822 if (rle == NULL || rle->res == NULL || in pci_alloc_msix_method()
1829 if (rle == NULL || rle->res == NULL || in pci_alloc_msix_method()
2587 if (rle != NULL && rle->res != NULL) in pci_alloc_msi_method()
4614 if (rle != NULL && rle->res != NULL) in pci_suspend_child()
4644 if (rle != NULL && rle->res != NULL) in pci_resume_child()
5759 if (rle->res) { in pci_child_deleted()
5761 resource_list_busy(rl, rle->type, rle->rid)) { in pci_child_deleted()
5765 rle->type, rle->rid, in pci_child_deleted()
5767 bus_release_resource(child, rle->type, rle->rid, in pci_child_deleted()
[all …]
H A Dpci_iov.c550 struct resource_list_entry *rle; in pci_iov_alloc_bar_ea() local
555 rle = resource_list_find(rl, SYS_RES_MEMORY, in pci_iov_alloc_bar_ea()
557 if (rle == NULL) in pci_iov_alloc_bar_ea()
560 if (rle == NULL) in pci_iov_alloc_bar_ea()
562 res = rle->res; in pci_iov_alloc_bar_ea()
1008 struct resource_list_entry *rle; in pci_vf_alloc_mem_resource() local
1042 if (rle == NULL) { in pci_vf_alloc_mem_resource()
1059 rle->res = res; in pci_vf_alloc_mem_resource()
1068 struct resource_list_entry *rle; in pci_vf_release_mem_resource() local
1081 if (rle != NULL) { in pci_vf_release_mem_resource()
[all …]
/freebsd/sys/dev/quicc/
H A Dquicc_core.c187 rle->res = sc->sc_ires; in quicc_bfe_attach()
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->start + rle->count - 1, rle->count, flags, child); in quicc_bus_alloc_resource()
275 if (rle->res != NULL) { in quicc_bus_alloc_resource()
277 rman_set_bushandle(rle->res, rle->start); in quicc_bus_alloc_resource()
280 return (rle->res); in quicc_bus_alloc_resource()
295 if (rle == NULL) in quicc_bus_get_resource()
299 *startp = rle->start; in quicc_bus_get_resource()
[all …]
/freebsd/sys/isa/
H A Disa_common.c682 if (rle) in isa_read_ivar()
690 if (rle) in isa_read_ivar()
698 if (rle) in isa_read_ivar()
706 if (rle) in isa_read_ivar()
714 if (rle) in isa_read_ivar()
722 if (rle) in isa_read_ivar()
730 if (rle) in isa_read_ivar()
738 if (rle) in isa_read_ivar()
746 if (rle) in isa_read_ivar()
754 if (rle) 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/kern/
H A Dsubr_bus.c2866 if (!rle) in resource_list_add()
2902 if (rle == NULL || rle->res == NULL) in resource_list_busy()
2931 if (rle != NULL && rle->flags & RLE_RESERVED) in resource_list_reserved()
2952 if (rle->type == type && rle->rid == rid) in resource_list_find()
3086 if (!rle) in resource_list_alloc()
3119 rle->start = rman_get_start(rle->res); in resource_list_alloc()
3120 rle->end = rman_get_end(rle->res); in resource_list_alloc()
3157 if (!rle) in resource_list_release()
3251 if (!rle) in resource_list_unreserve()
3319 rle->type, rle->rid, rle->res); in resource_list_purge()
[all …]
/freebsd/sys/dev/scc/
H A Dscc_core.c99 struct resource_list_entry *rle; in scc_bfe_attach() local
181 rle->res = &ch->ch_rres; in scc_bfe_attach()
184 rman_set_bushandle(rle->res, bh); in scc_bfe_attach()
412 struct resource_list_entry *rle; in scc_bus_alloc_resource() local
426 if (rle == NULL) in scc_bus_alloc_resource()
429 return (rle->res); in scc_bus_alloc_resource()
436 struct resource_list_entry *rle; in scc_bus_get_resource() local
446 if (rle == NULL) in scc_bus_get_resource()
450 *startp = rle->start; in scc_bus_get_resource()
452 *countp = rle->count; in scc_bus_get_resource()
[all …]
/freebsd/sys/dev/pccbb/
H A Dpccbb.c176 struct cbb_reslist *rle; in cbb_remove_res() local
179 if (rle->res == res) { in cbb_remove_res()
181 free(rle, M_DEVBUF); in cbb_remove_res()
193 if (SYS_RES_MEMORY == rle->type && rid == rle->rid) in cbb_find_res()
194 return (rle->res); in cbb_find_res()
209 if (rle == NULL) in cbb_insert_res()
211 rle->res = res; in cbb_insert_res()
212 rle->type = type; in cbb_insert_res()
213 rle->rid = rid; in cbb_insert_res()
225 "(rid=%x, type=%d, addr=%jx)\n", rle->rid, rle->type, in cbb_destroy_res()
[all …]
/freebsd/sys/powerpc/powermac/
H A Duninorth.c495 if (rle == NULL) { in unin_chip_alloc_resource()
501 rle->end = rle->end - 1; /* Hack? */ in unin_chip_alloc_resource()
503 if (start < rle->start) in unin_chip_alloc_resource()
504 adjstart = rle->start; in unin_chip_alloc_resource()
505 else if (start > rle->end) in unin_chip_alloc_resource()
506 adjstart = rle->end; in unin_chip_alloc_resource()
510 if (end < rle->start) in unin_chip_alloc_resource()
511 adjend = rle->start; in unin_chip_alloc_resource()
512 else if (end > rle->end) in unin_chip_alloc_resource()
513 adjend = rle->end; in unin_chip_alloc_resource()
[all …]
H A Dmacio.c529 struct resource_list_entry *rle; in macio_alloc_resource() local
538 if (rle == NULL) { in macio_alloc_resource()
544 if (start < rle->start) in macio_alloc_resource()
545 adjstart = rle->start; in macio_alloc_resource()
546 else if (start > rle->end) in macio_alloc_resource()
547 adjstart = rle->end; in macio_alloc_resource()
551 if (end < rle->start) in macio_alloc_resource()
552 adjend = rle->start; in macio_alloc_resource()
553 else if (end > rle->end) in macio_alloc_resource()
554 adjend = rle->end; in macio_alloc_resource()
[all …]
/freebsd/sys/powerpc/ps3/
H A Dps3bus.c563 if (rle == NULL) { in ps3bus_alloc_resource()
569 if (start < rle->start) in ps3bus_alloc_resource()
570 adjstart = rle->start; in ps3bus_alloc_resource()
571 else if (start > rle->end) in ps3bus_alloc_resource()
572 adjstart = rle->end; in ps3bus_alloc_resource()
576 if (end < rle->start) in ps3bus_alloc_resource()
577 adjend = rle->start; in ps3bus_alloc_resource()
578 else if (end > rle->end) in ps3bus_alloc_resource()
579 adjend = rle->end; in ps3bus_alloc_resource()
588 adjstart = rle->start; in ps3bus_alloc_resource()
[all …]
/freebsd/sys/dev/bhnd/cores/usb/
H A Dbhnd_usb.c255 struct resource_list_entry *rle; in bhnd_usb_alloc_resource() local
260 rle = NULL; in bhnd_usb_alloc_resource()
267 rle = resource_list_find(rl, type, *rid); in bhnd_usb_alloc_resource()
268 if (rle == NULL) in bhnd_usb_alloc_resource()
270 if (rle->res != NULL) in bhnd_usb_alloc_resource()
272 start = rle->start; in bhnd_usb_alloc_resource()
273 end = rle->end; in bhnd_usb_alloc_resource()
274 count = rle->count; in bhnd_usb_alloc_resource()
317 struct resource_list_entry *rle; in bhnd_usb_release_resource() local
338 if (rle != NULL) in bhnd_usb_release_resource()
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_pci.c477 struct resource_list_entry *rle; in linux_pci_get_rle() local
483 if (rle == NULL && reserve_bar) in linux_pci_get_rle()
485 return (rle); in linux_pci_get_rle()
492 struct resource_list_entry *rle; in linux_pci_attach_device() local
518 if (rle != NULL) in linux_pci_attach_device()
519 pdev->dev.irq = rle->start; in linux_pci_attach_device()
1020 struct resource_list_entry *rle; in pci_resource_start() local
1029 error = bus_translate_resource(dev, rle->type, rle->start, &newstart); in pci_resource_start()
1046 return (rle->count); in pci_resource_len()
1139 bus_release_resource(pdev->dev.bsddev, rle->type, rle->rid, rle->res); in linuxkpi_pci_release_region()
[all …]
/freebsd/sys/dev/vnic/
H A Dmrml_bridge.c135 struct resource_list_entry *rle; in mrmlb_ofw_bus_alloc_res() local
145 rle = resource_list_find(&di->di_rl, type, *rid); in mrmlb_ofw_bus_alloc_res()
146 if (rle == NULL) in mrmlb_ofw_bus_alloc_res()
149 start = rle->start; in mrmlb_ofw_bus_alloc_res()
150 end = rle->end; in mrmlb_ofw_bus_alloc_res()
151 count = rle->count; in mrmlb_ofw_bus_alloc_res()
/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/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/netinet/
H A Dtcp_ratelimit.h107 tcp_hw_highest_rate(const struct tcp_hwrate_limit_table *rle) in tcp_hw_highest_rate() argument
109 return (rle->ptbl->rs_rlt[rle->ptbl->rs_highest_valid].rate); in tcp_hw_highest_rate()
162 tcp_hw_highest_rate(const struct tcp_hwrate_limit_table *rle) in tcp_hw_highest_rate() argument
/freebsd/sys/dev/bhnd/cores/chipc/
H A Dchipc.c776 struct resource_list_entry *rle; in chipc_alloc_resource() local
785 rle = NULL; in chipc_alloc_resource()
801 if (rle == NULL) { in chipc_alloc_resource()
809 if (rle->res != NULL) { in chipc_alloc_resource()
819 start = rle->start; in chipc_alloc_resource()
820 end = rle->end; in chipc_alloc_resource()
865 if (rle != NULL) { in chipc_alloc_resource()
866 rle->res = rv; in chipc_alloc_resource()
868 rle->end = rman_get_end(rv); in chipc_alloc_resource()
908 if (rle != NULL) in chipc_release_resource()
[all …]
/freebsd/sys/arm/mv/
H A Dmv_pci_ctrl.c242 struct resource_list_entry *rle; in mv_pcib_ctrl_alloc_resource() local
253 rle = resource_list_find(&di->di_rl, type, *rid); in mv_pcib_ctrl_alloc_resource()
255 if (rle == NULL) in mv_pcib_ctrl_alloc_resource()
258 start = rle->start; in mv_pcib_ctrl_alloc_resource()
259 end = rle->end; in mv_pcib_ctrl_alloc_resource()
260 count = rle->count; in mv_pcib_ctrl_alloc_resource()
/freebsd/sys/riscv/riscv/
H A Dnexus.c233 struct resource_list_entry *rle; in nexus_alloc_resource() local
244 rle = resource_list_find(&ndev->nx_resources, type, *rid); in nexus_alloc_resource()
245 if (rle == NULL) in nexus_alloc_resource()
247 start = rle->start; in nexus_alloc_resource()
248 end = rle->end; in nexus_alloc_resource()
249 count = rle->count; in nexus_alloc_resource()

12