Lines Matching refs:fb_fd
174 int fb_fd = openFb(HWC_DISPLAY_PRIMARY); in openFramebufferDevice() local
175 if(fb_fd < 0) { in openFramebufferDevice()
180 if (ioctl(fb_fd, FBIOGET_VSCREENINFO, &info) == -1) { in openFramebufferDevice()
183 close(fb_fd); in openFramebufferDevice()
202 if (ioctl(fb_fd, MSMFB_METADATA_GET, &metadata) == -1) { in openFramebufferDevice()
205 close(fb_fd); in openFramebufferDevice()
216 if (ioctl(fb_fd, FBIOGET_FSCREENINFO, &finfo) == -1) { in openFramebufferDevice()
219 close(fb_fd); in openFramebufferDevice()
223 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].fd = fb_fd; in openFramebufferDevice()
240 if(ioctl(fb_fd, FBIOBLANK,FB_BLANK_UNBLANK) < 0) { in openFramebufferDevice()
255 int fb_fd = -1; in changeDefaultAppBufferCount() local
257 fb_fd = open("/dev/graphics/fb0", O_RDONLY); in changeDefaultAppBufferCount()
258 if (fb_fd >=0) { in changeDefaultAppBufferCount()
259 ioctl(fb_fd, FBIOGET_VSCREENINFO, &sInfo); in changeDefaultAppBufferCount()
260 close(fb_fd); in changeDefaultAppBufferCount()