Lines Matching refs:gpadl

27  * hv_gpadl_size - Return the real size of a gpadl, the size that Hyper-V uses
29 * For BUFFER gpadl, Hyper-V uses the exact same size as the guest does.
31 * For RING gpadl, in each ring, the guest uses one PAGE_SIZE as the header
35 * ringbuffer, the total size for a RING gpadl that Hyper-V uses is the
62 * HV_HYP_PAGE) in a ring gpadl based on the
72 * For RING gpadl, in each ring, the guest uses one PAGE_SIZE as the
77 * And to calculate the effective send offset in gpadl, we need to
85 * the gpadl
87 * @type: the type of the gpadl
88 * @kbuffer: the pointer to the gpadl in the guest
89 * @size: the total size (in bytes) of the gpadl
307 * create_gpadl_header - Creates a gpadl for the specified buffer
325 /* do we need a gpadl body msg */
332 /* we need a gpadl body */
454 * should be 0 for BUFFER type gpadl
460 struct vmbus_gpadl *gpadl)
493 gpadlmsg->gpadl = next_gpadl_handle;
522 gpadl_body->gpadl = next_gpadl_handle;
549 /* At this point, we received the gpadl created msg */
550 gpadl->gpadl_handle = gpadlmsg->gpadl;
551 gpadl->buffer = kbuffer;
552 gpadl->size = size;
582 u32 size, struct vmbus_gpadl *gpadl)
585 0U, gpadl);
686 /* Establish the gpadl for the ring buffer */
828 int vmbus_teardown_gpadl(struct vmbus_channel *channel, struct vmbus_gpadl *gpadl)
847 msg->gpadl = gpadl->gpadl_handle;
867 gpadl->gpadl_handle = 0;
884 ret = set_memory_encrypted((unsigned long)gpadl->buffer,
885 PFN_UP(gpadl->size));
962 /* Tear down the gpadl for the channel's ring buffer */
966 pr_err("Close failed: teardown gpadl return %d\n", ret);
968 * If we failed to teardown gpadl,