Lines Matching refs:res
56 int goldfish_dma_create_region(uint32_t sz, struct goldfish_dma_context* res) { in goldfish_dma_create_region() argument
58 res->fd = qemu_pipe_open("opengles"); in goldfish_dma_create_region()
59 res->mapped_addr = 0; in goldfish_dma_create_region()
60 res->size = 0; in goldfish_dma_create_region()
62 if (res->fd > 0) { in goldfish_dma_create_region()
66 int alloc_res = ioctl(res->fd, GOLDFISH_DMA_IOC_CREATE_REGION, &info); in goldfish_dma_create_region()
71 close(res->fd); in goldfish_dma_create_region()
72 res->fd = -1; in goldfish_dma_create_region()
76 res->size = sz; in goldfish_dma_create_region()
78 __FUNCTION__, sz, res, res->fd); in goldfish_dma_create_region()
82 __FUNCTION__, res->fd, errno); in goldfish_dma_create_region()