Lines Matching refs:offs
440 unsigned long offs = boot_mmu_config.map_offset; in undo_init_relocation() local
442 vaddr_t addr_end = (vaddr_t)__init_end - offs - TEE_LOAD_ADDR; in undo_init_relocation()
443 vaddr_t addr_start = (vaddr_t)__init_start - offs - TEE_LOAD_ADDR; in undo_init_relocation()
454 *ptr -= offs; in undo_init_relocation()
634 int offs; in add_optee_dt_node() local
642 offs = fdt_path_offset(dt->blob, "/firmware"); in add_optee_dt_node()
643 if (offs < 0) { in add_optee_dt_node()
644 offs = add_dt_path_subnode(dt, "/", "firmware"); in add_optee_dt_node()
645 if (offs < 0) in add_optee_dt_node()
649 offs = fdt_add_subnode(dt->blob, offs, "optee"); in add_optee_dt_node()
650 if (offs < 0) in add_optee_dt_node()
653 ret = fdt_setprop_string(dt->blob, offs, "compatible", in add_optee_dt_node()
657 ret = fdt_setprop_string(dt->blob, offs, "method", "smc"); in add_optee_dt_node()
705 ret = fdt_setprop(dt->blob, offs, "interrupts", val, in add_optee_dt_node()
714 static int append_psci_compatible(void *fdt, int offs, const char *str) in append_psci_compatible() argument
716 return fdt_appendprop(fdt, offs, "compatible", str, strlen(str) + 1); in append_psci_compatible()
721 int offs; in dt_add_psci_node() local
728 offs = add_dt_path_subnode(dt, "/", "psci"); in dt_add_psci_node()
729 if (offs < 0) in dt_add_psci_node()
731 if (append_psci_compatible(dt->blob, offs, "arm,psci-1.0")) in dt_add_psci_node()
733 if (append_psci_compatible(dt->blob, offs, "arm,psci-0.2")) in dt_add_psci_node()
735 if (append_psci_compatible(dt->blob, offs, "arm,psci")) in dt_add_psci_node()
737 if (fdt_setprop_string(dt->blob, offs, "method", "smc")) in dt_add_psci_node()
739 if (fdt_setprop_u32(dt->blob, offs, "cpu_suspend", PSCI_CPU_SUSPEND)) in dt_add_psci_node()
741 if (fdt_setprop_u32(dt->blob, offs, "cpu_off", PSCI_CPU_OFF)) in dt_add_psci_node()
743 if (fdt_setprop_u32(dt->blob, offs, "cpu_on", PSCI_CPU_ON)) in dt_add_psci_node()
745 if (fdt_setprop_u32(dt->blob, offs, "sys_poweroff", PSCI_SYSTEM_OFF)) in dt_add_psci_node()
747 if (fdt_setprop_u32(dt->blob, offs, "sys_reset", PSCI_SYSTEM_RESET)) in dt_add_psci_node()
752 static int check_node_compat_prefix(struct dt_descriptor *dt, int offs, in check_node_compat_prefix() argument
760 prop = fdt_getprop(dt->blob, offs, "compatible", &plen); in check_node_compat_prefix()
778 int offs = 0; in dt_add_psci_cpu_enable_methods() local
781 offs = fdt_next_node(dt->blob, offs, NULL); in dt_add_psci_cpu_enable_methods()
782 if (offs < 0) in dt_add_psci_cpu_enable_methods()
784 if (fdt_getprop(dt->blob, offs, "enable-method", NULL)) in dt_add_psci_cpu_enable_methods()
786 if (check_node_compat_prefix(dt, offs, "arm,cortex-a")) in dt_add_psci_cpu_enable_methods()
788 if (fdt_setprop_string(dt->blob, offs, "enable-method", "psci")) in dt_add_psci_cpu_enable_methods()
791 offs = 0; in dt_add_psci_cpu_enable_methods()
1244 int offs = 0; in get_aslr_seed() local
1261 offs = fdt_path_offset(fdt, "/secure-chosen"); in get_aslr_seed()
1262 if (offs < 0) { in get_aslr_seed()
1266 seed = fdt_getprop(fdt, offs, "kaslr-seed", &len); in get_aslr_seed()