Lines Matching refs:supp

87 	struct optee_supp supp;  member
258 struct optee_supp *supp = &data->supp; in optee_call_supp() local
273 k_mutex_lock(&supp->mutex, K_FOREVER); in optee_call_supp()
274 sys_dlist_append(&supp->reqs, &req->link); in optee_call_supp()
275 k_mutex_unlock(&supp->mutex); in optee_call_supp()
278 k_sem_give(&supp->reqs_c); in optee_call_supp()
1043 struct optee_supp *supp = &data->supp; in optee_suppl_recv() local
1047 k_mutex_lock(&supp->mutex, K_FOREVER); in optee_suppl_recv()
1048 req = (struct optee_supp_req *)sys_dlist_peek_head(&supp->reqs); in optee_suppl_recv()
1051 if (supp->current) { in optee_suppl_recv()
1053 k_mutex_unlock(&supp->mutex); in optee_suppl_recv()
1060 k_mutex_unlock(&supp->mutex); in optee_suppl_recv()
1064 supp->current = req; in optee_suppl_recv()
1067 k_mutex_unlock(&supp->mutex); in optee_suppl_recv()
1073 k_sem_take(&supp->reqs_c, K_FOREVER); in optee_suppl_recv()
1087 struct optee_supp *supp = &data->supp; in optee_suppl_send() local
1091 k_mutex_lock(&supp->mutex, K_FOREVER); in optee_suppl_send()
1092 if (supp->current && num_params >= supp->current->num_params) { in optee_suppl_send()
1093 req = supp->current; in optee_suppl_send()
1094 supp->current = NULL; in optee_suppl_send()
1099 k_mutex_unlock(&supp->mutex); in optee_suppl_send()
1130 k_mutex_lock(&supp->mutex, K_FOREVER); in optee_suppl_send()
1131 supp->current = NULL; in optee_suppl_send()
1132 k_mutex_unlock(&supp->mutex); in optee_suppl_send()
1231 k_mutex_init(&data->supp.mutex); in optee_init()
1232 k_sem_init(&data->supp.reqs_c, 0, 1); in optee_init()
1233 sys_dlist_init(&data->supp.reqs); in optee_init()