Lines Matching refs:dq_entry
298 struct vmci_datagram_queue_entry *dq_entry; in vmci_ctx_enqueue_datagram() local
317 dq_entry = kmalloc(sizeof(*dq_entry), GFP_KERNEL); in vmci_ctx_enqueue_datagram()
318 if (dq_entry == NULL) { in vmci_ctx_enqueue_datagram()
323 dq_entry->dg = dg; in vmci_ctx_enqueue_datagram()
324 dq_entry->dg_size = vmci_dg_size; in vmci_ctx_enqueue_datagram()
326 INIT_LIST_HEAD(&dq_entry->list_item); in vmci_ctx_enqueue_datagram()
349 kfree(dq_entry); in vmci_ctx_enqueue_datagram()
354 list_add(&dq_entry->list_item, &context->datagram_queue); in vmci_ctx_enqueue_datagram()
427 struct vmci_datagram_queue_entry *dq_entry, *dq_entry_tmp; in ctx_free_ctx() local
463 list_for_each_entry_safe(dq_entry, dq_entry_tmp, in ctx_free_ctx()
465 WARN_ON(dq_entry->dg_size != VMCI_DG_SIZE(dq_entry->dg)); in ctx_free_ctx()
466 list_del(&dq_entry->list_item); in ctx_free_ctx()
467 kfree(dq_entry->dg); in ctx_free_ctx()
468 kfree(dq_entry); in ctx_free_ctx()
512 struct vmci_datagram_queue_entry *dq_entry; in vmci_ctx_dequeue_datagram() local
527 dq_entry = in vmci_ctx_dequeue_datagram()
531 if (*max_size < dq_entry->dg_size) { in vmci_ctx_dequeue_datagram()
532 *max_size = dq_entry->dg_size; in vmci_ctx_dequeue_datagram()
541 context->datagram_queue_size -= dq_entry->dg_size; in vmci_ctx_dequeue_datagram()
565 *dg = dq_entry->dg; in vmci_ctx_dequeue_datagram()
566 dq_entry->dg = NULL; in vmci_ctx_dequeue_datagram()
567 kfree(dq_entry); in vmci_ctx_dequeue_datagram()