Lines Matching full:dg
236 struct vmci_datagram *dg; in vmci_read_datagrams_from_port() local
246 dg = (struct vmci_datagram *)dg_in_buffer; in vmci_read_datagrams_from_port()
249 while (dg->dst.resource != VMCI_INVALID_ID || in vmci_read_datagrams_from_port()
258 if (dg->dst.resource == VMCI_INVALID_ID) { in vmci_read_datagrams_from_port()
260 dg = (struct vmci_datagram *)ROUNDUP((uintptr_t)dg + 1, in vmci_read_datagrams_from_port()
262 ASSERT((uint8_t *)dg < dg_in_buffer + in vmci_read_datagrams_from_port()
265 current_dg_in_buffer_size - (uint8_t *)dg); in vmci_read_datagrams_from_port()
269 dg_in_size = VMCI_DG_SIZE_ALIGNED(dg); in vmci_read_datagrams_from_port()
296 dg = (struct vmci_datagram *) in vmci_read_datagrams_from_port()
315 if (dg->src.context == VMCI_HYPERVISOR_CONTEXT_ID && in vmci_read_datagrams_from_port()
316 dg->dst.resource == VMCI_EVENT_HANDLER) in vmci_read_datagrams_from_port()
317 result = vmci_event_dispatch(dg); in vmci_read_datagrams_from_port()
320 vmci_datagram_invoke_guest_handler(dg); in vmci_read_datagrams_from_port()
324 dg->dst.resource, result); in vmci_read_datagrams_from_port()
327 dg = (struct vmci_datagram *)((uint8_t *)dg + in vmci_read_datagrams_from_port()
351 dg = (struct vmci_datagram *)(dg_in_buffer + in vmci_read_datagrams_from_port()
356 current_dg_in_buffer_size - (uint8_t *)dg); in vmci_read_datagrams_from_port()
363 dg = (struct vmci_datagram *)dg_in_buffer; in vmci_read_datagrams_from_port()