/Linux-v5.4/drivers/of/ |
D | fdt_address.c | 43 int na, int ns, int pna); 71 int na, int ns, int pna) in fdt_bus_default_map() argument 76 s = of_read_number(range + na + pna, ns); in fdt_bus_default_map() 112 int na, int ns, int pna, const char *rprop) in fdt_translate_one() argument 124 memset(addr, 0, pna * 4); in fdt_translate_one() 133 rone = na + pna + ns; in fdt_translate_one() 135 offset = bus->map(addr, ranges, na, ns, pna); in fdt_translate_one() 143 memcpy(addr, ranges + na, 4 * pna); in fdt_translate_one() 146 of_dump_addr("parent translation for:", addr, pna); in fdt_translate_one() 150 return pbus->translate(addr, offset, pna); in fdt_translate_one() [all …]
|
D | address.c | 48 int na, int ns, int pna); 67 int na, int ns, int pna) in of_bus_default_map() argument 72 s = of_read_number(range + na + pna, ns); in of_bus_default_map() 146 int pna) in of_bus_pci_map() argument 160 s = of_read_number(range + na + pna, ns); in of_bus_pci_map() 242 parser->pna = of_n_addr_cells(node); in parser_init() 243 parser->np = parser->pna + na + ns; in parser_init() 284 range->size = of_read_number(parser->range + parser->pna + na, ns); in of_pci_range_parser_one() 297 size = of_read_number(parser->range + parser->pna + na, ns); in of_pci_range_parser_one() 387 int pna) in of_bus_isa_map() argument [all …]
|
/Linux-v5.4/arch/sparc/kernel/ |
D | of_device_32.c | 51 int na, int ns, int pna) in of_bus_pci_map() argument 60 if (of_out_of_range(addr + 1, range + 1, range + na + pna, in of_bus_pci_map() 65 memcpy(result, range + na, pna * 4); in of_bus_pci_map() 69 result[pna - 1 - i] += in of_bus_pci_map() 73 memcpy(addr, result, pna * 4); in of_bus_pci_map() 123 int na, int ns, int pna) in of_bus_ambapp_map() argument 125 return of_bus_default_map(addr, range, na, ns, pna); in of_bus_ambapp_map() 192 int na, int ns, int pna) in build_one_resource() argument 203 memset(result, 0, pna * 4); in build_one_resource() 205 result[pna - 1 - i] = in build_one_resource() [all …]
|
D | of_device_64.c | 89 int na, int ns, int pna) in of_bus_simba_map() argument 104 int na, int ns, int pna) in of_bus_pci_map() argument 123 if (of_out_of_range(addr + 1, range + 1, range + na + pna, in of_bus_pci_map() 128 memcpy(result, range + na, pna * 4); in of_bus_pci_map() 132 result[pna - 1 - i] += in of_bus_pci_map() 136 memcpy(addr, result, pna * 4); in of_bus_pci_map() 246 int na, int ns, int pna) in build_one_resource() argument 256 memset(result, 0, pna * 4); in build_one_resource() 258 result[pna - 1 - i] = in build_one_resource() 261 memcpy(addr, result, pna * 4); in build_one_resource() [all …]
|
D | of_device_common.c | 112 int of_bus_default_map(u32 *addr, const u32 *range, int na, int ns, int pna) in of_bus_default_map() argument 122 if (of_out_of_range(addr, range, range + na + pna, na, ns)) in of_bus_default_map() 126 memcpy(result, range + na, pna * 4); in of_bus_default_map() 130 result[pna - 1 - i] += in of_bus_default_map() 134 memcpy(addr, result, pna * 4); in of_bus_default_map()
|
D | of_device_common.h | 17 int of_bus_default_map(u32 *addr, const u32 *range, int na, int ns, int pna); 33 int na, int ns, int pna);
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | isa-bridge.c | 176 u32 na, ns, pna; in isa_bridge_init_non_pci() local 183 pna = of_n_addr_cells(np); in isa_bridge_init_non_pci() 197 rs = na + ns + pna; in isa_bridge_init_non_pci() 212 size = of_read_number(ranges + i + na + pna, ns); in isa_bridge_init_non_pci()
|
/Linux-v5.4/drivers/bus/ |
D | uniphier-system-bus.c | 182 int pna, bank, rlen, rone, ret; in uniphier_system_bus_probe() local 194 pna = of_n_addr_cells(dev->of_node); in uniphier_system_bus_probe() 223 rone = pna + 2; in uniphier_system_bus_probe() 231 ranges += pna; in uniphier_system_bus_probe()
|
/Linux-v5.4/arch/powerpc/platforms/cell/ |
D | iommu.c | 797 int i, len, best, naddr, nsize, pna, range_size; in cell_iommu_get_fixed_address() local 825 pna = of_n_addr_cells(np); in cell_iommu_get_fixed_address() 826 range_size = naddr + nsize + pna; in cell_iommu_get_fixed_address() 835 size = of_read_number(ranges + i + naddr + pna, nsize); in cell_iommu_get_fixed_address()
|
/Linux-v5.4/include/linux/ |
D | of_address.h | 14 int pna; member
|
/Linux-v5.4/drivers/pci/controller/ |
D | pci-mvebu.c | 734 int rlen, nranges, rangesz, pna, i; in mvebu_get_tgt_attr() local 743 pna = of_n_addr_cells(np); in mvebu_get_tgt_attr() 744 rangesz = pna + na + ns; in mvebu_get_tgt_attr() 750 u64 cpuaddr = of_read_number(range + na, pna); in mvebu_get_tgt_attr()
|
/Linux-v5.4/arch/powerpc/platforms/4xx/ |
D | pci.c | 98 int pna = of_n_addr_cells(hose->dn); in ppc4xx_parse_dma_ranges() local 99 int np = pna + 5; in ppc4xx_parse_dma_ranges() 117 size = of_read_number(ranges + pna + 3, 2); in ppc4xx_parse_dma_ranges()
|