Lines Matching defs:uvcb
44 struct uv_cb_init uvcb = {
46 .header.len = sizeof(uvcb),
51 if (uv_call(0, (uint64_t)&uvcb)) {
53 uvcb.header.rc, uvcb.header.rrc);
94 struct uv_cb_cfs uvcb = {
96 .header.len = sizeof(uvcb),
100 if (uv_call(0, (u64)&uvcb))
115 struct uv_cb_cfs uvcb = {
117 .header.len = sizeof(uvcb),
121 if (uv_call(0, (u64)&uvcb)) {
126 if (uvcb.header.rc == 0x107 && uvcb.header.rrc == 0xd)
170 struct uv_cb_cfs uvcb = {
172 .header.len = sizeof(uvcb),
176 if (uv_call(0, (u64)&uvcb))
214 * @uvcb: the Ultravisor control block of the UVC to be performed
230 static bool should_export_before_import(struct uv_cb_header *uvcb, struct mm_struct *mm)
239 if (uvcb->cmd == UVC_CMD_UNPIN_PAGE_SHARED)
268 * @uvcb: the uvcb that describes the UVC to be used
270 * The folio @folio will be made secure if possible, @uvcb will be passed
283 static int __make_folio_secure(struct folio *folio, struct uv_cb_header *uvcb)
301 cc = __uv_call(0, (u64)uvcb);
311 return uvcb->rc == 0x10a ? -ENXIO : -EINVAL;
314 static int make_folio_secure(struct mm_struct *mm, struct folio *folio, struct uv_cb_header *uvcb)
320 if (should_export_before_import(uvcb, mm))
322 rc = __make_folio_secure(folio, uvcb);
414 int make_hva_secure(struct mm_struct *mm, unsigned long hva, struct uv_cb_header *uvcb)
449 rc = make_folio_secure(mm, folio, uvcb);
697 struct uv_cb_query_keys uvcb = {
699 .header.len = sizeof(uvcb)
702 uv_call(0, (uint64_t)&uvcb);
703 return uvcb;
715 struct uv_cb_query_keys uvcb = uv_query_keys();
717 return emit_hash(&uvcb.key_hashes[UVC_QUERY_KEYS_IDX_HK], buf, 0);
726 struct uv_cb_query_keys uvcb = uv_query_keys();
728 return emit_hash(&uvcb.key_hashes[UVC_QUERY_KEYS_IDX_BACK_HK], buf, 0);
737 struct uv_cb_query_keys uvcb = uv_query_keys();
741 for (i = 0; i < ARRAY_SIZE(uvcb.key_hashes); i++)
742 len += emit_hash(uvcb.key_hashes + i, buf, len);
923 struct uv_cb_retr_secr uvcb = {
924 .header.len = sizeof(uvcb),
931 uv_call_sched(0, (u64)&uvcb);
933 switch (uvcb.header.rc) {