/linux/arch/powerpc/kernel/ |
A D | pci_of_scan.c | 29 return of_read_number(prop, 1); in get_int_prop() 138 flags = pci_parse_of_flags(of_read_number(addrs, 1), 0); in of_pci_parse_addrs() 141 base = of_read_number(&addrs[1], 2); in of_pci_parse_addrs() 142 size = of_read_number(&addrs[3], 2); in of_pci_parse_addrs() 145 i = of_read_number(addrs, 1) & 0xff; in of_pci_parse_addrs() 279 of_read_number(busrange, 1)); in of_scan_pci_bridge() 282 of_read_number(busrange, 1)); in of_scan_pci_bridge() 292 of_read_number(busrange+1, 1)); in of_scan_pci_bridge() 306 size = of_read_number(&ranges[6], 2); in of_scan_pci_bridge() 326 region.start = of_read_number(&ranges[1], 2); in of_scan_pci_bridge() [all …]
|
A D | prom_parse.c | 19 *busno = of_read_number(dma_window, 1); in of_parse_dma_window() 26 cells = prop ? of_read_number(prop, 1) : of_n_addr_cells(dn); in of_parse_dma_window() 27 *phys = of_read_number(dma_window, cells); in of_parse_dma_window() 32 cells = prop ? of_read_number(prop, 1) : of_n_size_cells(dn); in of_parse_dma_window() 33 *size = of_read_number(dma_window, cells); in of_parse_dma_window()
|
A D | pci_dn.c | 301 u32 addr = of_read_number(regs, 1); in pci_add_device_node_info() 310 pdn->vendor_id = regs ? of_read_number(regs, 1) : 0; in pci_add_device_node_info() 312 pdn->device_id = regs ? of_read_number(regs, 1) : 0; in pci_add_device_node_info() 314 pdn->class_code = regs ? of_read_number(regs, 1) : 0; in pci_add_device_node_info() 317 pdn->pci_ext_config_space = (type && of_read_number(type, 1) == 1); in pci_add_device_node_info() 416 class = of_read_number(classp, 1); in pci_traverse_device_nodes()
|
A D | cacheinfo.c | 220 *ret = of_read_number(cache_size, 1); in cache_size() 255 *ret = of_read_number(line_size, 1); in cache_get_line_size() 270 *ret = of_read_number(nr_sets, 1); in cache_nr_sets()
|
/linux/arch/powerpc/mm/ |
A D | drmem.c | 208 lmb->drc_index = of_read_number(p++, 1); in read_drconf_v1_cell() 212 lmb->aa_index = of_read_number(p++, 1); in read_drconf_v1_cell() 213 lmb->flags = of_read_number(p++, 1); in read_drconf_v1_cell() 226 n_lmbs = of_read_number(prop++, 1); in __walk_drmem_v1_lmbs() 242 dr_cell->seq_lmbs = of_read_number(p++, 1); in read_drconf_v2_cell() 245 dr_cell->drc_index = of_read_number(p++, 1); in read_drconf_v2_cell() 246 dr_cell->aa_index = of_read_number(p++, 1); in read_drconf_v2_cell() 247 dr_cell->flags = of_read_number(p++, 1); in read_drconf_v2_cell() 261 lmb_sets = of_read_number(prop++, 1); in __walk_drmem_v2_lmbs() 429 drmem_info->n_lmbs = of_read_number(prop++, 1); in init_drmem_v1_lmbs() [all …]
|
A D | numa.c | 181 nid = of_read_number(&associativity[index], 1); in __associativity_to_nid() 194 int array_sz = of_read_number(associativity, 1); in associativity_to_nid() 333 array_sz = of_read_number(associativity, 1); in initialize_form1_numa_distance() 392 max_numa_index = of_read_number(&numa_lookup_index[0], 1); in initialize_form2_numa_distance_lookup_table() 487 index = of_read_number(&distance_ref_points[1], 1); in find_primary_domain_index() 493 index = of_read_number(distance_ref_points, 1); in find_primary_domain_index() 531 result = (result << 32) | of_read_number(*buf, 1); in read_n_cells() 569 aa->n_arrays = of_read_number(prop++, 1); in of_get_assoc_arrays() 570 aa->array_sz = of_read_number(prop++, 1); in of_get_assoc_arrays() 1480 index = of_read_number(associativity, 1); in cpu_to_coregroup_id() [all …]
|
/linux/drivers/of/ |
A D | address.c | 75 cp = of_read_number(range, na); in of_bus_default_map() 76 s = of_read_number(range + na + pna, ns); in of_bus_default_map() 77 da = of_read_number(addr, na); in of_bus_default_map() 88 u64 a = of_read_number(addr, na); in of_bus_default_translate() 181 cp = of_read_number(range + 1, na - 1); in of_bus_pci_map() 182 s = of_read_number(range + na + pna, ns); in of_bus_pci_map() 183 da = of_read_number(addr + 1, na - 1); in of_bus_pci_map() 294 cp = of_read_number(range + 1, na - 1); in of_bus_isa_map() 296 da = of_read_number(addr + 1, na - 1); in of_bus_isa_map() 429 offset = of_read_number(addr, na); in of_translate_one() [all …]
|
A D | fdt_address.c | 75 cp = of_read_number(range, na); in fdt_bus_default_map() 76 s = of_read_number(range + na + pna, ns); in fdt_bus_default_map() 77 da = of_read_number(addr, na); in fdt_bus_default_map() 89 u64 a = of_read_number(addr, na); in fdt_bus_default_translate() 123 offset = of_read_number(addr, na); in fdt_translate_one() 210 result = of_read_number(addr, na); in fdt_translate_address()
|
A D | of_numa.c | 100 nodea = of_read_number(matrix, 1); in of_numa_parse_distance_map_v1() 102 nodeb = of_read_number(matrix, 1); in of_numa_parse_distance_map_v1() 104 distance = of_read_number(matrix, 1); in of_numa_parse_distance_map_v1()
|
A D | kexec.c | 112 *addr = of_read_number(prop, addr_cells); in do_get_kexec_buffer() 113 *size = of_read_number(prop + 4 * addr_cells, size_cells); in do_get_kexec_buffer()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | setup.c | 648 num_res = of_read_number(&indexes[NUM_RES_PROPERTY], 1); in pseries_get_iov_fw_value() 655 ret = of_read_number(&indexes[i], 2); in pseries_get_iov_fw_value() 658 ret = of_read_number(&indexes[i + APERTURE_PROPERTY], 2); in pseries_get_iov_fw_value() 661 ret = of_read_number(&indexes[i + WDW_SIZE_PROPERTY], 2); in pseries_get_iov_fw_value() 674 num_res = of_read_number(&indexes[NUM_RES_PROPERTY], 1); in of_pci_set_vf_bar_size() 679 base = of_read_number(&indexes[i], 2); in of_pci_set_vf_bar_size() 680 size = of_read_number(&indexes[i + APERTURE_PROPERTY], 2); in of_pci_set_vf_bar_size() 681 res->flags = pci_parse_of_flags(of_read_number in of_pci_set_vf_bar_size() 701 num_res = of_read_number(&indexes[NUM_RES_PROPERTY], 1); in of_pci_parse_iov_addrs() 705 base = of_read_number(&indexes[i], 2); in of_pci_parse_iov_addrs() [all …]
|
A D | hotplug-memory.c | 41 memblock_size = of_read_number(prop, size_cells); in pseries_memory_block_size() 340 base = of_read_number(prop, addr_cells); in pseries_remove_mem_node() 342 lmb_size = of_read_number(prop, size_cells); in pseries_remove_mem_node() 957 base = of_read_number(prop, addr_cells); in pseries_add_mem_node() 959 lmb_size = of_read_number(prop, size_cells); in pseries_add_mem_node()
|
/linux/arch/powerpc/platforms/powernv/ |
A D | opal.c | 126 opal.base = of_read_number(basep, basesz/4); in early_init_dt_scan_opal() 127 opal.entry = of_read_number(entryp, entrysz/4); in early_init_dt_scan_opal() 128 opal.size = of_read_number(sizep, runtimesz/4); in early_init_dt_scan_opal() 190 of_read_number(prop + (i * 5) + 0, 2); in early_init_dt_scan_recoverable_ranges() 193 of_read_number(prop + (i * 5) + 2, 1); in early_init_dt_scan_recoverable_ranges() 195 of_read_number(prop + (i * 5) + 3, 2); in early_init_dt_scan_recoverable_ranges()
|
A D | opal-fadump.c | 655 base = of_read_number(prop + (i * 4) + 0, 2); in opal_fadump_dt_scan() 657 end += of_read_number(prop + (i * 4) + 2, 2); in opal_fadump_dt_scan()
|
/linux/drivers/misc/cxl/ |
A D | of.c | 65 *handle = of_read_number(prop, of_n_addr_cells(np)); in read_handle() 84 addr = of_read_number(prop, naddr); in read_phys_addr() 85 size = of_read_number(&prop[naddr], nsize); in read_phys_addr() 375 of_read_number(prop, naddr), in cxl_of_read_adapter_properties()
|
/linux/drivers/mtd/parsers/ |
A D | ofpart_core.c | 132 parts[i].offset = of_read_number(reg, a_cells); in parse_fixed_partitions() 133 parts[i].size = of_read_number(reg + a_cells, s_cells); in parse_fixed_partitions()
|
/linux/arch/powerpc/sysdev/xics/ |
A D | icp-native.c | 277 *indx = of_read_number(ireg, 1); in icp_native_init_one_node() 279 num_servers = of_read_number(ireg + 1, 1); in icp_native_init_one_node()
|
/linux/arch/powerpc/platforms/maple/ |
A D | setup.c | 229 openpic_addr = of_read_number(opprop, naddr); in maple_init_IRQ() 257 unsigned long isuaddr = of_read_number(opprop + i, naddr); in maple_init_IRQ()
|
/linux/arch/powerpc/kexec/ |
A D | ranges.c | 402 base = of_read_number(prop + (i * cells), n_mem_addr_cells); in add_reserved_mem_ranges() 403 size = of_read_number(prop + (i * cells) + n_mem_addr_cells, in add_reserved_mem_ranges()
|
/linux/arch/powerpc/sysdev/ |
A D | fsl_rio.c | 546 range_start = of_read_number(dt_range, aw); in fsl_rio_setup() 574 range_start = of_read_number(dt_range, aw); in fsl_rio_setup() 607 range_start = of_read_number(dt_range + aw, paw); in fsl_rio_setup() 608 range_size = of_read_number(dt_range + aw + paw, sw); in fsl_rio_setup()
|
/linux/drivers/thermal/ |
A D | qoriq_thermal.c | 201 val = of_read_number(calibration, 1); in qoriq_tmu_calibration() 203 val = of_read_number(calibration + 1, 1); in qoriq_tmu_calibration()
|
/linux/drivers/memory/ |
A D | jz4780-nemc.c | 77 bank = of_read_number(prop, 1); in jz4780_nemc_num_banks() 345 bank = of_read_number(prop, 1); in jz4780_nemc_probe()
|
/linux/arch/powerpc/mm/nohash/ |
A D | kaslr_booke.c | 213 start = of_read_number(prop, len / 4); in get_initrd_range() 218 end = of_read_number(prop, len / 4); in get_initrd_range()
|
/linux/drivers/bus/fsl-mc/ |
A D | fsl-mc-bus.c | 1088 range->mc_region_type = of_read_number(cell, 1); in get_mc_addr_translation_ranges() 1089 range->start_mc_offset = of_read_number(cell + 1, in get_mc_addr_translation_ranges() 1092 range->start_phys_addr = of_read_number(cell, paddr_cells); in get_mc_addr_translation_ranges() 1095 of_read_number(cell, mc_size_cells); in get_mc_addr_translation_ranges()
|
/linux/drivers/fsi/ |
A D | fsi-core.c | 432 if (of_read_number(prop, 1) != addr) in fsi_device_node_matches() 435 psize = of_read_number(prop + 1, 1); in fsi_device_node_matches() 670 return (of_read_number(prop, 1) == link) && in fsi_slave_node_matches() 671 (of_read_number(prop + 1, 1) == id); in fsi_slave_node_matches()
|