Lines Matching refs:cmd

47 void cros_ec_dump_data(const char *name, int cmd, const uint8_t *data, int len)  in cros_ec_dump_data()  argument
53 if (cmd != -1) in cros_ec_dump_data()
54 printf("cmd=%#x: ", cmd); in cros_ec_dump_data()
90 int cmd, int cmd_version, in create_proto3_request() argument
105 rq->command = cmd; in create_proto3_request()
116 cros_ec_dump_data("out", cmd, dev->dout, out_bytes); in create_proto3_request()
204 int cmd, int cmd_version, in send_command_proto3() argument
213 out_bytes = create_proto3_request(dev, cmd, cmd_version, in send_command_proto3()
232 static int send_command(struct cros_ec_dev *dev, uint8_t cmd, int cmd_version, in send_command() argument
241 return send_command_proto3(dev, cmd, cmd_version, in send_command()
246 ret = ops->command(dev->dev, cmd, cmd_version, in send_command()
268 static int ec_command_inptr(struct cros_ec_dev *dev, uint8_t cmd, in ec_command_inptr() argument
275 len = send_command(dev, cmd, cmd_version, dout, dout_len, in ec_command_inptr()
297 __func__, cmd); in ec_command_inptr()
334 static int ec_command(struct cros_ec_dev *dev, uint8_t cmd, int cmd_version, in ec_command() argument
342 len = ec_command_inptr(dev, cmd, cmd_version, dout, dout_len, in ec_command()
437 p.cmd = EC_VBOOT_HASH_GET; in cros_ec_wait_on_hash_done()
457 p.cmd = EC_VBOOT_HASH_GET; in cros_ec_read_hash()
477 p.cmd = EC_VBOOT_HASH_START; in cros_ec_read_hash()
504 p.cmd = EC_VBOOT_HASH_RECALC; in cros_ec_invalidate_hash()
520 int cros_ec_reboot(struct cros_ec_dev *dev, enum ec_reboot_cmd cmd, in cros_ec_reboot() argument
525 p.cmd = cmd; in cros_ec_reboot()