Home
last modified time | relevance | path

Searched refs:resp_hdr (Results 1 – 3 of 3) sorted by relevance

/external/u-boot/drivers/misc/
Dcros_ec_sandbox.c284 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()
[all …]
/external/selinux/libselinux/src/
Dsetrans_client.c131 struct iovec resp_hdr[3]; in receive_response() local
141 resp_hdr[0].iov_base = &func; in receive_response()
142 resp_hdr[0].iov_len = sizeof(func); in receive_response()
143 resp_hdr[1].iov_base = &data_size; in receive_response()
144 resp_hdr[1].iov_len = sizeof(data_size); in receive_response()
145 resp_hdr[2].iov_base = ret_val; in receive_response()
146 resp_hdr[2].iov_len = sizeof(*ret_val); in receive_response()
148 while (((count = readv(fd, resp_hdr, 3)) < 0) && (errno == EINTR)) ; in receive_response()
/external/selinux/mcstrans/src/
Dmcstransd.c87 struct iovec resp_hdr[3]; in send_response() local
97 resp_hdr[0].iov_base = &function; in send_response()
98 resp_hdr[0].iov_len = sizeof(function); in send_response()
99 resp_hdr[1].iov_base = &data_size; in send_response()
100 resp_hdr[1].iov_len = sizeof(data_size); in send_response()
101 resp_hdr[2].iov_base = &ret_val; in send_response()
102 resp_hdr[2].iov_len = sizeof(ret_val); in send_response()
104 while (((count = writev(fd, resp_hdr, 3)) < 0) && (errno == EINTR)); in send_response()