Lines Matching refs:property

132 			const struct fdt_property *property = fdt_get_property_by_offset(fdt, prop, &len);
133 if (property == NULL) {
141 dprintf("prop('%s'): ", fdt_string(fdt, fdt32_to_cpu(property->nameoff)));
143 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "compatible") == 0 ||
144 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "model") == 0 ||
145 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "serial-number") == 0 ||
146 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "status") == 0 ||
147 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "device_type") == 0 ||
148 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "riscv,isa") == 0 ||
149 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "mmu-type") == 0 ||
150 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "format") == 0 ||
151 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "bootargs") == 0 ||
152 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "stdout-path") == 0 ||
153 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "reg-names") == 0 ||
154 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "reset-names") == 0 ||
155 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "clock-names") == 0 ||
156 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "clock-output-names") == 0
158 write_string_list((const char*)property->data, fdt32_to_cpu(property->len));
159 } else if (strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "reg") == 0) {
160 for (uint64_t *it = (uint64_t*)property->data; (uint8_t*)it - (uint8_t*)property->data < fdt32_to_cpu(property->len); it += 2) {
161 if (it != (uint64_t*)property->data)
167 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "phandle") == 0 ||
168 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "clock-frequency") == 0 ||
169 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "timebase-frequency") == 0 ||
170 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "#address-cells") == 0 ||
171 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "#size-cells") == 0 ||
172 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "#interrupt-cells") == 0 ||
173 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "interrupts") == 0 ||
174 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "interrupt-parent") == 0 ||
175 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "boot-hartid") == 0 ||
176 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "riscv,ndev") == 0 ||
177 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "value") == 0 ||
178 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "offset") == 0 ||
179 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "regmap") == 0 ||
180 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "bank-width") == 0 ||
181 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "width") == 0 ||
182 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "height") == 0 ||
183 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "stride") == 0
185 dprintf("%" B_PRId32, fdt32_to_cpu(*(uint32_t*)property->data));
187 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "interrupts-extended") == 0
189 for (uint32_t *it = (uint32_t*)property->data; (uint8_t*)it - (uint8_t*)property->data < fdt32_to_cpu(property->len); it += 2) {
190 if (it != (uint32_t*)property->data)
196 strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "ranges") == 0
204 for (uint32_t *it = (uint32_t*)property->data; (uint8_t*)it - (uint8_t*)property->data < fdt32_to_cpu(property->len); it += 7) {
220 } else if (strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "bus-range") == 0) {
221 uint32_t *it = (uint32_t*)property->data;
223 } else if (strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "interrupt-map-mask") == 0) {
226 for (uint32_t *it = (uint32_t*)property->data; (uint8_t*)it - (uint8_t*)property->data < fdt32_to_cpu(property->len); it++) {
234 } else if (strcmp(fdt_string(fdt, fdt32_to_cpu(property->nameoff)), "interrupt-map") == 0) {
252 uint32_t *it = (uint32_t*)property->data;
253 while ((uint8_t*)it - (uint8_t*)property->data < fdt32_to_cpu(property->len)) {
314 dprintf(" (len %" PRId32 ")\n", fdt32_to_cpu(property->len));
316 dump_hex(property->data, fdt32_to_cpu(property->len), depth);