Lines Matching full:node

102 	int node;  in sandbox_read_state_nodes()  local
109 node = -1; in sandbox_read_state_nodes()
112 node = fdt_node_offset_by_compatible(blob, node, io->compat); in sandbox_read_state_nodes()
113 if (node < 0) in sandbox_read_state_nodes()
115 debug(" - read node '%s'\n", fdt_get_name(blob, node, NULL)); in sandbox_read_state_nodes()
116 ret = io->read(blob, node); in sandbox_read_state_nodes()
126 * node, to set up the global state. in sandbox_read_state_nodes()
192 int node; in sandbox_write_state_node() local
206 node = fdt_node_offset_by_compatible(blob, -1, io->compat); in sandbox_write_state_node()
207 if (node == -FDT_ERR_NOTFOUND) { in sandbox_write_state_node()
208 node = fdt_add_subnode(blob, 0, io->name); in sandbox_write_state_node()
209 if (node < 0) { in sandbox_write_state_node()
210 printf("Cannot create node '%s': %s\n", io->name, in sandbox_write_state_node()
211 fdt_strerror(node)); in sandbox_write_state_node()
215 if (fdt_setprop_string(blob, node, "compatible", io->compat)) { in sandbox_write_state_node()
219 } else if (node < 0) { in sandbox_write_state_node()
220 printf("Cannot access node '%s': %s\n", io->name, in sandbox_write_state_node()
221 fdt_strerror(node)); in sandbox_write_state_node()
224 debug("Write state for '%s' to node %d\n", io->compat, node); in sandbox_write_state_node()
225 ret = io->write(blob, node); in sandbox_write_state_node()
308 int state_setprop(int node, const char *prop_name, const void *data, int size) in state_setprop() argument
314 fdt_getprop(state->state_fdt, node, prop_name, &len); in state_setprop()
323 ret = fdt_setprop(blob, node, prop_name, data, size); in state_setprop()
325 printf("%s: Unable to set property '%s' in node '%s': %s\n", in state_setprop()
326 __func__, prop_name, fdt_get_name(blob, node, NULL), in state_setprop()