Home
last modified time | relevance | path

Searched refs:rv (Results 1 – 25 of 29) sorted by relevance

12

/xen/xen/xsm/flask/
A Dflask_op.c92 int rv; in flask_security_relabel() local
105 int rv; in flask_security_create() local
119 int rv; in flask_security_access() local
139 int rv; in flask_security_member() local
153 int rv; in flask_security_setenforce() local
174 int rv; in flask_security_context() local
197 int rv; in flask_security_sid() local
209 rv = 0; in flask_security_sid()
291 int rv; in flask_security_set_bool() local
351 int rv; in flask_security_get_bool() local
[all …]
/xen/tools/helpers/
A Dinit-xenstore-domain.c102 if ( rv ) in build()
108 if ( rv ) in build()
114 if ( rv ) in build()
126 if ( rv ) in build()
155 if ( rv ) in build()
172 if ( rv ) in build()
178 if ( rv ) in build()
184 if ( rv ) in build()
227 rv = 0; in build()
268 int rv; in parse_maxmem() local
[all …]
/xen/stubdom/vtpmmgr/
A Dendian_int.h46 be16_t rv; in native_be16() local
47 rv.value = cpu_to_be16(v); in native_be16()
48 return rv; in native_be16()
53 le32_t rv; in native_le32() local
54 rv.value = cpu_to_le32(v); in native_le32()
55 return rv; in native_le32()
60 be32_t rv; in native_be32() local
61 rv.value = cpu_to_be32(v); in native_be32()
62 return rv; in native_be32()
67 be64_t rv; in native_be64() local
[all …]
A Dtpmrsa.c98 TPM_RESULT rv; in tpmrsa_sigcheck() local
100 rv = tpmrsa_public(ctx, input, tmp); in tpmrsa_sigcheck()
101 if (rv) in tpmrsa_sigcheck()
102 return rv; in tpmrsa_sigcheck()
A Dmarshal.h793 rv += sizeof_TPM_PCR_INFO(&d->sealInfo); in sizeof_TPM_STORED_DATA()
795 rv += sizeof_UINT32(d->encDataSize); in sizeof_TPM_STORED_DATA()
797 return rv; in sizeof_TPM_STORED_DATA()
830 int rv = sizeof_TPM_STRUCTURE_TAG(&d->ver) + in sizeof_TPM_STORED_DATA12() local
836 rv += sizeof_UINT32(d->encDataSize); in sizeof_TPM_STORED_DATA12()
838 return rv; in sizeof_TPM_STORED_DATA12()
885 int rv = 0; in sizeof_TPM_AUTH_SESSION() local
887 rv += sizeof_TPM_NONCE(&auth->NonceOdd); in sizeof_TPM_AUTH_SESSION()
888 rv += sizeof_BOOL(auth->fContinueAuthSession); in sizeof_TPM_AUTH_SESSION()
889 rv += sizeof_TPM_AUTHDATA(&auth->HMAC); in sizeof_TPM_AUTH_SESSION()
[all …]
A Ddisk_read.c69 int i, rc, rv = 1; in find_group_key() local
109 rv = 0; in find_group_key()
116 return rv; in find_group_key()
A Dvtpm_cmd_handler.c70 int i, rv; in find_vtpm_khash() local
72 rv = tpmback_get_peercontext(opq->domid, opq->handle, buf, sizeof(buf) - 1); in find_vtpm_khash()
73 if (rv < 0) in find_vtpm_khash()
/xen/xen/arch/x86/mm/hap/
A Dnested_hap.c196 int rv; in nestedhvm_hap_nested_page_fault() local
208 rv = nestedhap_walk_L1_p2m(v, *L2_gpa, &L1_gpa, &page_order_21, &p2ma_21, in nestedhvm_hap_nested_page_fault()
212 switch (rv) { in nestedhvm_hap_nested_page_fault()
216 return rv; in nestedhvm_hap_nested_page_fault()
225 rv = nestedhap_walk_L0_p2m(p2m, L1_gpa, &L0_gpa, in nestedhvm_hap_nested_page_fault()
230 switch (rv) { in nestedhvm_hap_nested_page_fault()
232 return rv; in nestedhvm_hap_nested_page_fault()
235 return rv; in nestedhvm_hap_nested_page_fault()
239 return rv; in nestedhvm_hap_nested_page_fault()
A Dhap.c445 int rv = 0; in hap_enable() local
460 rv = hap_set_allocation(d, 256, NULL); in hap_enable()
461 if ( rv != 0 ) in hap_enable()
475 rv = p2m_alloc_table(p2m_get_hostp2m(d)); in hap_enable()
476 if ( rv != 0 ) in hap_enable()
481 rv = p2m_alloc_table(d->arch.nested_p2m[i]); in hap_enable()
482 if ( rv != 0 ) in hap_enable()
491 rv = -ENOMEM; in hap_enable()
497 rv = -ENOMEM; in hap_enable()
510 if ( rv != 0 ) in hap_enable()
[all …]
/xen/stubdom/grub/
A Dkexec.c155 int rv; in tpm_hash2pcr() local
168 rv = evtchn_get_peercontext(tpm->evtchn, ctx, sizeof(ctx) - 1); in tpm_hash2pcr()
169 if (rv < 0) { in tpm_hash2pcr()
170 printf("Could not verify vtpm_label: %d\n", rv); in tpm_hash2pcr()
174 rv = strcmp(ctx, vtpm_label); in tpm_hash2pcr()
175 if (rv && vtpm_label[0] == '*') { in tpm_hash2pcr()
179 rv = strcmp(ctx + offset, vtpm_label + 1); in tpm_hash2pcr()
182 if (rv) { in tpm_hash2pcr()
197 ASSERT(rv == 0 && resp->status == 0); in tpm_hash2pcr()
202 ASSERT(rv == 0 && resp->status == 0); in tpm_hash2pcr()
[all …]
/xen/tools/libxc/
A Dxc_flask.c155 int rv; in xc_flask_getbool_byid() local
170 rv = xc_flask_op(xch, &op); in xc_flask_getbool_byid()
174 if ( rv ) in xc_flask_getbool_byid()
175 return rv; in xc_flask_getbool_byid()
182 return rv; in xc_flask_getbool_byid()
187 int rv; in xc_flask_getbool_byname() local
206 if ( rv ) in xc_flask_getbool_byname()
207 return rv; in xc_flask_getbool_byname()
214 return rv; in xc_flask_getbool_byname()
219 int rv; in xc_flask_setbool() local
[all …]
/xen/xen/arch/x86/pv/
A Dmm.h42 bool rv = true; in update_intpte() local
47 rv = paging_write_guest_entry(v, p, new, mfn); in update_intpte()
61 rv = paging_cmpxchg_guest_entry(v, p, &t, _new, mfn); in update_intpte()
62 if ( unlikely(rv == 0) ) in update_intpte()
79 return rv; in update_intpte()
/xen/xen/arch/x86/hvm/
A Dsave.c138 int rv; in hvm_save_one() local
165 if ( (rv = hvm_sr_handlers[typecode].save(v, &ctxt)) != 0 ) in hvm_save_one()
167 d->domain_id, typecode, rv); in hvm_save_one()
168 else if ( (rv = hvm_sr_handlers[typecode].kind == HVMSR_PER_VCPU ? in hvm_save_one()
183 rv = 0; in hvm_save_one()
187 rv = -ENOBUFS; in hvm_save_one()
189 rv = -EFAULT; in hvm_save_one()
203 return rv; in hvm_save_one()
/xen/xen/arch/x86/mm/
A Dpaging.c359 int rv; in paging_mfn_is_dirty() local
395 return rv; in paging_mfn_is_dirty()
464 rv = -ENOMEM; in paging_log_dirty_op()
516 rv = -ERESTART; in paging_log_dirty_op()
528 rv = -ERESTART; in paging_log_dirty_op()
530 if ( rv ) in paging_log_dirty_op()
536 if ( !rv ) in paging_log_dirty_op()
554 if ( rv ) in paging_log_dirty_op()
558 return rv; in paging_log_dirty_op()
570 return rv; in paging_log_dirty_op()
[all …]
A Dp2m-ept.c259 bool_t rv = 1; in ept_split_super_page() local
289 if ( !(rv = ept_split_super_page(p2m, epte, level - 1, target)) ) in ept_split_super_page()
301 return rv; in ept_split_super_page()
/xen/tools/libvchan/
A Dinit.c143 int rv = -1; in init_gnt_cli() local
201 rv = 0; in init_gnt_cli()
203 return rv; in init_gnt_cli()
212 rv = -1; in init_gnt_cli()
303 int rv = PAGE_SHIFT; in min_order() local
304 while (siz > (1 << rv)) in min_order()
305 rv++; in min_order()
306 return rv; in min_order()
/xen/tools/libs/gnttab/
A Dfreebsd.c112 int rv = 0; in osdep_gnttab_grant_map() local
128 rv = ioctl(fd, IOCTL_GNTDEV_SET_UNMAP_NOTIFY, &notify); in osdep_gnttab_grant_map()
129 if ( rv ) in osdep_gnttab_grant_map()
A Dlinux.c151 int rv = 0; in osdep_gnttab_grant_map() local
164 rv = ioctl(fd, IOCTL_GNTDEV_SET_UNMAP_NOTIFY, &notify); in osdep_gnttab_grant_map()
165 if (rv) { in osdep_gnttab_grant_map()
/xen/xen/common/
A Ddomain.c218 int rv; in late_hwdom_init() local
223 rv = xsm_init_hardware_domain(XSM_HOOK, d); in late_hwdom_init()
224 if ( rv ) in late_hwdom_init()
225 return rv; in late_hwdom_init()
255 return rv; in late_hwdom_init()
687 int rv; in rcu_lock_live_remote_domain_by_id() local
688 rv = rcu_lock_remote_domain_by_id(dom, d); in rcu_lock_live_remote_domain_by_id()
689 if ( rv ) in rcu_lock_live_remote_domain_by_id()
690 return rv; in rcu_lock_live_remote_domain_by_id()
/xen/tools/debugger/kdd/
A Dkdd-xen.c534 uint32_t chunk, rv, done = 0; in kdd_access_physical() local
539 rv = kdd_access_physical_page(g, addr, chunk, buf, write); in kdd_access_physical()
540 done += rv; in kdd_access_physical()
541 if (rv != chunk) in kdd_access_physical()
A Dkdd.c379 uint32_t chunk, rv, done = 0; in kdd_access_virtual() local
390 rv = kdd_access_physical(s->guest, pa, chunk, buf, write); in kdd_access_virtual()
391 done += rv; in kdd_access_virtual()
392 if (rv != chunk) in kdd_access_virtual()
/xen/xen/xsm/flask/ss/
A Dservices.c1768 int i, rv = -ENOENT; in security_find_bool() local
1774 rv = i; in security_find_bool()
1780 return rv; in security_find_bool()
1916 char *rv = NULL; in security_get_bool_name() local
1927 rv = xmalloc_array(char, len); in security_get_bool_name()
1928 if ( !rv ) in security_get_bool_name()
1930 memcpy(rv, policydb.p_bool_val_to_name[b], len); in security_get_bool_name()
1933 return rv; in security_get_bool_name()
/xen/xen/arch/x86/mm/shadow/
A Dcommon.c2593 int rv = 0; in shadow_enable() local
2603 rv = -EINVAL; in shadow_enable()
2613 if ( rv != 0 ) in shadow_enable()
2629 rv = p2m_alloc_table(p2m); in shadow_enable()
2630 if (rv != 0) in shadow_enable()
2643 rv = -ENOMEM; in shadow_enable()
2661 rv = -EINVAL; in shadow_enable()
2668 rv = -ENOMEM; in shadow_enable()
2688 if ( rv != 0 && !pagetable_is_null(p2m_get_pagetable(p2m)) ) in shadow_enable()
2690 if ( rv != 0 && pg != NULL ) in shadow_enable()
[all …]
/xen/tools/libxl/
A Dlibxl_utils.c100 int i, rv; in libxl_domain_qualifier_to_domid() local
111 rv = libxl_name_to_domid(ctx, name, domid); in libxl_domain_qualifier_to_domid()
112 return rv; in libxl_domain_qualifier_to_domid()
/xen/xen/drivers/char/
A Dns16550.c920 int rv; in ns16550_endboot() local
924 rv = ioports_deny_access(hardware_domain, uart->io_base, uart->io_base + 7); in ns16550_endboot()
925 if ( rv != 0 ) in ns16550_endboot()

Completed in 50 milliseconds

12