Searched refs:msg_ctx (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.15/fs/ecryptfs/ |
D | messaging.c | 38 static int ecryptfs_acquire_free_msg_ctx(struct ecryptfs_msg_ctx **msg_ctx) in ecryptfs_acquire_free_msg_ctx() argument 53 *msg_ctx = list_entry(p, struct ecryptfs_msg_ctx, node); in ecryptfs_acquire_free_msg_ctx() 54 if (mutex_trylock(&(*msg_ctx)->mux)) { in ecryptfs_acquire_free_msg_ctx() 55 (*msg_ctx)->task = current; in ecryptfs_acquire_free_msg_ctx() 71 static void ecryptfs_msg_ctx_free_to_alloc(struct ecryptfs_msg_ctx *msg_ctx) in ecryptfs_msg_ctx_free_to_alloc() argument 73 list_move(&msg_ctx->node, &ecryptfs_msg_ctx_alloc_list); in ecryptfs_msg_ctx_free_to_alloc() 74 msg_ctx->state = ECRYPTFS_MSG_CTX_STATE_PENDING; in ecryptfs_msg_ctx_free_to_alloc() 75 msg_ctx->counter = ++ecryptfs_msg_counter; in ecryptfs_msg_ctx_free_to_alloc() 84 void ecryptfs_msg_ctx_alloc_to_free(struct ecryptfs_msg_ctx *msg_ctx) in ecryptfs_msg_ctx_alloc_to_free() argument 86 list_move(&(msg_ctx->node), &ecryptfs_msg_ctx_free_list); in ecryptfs_msg_ctx_alloc_to_free() [all …]
|
D | miscdev.c | 147 struct ecryptfs_msg_ctx *msg_ctx, u8 msg_type, in ecryptfs_send_miscdev() argument 156 mutex_lock(&msg_ctx->mux); in ecryptfs_send_miscdev() 157 msg_ctx->msg = msg; in ecryptfs_send_miscdev() 158 msg_ctx->msg->index = msg_ctx->index; in ecryptfs_send_miscdev() 159 msg_ctx->msg->data_len = data_size; in ecryptfs_send_miscdev() 160 msg_ctx->type = msg_type; in ecryptfs_send_miscdev() 161 memcpy(msg_ctx->msg->data, data, data_size); in ecryptfs_send_miscdev() 162 msg_ctx->msg_size = (sizeof(*msg_ctx->msg) + data_size); in ecryptfs_send_miscdev() 163 list_add_tail(&msg_ctx->daemon_out_list, &daemon->msg_ctx_out_queue); in ecryptfs_send_miscdev() 164 mutex_unlock(&msg_ctx->mux); in ecryptfs_send_miscdev() [all …]
|
D | ecryptfs_kernel.h | 606 struct ecryptfs_msg_ctx **msg_ctx); 607 int ecryptfs_wait_for_response(struct ecryptfs_msg_ctx *msg_ctx, 619 struct ecryptfs_msg_ctx **msg_ctx) in ecryptfs_send_message() argument 623 static inline int ecryptfs_wait_for_response(struct ecryptfs_msg_ctx *msg_ctx, in ecryptfs_wait_for_response() argument 674 struct ecryptfs_msg_ctx *msg_ctx, u8 msg_type, 676 void ecryptfs_msg_ctx_alloc_to_free(struct ecryptfs_msg_ctx *msg_ctx);
|
D | keystore.c | 1130 struct ecryptfs_msg_ctx *msg_ctx; in decrypt_pki_encrypted_session_key() local 1149 rc = ecryptfs_send_message(payload, payload_len, &msg_ctx); in decrypt_pki_encrypted_session_key() 1155 rc = ecryptfs_wait_for_response(msg_ctx, &msg); in decrypt_pki_encrypted_session_key() 1966 struct ecryptfs_msg_ctx *msg_ctx = NULL; in pki_encrypt_session_key() local 1983 rc = ecryptfs_send_message(payload, payload_len, &msg_ctx); in pki_encrypt_session_key() 1989 rc = ecryptfs_wait_for_response(msg_ctx, &msg); in pki_encrypt_session_key()
|