Lines Matching full:node
91 * If data is available, then blob and node will provide access to it. If
95 * @param node: Node offset to read from
97 static int cros_ec_read_state(const void *blob, int node) in cros_ec_read_state() argument
109 ec->current_image = fdtdec_get_int(blob, node, "current-image", in cros_ec_read_state()
111 prop = fdt_getprop(blob, node, "vbnv-context", &len); in cros_ec_read_state()
115 prop = fdt_getprop(blob, node, "flash-data", &len); in cros_ec_read_state()
131 * The caller will ensure that there is a node ready for the state. The node
135 * @param node: Node to write our state into
137 static int cros_ec_write_state(void *blob, int node) in cros_ec_write_state() argument
142 fdt_setprop_u32(blob, node, "current-image", ec->current_image); in cros_ec_write_state()
143 fdt_setprop(blob, node, "vbnv-context", ec->vbnv_context, in cros_ec_write_state()
145 return state_setprop(node, "flash-data", ec->flash_data, in cros_ec_write_state()
188 * @param node Keyboard node of device tree containing keyscan information
191 static int keyscan_read_fdt_matrix(struct ec_state *ec, ofnode node) in keyscan_read_fdt_matrix() argument
197 cell = ofnode_get_property(node, "linux,keymap", &len); in keyscan_read_fdt_matrix()
517 ofnode node; in cros_ec_probe() local
527 node = ofnode_null(); in cros_ec_probe()
532 node = dev_ofnode(keyb_dev); in cros_ec_probe()
536 if (!ofnode_valid(node)) { in cros_ec_probe()
538 } else if (keyscan_read_fdt_matrix(ec, node)) { in cros_ec_probe()