Lines Matching refs:dq_entry
306 struct vmci_datagram_queue_entry *dq_entry; in vmci_ctx_enqueue_datagram() local
325 dq_entry = kmalloc(sizeof(*dq_entry), GFP_KERNEL); in vmci_ctx_enqueue_datagram()
326 if (dq_entry == NULL) { in vmci_ctx_enqueue_datagram()
331 dq_entry->dg = dg; in vmci_ctx_enqueue_datagram()
332 dq_entry->dg_size = vmci_dg_size; in vmci_ctx_enqueue_datagram()
334 INIT_LIST_HEAD(&dq_entry->list_item); in vmci_ctx_enqueue_datagram()
357 kfree(dq_entry); in vmci_ctx_enqueue_datagram()
362 list_add(&dq_entry->list_item, &context->datagram_queue); in vmci_ctx_enqueue_datagram()
435 struct vmci_datagram_queue_entry *dq_entry, *dq_entry_tmp; in ctx_free_ctx() local
471 list_for_each_entry_safe(dq_entry, dq_entry_tmp, in ctx_free_ctx()
473 WARN_ON(dq_entry->dg_size != VMCI_DG_SIZE(dq_entry->dg)); in ctx_free_ctx()
474 list_del(&dq_entry->list_item); in ctx_free_ctx()
475 kfree(dq_entry->dg); in ctx_free_ctx()
476 kfree(dq_entry); in ctx_free_ctx()
520 struct vmci_datagram_queue_entry *dq_entry; in vmci_ctx_dequeue_datagram() local
535 dq_entry = in vmci_ctx_dequeue_datagram()
539 if (*max_size < dq_entry->dg_size) { in vmci_ctx_dequeue_datagram()
540 *max_size = dq_entry->dg_size; in vmci_ctx_dequeue_datagram()
549 context->datagram_queue_size -= dq_entry->dg_size; in vmci_ctx_dequeue_datagram()
573 *dg = dq_entry->dg; in vmci_ctx_dequeue_datagram()
574 dq_entry->dg = NULL; in vmci_ctx_dequeue_datagram()
575 kfree(dq_entry); in vmci_ctx_dequeue_datagram()