Lines Matching refs:ppn_set

218 	struct ppn_set ppn_set;  member
430 u64 num_consume_pages, struct ppn_set *ppn_set) in qp_alloc_ppn_set() argument
439 !num_consume_pages || !ppn_set) in qp_alloc_ppn_set()
442 if (ppn_set->initialized) in qp_alloc_ppn_set()
467 ppn_set->num_produce_pages = num_produce_pages; in qp_alloc_ppn_set()
468 ppn_set->num_consume_pages = num_consume_pages; in qp_alloc_ppn_set()
469 ppn_set->produce_ppns = produce_ppns; in qp_alloc_ppn_set()
470 ppn_set->consume_ppns = consume_ppns; in qp_alloc_ppn_set()
471 ppn_set->initialized = true; in qp_alloc_ppn_set()
478 static void qp_free_ppn_set(struct ppn_set *ppn_set) in qp_free_ppn_set() argument
480 if (ppn_set->initialized) { in qp_free_ppn_set()
482 kfree(ppn_set->produce_ppns); in qp_free_ppn_set()
483 kfree(ppn_set->consume_ppns); in qp_free_ppn_set()
485 memset(ppn_set, 0, sizeof(*ppn_set)); in qp_free_ppn_set()
492 static int qp_populate_ppn_set(u8 *call_buf, const struct ppn_set *ppn_set) in qp_populate_ppn_set() argument
495 memcpy(call_buf, ppn_set->produce_ppns, in qp_populate_ppn_set()
496 ppn_set->num_produce_pages * in qp_populate_ppn_set()
497 sizeof(*ppn_set->produce_ppns)); in qp_populate_ppn_set()
499 ppn_set->num_produce_pages * in qp_populate_ppn_set()
500 sizeof(*ppn_set->produce_ppns), in qp_populate_ppn_set()
501 ppn_set->consume_ppns, in qp_populate_ppn_set()
502 ppn_set->num_consume_pages * in qp_populate_ppn_set()
503 sizeof(*ppn_set->consume_ppns)); in qp_populate_ppn_set()
508 for (i = 0; i < ppn_set->num_produce_pages; i++) in qp_populate_ppn_set()
509 ppns[i] = (u32) ppn_set->produce_ppns[i]; in qp_populate_ppn_set()
511 ppns = &ppns[ppn_set->num_produce_pages]; in qp_populate_ppn_set()
513 for (i = 0; i < ppn_set->num_consume_pages; i++) in qp_populate_ppn_set()
514 ppns[i] = (u32) ppn_set->consume_ppns[i]; in qp_populate_ppn_set()
931 qp_free_ppn_set(&entry->ppn_set); in qp_guest_endpoint_destroy()
974 &entry->ppn_set); in qp_alloc_hypercall()
1179 &queue_pair_entry->ppn_set); in qp_alloc_guest_work()