Lines Matching refs:prop

100 static int do_get_kexec_buffer(const void *prop, int len, unsigned long *addr,  in do_get_kexec_buffer()  argument
112 *addr = of_read_number(prop, addr_cells); in do_get_kexec_buffer()
113 *size = of_read_number(prop + 4 * addr_cells, size_cells); in do_get_kexec_buffer()
130 const void *prop; in ima_get_kexec_buffer() local
135 prop = of_get_property(of_chosen, "linux,ima-kexec-buffer", &len); in ima_get_kexec_buffer()
136 if (!prop) in ima_get_kexec_buffer()
139 ret = do_get_kexec_buffer(prop, len, &tmp_addr, &tmp_size); in ima_get_kexec_buffer()
157 struct property *prop; in ima_free_kexec_buffer() local
162 prop = of_find_property(of_chosen, "linux,ima-kexec-buffer", NULL); in ima_free_kexec_buffer()
163 if (!prop) in ima_free_kexec_buffer()
166 ret = do_get_kexec_buffer(prop->value, prop->length, &addr, &size); in ima_free_kexec_buffer()
170 ret = of_remove_property(of_chosen, prop); in ima_free_kexec_buffer()
191 const void *prop; in remove_ima_buffer() local
196 prop = fdt_getprop(fdt, chosen_node, "linux,ima-kexec-buffer", &len); in remove_ima_buffer()
197 if (!prop) in remove_ima_buffer()
200 ret = do_get_kexec_buffer(prop, len, &addr, &size); in remove_ima_buffer()
271 const void *prop; in of_kexec_alloc_and_setup_fdt() local
313 prop = fdt_getprop(fdt, chosen_node, "linux,initrd-start", NULL); in of_kexec_alloc_and_setup_fdt()
314 if (prop) { in of_kexec_alloc_and_setup_fdt()
317 tmp_start = fdt64_to_cpu(*((const fdt64_t *) prop)); in of_kexec_alloc_and_setup_fdt()
319 prop = fdt_getprop(fdt, chosen_node, "linux,initrd-end", NULL); in of_kexec_alloc_and_setup_fdt()
320 if (!prop) { in of_kexec_alloc_and_setup_fdt()
325 tmp_end = fdt64_to_cpu(*((const fdt64_t *) prop)); in of_kexec_alloc_and_setup_fdt()