Lines Matching refs:q_header
297 queue->q_header = NULL; in qp_alloc_queue()
320 queue->q_header = queue->kernel_if->u.g.vas[0]; in qp_alloc_queue()
547 queue->q_header = NULL; in qp_host_alloc_queue()
748 if (!produce_q->q_header || !consume_q->q_header) { in qp_host_map_queues()
751 if (produce_q->q_header != consume_q->q_header) in qp_host_map_queues()
761 produce_q->q_header = vmap(headers, 2, VM_MAP, PAGE_KERNEL); in qp_host_map_queues()
762 if (produce_q->q_header != NULL) { in qp_host_map_queues()
763 consume_q->q_header = in qp_host_map_queues()
765 produce_q->q_header + in qp_host_map_queues()
787 if (produce_q->q_header) { in qp_host_unmap_queues()
788 if (produce_q->q_header < consume_q->q_header) in qp_host_unmap_queues()
789 vunmap(produce_q->q_header); in qp_host_unmap_queues()
791 vunmap(consume_q->q_header); in qp_host_unmap_queues()
793 produce_q->q_header = NULL; in qp_host_unmap_queues()
794 consume_q->q_header = NULL; in qp_host_unmap_queues()
1239 vmci_q_header_init((*produce_q)->q_header, *handle); in qp_alloc_guest_work()
1240 vmci_q_header_init((*consume_q)->q_header, *handle); in qp_alloc_guest_work()
1382 entry->produce_q->q_header = entry->local_mem; in qp_broker_create()
1385 entry->consume_q->q_header = (struct vmci_queue_header *)tmp; in qp_broker_create()
1425 vmci_q_header_init(entry->produce_q->q_header, in qp_broker_create()
1427 vmci_q_header_init(entry->consume_q->q_header, in qp_broker_create()
2140 headers_mapped = entry->produce_q->q_header || in vmci_qp_broker_detach()
2141 entry->consume_q->q_header; in vmci_qp_broker_detach()
2299 if (NULL == entry->produce_q->q_header || in qp_save_headers()
2300 NULL == entry->consume_q->q_header) { in qp_save_headers()
2306 memcpy(&entry->saved_produce_q, entry->produce_q->q_header, in qp_save_headers()
2309 memcpy(&entry->saved_consume_q, entry->consume_q->q_header, in qp_save_headers()
2452 if (NULL == produce_q->q_header || NULL == consume_q->q_header) { in qp_map_queue_headers()
2478 *produce_q_header = qpair->produce_q->q_header; in qp_get_queue_headers()
2479 *consume_q_header = qpair->consume_q->q_header; in qp_get_queue_headers()
2555 free_space = vmci_q_header_free_space(produce_q->q_header, in qp_enqueue_locked()
2556 consume_q->q_header, in qp_enqueue_locked()
2565 tail = vmci_q_header_producer_tail(produce_q->q_header); in qp_enqueue_locked()
2588 vmci_q_header_add_producer_tail(produce_q->q_header, written, in qp_enqueue_locked()
2622 buf_ready = vmci_q_header_buf_ready(consume_q->q_header, in qp_dequeue_locked()
2623 produce_q->q_header, in qp_dequeue_locked()
2638 head = vmci_q_header_consumer_head(produce_q->q_header); in qp_dequeue_locked()
2657 vmci_q_header_add_consumer_head(produce_q->q_header, in qp_dequeue_locked()