Home
last modified time | relevance | path

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

/drivers/misc/vmw_vmci/
Dvmci_datagram.c157 static int dg_dispatch_as_host(u32 context_id, struct vmci_datagram *dg) in dg_dispatch_as_host() argument
163 dg_size = VMCI_DG_SIZE(dg); in dg_dispatch_as_host()
166 if (dg->dst.context == VMCI_HYPERVISOR_CONTEXT_ID) in dg_dispatch_as_host()
170 if (dg->src.context != context_id) { in dg_dispatch_as_host()
172 context_id, dg->src.context, dg->src.resource); in dg_dispatch_as_host()
177 retval = vmci_datagram_get_priv_flags(context_id, dg->src, in dg_dispatch_as_host()
181 dg->src.context, dg->src.resource); in dg_dispatch_as_host()
186 if (dg->dst.context == VMCI_HOST_CONTEXT_ID) { in dg_dispatch_as_host()
191 if (dg->src.context == VMCI_HYPERVISOR_CONTEXT_ID && in dg_dispatch_as_host()
192 dg->dst.resource == VMCI_EVENT_HANDLER) { in dg_dispatch_as_host()
[all …]
Dvmci_guest.c96 int vmci_send_datagram(struct vmci_datagram *dg) in vmci_send_datagram() argument
102 if (dg == NULL) in vmci_send_datagram()
118 dg, VMCI_DG_SIZE(dg)); in vmci_send_datagram()
212 struct vmci_datagram *dg; in vmci_dispatch_dgs() local
221 dg = (struct vmci_datagram *)dg_in_buffer; in vmci_dispatch_dgs()
224 while (dg->dst.resource != VMCI_INVALID_ID || in vmci_dispatch_dgs()
232 if (dg->dst.resource == VMCI_INVALID_ID) { in vmci_dispatch_dgs()
233 dg = (struct vmci_datagram *)roundup( in vmci_dispatch_dgs()
234 (uintptr_t)dg + 1, PAGE_SIZE); in vmci_dispatch_dgs()
238 (u8 *)dg); in vmci_dispatch_dgs()
[all …]
Dvmci_host.c364 struct vmci_datagram *dg = NULL; in vmci_host_do_send_datagram() local
381 if (send_info.len < sizeof(*dg)) { in vmci_host_do_send_datagram()
387 dg = memdup_user((void __user *)(uintptr_t)send_info.addr, in vmci_host_do_send_datagram()
389 if (IS_ERR(dg)) { in vmci_host_do_send_datagram()
392 return PTR_ERR(dg); in vmci_host_do_send_datagram()
395 if (VMCI_DG_SIZE(dg) != send_info.len) { in vmci_host_do_send_datagram()
397 kfree(dg); in vmci_host_do_send_datagram()
402 dg->dst.context, dg->dst.resource, in vmci_host_do_send_datagram()
403 dg->src.context, dg->src.resource, in vmci_host_do_send_datagram()
404 (unsigned long long)dg->payload_size); in vmci_host_do_send_datagram()
[all …]
Dvmci_datagram.h29 struct vmci_datagram *dg; /* Pending datagram. */ member
40 int vmci_datagram_dispatch(u32 context_id, struct vmci_datagram *dg,
42 int vmci_datagram_invoke_guest_handler(struct vmci_datagram *dg);
Dvmci_context.c296 int vmci_ctx_enqueue_datagram(u32 cid, struct vmci_datagram *dg) in vmci_ctx_enqueue_datagram() argument
303 vmci_dg_size = VMCI_DG_SIZE(dg); in vmci_ctx_enqueue_datagram()
323 dq_entry->dg = dg; in vmci_ctx_enqueue_datagram()
325 dg_src = dg->src; in vmci_ctx_enqueue_datagram()
465 WARN_ON(dq_entry->dg_size != VMCI_DG_SIZE(dq_entry->dg)); in ctx_free_ctx()
467 kfree(dq_entry->dg); in ctx_free_ctx()
510 struct vmci_datagram **dg) in vmci_ctx_dequeue_datagram() argument
565 *dg = dq_entry->dg; in vmci_ctx_dequeue_datagram()
566 dq_entry->dg = NULL; in vmci_ctx_dequeue_datagram()
Dvmci_context.h132 int vmci_ctx_enqueue_datagram(u32 cid, struct vmci_datagram *dg);
134 size_t *max_size, struct vmci_datagram **dg);
Dvmci_driver.h38 int vmci_send_datagram(struct vmci_datagram *dg);
/drivers/crypto/cavium/zip/
Dzip_deflate.c82 zip_cmd->s.dg = 0; in prepare_zip_command()
Dzip_inflate.c103 zip_cmd->s.dg = 0; in prepare_inflate_zcmd()
Dzip_regs.h193 u64 dg : 1; member
197 u64 dg : 1;