Home
last modified time | relevance | path

Searched refs:addr_cells (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/arch/arm/boot/compressed/
Dfdt_check_mem_start.c65 uint32_t addr_cells, size_cells, usable_base, base; in fdt_check_mem_start() local
79 addr_cells = get_cells(fdt, "#address-cells"); in fdt_check_mem_start()
81 if (addr_cells > 2 || size_cells > 2) in fdt_check_mem_start()
90 (addr_cells + size_cells) * sizeof(fdt32_t)); in fdt_check_mem_start()
92 size = get_val(usable + addr_cells, size_cells); in fdt_check_mem_start()
96 if (addr_cells > 1 && fdt32_ld(usable)) { in fdt_check_mem_start()
101 usable_base = fdt32_ld(usable + addr_cells - 1); in fdt_check_mem_start()
119 endp - reg >= addr_cells + size_cells; in fdt_check_mem_start()
120 reg += addr_cells + size_cells) { in fdt_check_mem_start()
121 size = get_val(reg + addr_cells, size_cells); in fdt_check_mem_start()
[all …]
/linux-6.1.9/scripts/dtc/libfdt/
Dfdt_addresses.c60 int addr_cells, size_cells, ret; in fdt_appendprop_addrrange() local
66 addr_cells = ret; in fdt_appendprop_addrrange()
75 if (addr_cells == 1) { in fdt_appendprop_addrrange()
80 } else if (addr_cells == 2) { in fdt_appendprop_addrrange()
87 prop += addr_cells * sizeof(fdt32_t); in fdt_appendprop_addrrange()
100 (addr_cells + size_cells) * sizeof(fdt32_t)); in fdt_appendprop_addrrange()
/linux-6.1.9/drivers/of/
Dkexec.c75 static int get_addr_size_cells(int *addr_cells, int *size_cells) in get_addr_size_cells() argument
83 *addr_cells = of_n_addr_cells(root); in get_addr_size_cells()
104 int ret, addr_cells, size_cells; in do_get_kexec_buffer() local
106 ret = get_addr_size_cells(&addr_cells, &size_cells); in do_get_kexec_buffer()
110 if (len < 4 * (addr_cells + size_cells)) in do_get_kexec_buffer()
113 *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()
/linux-6.1.9/arch/powerpc/platforms/pseries/
Dhotplug-memory.c318 int addr_cells, size_cells; in pseries_remove_mem_node() local
333 addr_cells = of_n_addr_cells(np); in pseries_remove_mem_node()
339 base = of_read_number(prop, addr_cells); in pseries_remove_mem_node()
340 prop += addr_cells; in pseries_remove_mem_node()
936 int addr_cells, size_cells; in pseries_add_mem_node() local
951 addr_cells = of_n_addr_cells(np); in pseries_add_mem_node()
956 base = of_read_number(prop, addr_cells); in pseries_add_mem_node()
957 prop += addr_cells; in pseries_add_mem_node()
/linux-6.1.9/arch/powerpc/mm/nohash/
Dkaslr_booke.c238 static __init void get_cell_sizes(const void *fdt, int node, int *addr_cells, in get_cell_sizes() argument
248 *addr_cells = *size_cells = 1; in get_cell_sizes()
252 *addr_cells = fdt32_to_cpu(*prop); in get_cell_sizes()
/linux-6.1.9/drivers/bus/
Dmvebu-mbus.c1184 int *addr_cells, int *c_addr_cells, int *c_size_cells, in mbus_parse_ranges() argument
1194 *addr_cells = *c_addr_cells = *c_size_cells = *cell_count = 0; in mbus_parse_ranges()
1200 *addr_cells = of_n_addr_cells(node); in mbus_parse_ranges()
1208 *cell_count = *addr_cells + *c_addr_cells + *c_size_cells; in mbus_parse_ranges()
1221 int addr_cells, c_addr_cells, c_size_cells; in mbus_dt_setup() local
1225 ret = mbus_parse_ranges(np, &addr_cells, &c_addr_cells, in mbus_dt_setup()
1246 base = of_read_number(r + c_addr_cells, addr_cells); in mbus_dt_setup()
1247 size = of_read_number(r + c_addr_cells + addr_cells, in mbus_dt_setup()
/linux-6.1.9/scripts/dtc/
Dchecks.c736 node->addr_cells = -1; in fixup_addr_size_cells()
741 node->addr_cells = propval_cell(prop); in fixup_addr_size_cells()
751 (((n)->addr_cells == -1) ? 2 : (n)->addr_cells)
759 int addr_cells, size_cells, entrylen; in check_reg_format() local
773 addr_cells = node_addr_cells(node->parent); in check_reg_format()
775 entrylen = (addr_cells + size_cells) * sizeof(cell_t); in check_reg_format()
780 prop->val.len, addr_cells, size_cells); in check_reg_format()
1206 if (node->parent->addr_cells == -1) in check_avoid_default_addr_size()
1222 if (!node->parent || node->addr_cells < 0 || node->size_cells < 0) in check_avoid_unnecessary_addr_size()
1260 if (node->addr_cells < 0 || node->size_cells < 0) in check_unique_unit_address_common()
[all …]
Ddtc.h230 int addr_cells, size_cells; member