Lines Matching refs:ctxdata
76 struct optee_context_data *ctxdata; in optee_open() local
80 ctxdata = kzalloc(sizeof(*ctxdata), GFP_KERNEL); in optee_open()
81 if (!ctxdata) in optee_open()
94 kfree(ctxdata); in optee_open()
102 kfree(ctxdata); in optee_open()
109 mutex_init(&ctxdata->mutex); in optee_open()
110 INIT_LIST_HEAD(&ctxdata->sess_list); in optee_open()
113 ctx->data = ctxdata; in optee_open()
121 struct optee_context_data *ctxdata = ctx->data; in optee_release_helper() local
125 if (!ctxdata) in optee_release_helper()
128 list_for_each_entry_safe(sess, sess_tmp, &ctxdata->sess_list, in optee_release_helper()
134 kfree(ctxdata); in optee_release_helper()