/freebsd/sys/dev/vnic/ |
H A D | thunder_mdio_fdt.c | 194 cell_t *base_ranges; in mdionexus_ofw_fill_ranges() local 214 base_ranges = malloc(nbase_ranges, M_THUNDER_MDIO, M_WAITOK); in mdionexus_ofw_fill_ranges() 215 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in mdionexus_ofw_fill_ranges() 221 sc->ranges[i].bus |= base_ranges[j++]; in mdionexus_ofw_fill_ranges() 226 sc->ranges[i].host |= base_ranges[j++]; in mdionexus_ofw_fill_ranges() 231 sc->ranges[i].size |= base_ranges[j++]; in mdionexus_ofw_fill_ranges() 235 free(base_ranges, M_THUNDER_MDIO); in mdionexus_ofw_fill_ranges()
|
H A D | mrml_bridge.c | 186 cell_t *base_ranges; in mrmlb_ofw_fill_ranges() local 206 base_ranges = malloc(nbase_ranges, M_MRMLB, M_WAITOK); in mrmlb_ofw_fill_ranges() 207 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in mrmlb_ofw_fill_ranges() 213 sc->ranges[i].bus |= base_ranges[j++]; in mrmlb_ofw_fill_ranges() 218 sc->ranges[i].host |= base_ranges[j++]; in mrmlb_ofw_fill_ranges() 223 sc->ranges[i].size |= base_ranges[j++]; in mrmlb_ofw_fill_ranges() 227 free(base_ranges, M_MRMLB); in mrmlb_ofw_fill_ranges()
|
/freebsd/sys/arm/arm/ |
H A D | gic_fdt.c | 213 cell_t *base_ranges; in arm_gic_fill_ranges() local 237 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in arm_gic_fill_ranges() 238 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in arm_gic_fill_ranges() 244 sc->base.ranges[i].bus |= base_ranges[j++]; in arm_gic_fill_ranges() 249 sc->base.ranges[i].host |= base_ranges[j++]; in arm_gic_fill_ranges() 254 sc->base.ranges[i].size |= base_ranges[j++]; in arm_gic_fill_ranges() 258 free(base_ranges, M_DEVBUF); in arm_gic_fill_ranges()
|
/freebsd/sys/arm64/arm64/ |
H A D | gic_v3_fdt.c | 229 cell_t *base_ranges; in gic_v3_ofw_fill_ranges() local 257 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in gic_v3_ofw_fill_ranges() 258 OF_getencprop(parent, "ranges", base_ranges, nbase_ranges); in gic_v3_ofw_fill_ranges() 264 sc->ranges[i].bus |= base_ranges[j++]; in gic_v3_ofw_fill_ranges() 269 sc->ranges[i].host |= base_ranges[j++]; in gic_v3_ofw_fill_ranges() 274 sc->ranges[i].size |= base_ranges[j++]; in gic_v3_ofw_fill_ranges() 278 free(base_ranges, M_DEVBUF); in gic_v3_ofw_fill_ranges()
|
/freebsd/sys/arm/mv/ |
H A D | mv_pci_ctrl.c | 292 cell_t *base_ranges; in mv_pcib_ctrl_fill_ranges() local 312 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in mv_pcib_ctrl_fill_ranges() 313 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in mv_pcib_ctrl_fill_ranges() 319 sc->ranges[i].bus |= base_ranges[j++]; in mv_pcib_ctrl_fill_ranges() 324 sc->ranges[i].host |= base_ranges[j++]; in mv_pcib_ctrl_fill_ranges() 329 sc->ranges[i].size |= base_ranges[j++]; in mv_pcib_ctrl_fill_ranges() 333 free(base_ranges, M_DEVBUF); in mv_pcib_ctrl_fill_ranges()
|
/freebsd/sys/dev/pci/ |
H A D | pci_host_generic_fdt.c | 182 cell_t *base_ranges; in parse_pci_mem_ranges() local 205 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in parse_pci_mem_ranges() 206 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in parse_pci_mem_ranges() 209 attributes = (base_ranges[j++] >> SPACE_CODE_SHIFT) & \ in parse_pci_mem_ranges() 220 sc->ranges[i].pci_base |= base_ranges[j++]; in parse_pci_mem_ranges() 225 sc->ranges[i].phys_base |= base_ranges[j++]; in parse_pci_mem_ranges() 230 sc->ranges[i].size |= base_ranges[j++]; in parse_pci_mem_ranges() 241 free(base_ranges, M_DEVBUF); in parse_pci_mem_ranges()
|
/freebsd/sys/dev/dpaa/ |
H A D | fman.c | 216 cell_t *base_ranges; in fman_fill_ranges() local 236 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in fman_fill_ranges() 237 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in fman_fill_ranges() 243 sc->ranges[i].bus |= base_ranges[j++]; in fman_fill_ranges() 248 sc->ranges[i].host |= base_ranges[j++]; in fman_fill_ranges() 253 sc->ranges[i].size |= base_ranges[j++]; in fman_fill_ranges() 257 free(base_ranges, M_DEVBUF); in fman_fill_ranges()
|
/freebsd/sys/dev/fdt/ |
H A D | simplebus.c | 224 cell_t *base_ranges; in simplebus_fill_ranges() local 244 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in simplebus_fill_ranges() 245 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in simplebus_fill_ranges() 251 sc->ranges[i].bus |= base_ranges[j++]; in simplebus_fill_ranges() 256 sc->ranges[i].host |= base_ranges[j++]; in simplebus_fill_ranges() 261 sc->ranges[i].size |= base_ranges[j++]; in simplebus_fill_ranges() 265 free(base_ranges, M_DEVBUF); in simplebus_fill_ranges()
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_pcib.c | 683 cell_t *base_ranges; in ofw_pcib_fill_ranges() local 700 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in ofw_pcib_fill_ranges() 701 OF_getencprop(node, "ranges", base_ranges, nbase_ranges); in ofw_pcib_fill_ranges() 704 ranges[i].pci_hi = base_ranges[j++]; in ofw_pcib_fill_ranges() 708 ranges[i].pci |= base_ranges[j++]; in ofw_pcib_fill_ranges() 713 ranges[i].host |= base_ranges[j++]; in ofw_pcib_fill_ranges() 718 ranges[i].size |= base_ranges[j++]; in ofw_pcib_fill_ranges() 722 free(base_ranges, M_DEVBUF); in ofw_pcib_fill_ranges()
|
/freebsd/sys/dev/vt/hw/ofwfb/ |
H A D | ofwfb.c | 319 cell_t base_ranges[64]; in decode_pci_ranges_host_addr() local 348 OF_getencprop(pcinode, "ranges", base_ranges, nbase_ranges); in decode_pci_ranges_host_addr() 353 ranges[i].bus |= base_ranges[j++]; in decode_pci_ranges_host_addr() 359 ranges[i].host |= base_ranges[j++]; in decode_pci_ranges_host_addr() 364 ranges[i].size |= base_ranges[j++]; in decode_pci_ranges_host_addr()
|