Home
last modified time | relevance | path

Searched refs:cxt (Results 1 – 4 of 4) sorted by relevance

/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
Dgoldfish_dma.cpp87 void* goldfish_dma_map(struct goldfish_dma_context* cxt) { in goldfish_dma_map() argument
88 ALOGV("%s: on fd %d errno=%d", __FUNCTION__, cxt->fd, errno); in goldfish_dma_map()
89 void *mapped = mmap(0, cxt->size, PROT_WRITE, MAP_SHARED, cxt->fd, 0); in goldfish_dma_map()
91 __FUNCTION__, cxt, mapped, cxt->size, errno); in goldfish_dma_map()
97 cxt->mapped_addr = reinterpret_cast<uint64_t>(mapped); in goldfish_dma_map()
101 int goldfish_dma_unmap(struct goldfish_dma_context* cxt) { in goldfish_dma_unmap() argument
102 ALOGV("%s: cxt=%p mapped=0x%" PRIu64, __FUNCTION__, cxt, cxt->mapped_addr); in goldfish_dma_unmap()
103 munmap(reinterpret_cast<void *>(cxt->mapped_addr), cxt->size); in goldfish_dma_unmap()
104 cxt->mapped_addr = 0; in goldfish_dma_unmap()
105 cxt->size = 0; in goldfish_dma_unmap()
[all …]
Dgoldfish_dma_host.cpp20 void* goldfish_dma_map(struct goldfish_dma_context* cxt) { in goldfish_dma_map() argument
24 int goldfish_dma_unmap(struct goldfish_dma_context* cxt) { in goldfish_dma_unmap() argument
28 void goldfish_dma_write(struct goldfish_dma_context* cxt, in goldfish_dma_write() argument
33 void goldfish_dma_free(goldfish_dma_context* cxt) { in goldfish_dma_free() argument
36 uint64_t goldfish_dma_guest_paddr(const struct goldfish_dma_context* cxt) { in goldfish_dma_guest_paddr() argument
Dgoldfish_dma.h29 void* goldfish_dma_map(struct goldfish_dma_context* cxt);
30 int goldfish_dma_unmap(struct goldfish_dma_context* cxt);
32 void goldfish_dma_write(struct goldfish_dma_context* cxt,
36 void goldfish_dma_free(goldfish_dma_context* cxt);
37 uint64_t goldfish_dma_guest_paddr(const struct goldfish_dma_context* cxt);
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DHostConnection.h67 void bindDmaContext(struct goldfish_dma_context* cxt) { m_dmaCxt = cxt; } in bindDmaContext() argument