Lines Matching refs:uref
77 TEE_Result copy_kaddr_to_uref(uint32_t *uref, void *kaddr) in copy_kaddr_to_uref() argument
81 return copy_to_user_private(uref, &ref, sizeof(ref)); in copy_kaddr_to_uref()
88 vaddr_t uref = memtag_strip_tag_vaddr(kaddr); in kaddr_to_uref() local
90 uref -= VCORE_START_VA; in kaddr_to_uref()
91 assert(uref < (UINT32_MAX >> MEMTAG_TAG_WIDTH)); in kaddr_to_uref()
92 uref |= memtag_get_tag(kaddr) << uref_tag_shift; in kaddr_to_uref()
93 return uref; in kaddr_to_uref()
100 vaddr_t uref_to_vaddr(uint32_t uref) in uref_to_vaddr() argument
103 vaddr_t u = uref & (UINT32_MAX >> MEMTAG_TAG_WIDTH); in uref_to_vaddr()
105 uint8_t tag = uref >> uref_tag_shift; in uref_to_vaddr()
110 return VCORE_START_VA + uref; in uref_to_vaddr()