MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / dtb_node_read_number

Function dtb_node_read_number

components/legacy/fdt/inc/dtb_node.h:310–316  ·  view source on GitHub ↗

Helper to read a big number; size is in cells (not bytes) */

Source from the content-addressed store, hash-verified

308
309/* Helper to read a big number; size is in cells (not bytes) */
310static inline uint64_t dtb_node_read_number(const uint32_t *cell, int size)
311{
312 uint64_t r = 0;
313 while (size--)
314 r = (r << 32) | fdt32_to_cpu(*(cell++));
315 return r;
316}
317
318/**
319 * ofnode_valid() - check if an ofnode is valid

Callers 4

dtb_node_get_addressFunction · 0.85
dtb_node_get_addr_indexFunction · 0.85
dtb_node_get_addr_sizeFunction · 0.85

Calls 1

fdt32_to_cpuFunction · 0.50

Tested by

no test coverage detected