| /freebsd-14.2/sys/dev/vnic/ |
| H A D | thunder_mdio_fdt.c | 195 cell_t *base_ranges; in mdionexus_ofw_fill_ranges() local 215 base_ranges = malloc(nbase_ranges, M_THUNDER_MDIO, M_WAITOK); in mdionexus_ofw_fill_ranges() 216 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in mdionexus_ofw_fill_ranges() 222 sc->ranges[i].bus |= base_ranges[j++]; in mdionexus_ofw_fill_ranges() 227 sc->ranges[i].host |= base_ranges[j++]; in mdionexus_ofw_fill_ranges() 232 sc->ranges[i].size |= base_ranges[j++]; in mdionexus_ofw_fill_ranges() 236 free(base_ranges, M_THUNDER_MDIO); in mdionexus_ofw_fill_ranges()
|
| H A D | mrml_bridge.c | 187 cell_t *base_ranges; in mrmlb_ofw_fill_ranges() local 207 base_ranges = malloc(nbase_ranges, M_MRMLB, M_WAITOK); in mrmlb_ofw_fill_ranges() 208 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in mrmlb_ofw_fill_ranges() 214 sc->ranges[i].bus |= base_ranges[j++]; in mrmlb_ofw_fill_ranges() 219 sc->ranges[i].host |= base_ranges[j++]; in mrmlb_ofw_fill_ranges() 224 sc->ranges[i].size |= base_ranges[j++]; in mrmlb_ofw_fill_ranges() 228 free(base_ranges, M_MRMLB); in mrmlb_ofw_fill_ranges()
|
| /freebsd-14.2/sys/arm/arm/ |
| H A D | gic_fdt.c | 214 cell_t *base_ranges; in arm_gic_fill_ranges() local 238 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in arm_gic_fill_ranges() 239 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in arm_gic_fill_ranges() 245 sc->base.ranges[i].bus |= base_ranges[j++]; in arm_gic_fill_ranges() 250 sc->base.ranges[i].host |= base_ranges[j++]; in arm_gic_fill_ranges() 255 sc->base.ranges[i].size |= base_ranges[j++]; in arm_gic_fill_ranges() 259 free(base_ranges, M_DEVBUF); in arm_gic_fill_ranges()
|
| /freebsd-14.2/sys/arm64/arm64/ |
| H A D | gic_v3_fdt.c | 230 cell_t *base_ranges; in gic_v3_ofw_fill_ranges() local 258 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in gic_v3_ofw_fill_ranges() 259 OF_getencprop(parent, "ranges", base_ranges, nbase_ranges); in gic_v3_ofw_fill_ranges() 265 sc->ranges[i].bus |= base_ranges[j++]; in gic_v3_ofw_fill_ranges() 270 sc->ranges[i].host |= base_ranges[j++]; in gic_v3_ofw_fill_ranges() 275 sc->ranges[i].size |= base_ranges[j++]; in gic_v3_ofw_fill_ranges() 279 free(base_ranges, M_DEVBUF); in gic_v3_ofw_fill_ranges()
|
| /freebsd-14.2/sys/arm/mv/ |
| H A D | mv_pci_ctrl.c | 293 cell_t *base_ranges; in mv_pcib_ctrl_fill_ranges() local 313 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in mv_pcib_ctrl_fill_ranges() 314 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in mv_pcib_ctrl_fill_ranges() 320 sc->ranges[i].bus |= base_ranges[j++]; in mv_pcib_ctrl_fill_ranges() 325 sc->ranges[i].host |= base_ranges[j++]; in mv_pcib_ctrl_fill_ranges() 330 sc->ranges[i].size |= base_ranges[j++]; in mv_pcib_ctrl_fill_ranges() 334 free(base_ranges, M_DEVBUF); in mv_pcib_ctrl_fill_ranges()
|
| /freebsd-14.2/sys/dev/pci/ |
| H A D | pci_host_generic_fdt.c | 182 cell_t *base_ranges; in parse_pci_mem_ranges() local 206 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in parse_pci_mem_ranges() 207 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in parse_pci_mem_ranges() 210 attributes = (base_ranges[j++] >> SPACE_CODE_SHIFT) & \ in parse_pci_mem_ranges() 221 sc->ranges[i].pci_base |= base_ranges[j++]; in parse_pci_mem_ranges() 226 sc->ranges[i].phys_base |= base_ranges[j++]; in parse_pci_mem_ranges() 231 sc->ranges[i].size |= base_ranges[j++]; in parse_pci_mem_ranges() 252 free(base_ranges, M_DEVBUF); in parse_pci_mem_ranges()
|
| /freebsd-14.2/sys/dev/fdt/ |
| H A D | simplebus.c | 222 cell_t *base_ranges; in simplebus_fill_ranges() local 242 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in simplebus_fill_ranges() 243 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in simplebus_fill_ranges() 249 sc->ranges[i].bus |= base_ranges[j++]; in simplebus_fill_ranges() 254 sc->ranges[i].host |= base_ranges[j++]; in simplebus_fill_ranges() 259 sc->ranges[i].size |= base_ranges[j++]; in simplebus_fill_ranges() 263 free(base_ranges, M_DEVBUF); in simplebus_fill_ranges()
|
| /freebsd-14.2/sys/dev/dpaa/ |
| H A D | fman.c | 217 cell_t *base_ranges; in fman_fill_ranges() local 237 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in fman_fill_ranges() 238 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in fman_fill_ranges() 244 sc->ranges[i].bus |= base_ranges[j++]; in fman_fill_ranges() 249 sc->ranges[i].host |= base_ranges[j++]; in fman_fill_ranges() 254 sc->ranges[i].size |= base_ranges[j++]; in fman_fill_ranges() 258 free(base_ranges, M_DEVBUF); in fman_fill_ranges()
|
| /freebsd-14.2/sys/dev/ofw/ |
| H A D | ofw_pcib.c | 670 cell_t *base_ranges; in ofw_pcib_fill_ranges() local 687 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in ofw_pcib_fill_ranges() 688 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in ofw_pcib_fill_ranges() 691 ranges[i].pci_hi = base_ranges[j++]; in ofw_pcib_fill_ranges() 695 ranges[i].pci |= base_ranges[j++]; in ofw_pcib_fill_ranges() 700 ranges[i].host |= base_ranges[j++]; in ofw_pcib_fill_ranges() 705 ranges[i].size |= base_ranges[j++]; in ofw_pcib_fill_ranges() 709 free(base_ranges, M_DEVBUF); in ofw_pcib_fill_ranges()
|
| /freebsd-14.2/sys/dev/vt/hw/ofwfb/ |
| H A D | ofwfb.c | 332 cell_t base_ranges[64]; in decode_pci_ranges_host_addr() local 361 OF_getencprop(pcinode, "ranges", base_ranges, nbase_ranges); in decode_pci_ranges_host_addr() 366 ranges[i].bus |= base_ranges[j++]; in decode_pci_ranges_host_addr() 372 ranges[i].host |= base_ranges[j++]; in decode_pci_ranges_host_addr() 377 ranges[i].size |= base_ranges[j++]; in decode_pci_ranges_host_addr()
|