Lines Matching defs:node

55 GetReg(const void* fdt, int node, uint32 addressCells, uint32 sizeCells, size_t idx,
59 const uint8* prop = (const uint8*)fdt_getprop(fdt, node, "reg", &propSize);
84 GetInterrupt(const void* fdt, int node)
86 if (uint32* prop = (uint32*)fdt_getprop(fdt, node, "interrupts-extended", NULL)) {
89 if (uint32* prop = (uint32*)fdt_getprop(fdt, node, "interrupts", NULL)) {
98 HandleFdt(const void* fdt, int node, uint32 addressCells, uint32 sizeCells,
99 uint32 interruptCells /* from parent node */)
103 const char* name = fdt_get_name(fdt, node, NULL);
105 if (uint32* prop = (uint32*)fdt_getprop(fdt, node, "timebase-frequency", NULL))
109 const char* device_type = (const char*)fdt_getprop(fdt, node,
112 gMemBase = (uint8*)fdt64_to_cpu(*((uint64*)fdt_getprop(fdt, node,
114 gTotalMem = fdt64_to_cpu(*((uint64*)fdt_getprop(fdt, node,
119 const char* compatible = (const char*)fdt_getprop(fdt, node,
123 uint64* reg = (uint64*)fdt_getprop(fdt, node, "reg", NULL);
128 GetReg(fdt, node, addressCells, sizeCells, 0, sPlic);
130 if (uint32* prop = (uint32*)fdt_getprop(fdt, node, "interrupts-extended", &propSize)) {
148 uint64* reg = (uint64*)fdt_getprop(fdt, node, "reg", NULL);
151 GetInterrupt(fdt, node));
162 uint64* reg = (uint64*)fdt_getprop(fdt, node, "reg", NULL);
165 sUart.irq = GetInterrupt(fdt, node);
166 const void* prop = fdt_getprop(fdt, node, "clock-frequency", NULL);
170 fdt64_to_cpu(*(uint64*)fdt_getprop(fdt, node, "reg", NULL));
173 *(uint64*)fdt_getprop(fdt, node, "reg", NULL));
175 *(uint32*)fdt_getprop(fdt, node, "stride", NULL)) / 4;
177 *(uint32*)fdt_getprop(fdt, node, "width", NULL));
179 *(uint32*)fdt_getprop(fdt, node, "height", NULL));
197 int node = -1;
199 while ((node = fdt_next_node(gFdt, node, &depth)) >= 0 && depth >= 0) {
200 HandleFdt(gFdt, node, 2, 2, 1);