Home
last modified time | relevance | path

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

/openbmc/linux/drivers/platform/chrome/
H A Dcros_ec_uart.c88 struct ec_host_response *host_response; in cros_ec_uart_rx_bytes() local
117 host_response = (struct ec_host_response *)resp->data; in cros_ec_uart_rx_bytes()
118 resp->exp_len = host_response->data_len + sizeof(*host_response); in cros_ec_uart_rx_bytes()
136 struct ec_host_response *host_response; in cros_ec_uart_pkt_xfer() local
173 host_response = (struct ec_host_response *)ec_dev->din; in cros_ec_uart_pkt_xfer()
174 ec_msg->result = host_response->result; in cros_ec_uart_pkt_xfer()
176 if (host_response->data_len > ec_msg->insize) { in cros_ec_uart_pkt_xfer()
178 host_response->data_len, ec_msg->insize); in cros_ec_uart_pkt_xfer()
185 for (i = 0; i < sizeof(*host_response) + host_response->data_len; i++) in cros_ec_uart_pkt_xfer()
194 memcpy(ec_msg->data, ec_dev->din + sizeof(*host_response), host_response->data_len); in cros_ec_uart_pkt_xfer()
[all …]
/openbmc/linux/drivers/nvme/target/
H A Dauth.c271 u8 *challenge = req->sq->dhchap_c1, *host_response; in nvmet_auth_host_hash() local
295 host_response = nvme_auth_transform_key(ctrl->host_key, ctrl->hostnqn); in nvmet_auth_host_hash()
296 if (IS_ERR(host_response)) { in nvmet_auth_host_hash()
297 ret = PTR_ERR(host_response); in nvmet_auth_host_hash()
301 ret = crypto_shash_setkey(shash_tfm, host_response, in nvmet_auth_host_hash()
370 kfree_sensitive(host_response); in nvmet_auth_host_hash()
/openbmc/linux/drivers/nvme/host/
H A Dauth.c39 u8 *host_response; member
431 if (!chap->host_response) { in nvme_auth_dhchap_setup_host_response()
432 chap->host_response = nvme_auth_transform_key(ctrl->host_key, in nvme_auth_dhchap_setup_host_response()
434 if (IS_ERR(chap->host_response)) { in nvme_auth_dhchap_setup_host_response()
435 ret = PTR_ERR(chap->host_response); in nvme_auth_dhchap_setup_host_response()
436 chap->host_response = NULL; in nvme_auth_dhchap_setup_host_response()
445 chap->host_response, ctrl->host_key->len); in nvme_auth_dhchap_setup_host_response()
651 kfree_sensitive(chap->host_response); in nvme_auth_reset_dhchap()
652 chap->host_response = NULL; in nvme_auth_reset_dhchap()