Lines Matching refs:rc

31 	int rc;  in manifest_parse_attribute()  local
35 rc = fdt_read_uint32(fdt, node, "maj_ver", &attr->major_version); in manifest_parse_attribute()
36 if (rc != 0) { in manifest_parse_attribute()
39 return rc; in manifest_parse_attribute()
42 rc = fdt_read_uint32(fdt, node, "min_ver", &attr->minor_version); in manifest_parse_attribute()
43 if (rc != 0) { in manifest_parse_attribute()
46 return rc; in manifest_parse_attribute()
49 rc = fdt_read_uint32(fdt, node, "spmc_id", &val32); in manifest_parse_attribute()
50 if (rc != 0) { in manifest_parse_attribute()
52 return rc; in manifest_parse_attribute()
57 rc = fdt_read_uint32(fdt, node, "exec_state", &attr->exec_state); in manifest_parse_attribute()
58 if (rc != 0) { in manifest_parse_attribute()
63 rc = fdt_read_uint32(fdt, node, "binary_size", &attr->binary_size); in manifest_parse_attribute()
64 if (rc != 0) { in manifest_parse_attribute()
69 rc = fdt_read_uint64(fdt, node, "load_address", &attr->load_address); in manifest_parse_attribute()
70 if (rc != 0) { in manifest_parse_attribute()
75 rc = fdt_read_uint64(fdt, node, "entrypoint", &attr->entrypoint); in manifest_parse_attribute()
76 if (rc != 0) { in manifest_parse_attribute()
120 int rc; in plat_spm_core_manifest_load() local
132 rc = fdt_check_header(pm_addr); in plat_spm_core_manifest_load()
133 if (rc != 0) { in plat_spm_core_manifest_load()
134 ERROR("Wrong format for SPM Core manifest (%d).\n", rc); in plat_spm_core_manifest_load()
135 return rc; in plat_spm_core_manifest_load()
140 rc = fdt_node_offset_by_compatible(pm_addr, -1, in plat_spm_core_manifest_load()
142 if (rc < 0) { in plat_spm_core_manifest_load()
144 return rc; in plat_spm_core_manifest_load()
147 rc = manifest_parse_root(manifest, pm_addr, rc); in plat_spm_core_manifest_load()
149 return rc; in plat_spm_core_manifest_load()
151 int rc, unmap_ret; in plat_spm_core_manifest_load()
182 rc = mmap_add_dynamic_region((unsigned long long)pm_base_align, in plat_spm_core_manifest_load()
186 if (rc != 0) { in plat_spm_core_manifest_load()
187 ERROR("Error while mapping SPM Core manifest (%d).\n", rc); in plat_spm_core_manifest_load()
188 return rc; in plat_spm_core_manifest_load()
191 rc = fdt_check_header(pm_addr); in plat_spm_core_manifest_load()
192 if (rc != 0) { in plat_spm_core_manifest_load()
193 ERROR("Wrong format for SPM Core manifest (%d).\n", rc); in plat_spm_core_manifest_load()
200 rc = -EINVAL; in plat_spm_core_manifest_load()
206 rc = fdt_node_offset_by_compatible(pm_addr, -1, in plat_spm_core_manifest_load()
208 if (rc < 0) { in plat_spm_core_manifest_load()
213 rc = manifest_parse_root(manifest, pm_addr, rc); in plat_spm_core_manifest_load()
220 if (rc == 0) { in plat_spm_core_manifest_load()
221 rc = unmap_ret; in plat_spm_core_manifest_load()
225 return rc; in plat_spm_core_manifest_load()