Home
last modified time | relevance | path

Searched refs:na (Results 1 – 9 of 9) sorted by relevance

/arch/sparc/kernel/
Dof_device_32.c50 int na, int ns, int pna) in of_bus_pci_map() argument
59 if (of_out_of_range(addr + 1, range + 1, range + na + pna, in of_bus_pci_map()
60 na - 1, ns)) in of_bus_pci_map()
64 memcpy(result, range + na, pna * 4); in of_bus_pci_map()
67 for (i = 0; i < na - 1; i++) in of_bus_pci_map()
69 (addr[na - 1 - i] - in of_bus_pci_map()
70 range[na - 1 - i]); in of_bus_pci_map()
122 int na, int ns, int pna) in of_bus_ambapp_map() argument
124 return of_bus_default_map(addr, range, na, ns, pna); in of_bus_ambapp_map()
191 int na, int ns, int pna) in build_one_resource() argument
[all …]
Dof_device_common.c96 const u32 *size, int na, int ns) in of_out_of_range() argument
98 u64 a = of_read_addr(addr, na); in of_out_of_range()
99 u64 b = of_read_addr(base, na); in of_out_of_range()
111 int of_bus_default_map(u32 *addr, const u32 *range, int na, int ns, int pna) in of_bus_default_map() argument
121 if (of_out_of_range(addr, range, range + na + pna, na, ns)) in of_bus_default_map()
125 memcpy(result, range + na, pna * 4); in of_bus_default_map()
128 for (i = 0; i < na; i++) in of_bus_default_map()
130 (addr[na - 1 - i] - in of_bus_default_map()
131 range[na - 1 - i]); in of_bus_default_map()
Dof_device_64.c88 int na, int ns, int pna) in of_bus_simba_map() argument
103 int na, int ns, int pna) in of_bus_pci_map() argument
122 if (of_out_of_range(addr + 1, range + 1, range + na + pna, in of_bus_pci_map()
123 na - 1, ns)) in of_bus_pci_map()
127 memcpy(result, range + na, pna * 4); in of_bus_pci_map()
130 for (i = 0; i < na - 1; i++) in of_bus_pci_map()
132 (addr[na - 1 - i] - in of_bus_pci_map()
133 range[na - 1 - i]); in of_bus_pci_map()
245 int na, int ns, int pna) in build_one_resource() argument
256 for (i = 0; i < na; i++) in build_one_resource()
[all …]
Dof_device_common.h16 const u32 *size, int na, int ns);
17 int of_bus_default_map(u32 *addr, const u32 *range, int na, int ns, int pna);
33 int na, int ns, int pna);
/arch/powerpc/boot/
Dsimpleboot.c31 const u32 *na, *ns, *reg, *timebase; in platform_init() local
43 na = fdt_getprop(_dtb_start, node, "#address-cells", &size); in platform_init()
44 if (!na || (size != 4)) in platform_init()
56 if (size < (*na+*ns) * sizeof(u32)) in platform_init()
60 for (i = 0; i < *na; i++) in platform_init()
/arch/powerpc/kernel/
Disa-bridge.c180 u32 na, ns, pna; in isa_bridge_init_non_pci() local
188 if (of_property_read_u32(np, "#address-cells", &na) || in isa_bridge_init_non_pci()
196 if (na != 2 || ns != 1) { in isa_bridge_init_non_pci()
201 rs = na + ns + pna; in isa_bridge_init_non_pci()
216 size = of_read_number(ranges + i + na + pna, ns); in isa_bridge_init_non_pci()
217 pbasep = ranges + i + na; in isa_bridge_init_non_pci()
/arch/powerpc/platforms/chrp/
Dsetup.c389 int na = 1; in chrp_find_openpic() local
397 na = of_n_addr_cells(root); in chrp_find_openpic()
399 if (opprop && oplen >= na * sizeof(unsigned int)) { in chrp_find_openpic()
400 opaddr = opprop[na-1]; /* assume 32-bit */ in chrp_find_openpic()
401 oplen /= na * sizeof(unsigned int); in chrp_find_openpic()
445 j = na - 1; in chrp_find_openpic()
448 j += na; in chrp_find_openpic()
/arch/powerpc/perf/
Dpower4-pmu.c328 int i, j, na; in p4_get_alternatives() local
331 na = 1; in p4_get_alternatives()
350 alt[na++] = ppc_inst_cmpl[j]; in p4_get_alternatives()
355 return na; in p4_get_alternatives()
/arch/ia64/include/asm/
Dprocessor.h132 __u64 na : 1; member