Lines Matching refs:cros_ec_dev
86 static int create_proto3_request(struct cros_ec_dev *dev, in create_proto3_request()
126 static int prepare_proto3_response_buffer(struct cros_ec_dev *dev, int din_len) in prepare_proto3_response_buffer()
152 static int handle_proto3_response(struct cros_ec_dev *dev, in handle_proto3_response()
200 static int send_command_proto3(struct cros_ec_dev *dev, in send_command_proto3()
229 static int send_command(struct cros_ec_dev *dev, uint8_t cmd, int cmd_version, in send_command()
265 static int ec_command_inptr(struct cros_ec_dev *dev, uint8_t cmd, in ec_command_inptr()
331 static int ec_command(struct cros_ec_dev *dev, uint8_t cmd, int cmd_version, in ec_command()
356 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_scan_keyboard()
365 int cros_ec_read_id(struct cros_ec_dev *dev, char *id, int maxlen) in cros_ec_read_id()
391 int cros_ec_read_version(struct cros_ec_dev *dev, in cros_ec_read_version()
402 int cros_ec_read_build_info(struct cros_ec_dev *dev, char **strp) in cros_ec_read_build_info()
411 int cros_ec_read_current_image(struct cros_ec_dev *dev, in cros_ec_read_current_image()
424 static int cros_ec_wait_on_hash_done(struct cros_ec_dev *dev, in cros_ec_wait_on_hash_done()
448 int cros_ec_read_hash(struct cros_ec_dev *dev, in cros_ec_read_hash()
492 static int cros_ec_invalidate_hash(struct cros_ec_dev *dev) in cros_ec_invalidate_hash()
517 int cros_ec_reboot(struct cros_ec_dev *dev, enum ec_reboot_cmd cmd, in cros_ec_reboot()
549 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_interrupt_pending()
558 int cros_ec_info(struct cros_ec_dev *dev, struct ec_response_mkbp_info *info) in cros_ec_info()
567 int cros_ec_get_host_events(struct cros_ec_dev *dev, uint32_t *events_ptr) in cros_ec_get_host_events()
586 int cros_ec_clear_host_events(struct cros_ec_dev *dev, uint32_t events) in cros_ec_clear_host_events()
603 int cros_ec_flash_protect(struct cros_ec_dev *dev, in cros_ec_flash_protect()
620 static int cros_ec_check_version(struct cros_ec_dev *dev) in cros_ec_check_version()
675 int cros_ec_test(struct cros_ec_dev *dev) in cros_ec_test()
694 int cros_ec_flash_offset(struct cros_ec_dev *dev, enum ec_flash_region region, in cros_ec_flash_offset()
716 int cros_ec_flash_erase(struct cros_ec_dev *dev, uint32_t offset, uint32_t size) in cros_ec_flash_erase()
744 static int cros_ec_flash_write_block(struct cros_ec_dev *dev, in cros_ec_flash_write_block()
770 static int cros_ec_flash_write_burst_size(struct cros_ec_dev *dev) in cros_ec_flash_write_burst_size()
804 int cros_ec_read_flashinfo(struct cros_ec_dev *dev, in cros_ec_read_flashinfo()
817 int cros_ec_flash_write(struct cros_ec_dev *dev, const uint8_t *data, in cros_ec_flash_write()
861 static int cros_ec_flash_read_block(struct cros_ec_dev *dev, uint8_t *data, in cros_ec_flash_read_block()
873 int cros_ec_flash_read(struct cros_ec_dev *dev, uint8_t *data, uint32_t offset, in cros_ec_flash_read()
891 int cros_ec_flash_update_rw(struct cros_ec_dev *dev, in cros_ec_flash_update_rw()
930 int cros_ec_read_vbnvcontext(struct cros_ec_dev *dev, uint8_t *block) in cros_ec_read_vbnvcontext()
945 int cros_ec_write_vbnvcontext(struct cros_ec_dev *dev, const uint8_t *block) in cros_ec_write_vbnvcontext()
963 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_set_ldo()
978 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_get_ldo()
996 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_register()
1065 struct cros_ec_dev *cdev = dev_get_uclass_priv(dev); in cros_ec_i2c_tunnel()
1141 .per_device_auto_alloc_size = sizeof(struct cros_ec_dev),