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

Function fdt_setprop_uxx

components/drivers/ofw/raw.c:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39int fdt_setprop_uxx(void *fdt, int nodeoffset, const char *name, uint64_t val, bool is_u64)
40{
41 int err;
42
43 if (is_u64)
44 {
45 err = fdt_setprop_u64(fdt, nodeoffset, name, val);
46 }
47 else
48 {
49 err = fdt_setprop_u32(fdt, nodeoffset, name, (uint32_t)val);
50 }
51
52 return err;
53}
54
55#define FDT_RAW_GET_VAL_FLAG(std_type, s, sz) \
56int fdt_getprop_##std_type##sz(void *fdt, int nodeoffset, \

Callers 1

fdt_install_initrdFunction · 0.85

Calls 2

fdt_setprop_u64Function · 0.50
fdt_setprop_u32Function · 0.50

Tested by

no test coverage detected