Lines Matching refs:flash_data
92 uint8_t *flash_data; member
133 ec->flash_data = malloc(len); in cros_ec_read_state()
134 if (!ec->flash_data) in cros_ec_read_state()
136 memcpy(ec->flash_data, prop, len); in cros_ec_read_state()
160 return state_setprop(node, "flash-data", ec->flash_data, in cros_ec_write_state()
189 size > 0 && ec->flash_data[entry->offset + size] != 0xea; in get_image_used()
405 ec->flash_data + entry->offset, in process_cmd()
470 memset(ec->flash_data + req->offset, in process_cmd()
479 memcpy(ec->flash_data + req->offset, req + 1, req->size); in process_cmd()
650 if (ec->flash_data && in cros_ec_probe()
654 free(ec->flash_data); in cros_ec_probe()
655 ec->flash_data = NULL; in cros_ec_probe()
659 if (!ec->flash_data) { in cros_ec_probe()
661 ec->flash_data = malloc(ec->flash_data_len); in cros_ec_probe()
662 if (!ec->flash_data) in cros_ec_probe()