Home
last modified time | relevance | path

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

/arch/powerpc/boot/
Ddevtree.c24 int naddr, nsize, i; in dt_fixup_memory() local
28 if (getprop(root, "#address-cells", &naddr, sizeof(naddr)) < 0) in dt_fixup_memory()
29 naddr = 2; in dt_fixup_memory()
30 if (naddr < 1 || naddr > 2) in dt_fixup_memory()
31 fatal("Can't cope with #address-cells == %d in /\n\r", naddr); in dt_fixup_memory()
39 if (naddr == 2) in dt_fixup_memory()
53 for (i = 1; i < (naddr + nsize); i++) in dt_fixup_memory()
57 setprop(memory, "reg", memreg, (naddr + nsize)*sizeof(u32)); in dt_fixup_memory()
136 void dt_get_reg_format(void *node, u32 *naddr, u32 *nsize) in dt_get_reg_format() argument
138 if (getprop(node, "#address-cells", naddr, 4) != 4) in dt_get_reg_format()
[all …]
Dfsl-soc.c28 u32 naddr; in fsl_get_immr() local
32 naddr = prop_buf[0]; in fsl_get_immr()
34 naddr = 2; in fsl_get_immr()
36 if (naddr != 1 && naddr != 2) in fsl_get_immr()
45 if (naddr == 2 && prop_buf[1] != 0) in fsl_get_immr()
48 if (!dt_xlate_addr(soc, prop_buf + naddr, 8, &ret)) in fsl_get_immr()
Dcuboot-pq2.c56 u32 naddr, nsize; in update_cs_ranges() local
64 dt_get_reg_format(bus_node, &naddr, &nsize); in update_cs_ranges()
65 if (naddr != 2 || nsize != 1) in update_cs_ranges()
72 dt_get_reg_format(parent_node, &naddr, &nsize); in update_cs_ranges()
73 if (naddr != 1 || nsize != 1) in update_cs_ranges()
131 u32 naddr, nsize, mem_pow2, mem_mask; in fixup_pci() local
146 dt_get_reg_format(node, &naddr, &nsize); in fixup_pci()
147 if (naddr != 3 || nsize != 2) in fixup_pci()
154 dt_get_reg_format(parent_node, &naddr, &nsize); in fixup_pci()
155 if (naddr != 1 || nsize != 1) in fixup_pci()
Dops.h98 void dt_get_reg_format(void *node, u32 *naddr, u32 *nsize);
/arch/powerpc/platforms/maple/
Dsetup.c221 int naddr, n, i, opplen, has_isus = 0; in maple_init_IRQ() local
248 naddr = of_n_addr_cells(root); in maple_init_IRQ()
251 openpic_addr = of_read_number(opprop, naddr); in maple_init_IRQ()
252 has_isus = (opplen > naddr); in maple_init_IRQ()
278 for (n = 0, i = naddr; i < opplen; i += naddr, n++) { in maple_init_IRQ()
279 unsigned long isuaddr = of_read_number(opprop + i, naddr); in maple_init_IRQ()
/arch/powerpc/platforms/pseries/
Dsetup.c130 int naddr; in pseries_setup_i8259_cascade() local
161 naddr = of_n_addr_cells(np); in pseries_setup_i8259_cascade()
162 intack = addrp[naddr-1]; in pseries_setup_i8259_cascade()
163 if (naddr > 1) in pseries_setup_i8259_cascade()
164 intack |= ((unsigned long)addrp[naddr-2]) << 32; in pseries_setup_i8259_cascade()
178 int naddr, n, i, opplen; in pseries_mpic_init_IRQ() local
182 naddr = of_n_addr_cells(np); in pseries_mpic_init_IRQ()
185 openpic_addr = of_read_number(opprop, naddr); in pseries_mpic_init_IRQ()
199 for (n = 0, i = naddr; i < opplen; i += naddr, n++) { in pseries_mpic_init_IRQ()
200 unsigned long isuaddr = of_read_number(opprop + i, naddr); in pseries_mpic_init_IRQ()
/arch/powerpc/sysdev/
Dfsl_soc.c60 u32 naddr; in get_immrbase() local
64 naddr = *prop; in get_immrbase()
66 naddr = 2; in get_immrbase()
70 immrbase = of_translate_address(soc, prop + naddr); in get_immrbase()
/arch/powerpc/platforms/pasemi/
Dsetup.c192 int naddr, opplen; in pas_init_IRQ() local
217 naddr = of_n_addr_cells(root); in pas_init_IRQ()
224 openpic_addr = of_read_number(opprop, naddr); in pas_init_IRQ()
/arch/powerpc/platforms/cell/
Diommu.c898 int i, len, best, naddr, nsize, pna, range_size; in cell_iommu_get_fixed_address() local
902 naddr = of_n_addr_cells(np); in cell_iommu_get_fixed_address()
923 range_size = naddr + nsize + pna; in cell_iommu_get_fixed_address()
931 cpu_addr = of_translate_dma_address(np, ranges + i + naddr); in cell_iommu_get_fixed_address()
932 size = of_read_number(ranges + i + naddr + pna, nsize); in cell_iommu_get_fixed_address()
941 dev_addr = of_read_number(ranges + best, naddr); in cell_iommu_get_fixed_address()
/arch/mips/include/asm/octeon/
Dcvmx-npi-defs.h1216 uint64_t naddr:61; member
1231 uint64_t naddr:61; member