Lines Matching refs:snp_dev

391 static int get_report(struct snp_guest_dev *snp_dev, struct snp_guest_request_ioctl *arg)  in get_report()  argument
393 struct snp_report_req *report_req = &snp_dev->req.report; in get_report()
394 struct snp_msg_desc *mdesc = snp_dev->msg_desc; in get_report()
436 static int get_derived_key(struct snp_guest_dev *snp_dev, struct snp_guest_request_ioctl *arg) in get_derived_key() argument
438 struct snp_derived_key_req *derived_key_req = &snp_dev->req.derived_key; in get_derived_key()
440 struct snp_msg_desc *mdesc = snp_dev->msg_desc; in get_derived_key()
486 static int get_ext_report(struct snp_guest_dev *snp_dev, struct snp_guest_request_ioctl *arg, in get_ext_report() argument
490 struct snp_ext_report_req *report_req = &snp_dev->req.ext_report; in get_ext_report()
491 struct snp_msg_desc *mdesc = snp_dev->msg_desc; in get_ext_report()
577 struct snp_guest_dev *snp_dev = to_snp_dev(file); in snp_guest_ioctl() local
594 ret = get_report(snp_dev, &input); in snp_guest_ioctl()
597 ret = get_derived_key(snp_dev, &input); in snp_guest_ioctl()
607 ret = get_ext_report(snp_dev, &input, &io); in snp_guest_ioctl()
840 struct snp_guest_dev *snp_dev = data; in sev_report_new() local
880 ret = get_ext_report(snp_dev, &input, &io); in sev_report_new()
913 dev_warn_ratelimited(snp_dev->dev, "certificate slots conveyed without size\n"); in sev_report_new()
922 dev_warn_ratelimited(snp_dev->dev, "certificate data truncated\n"); in sev_report_new()
985 struct snp_guest_dev *snp_dev; in sev_guest_probe() local
1007 snp_dev = devm_kzalloc(&pdev->dev, sizeof(struct snp_guest_dev), GFP_KERNEL); in sev_guest_probe()
1008 if (!snp_dev) in sev_guest_probe()
1032 platform_set_drvdata(pdev, snp_dev); in sev_guest_probe()
1033 snp_dev->dev = dev; in sev_guest_probe()
1054 misc = &snp_dev->misc; in sev_guest_probe()
1067 ret = tsm_register(&sev_tsm_ops, snp_dev); in sev_guest_probe()
1079 snp_dev->msg_desc = mdesc; in sev_guest_probe()
1098 struct snp_guest_dev *snp_dev = platform_get_drvdata(pdev); in sev_guest_remove() local
1099 struct snp_msg_desc *mdesc = snp_dev->msg_desc; in sev_guest_remove()
1105 misc_deregister(&snp_dev->misc); in sev_guest_remove()