Lines Matching refs:o
16 void tee_obj_add(struct user_ta_ctx *utc, struct tee_obj *o) in tee_obj_add() argument
18 TAILQ_INSERT_TAIL(&utc->objects, o, link); in tee_obj_add()
24 struct tee_obj *o; in tee_obj_get() local
26 TAILQ_FOREACH(o, &utc->objects, link) { in tee_obj_get()
27 if (obj_id == (vaddr_t)o) { in tee_obj_get()
28 *obj = o; in tee_obj_get()
35 void tee_obj_close(struct user_ta_ctx *utc, struct tee_obj *o) in tee_obj_close() argument
37 TAILQ_REMOVE(&utc->objects, o, link); in tee_obj_close()
39 if ((o->info.handleFlags & TEE_HANDLE_FLAG_PERSISTENT)) { in tee_obj_close()
40 o->pobj->fops->close(&o->fh); in tee_obj_close()
41 tee_pobj_release(o->pobj); in tee_obj_close()
44 tee_obj_free(o); in tee_obj_close()
55 TEE_Result tee_obj_verify(struct tee_ta_session *sess, struct tee_obj *o) in tee_obj_verify() argument
58 const struct tee_file_operations *fops = o->pobj->fops; in tee_obj_verify()
64 res = fops->open(o->pobj, NULL, &fh); in tee_obj_verify()
67 fops->remove(o->pobj); in tee_obj_verify()
68 tee_obj_close(to_user_ta_ctx(sess->ts_sess.ctx), o); in tee_obj_verify()
80 void tee_obj_free(struct tee_obj *o) in tee_obj_free() argument
82 if (o) { in tee_obj_free()
83 tee_obj_attr_free(o); in tee_obj_free()
84 free(o->attr); in tee_obj_free()
85 free(o); in tee_obj_free()