Home
last modified time | relevance | path

Searched refs:dg (Results 1 – 7 of 7) sorted by relevance

/drivers/misc/vmw_vmci/
Dvmci_datagram.c165 static int dg_dispatch_as_host(u32 context_id, struct vmci_datagram *dg) in dg_dispatch_as_host() argument
171 dg_size = VMCI_DG_SIZE(dg); in dg_dispatch_as_host()
174 if (dg->dst.context == VMCI_HYPERVISOR_CONTEXT_ID) in dg_dispatch_as_host()
178 if (dg->src.context != context_id) { in dg_dispatch_as_host()
180 context_id, dg->src.context, dg->src.resource); in dg_dispatch_as_host()
185 retval = vmci_datagram_get_priv_flags(context_id, dg->src, in dg_dispatch_as_host()
189 dg->src.context, dg->src.resource); in dg_dispatch_as_host()
194 if (dg->dst.context == VMCI_HOST_CONTEXT_ID) { in dg_dispatch_as_host()
199 if (dg->src.context == VMCI_HYPERVISOR_CONTEXT_ID && in dg_dispatch_as_host()
200 dg->dst.resource == VMCI_EVENT_HANDLER) { in dg_dispatch_as_host()
[all …]
Dvmci_guest.c100 int vmci_send_datagram(struct vmci_datagram *dg) in vmci_send_datagram() argument
106 if (dg == NULL) in vmci_send_datagram()
122 dg, VMCI_DG_SIZE(dg)); in vmci_send_datagram()
216 struct vmci_datagram *dg; in vmci_dispatch_dgs() local
225 dg = (struct vmci_datagram *)dg_in_buffer; in vmci_dispatch_dgs()
228 while (dg->dst.resource != VMCI_INVALID_ID || in vmci_dispatch_dgs()
236 if (dg->dst.resource == VMCI_INVALID_ID) { in vmci_dispatch_dgs()
237 dg = (struct vmci_datagram *)roundup( in vmci_dispatch_dgs()
238 (uintptr_t)dg + 1, PAGE_SIZE); in vmci_dispatch_dgs()
242 (u8 *)dg); in vmci_dispatch_dgs()
[all …]
Dvmci_host.c361 struct vmci_datagram *dg = NULL; in vmci_host_do_send_datagram() local
378 if (send_info.len < sizeof(*dg)) { in vmci_host_do_send_datagram()
384 dg = memdup_user((void __user *)(uintptr_t)send_info.addr, in vmci_host_do_send_datagram()
386 if (IS_ERR(dg)) { in vmci_host_do_send_datagram()
389 return PTR_ERR(dg); in vmci_host_do_send_datagram()
392 if (VMCI_DG_SIZE(dg) != send_info.len) { in vmci_host_do_send_datagram()
394 kfree(dg); in vmci_host_do_send_datagram()
399 dg->dst.context, dg->dst.resource, in vmci_host_do_send_datagram()
400 dg->src.context, dg->src.resource, in vmci_host_do_send_datagram()
401 (unsigned long long)dg->payload_size); in vmci_host_do_send_datagram()
[all …]
Dvmci_datagram.h37 struct vmci_datagram *dg; /* Pending datagram. */ member
48 int vmci_datagram_dispatch(u32 context_id, struct vmci_datagram *dg,
50 int vmci_datagram_invoke_guest_handler(struct vmci_datagram *dg);
Dvmci_context.c297 int vmci_ctx_enqueue_datagram(u32 cid, struct vmci_datagram *dg) in vmci_ctx_enqueue_datagram() argument
304 vmci_dg_size = VMCI_DG_SIZE(dg); in vmci_ctx_enqueue_datagram()
324 dq_entry->dg = dg; in vmci_ctx_enqueue_datagram()
326 dg_src = dg->src; in vmci_ctx_enqueue_datagram()
466 WARN_ON(dq_entry->dg_size != VMCI_DG_SIZE(dq_entry->dg)); in ctx_free_ctx()
468 kfree(dq_entry->dg); in ctx_free_ctx()
511 struct vmci_datagram **dg) in vmci_ctx_dequeue_datagram() argument
566 *dg = dq_entry->dg; in vmci_ctx_dequeue_datagram()
567 dq_entry->dg = NULL; in vmci_ctx_dequeue_datagram()
Dvmci_context.h140 int vmci_ctx_enqueue_datagram(u32 cid, struct vmci_datagram *dg);
142 size_t *max_size, struct vmci_datagram **dg);
Dvmci_driver.h46 int vmci_send_datagram(struct vmci_datagram *dg);