produce_q 147 drivers/misc/vmw_vmci/vmci_queue_pair.c struct vmci_queue *produce_q; produce_q 203 drivers/misc/vmw_vmci/vmci_queue_pair.c struct vmci_queue *produce_q; produce_q 216 drivers/misc/vmw_vmci/vmci_queue_pair.c void *produce_q; produce_q 432 drivers/misc/vmw_vmci/vmci_queue_pair.c struct vmci_queue *produce_q = prod_q; produce_q 436 drivers/misc/vmw_vmci/vmci_queue_pair.c if (!produce_q || !num_produce_pages || !consume_q || produce_q 459 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->kernel_if->u.g.pas[i] >> PAGE_SHIFT; produce_q 573 drivers/misc/vmw_vmci/vmci_queue_pair.c static void qp_init_queue_mutex(struct vmci_queue *produce_q, produce_q 581 drivers/misc/vmw_vmci/vmci_queue_pair.c if (produce_q->kernel_if->host) { produce_q 582 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->kernel_if->mutex = &produce_q->kernel_if->__mutex; produce_q 583 drivers/misc/vmw_vmci/vmci_queue_pair.c consume_q->kernel_if->mutex = &produce_q->kernel_if->__mutex; produce_q 584 drivers/misc/vmw_vmci/vmci_queue_pair.c mutex_init(produce_q->kernel_if->mutex); produce_q 591 drivers/misc/vmw_vmci/vmci_queue_pair.c static void qp_cleanup_queue_mutex(struct vmci_queue *produce_q, produce_q 594 drivers/misc/vmw_vmci/vmci_queue_pair.c if (produce_q->kernel_if->host) { produce_q 595 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->kernel_if->mutex = NULL; produce_q 647 drivers/misc/vmw_vmci/vmci_queue_pair.c struct vmci_queue *produce_q, produce_q 654 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->kernel_if->num_pages, produce_q 656 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->kernel_if->u.h.header_page); produce_q 657 drivers/misc/vmw_vmci/vmci_queue_pair.c if (retval < (int)produce_q->kernel_if->num_pages) { produce_q 660 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_release_pages(produce_q->kernel_if->u.h.header_page, produce_q 675 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_release_pages(produce_q->kernel_if->u.h.header_page, produce_q 676 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->kernel_if->num_pages, false); produce_q 690 drivers/misc/vmw_vmci/vmci_queue_pair.c struct vmci_queue *produce_q, produce_q 703 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->kernel_if->num_pages * PAGE_SIZE; produce_q 704 drivers/misc/vmw_vmci/vmci_queue_pair.c return qp_host_get_user_memory(produce_uva, consume_uva, produce_q, produce_q 713 drivers/misc/vmw_vmci/vmci_queue_pair.c static void qp_host_unregister_user_memory(struct vmci_queue *produce_q, produce_q 716 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_release_pages(produce_q->kernel_if->u.h.header_page, produce_q 717 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->kernel_if->num_pages, true); produce_q 718 drivers/misc/vmw_vmci/vmci_queue_pair.c memset(produce_q->kernel_if->u.h.header_page, 0, produce_q 719 drivers/misc/vmw_vmci/vmci_queue_pair.c sizeof(*produce_q->kernel_if->u.h.header_page) * produce_q 720 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->kernel_if->num_pages); produce_q 736 drivers/misc/vmw_vmci/vmci_queue_pair.c static int qp_host_map_queues(struct vmci_queue *produce_q, produce_q 741 drivers/misc/vmw_vmci/vmci_queue_pair.c if (!produce_q->q_header || !consume_q->q_header) { produce_q 744 drivers/misc/vmw_vmci/vmci_queue_pair.c if (produce_q->q_header != consume_q->q_header) produce_q 747 drivers/misc/vmw_vmci/vmci_queue_pair.c if (produce_q->kernel_if->u.h.header_page == NULL || produce_q 748 drivers/misc/vmw_vmci/vmci_queue_pair.c *produce_q->kernel_if->u.h.header_page == NULL) produce_q 751 drivers/misc/vmw_vmci/vmci_queue_pair.c headers[0] = *produce_q->kernel_if->u.h.header_page; produce_q 754 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->q_header = vmap(headers, 2, VM_MAP, PAGE_KERNEL); produce_q 755 drivers/misc/vmw_vmci/vmci_queue_pair.c if (produce_q->q_header != NULL) { produce_q 758 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->q_header + produce_q 777 drivers/misc/vmw_vmci/vmci_queue_pair.c struct vmci_queue *produce_q, produce_q 780 drivers/misc/vmw_vmci/vmci_queue_pair.c if (produce_q->q_header) { produce_q 781 drivers/misc/vmw_vmci/vmci_queue_pair.c if (produce_q->q_header < consume_q->q_header) produce_q 782 drivers/misc/vmw_vmci/vmci_queue_pair.c vunmap(produce_q->q_header); produce_q 786 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->q_header = NULL; produce_q 875 drivers/misc/vmw_vmci/vmci_queue_pair.c void *produce_q, produce_q 898 drivers/misc/vmw_vmci/vmci_queue_pair.c entry->produce_q = produce_q; produce_q 924 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_cleanup_queue_mutex(entry->produce_q, entry->consume_q); produce_q 925 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_free_queue(entry->produce_q, entry->qp.produce_size); produce_q 1086 drivers/misc/vmw_vmci/vmci_queue_pair.c struct vmci_queue **produce_q, produce_q 1138 drivers/misc/vmw_vmci/vmci_queue_pair.c my_consume_q = queue_pair_entry->produce_q; produce_q 1221 drivers/misc/vmw_vmci/vmci_queue_pair.c *produce_q = (struct vmci_queue *)my_produce_q; produce_q 1231 drivers/misc/vmw_vmci/vmci_queue_pair.c vmci_q_header_init((*produce_q)->q_header, *handle); produce_q 1349 drivers/misc/vmw_vmci/vmci_queue_pair.c entry->produce_q = qp_host_alloc_queue(guest_produce_size); produce_q 1350 drivers/misc/vmw_vmci/vmci_queue_pair.c if (entry->produce_q == NULL) { produce_q 1360 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_init_queue_mutex(entry->produce_q, entry->consume_q); produce_q 1374 drivers/misc/vmw_vmci/vmci_queue_pair.c entry->produce_q->q_header = entry->local_mem; produce_q 1384 drivers/misc/vmw_vmci/vmci_queue_pair.c entry->produce_q, produce_q 1417 drivers/misc/vmw_vmci/vmci_queue_pair.c vmci_q_header_init(entry->produce_q->q_header, produce_q 1429 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_host_free_queue(entry->produce_q, guest_produce_size); produce_q 1630 drivers/misc/vmw_vmci/vmci_queue_pair.c entry->produce_q, produce_q 1762 drivers/misc/vmw_vmci/vmci_queue_pair.c struct vmci_queue **produce_q, produce_q 1798 drivers/misc/vmw_vmci/vmci_queue_pair.c *produce_q = entry->consume_q; produce_q 1799 drivers/misc/vmw_vmci/vmci_queue_pair.c *consume_q = entry->produce_q; produce_q 1801 drivers/misc/vmw_vmci/vmci_queue_pair.c *produce_q = entry->produce_q; produce_q 1821 drivers/misc/vmw_vmci/vmci_queue_pair.c struct vmci_queue **produce_q, produce_q 1832 drivers/misc/vmw_vmci/vmci_queue_pair.c if (!handle || !produce_q || !consume_q || produce_q 1837 drivers/misc/vmw_vmci/vmci_queue_pair.c return qp_alloc_guest_work(handle, produce_q, produce_q 1842 drivers/misc/vmw_vmci/vmci_queue_pair.c return qp_alloc_host_work(handle, produce_q, produce_q 2007 drivers/misc/vmw_vmci/vmci_queue_pair.c entry->produce_q, entry->consume_q); produce_q 2011 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_host_map_queues(entry->produce_q, entry->consume_q); produce_q 2013 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_host_unregister_user_memory(entry->produce_q, produce_q 2048 drivers/misc/vmw_vmci/vmci_queue_pair.c entry->produce_q->saved_header = NULL; produce_q 2127 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_acquire_queue_mutex(entry->produce_q); produce_q 2128 drivers/misc/vmw_vmci/vmci_queue_pair.c headers_mapped = entry->produce_q->q_header || produce_q 2133 drivers/misc/vmw_vmci/vmci_queue_pair.c entry->produce_q, produce_q 2140 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_host_unregister_user_memory(entry->produce_q, produce_q 2148 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_release_queue_mutex(entry->produce_q); produce_q 2166 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_cleanup_queue_mutex(entry->produce_q, entry->consume_q); produce_q 2167 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_host_free_queue(entry->produce_q, entry->qp.produce_size); produce_q 2242 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_acquire_queue_mutex(entry->produce_q); produce_q 2246 drivers/misc/vmw_vmci/vmci_queue_pair.c entry->produce_q, produce_q 2248 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_release_queue_mutex(entry->produce_q); produce_q 2275 drivers/misc/vmw_vmci/vmci_queue_pair.c if (entry->produce_q->saved_header != NULL && produce_q 2286 drivers/misc/vmw_vmci/vmci_queue_pair.c if (NULL == entry->produce_q->q_header || produce_q 2288 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_host_map_queues(entry->produce_q, entry->consume_q); produce_q 2293 drivers/misc/vmw_vmci/vmci_queue_pair.c memcpy(&entry->saved_produce_q, entry->produce_q->q_header, produce_q 2295 drivers/misc/vmw_vmci/vmci_queue_pair.c entry->produce_q->saved_header = &entry->saved_produce_q; produce_q 2344 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_acquire_queue_mutex(entry->produce_q); produce_q 2350 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_host_unmap_queues(gid, entry->produce_q, entry->consume_q); produce_q 2359 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_host_unregister_user_memory(entry->produce_q, produce_q 2367 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_release_queue_mutex(entry->produce_q); produce_q 2417 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_acquire_queue_mutex(qpair->produce_q); produce_q 2426 drivers/misc/vmw_vmci/vmci_queue_pair.c qp_release_queue_mutex(qpair->produce_q); produce_q 2433 drivers/misc/vmw_vmci/vmci_queue_pair.c static int qp_map_queue_headers(struct vmci_queue *produce_q, produce_q 2438 drivers/misc/vmw_vmci/vmci_queue_pair.c if (NULL == produce_q->q_header || NULL == consume_q->q_header) { produce_q 2439 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_host_map_queues(produce_q, consume_q); produce_q 2441 drivers/misc/vmw_vmci/vmci_queue_pair.c return (produce_q->saved_header && produce_q 2462 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_map_queue_headers(qpair->produce_q, qpair->consume_q); produce_q 2464 drivers/misc/vmw_vmci/vmci_queue_pair.c *produce_q_header = qpair->produce_q->q_header; produce_q 2466 drivers/misc/vmw_vmci/vmci_queue_pair.c } else if (qpair->produce_q->saved_header && produce_q 2468 drivers/misc/vmw_vmci/vmci_queue_pair.c *produce_q_header = qpair->produce_q->saved_header; produce_q 2526 drivers/misc/vmw_vmci/vmci_queue_pair.c static ssize_t qp_enqueue_locked(struct vmci_queue *produce_q, produce_q 2537 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_map_queue_headers(produce_q, consume_q); produce_q 2541 drivers/misc/vmw_vmci/vmci_queue_pair.c free_space = vmci_q_header_free_space(produce_q->q_header, produce_q 2551 drivers/misc/vmw_vmci/vmci_queue_pair.c tail = vmci_q_header_producer_tail(produce_q->q_header); produce_q 2553 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_memcpy_to_queue_iter(produce_q, tail, from, written); produce_q 2559 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_memcpy_to_queue_iter(produce_q, tail, from, tmp); produce_q 2561 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_memcpy_to_queue_iter(produce_q, 0, from, produce_q 2568 drivers/misc/vmw_vmci/vmci_queue_pair.c vmci_q_header_add_producer_tail(produce_q->q_header, written, produce_q 2586 drivers/misc/vmw_vmci/vmci_queue_pair.c static ssize_t qp_dequeue_locked(struct vmci_queue *produce_q, produce_q 2598 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_map_queue_headers(produce_q, consume_q); produce_q 2603 drivers/misc/vmw_vmci/vmci_queue_pair.c produce_q->q_header, produce_q 2612 drivers/misc/vmw_vmci/vmci_queue_pair.c head = vmci_q_header_consumer_head(produce_q->q_header); produce_q 2631 drivers/misc/vmw_vmci/vmci_queue_pair.c vmci_q_header_add_consumer_head(produce_q->q_header, produce_q 2727 drivers/misc/vmw_vmci/vmci_queue_pair.c &my_qpair->produce_q, produce_q 3027 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_enqueue_locked(qpair->produce_q, produce_q 3071 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_dequeue_locked(qpair->produce_q, produce_q 3116 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_dequeue_locked(qpair->produce_q, produce_q 3157 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_enqueue_locked(qpair->produce_q, produce_q 3198 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_dequeue_locked(qpair->produce_q, produce_q 3240 drivers/misc/vmw_vmci/vmci_queue_pair.c result = qp_dequeue_locked(qpair->produce_q, produce_q 155 drivers/misc/vmw_vmci/vmci_queue_pair.h struct vmci_queue **produce_q, u64 produce_size,