Lines Matching refs:dtb
191 static int get_oid(const void *dtb, int node, const char *prop, char **oid) in get_oid() argument
196 rc = fdt_read_uint32(dtb, node, prop, &phandle); in get_oid()
201 node = fdt_node_offset_by_phandle(dtb, phandle); in get_oid()
207 rc = fdtw_read_string(dtb, node, "oid", *oid, MAX_OID_NAME_LEN); in get_oid()
224 static int populate_and_set_auth_methods(const void *dtb, int node, in populate_and_set_auth_methods() argument
243 rc = get_oid(dtb, node, "signing-key", &oid); in populate_and_set_auth_methods()
252 rc = get_oid(dtb, node, "hash", &oid); in populate_and_set_auth_methods()
267 rc = get_oid(dtb, node, "antirollback-counter", &oid); in populate_and_set_auth_methods()
287 static int get_parent_img_id(const void *dtb, int node, in get_parent_img_id() argument
293 err = fdt_read_uint32(dtb, node, "parent", &phandle); in get_parent_img_id()
300 node = fdt_node_offset_by_phandle(dtb, phandle); in get_parent_img_id()
306 err = fdt_read_uint32(dtb, node, "image-id", parent_img_id); in get_parent_img_id()
323 static int set_desc_data(const void *dtb, int node, img_type_t type) in set_desc_data() argument
329 rc = fdt_read_uint32(dtb, node, "image-id", &img_id); in set_desc_data()
336 if (fdt_getprop(dtb, node, "root-certificate", in set_desc_data()
342 rc = get_parent_img_id(dtb, node, &parent_img_id); in set_desc_data()
352 rc = populate_and_set_auth_methods(dtb, node, img_id, type, in set_desc_data()
377 static int populate_manifest_descs(const void *dtb) in populate_manifest_descs() argument
388 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in populate_manifest_descs()
395 fdt_for_each_subnode(child, dtb, node) { in populate_manifest_descs()
396 rc = set_desc_data(dtb, child, IMG_CERT); in populate_manifest_descs()
412 static int populate_image_descs(const void *dtb) in populate_image_descs() argument
423 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in populate_image_descs()
430 fdt_for_each_subnode(child, dtb, node) { in populate_image_descs()
431 rc = set_desc_data(dtb, child, IMG_RAW); in populate_image_descs()
454 const void *dtb = (void *)config; in fconf_populate_cot_descs() local
457 rc = populate_manifest_descs(dtb); in fconf_populate_cot_descs()
465 rc = populate_image_descs(dtb); in fconf_populate_cot_descs()