Lines Matching refs:na

994 #define OF_CHECK_COUNTS(na, ns) (((na) > 0 && (na) <= OF_MAX_ADDR_CELLS) && \  argument
999 static void of_dump_addr(const char *s, const fdt32_t *addr, int na) in of_dump_addr() argument
1002 while(na--) in of_dump_addr()
1007 static void of_dump_addr(const char *s, const fdt32_t *addr, int na) { } in of_dump_addr() argument
1047 int na, int ns, int pna);
1048 int (*translate)(fdt32_t *addr, u64 offset, int na);
1070 int na, int ns, int pna) in of_bus_default_map() argument
1074 cp = fdt_read_number(range, na); in of_bus_default_map()
1075 s = fdt_read_number(range + na + pna, ns); in of_bus_default_map()
1076 da = fdt_read_number(addr, na); in of_bus_default_map()
1085 static int of_bus_default_translate(fdt32_t *addr, u64 offset, int na) in of_bus_default_translate() argument
1087 u64 a = fdt_read_number(addr, na); in of_bus_default_translate()
1088 memset(addr, 0, na * 4); in of_bus_default_translate()
1090 if (na > 1) in of_bus_default_translate()
1091 addr[na - 2] = cpu_to_fdt32(a >> 32); in of_bus_default_translate()
1092 addr[na - 1] = cpu_to_fdt32(a & 0xffffffffu); in of_bus_default_translate()
1121 int na, int ns, int pna) in of_bus_isa_map() argument
1129 cp = fdt_read_number(range + 1, na - 1); in of_bus_isa_map()
1130 s = fdt_read_number(range + na + pna, ns); in of_bus_isa_map()
1131 da = fdt_read_number(addr + 1, na - 1); in of_bus_isa_map()
1140 static int of_bus_isa_translate(fdt32_t *addr, u64 offset, int na) in of_bus_isa_translate() argument
1142 return of_bus_default_translate(addr + 1, offset, na - 1); in of_bus_isa_translate()
1194 int na, int ns, int pna, const char *rprop) in of_translate_one() argument
1215 offset = fdt_read_number(addr, na); in of_translate_one()
1225 rone = na + pna + ns; in of_translate_one()
1227 offset = bus->map(addr, ranges, na, ns, pna); in of_translate_one()
1235 memcpy(addr, ranges + na, 4 * pna); in of_translate_one()
1261 int na, ns, pna, pns; in __of_translate_address() local
1274 bus->count_cells(blob, parent, &na, &ns); in __of_translate_address()
1275 if (!OF_CHECK_COUNTS(na, ns)) { in __of_translate_address()
1280 memcpy(addr, in_addr, na * 4); in __of_translate_address()
1283 bus->name, na, ns, fdt_get_name(blob, parent, NULL)); in __of_translate_address()
1284 of_dump_addr("OF: translating address:", addr, na); in __of_translate_address()
1295 result = fdt_read_number(addr, na); in __of_translate_address()
1313 addr, na, ns, pna, rprop)) in __of_translate_address()
1317 na = pna; in __of_translate_address()
1321 of_dump_addr("OF: one level translation:", addr, na); in __of_translate_address()
1346 int na, ns, pna, pns; in fdt_get_dma_range() local
1389 bus_node->count_cells(blob, node, &na, &ns); in fdt_get_dma_range()
1390 if (!OF_CHECK_COUNTS(na, ns)) { in fdt_get_dma_range()
1406 *bus = fdt_read_number(ranges, na); in fdt_get_dma_range()
1407 *cpu = fdt_translate_dma_address(blob, node, ranges + na); in fdt_get_dma_range()
1408 *size = fdt_read_number(ranges + na + pna, ns); in fdt_get_dma_range()