Lines Matching refs:cros_ec_dev
89 static int create_proto3_request(struct cros_ec_dev *dev, in create_proto3_request()
129 static int prepare_proto3_response_buffer(struct cros_ec_dev *dev, int din_len) in prepare_proto3_response_buffer()
155 static int handle_proto3_response(struct cros_ec_dev *dev, in handle_proto3_response()
203 static int send_command_proto3(struct cros_ec_dev *dev, in send_command_proto3()
232 static int send_command(struct cros_ec_dev *dev, uint8_t cmd, int cmd_version, in send_command()
268 static int ec_command_inptr(struct cros_ec_dev *dev, uint8_t cmd, in ec_command_inptr()
334 static int ec_command(struct cros_ec_dev *dev, uint8_t cmd, int cmd_version, in ec_command()
359 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_scan_keyboard()
368 int cros_ec_read_id(struct cros_ec_dev *dev, char *id, int maxlen) in cros_ec_read_id()
394 int cros_ec_read_version(struct cros_ec_dev *dev, in cros_ec_read_version()
405 int cros_ec_read_build_info(struct cros_ec_dev *dev, char **strp) in cros_ec_read_build_info()
414 int cros_ec_read_current_image(struct cros_ec_dev *dev, in cros_ec_read_current_image()
427 static int cros_ec_wait_on_hash_done(struct cros_ec_dev *dev, in cros_ec_wait_on_hash_done()
451 int cros_ec_read_hash(struct cros_ec_dev *dev, in cros_ec_read_hash()
495 static int cros_ec_invalidate_hash(struct cros_ec_dev *dev) in cros_ec_invalidate_hash()
520 int cros_ec_reboot(struct cros_ec_dev *dev, enum ec_reboot_cmd cmd, in cros_ec_reboot()
552 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_interrupt_pending()
561 int cros_ec_info(struct cros_ec_dev *dev, struct ec_response_mkbp_info *info) in cros_ec_info()
570 int cros_ec_get_host_events(struct cros_ec_dev *dev, uint32_t *events_ptr) in cros_ec_get_host_events()
589 int cros_ec_clear_host_events(struct cros_ec_dev *dev, uint32_t events) in cros_ec_clear_host_events()
606 int cros_ec_flash_protect(struct cros_ec_dev *dev, in cros_ec_flash_protect()
623 static int cros_ec_check_version(struct cros_ec_dev *dev) in cros_ec_check_version()
678 int cros_ec_test(struct cros_ec_dev *dev) in cros_ec_test()
697 int cros_ec_flash_offset(struct cros_ec_dev *dev, enum ec_flash_region region, in cros_ec_flash_offset()
719 int cros_ec_flash_erase(struct cros_ec_dev *dev, uint32_t offset, uint32_t size) in cros_ec_flash_erase()
747 static int cros_ec_flash_write_block(struct cros_ec_dev *dev, in cros_ec_flash_write_block()
773 static int cros_ec_flash_write_burst_size(struct cros_ec_dev *dev) in cros_ec_flash_write_burst_size()
807 int cros_ec_read_flashinfo(struct cros_ec_dev *dev, in cros_ec_read_flashinfo()
820 int cros_ec_flash_write(struct cros_ec_dev *dev, const uint8_t *data, in cros_ec_flash_write()
864 static int cros_ec_flash_read_block(struct cros_ec_dev *dev, uint8_t *data, in cros_ec_flash_read_block()
876 int cros_ec_flash_read(struct cros_ec_dev *dev, uint8_t *data, uint32_t offset, in cros_ec_flash_read()
894 int cros_ec_flash_update_rw(struct cros_ec_dev *dev, in cros_ec_flash_update_rw()
933 int cros_ec_read_vbnvcontext(struct cros_ec_dev *dev, uint8_t *block) in cros_ec_read_vbnvcontext()
948 int cros_ec_write_vbnvcontext(struct cros_ec_dev *dev, const uint8_t *block) in cros_ec_write_vbnvcontext()
966 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_set_ldo()
981 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_get_ldo()
999 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_register()
1068 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_i2c_tunnel()
1144 .per_device_auto_alloc_size = sizeof(struct cros_ec_dev),