Home
last modified time | relevance | path

Searched refs:msg_ctx (Results 1 – 4 of 4) sorted by relevance

/fs/ecryptfs/
Dmessaging.c38 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 …]
Dmiscdev.c147 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 …]
Decryptfs_kernel.h621 struct ecryptfs_msg_ctx **msg_ctx);
622 int ecryptfs_wait_for_response(struct ecryptfs_msg_ctx *msg_ctx,
634 struct ecryptfs_msg_ctx **msg_ctx) in ecryptfs_send_message() argument
638 static inline int ecryptfs_wait_for_response(struct ecryptfs_msg_ctx *msg_ctx, in ecryptfs_wait_for_response() argument
689 struct ecryptfs_msg_ctx *msg_ctx, u8 msg_type,
691 void ecryptfs_msg_ctx_alloc_to_free(struct ecryptfs_msg_ctx *msg_ctx);
Dkeystore.c1129 struct ecryptfs_msg_ctx *msg_ctx; in decrypt_pki_encrypted_session_key() local
1148 rc = ecryptfs_send_message(payload, payload_len, &msg_ctx); in decrypt_pki_encrypted_session_key()
1154 rc = ecryptfs_wait_for_response(msg_ctx, &msg); in decrypt_pki_encrypted_session_key()
1965 struct ecryptfs_msg_ctx *msg_ctx = NULL; in pki_encrypt_session_key() local
1982 rc = ecryptfs_send_message(payload, payload_len, &msg_ctx); in pki_encrypt_session_key()
1988 rc = ecryptfs_wait_for_response(msg_ctx, &msg); in pki_encrypt_session_key()