Home
last modified time | relevance | path

Searched refs:size_cells (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/kexec/
Dima.c15 static int get_addr_size_cells(int *addr_cells, int *size_cells) in get_addr_size_cells() argument
24 *size_cells = of_n_size_cells(root); in get_addr_size_cells()
34 int ret, addr_cells, size_cells; in do_get_kexec_buffer() local
36 ret = get_addr_size_cells(&addr_cells, &size_cells); in do_get_kexec_buffer()
40 if (len < 4 * (addr_cells + size_cells)) in do_get_kexec_buffer()
44 *size = of_read_number(prop + 4 * addr_cells, size_cells); in do_get_kexec_buffer()
179 int ret, addr_cells, size_cells, entry_size; in setup_ima_buffer() local
186 ret = get_addr_size_cells(&addr_cells, &size_cells); in setup_ima_buffer()
190 entry_size = 4 * (addr_cells + size_cells); in setup_ima_buffer()
200 size_cells); in setup_ima_buffer()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/arm/boot/compressed/
Dkaslr.c197 int *size_cells) in get_cell_sizes() argument
206 *addr_cells = *size_cells = 1; in get_cell_sizes()
213 *size_cells = fdt32_to_cpu(*prop); in get_cell_sizes()
223 int mem_node, address_cells, size_cells, len; in get_memory_end() local
231 get_cell_sizes(fdt, 0, &address_cells, &size_cells); in get_memory_end()
240 while (len >= 4 * (address_cells + size_cells)) { in get_memory_end()
250 if (size_cells == 2) in get_memory_end()
253 reg += size_cells; in get_memory_end()
254 len -= 4 * size_cells; in get_memory_end()
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Dhotplug-memory.c34 int size_cells; in pseries_memory_block_size() local
37 size_cells = of_n_size_cells(np); in pseries_memory_block_size()
40 if (prop && len >= size_cells * sizeof(__be32)) in pseries_memory_block_size()
41 memblock_size = of_read_number(prop, size_cells); in pseries_memory_block_size()
320 int addr_cells, size_cells; in pseries_remove_mem_node() local
336 size_cells = of_n_size_cells(np); in pseries_remove_mem_node()
343 lmb_size = of_read_number(prop, size_cells); in pseries_remove_mem_node()
908 int addr_cells, size_cells; in pseries_add_mem_node() local
924 size_cells = of_n_size_cells(np); in pseries_add_mem_node()
930 lmb_size = of_read_number(prop, size_cells); in pseries_add_mem_node()
/kernel/linux/linux-5.10/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()
397 hdroom->int_buf.size_cells = reserve_cells; in mlxsw_sp_hdroom_bufs_reset_sizes()
399 hdroom->int_buf.size_cells = 0; in mlxsw_sp_hdroom_bufs_reset_sizes()
423 buf->size_cells = thres_cells + delay_cells; in mlxsw_sp_hdroom_bufs_reset_sizes()
428 buf->size_cells = max(buf->set_size_cells, buf->thres_cells); in mlxsw_sp_hdroom_bufs_reset_sizes()
455 mlxsw_sp_hdroom_buf_pack(pbmc_pl, i, buf->size_cells, buf->thres_cells, buf->lossy); in mlxsw_sp_hdroom_configure_buffers()
502 mlxsw_reg_sbib_pack(sbib_pl, mlxsw_sp_port->local_port, hdroom->int_buf.size_cells); in mlxsw_sp_hdroom_configure_int_buf()
518 taken_headroom_cells += hdroom->bufs.buf[i].size_cells; in mlxsw_sp_hdroom_bufs_fit()
543 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.h461 u32 size_cells; member
487 u32 size_cells; member
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/
Dkaslr_booke.c240 int *size_cells) in get_cell_sizes() argument
249 *addr_cells = *size_cells = 1; in get_cell_sizes()
256 *size_cells = fdt32_to_cpu(*prop); in get_cell_sizes()
/kernel/linux/linux-5.10/scripts/dtc/
Dchecks.c716 node->size_cells = -1; in fixup_addr_size_cells()
724 node->size_cells = propval_cell(prop); in fixup_addr_size_cells()
732 (((n)->size_cells == -1) ? 1 : (n)->size_cells)
738 int addr_cells, size_cells, entrylen; in check_reg_format() local
753 size_cells = node_size_cells(node->parent); in check_reg_format()
754 entrylen = (addr_cells + size_cells) * sizeof(cell_t); in check_reg_format()
759 prop->val.len, addr_cells, size_cells); in check_reg_format()
1188 if (node->parent->size_cells == -1) in check_avoid_default_addr_size()
1201 if (!node->parent || node->addr_cells < 0 || node->size_cells < 0) in check_avoid_unnecessary_addr_size()
1239 if (node->addr_cells < 0 || node->size_cells < 0) in check_unique_unit_address_common()
[all …]
Ddtc.h194 int addr_cells, size_cells; member