Home
last modified time | relevance | path

Searched refs:of_read_number (Results 1 – 25 of 48) sorted by relevance

12

/linux-6.6.21/arch/powerpc/kernel/
Dprom_parse.c19 *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()
Dpci_of_scan.c29 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()
291 pci_bus_insert_busn_res(bus, of_read_number(busrange, 1), in of_scan_pci_bridge()
292 of_read_number(busrange+1, 1)); in of_scan_pci_bridge()
305 flags = pci_parse_of_flags(of_read_number(ranges, 1), 1); in of_scan_pci_bridge()
[all …]
Dpci_dn.c301 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()
417 class = of_read_number(classp, 1); in pci_traverse_device_nodes()
Dcacheinfo.c219 *ret = of_read_number(cache_size, 1); in cache_size()
254 *ret = of_read_number(line_size, 1); in cache_get_line_size()
269 *ret = of_read_number(nr_sets, 1); in cache_nr_sets()
Dprom.c638 base = of_read_number(prop + (i * 4) + 0, 2); in early_reserve_mem_dt()
639 size = of_read_number(prop + (i * 4) + 2, 2); in early_reserve_mem_dt()
/linux-6.6.21/arch/powerpc/mm/
Ddrmem.c206 lmb->base_addr = of_read_number(p, n_root_addr_cells); in read_drconf_v1_cell()
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()
243 dr_cell->base_addr = of_read_number(p, n_root_addr_cells); 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()
[all …]
Dnuma.c182 nid = of_read_number(&associativity[index], 1); in __associativity_to_nid()
195 int array_sz = of_read_number(associativity, 1); in associativity_to_nid()
325 distance_lookup_table[nid][i] = of_read_number(entry, 1); in __initialize_form1_numa_distance()
334 array_sz = of_read_number(associativity, 1); in initialize_form1_numa_distance()
394 max_numa_index = of_read_number(&numa_lookup_index[0], 1); in initialize_form2_numa_distance_lookup_table()
398 form2_distances_length = of_read_number((const __be32 *)&form2_distances[0], 1); in initialize_form2_numa_distance_lookup_table()
407 numa_id_index_table[i] = of_read_number(&numa_lookup_index[i + 1], 1); in initialize_form2_numa_distance_lookup_table()
489 index = of_read_number(&distance_ref_points[1], 1); in find_primary_domain_index()
495 index = of_read_number(distance_ref_points, 1); in find_primary_domain_index()
533 result = (result << 32) | of_read_number(*buf, 1); in read_n_cells()
[all …]
/linux-6.6.21/drivers/of/
Daddress.c70 cp = of_read_number(range, na); in of_bus_default_map()
71 s = of_read_number(range + na + pna, ns); in of_bus_default_map()
72 da = of_read_number(addr, na); in of_bus_default_map()
83 u64 a = of_read_number(addr, na); in of_bus_default_translate()
95 return of_read_number(addr, 1); in of_bus_default_flags_get_flags()
113 cp = of_read_number(range + 1, na - 1); in of_bus_default_flags_map()
114 s = of_read_number(range + na + pna, ns); in of_bus_default_flags_map()
115 da = of_read_number(addr + 1, na - 1); in of_bus_default_flags_map()
208 cp = of_read_number(range + 1, na - 1); in of_bus_pci_map()
209 s = of_read_number(range + na + pna, ns); in of_bus_pci_map()
[all …]
Dfdt_address.c75 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()
Dof_numa.c100 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()
Dkexec.c113 *addr = of_read_number(prop, addr_cells); in do_get_kexec_buffer()
114 *size = of_read_number(prop + 4 * addr_cells, size_cells); in do_get_kexec_buffer()
332 tmp_start = of_read_number(prop, len / 4); in of_kexec_alloc_and_setup_fdt()
340 tmp_end = of_read_number(prop, len / 4); in of_kexec_alloc_and_setup_fdt()
Dcpu.c25 return of_read_number(cell, ac); in of_get_cpu_hwid()
67 hwid = of_read_number(cell, ac); in __of_find_n_match_cpu_property()
Dfdt.c922 start = of_read_number(prop, len/4); in early_init_dt_check_for_initrd()
927 end = of_read_number(prop, len/4); in early_init_dt_check_for_initrd()
1092 return of_read_number(p, s); in dt_mem_next_cell()
/linux-6.6.21/arch/powerpc/platforms/pseries/
Dsetup.c679 num_res = of_read_number(&indexes[NUM_RES_PROPERTY], 1); in pseries_get_iov_fw_value()
686 ret = of_read_number(&indexes[i], 2); in pseries_get_iov_fw_value()
689 ret = of_read_number(&indexes[i + APERTURE_PROPERTY], 2); in pseries_get_iov_fw_value()
692 ret = of_read_number(&indexes[i + WDW_SIZE_PROPERTY], 2); in pseries_get_iov_fw_value()
705 num_res = of_read_number(&indexes[NUM_RES_PROPERTY], 1); in of_pci_set_vf_bar_size()
710 base = of_read_number(&indexes[i], 2); in of_pci_set_vf_bar_size()
711 size = of_read_number(&indexes[i + APERTURE_PROPERTY], 2); in of_pci_set_vf_bar_size()
712 res->flags = pci_parse_of_flags(of_read_number in of_pci_set_vf_bar_size()
732 num_res = of_read_number(&indexes[NUM_RES_PROPERTY], 1); in of_pci_parse_iov_addrs()
736 base = of_read_number(&indexes[i], 2); in of_pci_parse_iov_addrs()
[all …]
Dpci.c161 max_config_vfs = of_read_number(&max_vfs[0], 1); in pseries_pci_sriov_enable()
/linux-6.6.21/drivers/misc/cxl/
Dof.c65 *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()
374 of_read_number(prop, naddr), in cxl_of_read_adapter_properties()
/linux-6.6.21/arch/powerpc/platforms/powernv/
Dopal.c126 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()
Dopal-fadump.c665 base = of_read_number(prop + (i * 4) + 0, 2); in opal_fadump_dt_scan()
667 end += of_read_number(prop + (i * 4) + 2, 2); in opal_fadump_dt_scan()
/linux-6.6.21/arch/powerpc/sysdev/xics/
Dicp-native.c278 *indx = of_read_number(ireg, 1); in icp_native_init_one_node()
280 num_servers = of_read_number(ireg + 1, 1); in icp_native_init_one_node()
/linux-6.6.21/drivers/mtd/parsers/
Dofpart_core.c151 parts[i].offset = of_read_number(reg, a_cells); in parse_fixed_partitions()
152 parts[i].size = of_read_number(reg + a_cells, s_cells); in parse_fixed_partitions()
/linux-6.6.21/arch/powerpc/platforms/maple/
Dsetup.c230 openpic_addr = of_read_number(opprop, naddr); in maple_init_IRQ()
258 unsigned long isuaddr = of_read_number(opprop + i, naddr); in maple_init_IRQ()
/linux-6.6.21/arch/powerpc/kexec/
Dranges.c402 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-6.6.21/drivers/memory/
Djz4780-nemc.c76 bank = of_read_number(prop, 1); in jz4780_nemc_num_banks()
344 bank = of_read_number(prop, 1); in jz4780_nemc_probe()
/linux-6.6.21/arch/powerpc/mm/nohash/
Dkaslr_booke.c207 start = of_read_number(prop, len / 4); in get_initrd_range()
212 end = of_read_number(prop, len / 4); in get_initrd_range()
/linux-6.6.21/drivers/thermal/
Dqoriq_thermal.c212 val = of_read_number(calibration, 1); in qoriq_tmu_calibration()
214 val = of_read_number(calibration + 1, 1); in qoriq_tmu_calibration()

12