Searched refs:msg_ctx (Results 1 – 4 of 4) sorted by relevance
/fs/ecryptfs/ |
D | messaging.c | 51 static int ecryptfs_acquire_free_msg_ctx(struct ecryptfs_msg_ctx **msg_ctx) in ecryptfs_acquire_free_msg_ctx() argument 66 *msg_ctx = list_entry(p, struct ecryptfs_msg_ctx, node); in ecryptfs_acquire_free_msg_ctx() 67 if (mutex_trylock(&(*msg_ctx)->mux)) { in ecryptfs_acquire_free_msg_ctx() 68 (*msg_ctx)->task = current; in ecryptfs_acquire_free_msg_ctx() 84 static void ecryptfs_msg_ctx_free_to_alloc(struct ecryptfs_msg_ctx *msg_ctx) in ecryptfs_msg_ctx_free_to_alloc() argument 86 list_move(&msg_ctx->node, &ecryptfs_msg_ctx_alloc_list); in ecryptfs_msg_ctx_free_to_alloc() 87 msg_ctx->state = ECRYPTFS_MSG_CTX_STATE_PENDING; in ecryptfs_msg_ctx_free_to_alloc() 88 msg_ctx->counter = ++ecryptfs_msg_counter; in ecryptfs_msg_ctx_free_to_alloc() 97 void ecryptfs_msg_ctx_alloc_to_free(struct ecryptfs_msg_ctx *msg_ctx) in ecryptfs_msg_ctx_alloc_to_free() argument 99 list_move(&(msg_ctx->node), &ecryptfs_msg_ctx_free_list); in ecryptfs_msg_ctx_alloc_to_free() [all …]
|
D | miscdev.c | 195 struct ecryptfs_msg_ctx *msg_ctx, u8 msg_type, in ecryptfs_send_miscdev() argument 208 mutex_lock(&msg_ctx->mux); in ecryptfs_send_miscdev() 209 msg_ctx->msg = msg; in ecryptfs_send_miscdev() 210 msg_ctx->msg->index = msg_ctx->index; in ecryptfs_send_miscdev() 211 msg_ctx->msg->data_len = data_size; in ecryptfs_send_miscdev() 212 msg_ctx->type = msg_type; in ecryptfs_send_miscdev() 213 memcpy(msg_ctx->msg->data, data, data_size); in ecryptfs_send_miscdev() 214 msg_ctx->msg_size = (sizeof(*msg_ctx->msg) + data_size); in ecryptfs_send_miscdev() 215 list_add_tail(&msg_ctx->daemon_out_list, &daemon->msg_ctx_out_queue); in ecryptfs_send_miscdev() 216 mutex_unlock(&msg_ctx->mux); in ecryptfs_send_miscdev() [all …]
|
D | ecryptfs_kernel.h | 634 struct ecryptfs_msg_ctx **msg_ctx); 635 int ecryptfs_wait_for_response(struct ecryptfs_msg_ctx *msg_ctx, 686 struct ecryptfs_msg_ctx *msg_ctx, u8 msg_type, 688 void ecryptfs_msg_ctx_alloc_to_free(struct ecryptfs_msg_ctx *msg_ctx);
|
D | keystore.c | 1149 struct ecryptfs_msg_ctx *msg_ctx; in decrypt_pki_encrypted_session_key() local 1168 rc = ecryptfs_send_message(payload, payload_len, &msg_ctx); in decrypt_pki_encrypted_session_key() 1174 rc = ecryptfs_wait_for_response(msg_ctx, &msg); in decrypt_pki_encrypted_session_key() 1972 struct ecryptfs_msg_ctx *msg_ctx = NULL; in pki_encrypt_session_key() local 1989 rc = ecryptfs_send_message(payload, payload_len, &msg_ctx); in pki_encrypt_session_key() 1995 rc = ecryptfs_wait_for_response(msg_ctx, &msg); in pki_encrypt_session_key()
|