Lines Matching refs:uvcb_attest

84 static int uvio_build_uvcb_attest(struct uv_cb_attest *uvcb_attest, u8 *arcb,  in uvio_build_uvcb_attest()  argument
92 uvcb_attest->header.len = sizeof(*uvcb_attest); in uvio_build_uvcb_attest()
93 uvcb_attest->header.cmd = UVC_CMD_RETR_ATTEST; in uvio_build_uvcb_attest()
94 uvcb_attest->arcb_addr = (u64)arcb; in uvio_build_uvcb_attest()
95 uvcb_attest->cont_token = 0; in uvio_build_uvcb_attest()
96 uvcb_attest->user_data_len = uvio_attest->user_data_len; in uvio_build_uvcb_attest()
97 memcpy(uvcb_attest->user_data, uvio_attest->user_data, sizeof(uvcb_attest->user_data)); in uvio_build_uvcb_attest()
98 uvcb_attest->meas_len = uvio_attest->meas_len; in uvio_build_uvcb_attest()
99 uvcb_attest->meas_addr = (u64)meas; in uvio_build_uvcb_attest()
100 uvcb_attest->add_data_len = uvio_attest->add_data_len; in uvio_build_uvcb_attest()
101 uvcb_attest->add_data_addr = (u64)add_data; in uvio_build_uvcb_attest()
106 static int uvio_copy_attest_result_to_user(struct uv_cb_attest *uvcb_attest, in uvio_copy_attest_result_to_user() argument
120 if (copy_to_user(user_buf_uid, uvcb_attest->config_uid, sizeof(uvcb_attest->config_uid))) in uvio_copy_attest_result_to_user()
181 struct uv_cb_attest *uvcb_attest = NULL; in uvio_attestation() local
213 uvcb_attest = kzalloc(sizeof(*uvcb_attest), GFP_KERNEL); in uvio_attestation()
214 if (!uvcb_attest) in uvio_attestation()
217 ret = uvio_build_uvcb_attest(uvcb_attest, arcb, measurement, add_data, uvio_attest); in uvio_attestation()
221 uv_call_sched(0, (u64)uvcb_attest); in uvio_attestation()
223 uv_ioctl->uv_rc = uvcb_attest->header.rc; in uvio_attestation()
224 uv_ioctl->uv_rrc = uvcb_attest->header.rrc; in uvio_attestation()
226 ret = uvio_copy_attest_result_to_user(uvcb_attest, uv_ioctl, measurement, add_data, in uvio_attestation()
233 kfree(uvcb_attest); in uvio_attestation()