Lines Matching refs:certs_len
596 if (!report_req->certs_len || !report_req->certs_address) in get_ext_report()
599 if (report_req->certs_len > SEV_FW_BLOB_MAX_SIZE || in get_ext_report()
600 !IS_ALIGNED(report_req->certs_len, PAGE_SIZE)) in get_ext_report()
607 if (!access_ok(certs_address.user, report_req->certs_len)) in get_ext_report()
617 memset(snp_dev->certs_data, 0, report_req->certs_len); in get_ext_report()
618 npages = report_req->certs_len >> PAGE_SHIFT; in get_ext_report()
637 report_req->certs_len = snp_dev->input.data_npages << PAGE_SHIFT; in get_ext_report()
646 if (npages && copy_to_sockptr(certs_address, snp_dev->certs_data, report_req->certs_len)) { in get_ext_report()
798 unsigned int rep_len, man_len, certs_len; in sev_svsm_report_new() local
820 certs_len = SEV_FW_BLOB_MAX_SIZE; in sev_svsm_report_new()
838 size = rep_len + man_len + certs_len; in sev_svsm_report_new()
853 ac.certificates_buf.len = certs_len; in sev_svsm_report_new()
876 if (ac.certificates_buf.len > certs_len) { in sev_svsm_report_new()
877 certs_len = PAGE_ALIGN(ac.certificates_buf.len); in sev_svsm_report_new()
906 certs_len = ac.certificates_buf.len; in sev_svsm_report_new()
907 void *cbuf __free(kvfree) = certs_len ? kvzalloc(certs_len, GFP_KERNEL) : NULL; in sev_svsm_report_new()
909 if (!rbuf || !mbuf || (certs_len && !cbuf)) { in sev_svsm_report_new()
922 if (certs_len) { in sev_svsm_report_new()
923 memcpy(cbuf, certs, certs_len); in sev_svsm_report_new()
925 report->auxblob_len = certs_len; in sev_svsm_report_new()
970 .certs_len = ext_size, in sev_report_new()