Home
last modified time | relevance | path

Searched refs:size_cells (Results 1 – 10 of 10) 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
80 size_cells = get_cells(fdt, "#size-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()
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()
/linux-6.1.9/scripts/dtc/libfdt/ !
Dfdt_addresses.c60 int addr_cells, size_cells, ret; in fdt_appendprop_addrrange() local
71 size_cells = ret; in fdt_appendprop_addrrange()
88 if (size_cells == 1) { in fdt_appendprop_addrrange()
93 } else if (size_cells == 2) { 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
84 *size_cells = of_n_size_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()
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.c33 int size_cells; in pseries_memory_block_size() local
36 size_cells = of_n_size_cells(np); in pseries_memory_block_size()
39 if (prop && len >= size_cells * sizeof(__be32)) in pseries_memory_block_size()
40 memblock_size = of_read_number(prop, size_cells); in pseries_memory_block_size()
318 int addr_cells, size_cells; in pseries_remove_mem_node() local
334 size_cells = of_n_size_cells(np); in pseries_remove_mem_node()
341 lmb_size = of_read_number(prop, size_cells); in pseries_remove_mem_node()
936 int addr_cells, size_cells; in pseries_add_mem_node() local
952 size_cells = of_n_size_cells(np); in pseries_add_mem_node()
958 lmb_size = of_read_number(prop, size_cells); in pseries_add_mem_node()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ !
Dspectrum_buffers.c139 u32 size_cells) in mlxsw_sp_port_headroom_8x_adjust() argument
145 return mlxsw_sp_port->mapping.width == 8 ? 2 * size_cells : size_cells; in mlxsw_sp_port_headroom_8x_adjust()
412 hdroom->int_buf.size_cells = reserve_cells; in mlxsw_sp_hdroom_bufs_reset_sizes()
414 hdroom->int_buf.size_cells = 0; in mlxsw_sp_hdroom_bufs_reset_sizes()
438 buf->size_cells = thres_cells + delay_cells; in mlxsw_sp_hdroom_bufs_reset_sizes()
443 buf->size_cells = max(buf->set_size_cells, buf->thres_cells); in mlxsw_sp_hdroom_bufs_reset_sizes()
470 mlxsw_sp_hdroom_buf_pack(pbmc_pl, i, buf->size_cells, buf->thres_cells, buf->lossy); in mlxsw_sp_hdroom_configure_buffers()
517 mlxsw_reg_sbib_pack(sbib_pl, mlxsw_sp_port->local_port, hdroom->int_buf.size_cells); in mlxsw_sp_hdroom_configure_int_buf()
533 taken_headroom_cells += hdroom->bufs.buf[i].size_cells; in mlxsw_sp_hdroom_bufs_fit()
558 if (hdroom->bufs.buf[i].size_cells) in __mlxsw_sp_hdroom_configure()
[all …]
Dspectrum_dcb.c594 u32 bytes = mlxsw_sp_cells_bytes(mlxsw_sp, hdroom->bufs.buf[i].size_cells); in mlxsw_sp_dcbnl_getbuffer()
601 buf->total_size += mlxsw_sp_cells_bytes(mlxsw_sp, hdroom->int_buf.size_cells); in mlxsw_sp_dcbnl_getbuffer()
Dspectrum.h540 u32 size_cells; member
566 u32 size_cells; member
/linux-6.1.9/arch/powerpc/mm/nohash/ !
Dkaslr_booke.c239 int *size_cells) in get_cell_sizes() argument
248 *addr_cells = *size_cells = 1; in get_cell_sizes()
255 *size_cells = fdt32_to_cpu(*prop); in get_cell_sizes()
/linux-6.1.9/scripts/dtc/ !
Dchecks.c737 node->size_cells = -1; in fixup_addr_size_cells()
745 node->size_cells = propval_cell(prop); in fixup_addr_size_cells()
753 (((n)->size_cells == -1) ? 1 : (n)->size_cells)
759 int addr_cells, size_cells, entrylen; in check_reg_format() local
774 size_cells = node_size_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()
1209 if (node->parent->size_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