/freebsd/sys/dev/fdt/ |
H A D | fdt_common.c | 76 pcell_t addr_cells, size_cells, par_addr_cells; in fdt_get_range_by_busaddr() local 86 if ((fdt_addrsize_cells(node, &addr_cells, &size_cells)) != 0) in fdt_get_range_by_busaddr() 109 tuple_size = addr_cells + par_addr_cells + size_cells; in fdt_get_range_by_busaddr() 112 if (par_addr_cells > 2 || addr_cells > 2 || size_cells > 2) in fdt_get_range_by_busaddr() 138 *size = fdt_data_get((void *)rangesptr, size_cells); in fdt_get_range_by_busaddr() 150 pcell_t addr_cells, size_cells, par_addr_cells; in fdt_get_range() local 154 if ((fdt_addrsize_cells(node, &addr_cells, &size_cells)) != 0) in fdt_get_range() 178 if (par_addr_cells > 2 || addr_cells > 2 || size_cells > 2) in fdt_get_range() 198 *size = fdt_data_get((void *)rangesptr, size_cells); in fdt_get_range() 316 fdt_addrsize_cells(phandle_t node, int *addr_cells, int *size_cells) in fdt_addrsize_cells() argument [all …]
|
/freebsd/sys/arm64/broadcom/brcmmdio/ |
H A D | mdio_ns2_pcie_phy.c | 106 get_addr_size_cells(phandle_t node, pcell_t *addr_cells, pcell_t *size_cells) in get_addr_size_cells() argument 113 *size_cells = 2; in get_addr_size_cells() 115 OF_getencprop(node, "#size-cells", size_cells, sizeof(*size_cells)); in get_addr_size_cells() 136 pcell_t addr_cells, size_cells, buf[2]; in ns2_pcie_phy_fdt_attach() local 142 get_addr_size_cells(OF_parent(node), &addr_cells, &size_cells); in ns2_pcie_phy_fdt_attach() 143 if ((addr_cells != 1) || (size_cells != 0)) { in ns2_pcie_phy_fdt_attach()
|
/freebsd/sys/arm64/arm64/ |
H A D | gic_v3_fdt.c | 229 pcell_t addr_cells, host_cells, size_cells; in gic_v3_ofw_fill_ranges() local 240 size_cells = 2; in gic_v3_ofw_fill_ranges() 241 OF_getencprop(parent, "#size-cells", &size_cells, in gic_v3_ofw_fill_ranges() 242 sizeof(size_cells)); in gic_v3_ofw_fill_ranges() 245 *size_cellsp = size_cells; in gic_v3_ofw_fill_ranges() 252 (addr_cells + host_cells + size_cells); in gic_v3_ofw_fill_ranges() 273 for (k = 0; k < size_cells; k++) { in gic_v3_ofw_fill_ranges() 295 pcell_t addr_cells, size_cells; in gic_v3_ofw_bus_attach() local 302 &size_cells); in gic_v3_ofw_bus_attach() 337 ofw_bus_reg_to_rl(dev, node, addr_cells, size_cells, in gic_v3_ofw_bus_attach()
|
/freebsd/sys/arm64/cavium/ |
H A D | thunder_pcie_fdt.c | 116 get_addr_size_cells(phandle_t node, pcell_t *addr_cells, pcell_t *size_cells) in get_addr_size_cells() argument 123 *size_cells = 2; in get_addr_size_cells() 125 OF_getencprop(node, "#size-cells", size_cells, sizeof(*size_cells)); in get_addr_size_cells() 134 pcell_t addr_cells, size_cells; in thunder_pcie_ofw_bus_attach() local 138 get_addr_size_cells(parent, &addr_cells, &size_cells); in thunder_pcie_ofw_bus_attach() 150 ofw_bus_reg_to_rl(dev, node, addr_cells, size_cells, in thunder_pcie_ofw_bus_attach()
|
/freebsd/sys/powerpc/ofw/ |
H A D | ofw_machdep.c | 172 cell_t address_cells, size_cells; in parse_ofw_memory() local 187 if (OF_getencprop(phandle, "#size-cells", &size_cells, in parse_ofw_memory() 188 sizeof(size_cells)) < (ssize_t)sizeof(size_cells)) in parse_ofw_memory() 189 size_cells = 1; in parse_ofw_memory() 208 if (size_cells == 2) { in parse_ofw_memory() 238 cell_t address_cells, size_cells; in parse_numa_ofw_memory() local 253 if (OF_getencprop(phandle, "#size-cells", &size_cells, in parse_numa_ofw_memory() 254 sizeof(size_cells)) < (ssize_t)sizeof(size_cells)) in parse_numa_ofw_memory() [all...] |
/freebsd/sys/arm/arm/ |
H A D | gic_fdt.c | 62 pcell_t size_cells; member 224 sc->size_cells = 2; in arm_gic_fill_ranges() 225 OF_getencprop(node, "#size-cells", &sc->size_cells, in arm_gic_fill_ranges() 226 sizeof(sc->size_cells)); in arm_gic_fill_ranges() 232 (sc->addr_cells + host_cells + sc->size_cells); in arm_gic_fill_ranges() 253 for (k = 0; k < sc->size_cells; k++) { in arm_gic_fill_ranges() 294 sc->size_cells, &dinfo->rl); in arm_gic_add_children()
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_pcib.c | 401 info->size_cells = 2; in ofw_pcib_nranges() 408 OF_getencprop(node, "#size-cells", &(info->size_cells), in ofw_pcib_nranges() 409 sizeof(info->size_cells)); in ofw_pcib_nranges() 417 info->size_cells)); in ofw_pcib_nranges() 662 int host_address_cells = 1, pci_address_cells = 3, size_cells = 2; in ofw_pcib_fill_ranges() local 672 OF_getencprop(node, "#size-cells", &size_cells, sizeof(size_cells)); in ofw_pcib_fill_ranges() 678 (pci_address_cells + host_address_cells + size_cells); in ofw_pcib_fill_ranges() 696 for (k = 0; k < size_cells; k++) { in ofw_pcib_fill_ranges()
|
H A D | ofwpci.h | 38 pcell_t size_cells; member
|
/freebsd/sys/dev/pci/ |
H A D | pci_host_generic_fdt.c | 181 pcell_t attributes, size_cells; in parse_pci_mem_ranges() local 191 OF_getencprop(node, "#size-cells", &size_cells, in parse_pci_mem_ranges() 192 sizeof(size_cells)); in parse_pci_mem_ranges() 196 if (parent_addr_cells > 2 || pci_addr_cells != 3 || size_cells > 2) { in parse_pci_mem_ranges() 204 (parent_addr_cells + pci_addr_cells + size_cells); in parse_pci_mem_ranges() 228 for (k = 0; k < size_cells; k++) { in parse_pci_mem_ranges()
|
/freebsd/sys/dev/xdma/ |
H A D | xdma.c | 363 int addr_cells, size_cells; in xdma_handle_mem_node() local 368 &size_cells)) != 0) in xdma_handle_mem_node() 374 tuple_size = sizeof(pcell_t) * (addr_cells + size_cells); in xdma_handle_mem_node() 385 ret = fdt_data_to_res(regp, addr_cells, size_cells, in xdma_handle_mem_node() 391 regp += addr_cells + size_cells; in xdma_handle_mem_node()
|
/freebsd/stand/fdt/ |
H A D | fdt_loader_cmd.c | 709 fdt_reg_valid(uint32_t *reg, int len, int addr_cells, int size_cells) in fdt_reg_valid() argument 714 cells_in_tuple = (addr_cells + size_cells); in fdt_reg_valid() 726 if (size_cells == 2) in fdt_reg_valid() 745 uint32_t addr_cells, size_cells; in fdt_fixup_memory() local 791 size_cells = fdt32_to_cpu(*size_cellsp); in fdt_fixup_memory() 800 len = (addr_cells + size_cells) * reserved * sizeof(uint32_t); in fdt_fixup_memory() 820 if (size_cells == 2) in fdt_fixup_memory() 827 buf += sizeof(uint32_t) * size_cells; in fdt_fixup_memory() 850 len = (addr_cells + size_cells) * realmrno * sizeof(uint32_t); in fdt_fixup_memory() 869 if (size_cells == 2) in fdt_fixup_memory() [all …]
|
/freebsd/sys/powerpc/pseries/ |
H A D | platform_chrp.c | 403 cell_t interrupt_servers[32], addr_cells, size_cells, reg, bsp_reg; in chrp_cpuref_init() local 423 OF_getencprop(dev, "#size-cells", &size_cells, sizeof(size_cells)); in chrp_cpuref_init() 424 if (addr_cells != 1 || size_cells != 0) in chrp_cpuref_init()
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | lbc.c | 372 pcell_t addr_cells, size_cells; in fdt_lbc_reg_decode() local 376 if (fdt_addrsize_cells(OF_parent(node), &addr_cells, &size_cells) != 0) in fdt_lbc_reg_decode() 379 tuple_size = sizeof(pcell_t) * (addr_cells + size_cells); in fdt_lbc_reg_decode() 382 debugf("addr_cells = %d, size_cells = %d\n", addr_cells, size_cells); in fdt_lbc_reg_decode() 400 for (j = 0; j < size_cells; j++) { in fdt_lbc_reg_decode() 404 reg += addr_cells - 1 + size_cells; in fdt_lbc_reg_decode() 560 debugf("par addr_cells = %d, addr_cells = %d, size_cells = %d, " in lbc_attach()
|
/freebsd/sys/arm/mv/ |
H A D | mv_common.c | 2520 pcell_t addr_cells, par_addr_cells, size_cells; in fdt_get_ranges() local 2527 if ((fdt_addrsize_cells(node, &addr_cells, &size_cells)) != 0) in fdt_get_ranges() 2535 size_cells); in fdt_get_ranges() 2548 if (par_addr_cells > 2 || addr_cells > 2 || size_cells > 2) in fdt_get_ranges() 2686 int addr_cells, size_cells; in fdt_win_process_child() local 2691 &size_cells)) in fdt_win_process_child() 2694 if ((sizeof(pcell_t) * (addr_cells + size_cells)) > sizeof(reg)) in fdt_win_process_child() 2703 fdt_data_get(®[addr_cells], size_cells); in fdt_win_process_child() 2816 pcell_t par_addr_cells, addr_cells, size_cells; in fdt_fixup_ranges() local 2823 if (fdt_addrsize_cells(node, &addr_cells, &size_cells) == 0 && in fdt_fixup_ranges() [all …]
|