Lines Matching refs:ecryptfs_msg_ctx_arr
26 static struct ecryptfs_msg_ctx *ecryptfs_msg_ctx_arr; variable
221 msg_ctx = &ecryptfs_msg_ctx_arr[msg->index]; in ecryptfs_process_response()
379 ecryptfs_msg_ctx_arr = kmalloc((sizeof(struct ecryptfs_msg_ctx) in ecryptfs_init_messaging()
382 if (!ecryptfs_msg_ctx_arr) { in ecryptfs_init_messaging()
390 INIT_LIST_HEAD(&ecryptfs_msg_ctx_arr[i].node); in ecryptfs_init_messaging()
391 INIT_LIST_HEAD(&ecryptfs_msg_ctx_arr[i].daemon_out_list); in ecryptfs_init_messaging()
392 mutex_init(&ecryptfs_msg_ctx_arr[i].mux); in ecryptfs_init_messaging()
393 mutex_lock(&ecryptfs_msg_ctx_arr[i].mux); in ecryptfs_init_messaging()
394 ecryptfs_msg_ctx_arr[i].index = i; in ecryptfs_init_messaging()
395 ecryptfs_msg_ctx_arr[i].state = ECRYPTFS_MSG_CTX_STATE_FREE; in ecryptfs_init_messaging()
396 ecryptfs_msg_ctx_arr[i].counter = 0; in ecryptfs_init_messaging()
397 ecryptfs_msg_ctx_arr[i].task = NULL; in ecryptfs_init_messaging()
398 ecryptfs_msg_ctx_arr[i].msg = NULL; in ecryptfs_init_messaging()
399 list_add_tail(&ecryptfs_msg_ctx_arr[i].node, in ecryptfs_init_messaging()
401 mutex_unlock(&ecryptfs_msg_ctx_arr[i].mux); in ecryptfs_init_messaging()
413 if (ecryptfs_msg_ctx_arr) { in ecryptfs_release_messaging()
418 mutex_lock(&ecryptfs_msg_ctx_arr[i].mux); in ecryptfs_release_messaging()
419 kfree(ecryptfs_msg_ctx_arr[i].msg); in ecryptfs_release_messaging()
420 mutex_unlock(&ecryptfs_msg_ctx_arr[i].mux); in ecryptfs_release_messaging()
422 kfree(ecryptfs_msg_ctx_arr); in ecryptfs_release_messaging()