Lines Matching refs:cuint
137 const fdt32_t *cuint; in dt_fill_device_info() local
141 cuint = fdt_getprop(fdt, node, "reg", NULL); in dt_fill_device_info()
142 if (cuint != NULL) { in dt_fill_device_info()
143 info->base = fdt32_to_cpu(*cuint); in dt_fill_device_info()
148 cuint = fdt_getprop(fdt, node, "clocks", NULL); in dt_fill_device_info()
149 if (cuint != NULL) { in dt_fill_device_info()
150 cuint++; in dt_fill_device_info()
151 info->clock = (int)fdt32_to_cpu(*cuint); in dt_fill_device_info()
156 cuint = fdt_getprop(fdt, node, "resets", NULL); in dt_fill_device_info()
157 if (cuint != NULL) { in dt_fill_device_info()
158 cuint++; in dt_fill_device_info()
159 info->reset = (int)fdt32_to_cpu(*cuint); in dt_fill_device_info()
213 const fdt32_t *cuint; in dt_match_instance_by_compatible() local
217 cuint = fdt_getprop(fdt, node, "reg", NULL); in dt_match_instance_by_compatible()
218 if (cuint == NULL) { in dt_match_instance_by_compatible()
222 if ((uintptr_t)fdt32_to_cpu(*cuint) == address) { in dt_match_instance_by_compatible()
330 const fdt32_t *cuint; in dt_find_otp_name() local
347 cuint = fdt_getprop(fdt, node, "reg", &len); in dt_find_otp_name()
348 if ((cuint == NULL) || (len != (2 * (int)sizeof(uint32_t)))) { in dt_find_otp_name()
353 if (fdt32_to_cpu(*cuint) % sizeof(uint32_t)) { in dt_find_otp_name()
359 *otp = fdt32_to_cpu(*cuint) / sizeof(uint32_t); in dt_find_otp_name()
363 cuint++; in dt_find_otp_name()
364 *otp_len = fdt32_to_cpu(*cuint) * CHAR_BIT; in dt_find_otp_name()
388 const fdt32_t *cuint; in fdt_get_gpio_bank_pin_count() local
397 cuint = fdt_getprop(fdt, node, "reg", NULL); in fdt_get_gpio_bank_pin_count()
398 if (cuint == NULL) { in fdt_get_gpio_bank_pin_count()
402 if (fdt32_to_cpu(*cuint) != bank_offset) { in fdt_get_gpio_bank_pin_count()
411 cuint = fdt_getprop(fdt, node, "gpio-ranges", &len); in fdt_get_gpio_bank_pin_count()
412 len /= sizeof(*cuint); in fdt_get_gpio_bank_pin_count()
418 pin_count = fdt32_to_cpu(*(cuint + 1)) + fdt32_to_cpu(*(cuint + 3)); in fdt_get_gpio_bank_pin_count()
420 pin_count = MAX(pin_count, (int)(fdt32_to_cpu(*(cuint + 1)) + in fdt_get_gpio_bank_pin_count()
421 fdt32_to_cpu(*(cuint + 3)))); in fdt_get_gpio_bank_pin_count()
422 cuint += 4; in fdt_get_gpio_bank_pin_count()