Lines Matching refs:kaddr
25 TEE_Result copy_from_user(void *kaddr, const void *uaddr, size_t len) in copy_from_user() argument
33 memcpy(kaddr, uaddr, len); in copy_from_user()
38 TEE_Result copy_to_user(void *uaddr, const void *kaddr, size_t len) in copy_to_user() argument
46 memcpy(uaddr, kaddr, len); in copy_to_user()
51 TEE_Result copy_from_user_private(void *kaddr, const void *uaddr, size_t len) in copy_from_user_private() argument
59 memcpy(kaddr, uaddr, len); in copy_from_user_private()
64 TEE_Result copy_to_user_private(void *uaddr, const void *kaddr, size_t len) in copy_to_user_private() argument
72 memcpy(uaddr, kaddr, len); in copy_to_user_private()
77 TEE_Result copy_kaddr_to_uref(uint32_t *uref, void *kaddr) in copy_kaddr_to_uref() argument
79 uint32_t ref = kaddr_to_uref(kaddr); in copy_kaddr_to_uref()
84 uint32_t kaddr_to_uref(void *kaddr) in kaddr_to_uref() argument
88 vaddr_t uref = memtag_strip_tag_vaddr(kaddr); in kaddr_to_uref()
92 uref |= memtag_get_tag(kaddr) << uref_tag_shift; in kaddr_to_uref()
96 assert(((vaddr_t)kaddr - VCORE_START_VA) < UINT32_MAX); in kaddr_to_uref()
97 return (vaddr_t)kaddr - VCORE_START_VA; in kaddr_to_uref()