Lines Matching refs:ecryptfs_msg_ctx_arr
39 static struct ecryptfs_msg_ctx *ecryptfs_msg_ctx_arr; variable
233 msg_ctx = &ecryptfs_msg_ctx_arr[msg->index]; in ecryptfs_process_response()
391 ecryptfs_msg_ctx_arr = kmalloc((sizeof(struct ecryptfs_msg_ctx) in ecryptfs_init_messaging()
394 if (!ecryptfs_msg_ctx_arr) { in ecryptfs_init_messaging()
402 INIT_LIST_HEAD(&ecryptfs_msg_ctx_arr[i].node); in ecryptfs_init_messaging()
403 INIT_LIST_HEAD(&ecryptfs_msg_ctx_arr[i].daemon_out_list); in ecryptfs_init_messaging()
404 mutex_init(&ecryptfs_msg_ctx_arr[i].mux); in ecryptfs_init_messaging()
405 mutex_lock(&ecryptfs_msg_ctx_arr[i].mux); in ecryptfs_init_messaging()
406 ecryptfs_msg_ctx_arr[i].index = i; in ecryptfs_init_messaging()
407 ecryptfs_msg_ctx_arr[i].state = ECRYPTFS_MSG_CTX_STATE_FREE; in ecryptfs_init_messaging()
408 ecryptfs_msg_ctx_arr[i].counter = 0; in ecryptfs_init_messaging()
409 ecryptfs_msg_ctx_arr[i].task = NULL; in ecryptfs_init_messaging()
410 ecryptfs_msg_ctx_arr[i].msg = NULL; in ecryptfs_init_messaging()
411 list_add_tail(&ecryptfs_msg_ctx_arr[i].node, in ecryptfs_init_messaging()
413 mutex_unlock(&ecryptfs_msg_ctx_arr[i].mux); in ecryptfs_init_messaging()
425 if (ecryptfs_msg_ctx_arr) { in ecryptfs_release_messaging()
430 mutex_lock(&ecryptfs_msg_ctx_arr[i].mux); in ecryptfs_release_messaging()
431 kfree(ecryptfs_msg_ctx_arr[i].msg); in ecryptfs_release_messaging()
432 mutex_unlock(&ecryptfs_msg_ctx_arr[i].mux); in ecryptfs_release_messaging()
434 kfree(ecryptfs_msg_ctx_arr); in ecryptfs_release_messaging()