Home
last modified time | relevance | path

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

/linux-6.1.9/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.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);
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()
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/
Dvdec_msg_queue.c55 int vdec_msg_queue_qbuf(struct vdec_msg_queue_ctx *msg_ctx, struct vdec_lat_buf *buf) in vdec_msg_queue_qbuf() argument
59 head = vdec_get_buf_list(msg_ctx->hardware_index, buf); in vdec_msg_queue_qbuf()
61 mtk_v4l2_err("fail to qbuf: %d", msg_ctx->hardware_index); in vdec_msg_queue_qbuf()
65 spin_lock(&msg_ctx->ready_lock); in vdec_msg_queue_qbuf()
66 list_add_tail(head, &msg_ctx->ready_queue); in vdec_msg_queue_qbuf()
67 msg_ctx->ready_num++; in vdec_msg_queue_qbuf()
69 if (msg_ctx->hardware_index != MTK_VDEC_CORE) in vdec_msg_queue_qbuf()
70 wake_up_all(&msg_ctx->ready_to_use); in vdec_msg_queue_qbuf()
76 msg_ctx->hardware_index, buf, msg_ctx->ready_num); in vdec_msg_queue_qbuf()
77 spin_unlock(&msg_ctx->ready_lock); in vdec_msg_queue_qbuf()
[all …]