Home
last modified time | relevance | path

Searched refs:vi (Results 1 – 3 of 3) sorted by relevance

/system/extras/tests/framebuffer/
Dfb_test.c45 static struct fb_var_screeninfo vi; variable
50 struct fb_var_screeninfo *vi);
67 if(ioctl(fd, FBIOGET_VSCREENINFO, &vi) < 0) { in get_framebuffer()
72 if (bpp && vi.bits_per_pixel != bpp) { in get_framebuffer()
74 vi.bits_per_pixel = bpp; in get_framebuffer()
75 if(ioctl(fd, FBIOPUT_VSCREENINFO, &vi) < 0) { in get_framebuffer()
86 dumpinfo(&fi, &vi); in get_framebuffer()
94 bytes_per_pixel = vi.bits_per_pixel >> 3; in get_framebuffer()
96 fb->width = vi.xres; in get_framebuffer()
97 fb->height = vi.yres; in get_framebuffer()
[all …]
Dmdp_test.c29 static struct fb_var_screeninfo vi; variable
111 if(ioctl(*fd, FBIOGET_VSCREENINFO, &vi) < 0) { in get_framebuffer()
122 *width = vi.xres; in get_framebuffer()
123 *height = vi.yres; in get_framebuffer()
132 vi.yres_virtual = vi.yres * 2; in set_active_framebuffer()
133 vi.yoffset = n * vi.yres; in set_active_framebuffer()
134 if(ioctl(fd, FBIOPUT_VSCREENINFO, &vi) < 0) { in set_active_framebuffer()
/system/core/init/
Dlogo.c47 struct fb_var_screeninfo vi; member
50 #define fb_width(fb) ((fb)->vi.xres)
51 #define fb_height(fb) ((fb)->vi.yres)
52 #define fb_size(fb) ((fb)->vi.xres * (fb)->vi.yres * 2)
62 if (ioctl(fb->fd, FBIOGET_VSCREENINFO, &fb->vi) < 0) in fb_open()
86 fb->vi.yoffset = 1; in fb_update()
87 ioctl(fb->fd, FBIOPUT_VSCREENINFO, &fb->vi); in fb_update()
88 fb->vi.yoffset = 0; in fb_update()
89 ioctl(fb->fd, FBIOPUT_VSCREENINFO, &fb->vi); in fb_update()