Searched defs:vi (Results 1 - 3 of 3) sorted by relevance

/system/core/init/
H A Dlogo.c47 struct fb_var_screeninfo vi; member in struct:FB
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)
86 fb->vi.yoffset = 1;
87 ioctl(fb->fd, FBIOPUT_VSCREENINFO, &fb->vi);
88 fb->vi.yoffset = 0;
89 ioctl(fb->fd, FBIOPUT_VSCREENINFO, &fb->vi);
[all...]
/system/extras/tests/framebuffer/
H A Dfb_test.c45 static struct fb_var_screeninfo vi; variable in typeref:struct:fb_var_screeninfo
50 struct fb_var_screeninfo *vi);
67 if(ioctl(fd, FBIOGET_VSCREENINFO, &vi) < 0) {
72 if (bpp && vi.bits_per_pixel != bpp) {
74 vi.bits_per_pixel = bpp;
75 if(ioctl(fd, FBIOPUT_VSCREENINFO, &vi) < 0) {
86 dumpinfo(&fi, &vi);
94 bytes_per_pixel = vi.bits_per_pixel >> 3;
96 fb->width = vi.xres;
97 fb->height = vi
125 dumpinfo(struct fb_fix_screeninfo *fi, struct fb_var_screeninfo *vi) argument
[all...]
H A Dmdp_test.c29 static struct fb_var_screeninfo vi; variable in typeref:struct:fb_var_screeninfo
111 if(ioctl(*fd, FBIOGET_VSCREENINFO, &vi) < 0) {
122 *width = vi.xres;
123 *height = vi.yres;
132 vi.yres_virtual = vi.yres * 2;
133 vi.yoffset = n * vi.yres;
134 if(ioctl(fd, FBIOPUT_VSCREENINFO, &vi) < 0) {

Completed in 182 milliseconds