Lines Matching defs: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
309 * create_gpadl_header - Creates a gpadl for the specified buffer
420 * should be 0 for BUFFER type gpadl
426 struct vmbus_gpadl *gpadl)
442 gpadl->decrypted = false;
452 gpadl->decrypted = true;
468 gpadlmsg->gpadl = next_gpadl_handle;
497 gpadl_body->gpadl = next_gpadl_handle;
524 /* At this point, we received the gpadl created msg */
525 gpadl->gpadl_handle = gpadlmsg->gpadl;
526 gpadl->buffer = kbuffer;
527 gpadl->size = size;
548 gpadl->decrypted = false;
563 u32 size, struct vmbus_gpadl *gpadl)
566 0U, gpadl);
667 /* Establish the gpadl for the ring buffer */
809 int vmbus_teardown_gpadl(struct vmbus_channel *channel, struct vmbus_gpadl *gpadl)
828 msg->gpadl = gpadl->gpadl_handle;
848 gpadl->gpadl_handle = 0;
865 ret = set_memory_encrypted((unsigned long)gpadl->buffer,
866 PFN_UP(gpadl->size));
870 gpadl->decrypted = ret;
945 /* Tear down the gpadl for the channel's ring buffer */
949 pr_err("Close failed: teardown gpadl return %d\n", ret);
951 * If we failed to teardown gpadl,