Searched refs:msg_ctx (Results 1 – 4 of 4) sorted by relevance
/linux/fs/ecryptfs/ |
H A 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 …]
|
H A 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 …]
|
H A D | keystore.c | 1132 struct ecryptfs_msg_ctx *msg_ctx; in decrypt_pki_encrypted_session_key() local 1151 rc = ecryptfs_send_message(payload, payload_len, &msg_ctx); in decrypt_pki_encrypted_session_key() 1157 rc = ecryptfs_wait_for_response(msg_ctx, &msg); in decrypt_pki_encrypted_session_key() 1968 struct ecryptfs_msg_ctx *msg_ctx = NULL; in pki_encrypt_session_key() local 1985 rc = ecryptfs_send_message(payload, payload_len, &msg_ctx); in pki_encrypt_session_key() 1991 rc = ecryptfs_wait_for_response(msg_ctx, &msg); in pki_encrypt_session_key()
|
/linux/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | vdec_msg_queue.c | 74 int vdec_msg_queue_qbuf(struct vdec_msg_queue_ctx *msg_ctx, struct vdec_lat_buf *buf) in vdec_msg_queue_qbuf() argument 78 head = vdec_get_buf_list(msg_ctx->hardware_index, buf); in vdec_msg_queue_qbuf() 80 mtk_v4l2_vdec_err(buf->ctx, "fail to qbuf: %d", msg_ctx->hardware_index); in vdec_msg_queue_qbuf() 84 spin_lock(&msg_ctx->ready_lock); in vdec_msg_queue_qbuf() 85 list_add_tail(head, &msg_ctx->ready_queue); in vdec_msg_queue_qbuf() 86 msg_ctx->ready_num++; in vdec_msg_queue_qbuf() 88 vdec_msg_queue_inc(&buf->ctx->msg_queue, msg_ctx->hardware_index); in vdec_msg_queue_qbuf() 89 if (msg_ctx->hardware_index != MTK_VDEC_CORE) { in vdec_msg_queue_qbuf() 90 wake_up_all(&msg_ctx->ready_to_use); in vdec_msg_queue_qbuf() 99 msg_ctx->hardware_index, buf, msg_ctx->ready_num); in vdec_msg_queue_qbuf() [all …]
|