| /freebsd-13.1/sys/dev/vnic/ |
| H A D | thunder_mdio_fdt.c | 198 cell_t *base_ranges; in mdionexus_ofw_fill_ranges() local 218 base_ranges = malloc(nbase_ranges, M_THUNDER_MDIO, M_WAITOK); in mdionexus_ofw_fill_ranges() 219 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in mdionexus_ofw_fill_ranges() 225 sc->ranges[i].bus |= base_ranges[j++]; in mdionexus_ofw_fill_ranges() 230 sc->ranges[i].host |= base_ranges[j++]; in mdionexus_ofw_fill_ranges() 235 sc->ranges[i].size |= base_ranges[j++]; in mdionexus_ofw_fill_ranges() 239 free(base_ranges, M_THUNDER_MDIO); in mdionexus_ofw_fill_ranges()
|
| H A D | mrml_bridge.c | 191 cell_t *base_ranges; in mrmlb_ofw_fill_ranges() local 211 base_ranges = malloc(nbase_ranges, M_MRMLB, M_WAITOK); in mrmlb_ofw_fill_ranges() 212 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in mrmlb_ofw_fill_ranges() 218 sc->ranges[i].bus |= base_ranges[j++]; in mrmlb_ofw_fill_ranges() 223 sc->ranges[i].host |= base_ranges[j++]; in mrmlb_ofw_fill_ranges() 228 sc->ranges[i].size |= base_ranges[j++]; in mrmlb_ofw_fill_ranges() 232 free(base_ranges, M_MRMLB); in mrmlb_ofw_fill_ranges()
|
| /freebsd-13.1/sys/arm/arm/ |
| H A D | gic_fdt.c | 211 cell_t *base_ranges; in arm_gic_fill_ranges() local 235 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in arm_gic_fill_ranges() 236 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in arm_gic_fill_ranges() 242 sc->base.ranges[i].bus |= base_ranges[j++]; in arm_gic_fill_ranges() 247 sc->base.ranges[i].host |= base_ranges[j++]; in arm_gic_fill_ranges() 252 sc->base.ranges[i].size |= base_ranges[j++]; in arm_gic_fill_ranges() 256 free(base_ranges, M_DEVBUF); in arm_gic_fill_ranges()
|
| /freebsd-13.1/sys/mips/ingenic/ |
| H A D | jz4780_nemc.c | 197 cell_t *base_ranges; in jz4780_nemc_fill_ranges() local 217 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in jz4780_nemc_fill_ranges() 218 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in jz4780_nemc_fill_ranges() 224 sc->ranges[i].bus |= base_ranges[j++]; in jz4780_nemc_fill_ranges() 229 sc->ranges[i].host |= base_ranges[j++]; in jz4780_nemc_fill_ranges() 234 sc->ranges[i].size |= base_ranges[j++]; in jz4780_nemc_fill_ranges() 238 free(base_ranges, M_DEVBUF); in jz4780_nemc_fill_ranges()
|
| /freebsd-13.1/sys/arm/mv/ |
| H A D | mv_pci_ctrl.c | 297 cell_t *base_ranges; in mv_pcib_ctrl_fill_ranges() local 317 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in mv_pcib_ctrl_fill_ranges() 318 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in mv_pcib_ctrl_fill_ranges() 324 sc->ranges[i].bus |= base_ranges[j++]; in mv_pcib_ctrl_fill_ranges() 329 sc->ranges[i].host |= base_ranges[j++]; in mv_pcib_ctrl_fill_ranges() 334 sc->ranges[i].size |= base_ranges[j++]; in mv_pcib_ctrl_fill_ranges() 338 free(base_ranges, M_DEVBUF); in mv_pcib_ctrl_fill_ranges()
|
| /freebsd-13.1/sys/dev/pci/ |
| H A D | pci_host_generic_fdt.c | 190 cell_t *base_ranges; in parse_pci_mem_ranges() local 214 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in parse_pci_mem_ranges() 215 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in parse_pci_mem_ranges() 218 attributes = (base_ranges[j++] >> SPACE_CODE_SHIFT) & \ in parse_pci_mem_ranges() 229 sc->ranges[i].pci_base |= base_ranges[j++]; in parse_pci_mem_ranges() 234 sc->ranges[i].phys_base |= base_ranges[j++]; in parse_pci_mem_ranges() 239 sc->ranges[i].size |= base_ranges[j++]; in parse_pci_mem_ranges() 260 free(base_ranges, M_DEVBUF); in parse_pci_mem_ranges()
|
| /freebsd-13.1/sys/dev/fdt/ |
| H A D | simplebus.c | 219 cell_t *base_ranges; in simplebus_fill_ranges() local 239 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in simplebus_fill_ranges() 240 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in simplebus_fill_ranges() 246 sc->ranges[i].bus |= base_ranges[j++]; in simplebus_fill_ranges() 251 sc->ranges[i].host |= base_ranges[j++]; in simplebus_fill_ranges() 256 sc->ranges[i].size |= base_ranges[j++]; in simplebus_fill_ranges() 260 free(base_ranges, M_DEVBUF); in simplebus_fill_ranges()
|
| /freebsd-13.1/sys/dev/dpaa/ |
| H A D | fman.c | 221 cell_t *base_ranges; in fman_fill_ranges() local 241 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in fman_fill_ranges() 242 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in fman_fill_ranges() 248 sc->ranges[i].bus |= base_ranges[j++]; in fman_fill_ranges() 253 sc->ranges[i].host |= base_ranges[j++]; in fman_fill_ranges() 258 sc->ranges[i].size |= base_ranges[j++]; in fman_fill_ranges() 262 free(base_ranges, M_DEVBUF); in fman_fill_ranges()
|
| /freebsd-13.1/sys/dev/ofw/ |
| H A D | ofwpci.c | 655 cell_t *base_ranges; in ofw_pci_fill_ranges() local 672 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in ofw_pci_fill_ranges() 673 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in ofw_pci_fill_ranges() 676 ranges[i].pci_hi = base_ranges[j++]; in ofw_pci_fill_ranges() 680 ranges[i].pci |= base_ranges[j++]; in ofw_pci_fill_ranges() 685 ranges[i].host |= base_ranges[j++]; in ofw_pci_fill_ranges() 690 ranges[i].size |= base_ranges[j++]; in ofw_pci_fill_ranges() 694 free(base_ranges, M_DEVBUF); in ofw_pci_fill_ranges()
|
| /freebsd-13.1/sys/dev/vt/hw/ofwfb/ |
| H A D | ofwfb.c | 322 cell_t base_ranges[64]; in decode_pci_ranges_host_addr() local 351 OF_getencprop(pcinode, "ranges", base_ranges, nbase_ranges); in decode_pci_ranges_host_addr() 356 ranges[i].bus |= base_ranges[j++]; in decode_pci_ranges_host_addr() 362 ranges[i].host |= base_ranges[j++]; in decode_pci_ranges_host_addr() 367 ranges[i].size |= base_ranges[j++]; in decode_pci_ranges_host_addr()
|