Lines Matching refs:pna
95 int na, int ns, int pna);
129 int na, int ns, int pna) in of_bus_default_map() argument
139 if (of_out_of_range(addr, range, range + na + pna, na, ns)) in of_bus_default_map()
143 memcpy(result, range + na, pna * 4); in of_bus_default_map()
147 result[pna - 1 - i] += in of_bus_default_map()
151 memcpy(addr, result, pna * 4); in of_bus_default_map()
195 int na, int ns, int pna) in of_bus_pci_map() argument
204 if (of_out_of_range(addr + 1, range + 1, range + na + pna, in of_bus_pci_map()
209 memcpy(result, range + na, pna * 4); in of_bus_pci_map()
213 result[pna - 1 - i] += in of_bus_pci_map()
217 memcpy(addr, result, pna * 4); in of_bus_pci_map()
262 static int of_bus_sbus_map(u32 *addr, const u32 *range, int na, int ns, int pna) in of_bus_sbus_map() argument
264 return of_bus_default_map(addr, range, na, ns, pna); in of_bus_sbus_map()
322 int na, int ns, int pna) in build_one_resource() argument
333 memset(result, 0, pna * 4); in build_one_resource()
335 result[pna - 1 - i] = in build_one_resource()
338 memcpy(addr, result, pna * 4); in build_one_resource()
344 rone = na + pna + ns; in build_one_resource()
346 if (!bus->map(addr, ranges, na, ns, pna)) in build_one_resource()
412 int pna, pns; in build_device_resources() local
438 pbus->count_cells(dp, &pna, &pns); in build_device_resources()
441 dna, dns, pna)) in build_device_resources()
446 dna = pna; in build_device_resources()