Lines Matching refs:prop

91 	const void* prop; int propLen;
108 prop = fdt_getprop(gFDT, node, "device_type", &propLen);
109 if (prop != NULL)
110 attrs.Add({ "fdt/device_type", B_STRING_TYPE, { .string = (const char*)prop }});
112 prop = fdt_getprop(gFDT, node, "compatible", &propLen);
114 if (prop != NULL) {
115 const char* propStr = (const char*)prop;
132 prop = fdt_getprop(gFDT, node, "phandle", &propLen);
134 if (prop != NULL)
135 bus->phandles.Put(fdt32_to_cpu(*(uint32_t*)prop), curDev);
390 uint32 *prop = (uint32*)fdt_getprop(fdt, parent, "#address-cells", NULL);
391 if (prop == NULL)
394 res = fdt32_to_cpu(*prop);
408 uint32 *prop = (uint32*)fdt_getprop(fdt, parent, "#size-cells", NULL);
409 if (prop == NULL)
412 res = fdt32_to_cpu(*prop);
427 const void* prop = fdt_getprop(gFDT, (int)fdtNode, "reg", &propLen);
428 if (prop == NULL)
438 const void* addressPtr = (const uint8*)prop + ord * entrySize;
470 uint32* prop;
472 prop = (uint32*)fdt_getprop(gFDT, node, "interrupt-parent", &propLen);
473 if (prop != NULL && propLen == 4) {
474 return fdt32_to_cpu(*prop);
490 uint32* prop;
492 prop = (uint32*)fdt_getprop(gFDT, node, "#interrupt-cells", &propLen);
493 if (prop != NULL && propLen == 4) {
494 return fdt32_to_cpu(*prop);
513 const uint32 *prop = (uint32*)fdt_getprop(gFDT, (int)fdtNode, "interrupts-extended",
515 if (prop == NULL) {
519 prop = (uint32*)fdt_getprop(gFDT, (int)fdtNode, "interrupts",
521 if (prop == NULL)
531 interruptNumber = fdt32_to_cpu(*(prop + offset));
533 uint32 interruptType = fdt32_to_cpu(prop[offset + GIC_INTERRUPT_CELL_TYPE]);
534 interruptNumber = fdt32_to_cpu(prop[offset + GIC_INTERRUPT_CELL_ID]);
560 uint32 phandle = fdt32_to_cpu(*(prop + 2 * index));
570 *interrupt = fdt32_to_cpu(*(prop + 2 * index + 1));