Lines Matching refs:dtb
189 static int get_oid(const void *dtb, int node, const char *prop, char **oid) in get_oid() argument
194 rc = fdt_read_uint32(dtb, node, prop, &phandle); in get_oid()
199 node = fdt_node_offset_by_phandle(dtb, phandle); in get_oid()
205 rc = fdtw_read_string(dtb, node, "oid", *oid, MAX_OID_NAME_LEN); in get_oid()
222 static int populate_and_set_auth_methods(const void *dtb, int node, in populate_and_set_auth_methods() argument
241 rc = get_oid(dtb, node, "signing-key", &oid); in populate_and_set_auth_methods()
250 rc = get_oid(dtb, node, "hash", &oid); in populate_and_set_auth_methods()
265 rc = get_oid(dtb, node, "antirollback-counter", &oid); in populate_and_set_auth_methods()
285 static int get_parent_img_id(const void *dtb, int node, in get_parent_img_id() argument
291 err = fdt_read_uint32(dtb, node, "parent", &phandle); in get_parent_img_id()
298 node = fdt_node_offset_by_phandle(dtb, phandle); in get_parent_img_id()
304 err = fdt_read_uint32(dtb, node, "image-id", parent_img_id); in get_parent_img_id()
321 static int set_desc_data(const void *dtb, int node, img_type_t type) in set_desc_data() argument
327 rc = fdt_read_uint32(dtb, node, "image-id", &img_id); in set_desc_data()
334 if (fdt_getprop(dtb, node, "root-certificate", in set_desc_data()
340 rc = get_parent_img_id(dtb, node, &parent_img_id); in set_desc_data()
350 rc = populate_and_set_auth_methods(dtb, node, img_id, type, in set_desc_data()
375 static int populate_manifest_descs(const void *dtb) in populate_manifest_descs() argument
386 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in populate_manifest_descs()
393 fdt_for_each_subnode(child, dtb, node) { in populate_manifest_descs()
394 rc = set_desc_data(dtb, child, IMG_CERT); in populate_manifest_descs()
410 static int populate_image_descs(const void *dtb) in populate_image_descs() argument
421 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in populate_image_descs()
428 fdt_for_each_subnode(child, dtb, node) { in populate_image_descs()
429 rc = set_desc_data(dtb, child, IMG_RAW); in populate_image_descs()
452 const void *dtb = (void *)config; in fconf_populate_cot_descs() local
455 rc = populate_manifest_descs(dtb); in fconf_populate_cot_descs()
463 rc = populate_image_descs(dtb); in fconf_populate_cot_descs()