Lines Matching refs:resp_hdr
284 struct ec_host_response *resp_hdr, void *resp_data) in process_cmd() argument
474 struct ec_host_response *resp_hdr = (struct ec_host_response *)dev->din; in cros_ec_sandbox_packet() local
475 void *resp_data = resp_hdr + 1; in cros_ec_sandbox_packet()
478 len = process_cmd(ec, req_hdr, req_data, resp_hdr, resp_data); in cros_ec_sandbox_packet()
482 resp_hdr->struct_version = 3; in cros_ec_sandbox_packet()
483 resp_hdr->result = EC_RES_SUCCESS; in cros_ec_sandbox_packet()
484 resp_hdr->data_len = len; in cros_ec_sandbox_packet()
485 resp_hdr->reserved = 0; in cros_ec_sandbox_packet()
486 len += sizeof(*resp_hdr); in cros_ec_sandbox_packet()
487 resp_hdr->checksum = 0; in cros_ec_sandbox_packet()
488 resp_hdr->checksum = (uint8_t) in cros_ec_sandbox_packet()
489 -cros_ec_calc_checksum((const uint8_t *)resp_hdr, len); in cros_ec_sandbox_packet()