Lines Matching refs:fd
58 res->fd = qemu_pipe_open("opengles"); 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()
78 __FUNCTION__, sz, res, res->fd); in goldfish_dma_create_region()
82 __FUNCTION__, res->fd, errno); in goldfish_dma_create_region()
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()
118 close(cxt->fd); in goldfish_dma_free()
123 ioctl(cxt->fd, GOLDFISH_DMA_IOC_GETOFF, &info); in goldfish_dma_guest_paddr()