Home
last modified time | relevance | path

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

/linux/fs/ecryptfs/
A Dmessaging.c55 (*msg_ctx)->task = current; in ecryptfs_acquire_free_msg_ctx()
87 kfree(msg_ctx->msg); in ecryptfs_msg_ctx_alloc_to_free()
88 msg_ctx->msg = NULL; in ecryptfs_msg_ctx_alloc_to_free()
222 mutex_lock(&msg_ctx->mux); in ecryptfs_process_response()
237 if (!msg_ctx->msg) { in ecryptfs_process_response()
245 mutex_unlock(&msg_ctx->mux); in ecryptfs_process_response()
310 msg_ctx); in ecryptfs_send_message()
335 mutex_lock(&msg_ctx->mux); in ecryptfs_wait_for_response()
344 *msg = msg_ctx->msg; in ecryptfs_wait_for_response()
345 msg_ctx->msg = NULL; in ecryptfs_wait_for_response()
[all …]
A Dmiscdev.c157 msg_ctx->msg = msg; in ecryptfs_send_miscdev()
158 msg_ctx->msg->index = msg_ctx->index; in ecryptfs_send_miscdev()
162 msg_ctx->msg_size = (sizeof(*msg_ctx->msg) + data_size); in ecryptfs_send_miscdev()
257 BUG_ON(!msg_ctx); in ecryptfs_miscdev_read()
259 if (msg_ctx->msg) { in ecryptfs_miscdev_read()
271 msg_ctx->msg_size = 0; in ecryptfs_miscdev_read()
274 + msg_ctx->msg_size); in ecryptfs_miscdev_read()
289 if (msg_ctx->msg) { in ecryptfs_miscdev_read()
293 if (copy_to_user(&buf[i], msg_ctx->msg, msg_ctx->msg_size)) in ecryptfs_miscdev_read()
299 kfree(msg_ctx->msg); in ecryptfs_miscdev_read()
[all …]
A Decryptfs_kernel.h606 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);
A Dkeystore.c1130 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()

Completed in 12 milliseconds