Lines Matching refs:memref
68 p->u.memref.size = mp->u.tmem.size; in optee_from_msg_param()
72 p->u.memref.shm_offs = 0; in optee_from_msg_param()
73 p->u.memref.shm = NULL; in optee_from_msg_param()
79 p->u.memref.shm_offs = mp->u.tmem.buf_ptr - pa; in optee_from_msg_param()
80 p->u.memref.shm = shm; in optee_from_msg_param()
83 if (p->u.memref.size) { in optee_from_msg_param()
84 size_t o = p->u.memref.shm_offs + in optee_from_msg_param()
85 p->u.memref.size - 1; in optee_from_msg_param()
97 p->u.memref.size = mp->u.rmem.size; in optee_from_msg_param()
102 p->u.memref.shm_offs = 0; in optee_from_msg_param()
103 p->u.memref.shm = NULL; in optee_from_msg_param()
106 p->u.memref.shm_offs = mp->u.rmem.offs; in optee_from_msg_param()
107 p->u.memref.shm = shm; in optee_from_msg_param()
127 mp->u.tmem.shm_ref = (unsigned long)p->u.memref.shm; in to_msg_param_tmp_mem()
128 mp->u.tmem.size = p->u.memref.size; in to_msg_param_tmp_mem()
130 if (!p->u.memref.shm) { in to_msg_param_tmp_mem()
135 rc = tee_shm_get_pa(p->u.memref.shm, p->u.memref.shm_offs, &pa); in to_msg_param_tmp_mem()
152 mp->u.rmem.shm_ref = (unsigned long)p->u.memref.shm; in to_msg_param_reg_mem()
153 mp->u.rmem.size = p->u.memref.size; in to_msg_param_reg_mem()
154 mp->u.rmem.offs = p->u.memref.shm_offs; in to_msg_param_reg_mem()
192 if (tee_shm_is_registered(p->u.memref.shm)) in optee_to_msg_param()