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