Lines Matching defs:node

185  * @node[in]:	Offset of the node
186 * @prop[in]: Property to read from the given node
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);
202 if (node < 0) {
203 return node;
207 rc = fdtw_read_string(dtb, node, "oid", *oid, MAX_OID_NAME_LEN);
217 * @node[in]: Offset of the node
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);
280 * get_parent_img_id() - Get parent image id for given child node
282 * @node[in]: Offset of the child node
287 static int get_parent_img_id(const void *dtb, int node,
293 err = fdt_read_uint32(dtb, node, "parent", &phandle);
295 ERROR("FCONF: Could not read %s property in node\n",
300 node = fdt_node_offset_by_phandle(dtb, phandle);
301 if (node < 0) {
302 ERROR("FCONF: Failed to locate node using its phandle\n");
303 return node;
306 err = fdt_read_uint32(dtb, node, "image-id", parent_img_id);
308 ERROR("FCONF: Could not read %s property in node\n",
318 * @node[in]: Offset of the node
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);
331 ERROR("FCONF: Can't find property %s in node\n",
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,
379 int node, child;
383 * Assert the node offset points to "arm, cert-descs"
388 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str);
389 if (node < 0) {
390 ERROR("FCONF: Can't find %s compatible in node\n",
392 return node;
395 fdt_for_each_subnode(child, dtb, node) {
414 int node, child;
418 * Assert the node offset points to "arm, img-descs"
423 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str);
424 if (node < 0) {
425 ERROR("FCONF: Can't find %s compatible in node\n",
427 return node;
430 fdt_for_each_subnode(child, dtb, node) {