Lines Matching refs:snp_guest_msg
55 struct snp_guest_msg *request, *response;
61 struct snp_guest_msg secret_request, secret_response;
224 static int enc_dec_message(struct snp_guest_crypto *crypto, struct snp_guest_msg *msg, in enc_dec_message()
266 static int __enc_payload(struct snp_guest_dev *snp_dev, struct snp_guest_msg *msg, in __enc_payload()
278 static int dec_payload(struct snp_guest_dev *snp_dev, struct snp_guest_msg *msg, in dec_payload()
294 struct snp_guest_msg *resp_msg = &snp_dev->secret_response; in verify_and_dec_payload()
295 struct snp_guest_msg *req_msg = &snp_dev->secret_request; in verify_and_dec_payload()
329 struct snp_guest_msg *msg = &snp_dev->secret_request; in enc_payload()
453 memset(snp_dev->response, 0, sizeof(struct snp_guest_msg)); in handle_guest_request()
1095 BUILD_BUG_ON(sizeof(struct snp_guest_msg) > PAGE_SIZE); in sev_guest_probe()
1137 snp_dev->request = alloc_shared_pages(dev, sizeof(struct snp_guest_msg)); in sev_guest_probe()
1141 snp_dev->response = alloc_shared_pages(dev, sizeof(struct snp_guest_msg)); in sev_guest_probe()
1185 free_shared_pages(snp_dev->response, sizeof(struct snp_guest_msg)); in sev_guest_probe()
1187 free_shared_pages(snp_dev->request, sizeof(struct snp_guest_msg)); in sev_guest_probe()
1198 free_shared_pages(snp_dev->response, sizeof(struct snp_guest_msg)); in sev_guest_remove()
1199 free_shared_pages(snp_dev->request, sizeof(struct snp_guest_msg)); in sev_guest_remove()