Home
last modified time | relevance | path

Searched refs:base_ranges (Results 1 – 10 of 10) sorted by relevance

/freebsd-13.1/sys/dev/vnic/
H A Dthunder_mdio_fdt.c198 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 Dmrml_bridge.c191 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 Dgic_fdt.c211 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 Djz4780_nemc.c197 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 Dmv_pci_ctrl.c297 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 Dpci_host_generic_fdt.c190 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 Dsimplebus.c219 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 Dfman.c221 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 Dofwpci.c655 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 Dofwfb.c322 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()