Lines Matching defs:dtb

184  * @dtb[in]:	Pointer to the device tree blob in memory
191 static int get_oid(const void *dtb, int node, const char *prop, char **oid)
196 rc = fdt_read_uint32(dtb, node, prop, &phandle);
201 node = fdt_node_offset_by_phandle(dtb, phandle);
207 rc = fdtw_read_string(dtb, node, "oid", *oid, MAX_OID_NAME_LEN);
216 * @dtb[in]: Pointer to the device tree blob in memory
224 static int populate_and_set_auth_methods(const void *dtb, int node,
243 rc = get_oid(dtb, node, "signing-key", &oid);
252 rc = get_oid(dtb, node, "hash", &oid);
267 rc = get_oid(dtb, node, "antirollback-counter", &oid);
281 * @dtb[in]: Pointer to the device tree blob in memory
287 static int get_parent_img_id(const void *dtb, int node,
293 err = fdt_read_uint32(dtb, node, "parent", &phandle);
300 node = fdt_node_offset_by_phandle(dtb, phandle);
306 err = fdt_read_uint32(dtb, node, "image-id", parent_img_id);
317 * @dtb[in]: Pointer to the device tree blob in memory
323 static int set_desc_data(const void *dtb, int node, img_type_t type)
329 rc = fdt_read_uint32(dtb, node, "image-id", &img_id);
336 if (fdt_getprop(dtb, node, "root-certificate",
342 rc = get_parent_img_id(dtb, node, &parent_img_id);
352 rc = populate_and_set_auth_methods(dtb, node, img_id, type,
373 * @dtb[in]: Pointer to the device tree blob in memory
377 static int populate_manifest_descs(const void *dtb)
388 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str);
395 fdt_for_each_subnode(child, dtb, node) {
396 rc = set_desc_data(dtb, child, IMG_CERT);
408 * @dtb[in]: Pointer to the device tree blob in memory
412 static int populate_image_descs(const void *dtb)
423 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str);
430 fdt_for_each_subnode(child, dtb, node) {
431 rc = set_desc_data(dtb, child, IMG_RAW);
454 const void *dtb = (void *)config;
457 rc = populate_manifest_descs(dtb);
465 rc = populate_image_descs(dtb);