Lines Matching refs:prop

92 write_string_list(const char* prop, size_t size)
95 const char* propEnd = prop + size;
96 while (propEnd - prop > 0) {
101 int curLen = strlen(prop);
102 dprintf("'%s'", prop);
103 prop += curLen + 1;
130 for (int prop = fdt_first_property_offset(fdt, node); prop >= 0; prop = fdt_next_property_offset(fdt, prop)) {
132 const struct fdt_property *property = fdt_get_property_by_offset(fdt, prop, &len);
136 dprintf("getting prop at %d: %s\n", prop, fdt_strerror(len));
141 dprintf("prop('%s'): ", fdt_string(fdt, fdt32_to_cpu(property->nameoff)));
242 uint32 *prop;
244 prop = (uint32*)fdt_getprop(fdt, node, "#address-cells", NULL);
245 if (prop != NULL)
246 addressCells = fdt32_to_cpu(*prop);
248 prop = (uint32*)fdt_getprop(fdt, node, "#interrupt-cells", NULL);
249 if (prop != NULL)
250 interruptCells = fdt32_to_cpu(*prop);
285 prop = (uint32*)fdt_getprop(fdt, parentNode, "#address-cells", NULL);
286 if (prop != NULL)
287 parentAddressCells = fdt32_to_cpu(*prop);
289 prop = (uint32*)fdt_getprop(fdt, parentNode, "#interrupt-cells", NULL);
290 if (prop != NULL)
291 parentInterruptCells = fdt32_to_cpu(*prop);
326 dtb_has_fdt_string(const char* prop, int size, const char* pattern)
329 const char* propEnd = prop + size;
330 while (propEnd - prop > 0) {
331 int curLen = strlen(prop);
332 if (curLen == patternLen && memcmp(prop, pattern, curLen + 1) == 0)
334 prop += curLen + 1;
349 uint32 *prop = (uint32*)fdt_getprop(fdt, parent, "#address-cells", NULL);
350 if (prop == NULL)
353 res = fdt32_to_cpu(*prop);
367 uint32 *prop = (uint32*)fdt_getprop(fdt, parent, "#size-cells", NULL);
368 if (prop == NULL)
371 res = fdt32_to_cpu(*prop);
383 const uint8* prop = (const uint8*)fdt_getprop(fdt, node, "reg", &propSize);
384 if (prop == NULL)
391 prop += idx * entrySize;
394 case 1: range.start = fdt32_to_cpu(*(uint32*)prop); prop += 4; break;
395 case 2: range.start = fdt64_to_cpu(*(uint64*)prop); prop += 8; break;
399 case 1: range.size = fdt32_to_cpu(*(uint32*)prop); prop += 4; break;
400 case 2: range.size = fdt64_to_cpu(*(uint64*)prop); prop += 8; break;
456 uint32* prop;
457 prop = (uint32*)fdt_getprop(fdt, node, "interrupt-parent", NULL);
458 if (prop != NULL) {
459 uint32_t phandle = fdt32_to_cpu(*prop);
475 uint32* prop = (uint32*)fdt_getprop(fdt, intc_node, "#interrupt-cells", NULL);
476 if (prop != NULL) {
477 return fdt32_to_cpu(*prop);
490 if (uint32* prop = (uint32*)fdt_getprop(fdt, node, "interrupts-extended", NULL)) {
491 return fdt32_to_cpu(*(prop + 1));
493 if (uint32* prop = (uint32*)fdt_getprop(fdt, node, "interrupts", NULL)) {
495 return fdt32_to_cpu(*prop);
497 uint32 interruptType = fdt32_to_cpu(prop[GIC_INTERRUPT_CELL_TYPE]);
498 uint32 interruptNumber = fdt32_to_cpu(prop[GIC_INTERRUPT_CELL_ID]);
517 uint32* prop;
520 prop = (uint32*)fdt_getprop(fdt, node, "clock-frequency", NULL);
521 if (prop != NULL) {
522 return fdt32_to_cpu(*prop);
525 prop = (uint32*)fdt_getprop(fdt, node, "clocks", &len);
526 if (prop != NULL) {
527 uint32_t phandle = fdt32_to_cpu(*prop);