Lines Matching refs:plane

152 	int					plane;  member
702 static int au1200_setlocation (struct au1200fb_device *fbdev, int plane, in au1200_setlocation() argument
710 winctrl0 = lcd->window[plane].winctrl0; in au1200_setlocation()
711 winctrl1 = lcd->window[plane].winctrl1; in au1200_setlocation()
716 xsz = win->w[plane].xres; in au1200_setlocation()
717 ysz = win->w[plane].yres; in au1200_setlocation()
718 if ((xpos + win->w[plane].xres) > panel->Xres) { in au1200_setlocation()
724 if ((ypos + win->w[plane].yres) > panel->Yres) { in au1200_setlocation()
732 xsz = win->w[plane].xres + xpos; in au1200_setlocation()
733 fb_offset += (((0 - xpos) * winbpp(lcd->window[plane].winctrl1))/8); in au1200_setlocation()
740 ysz = win->w[plane].yres + ypos; in au1200_setlocation()
747 win->w[plane].xpos = xpos; in au1200_setlocation()
748 win->w[plane].ypos = ypos; in au1200_setlocation()
758 winenable = lcd->winenable & (1 << plane); in au1200_setlocation()
760 lcd->winenable &= ~(1 << plane); in au1200_setlocation()
761 lcd->window[plane].winctrl0 = winctrl0; in au1200_setlocation()
762 lcd->window[plane].winctrl1 = winctrl1; in au1200_setlocation()
763 lcd->window[plane].winbuf0 = in au1200_setlocation()
764 lcd->window[plane].winbuf1 = fbdev->fb_phys; in au1200_setlocation()
765 lcd->window[plane].winbufctrl = 0; /* select winbuf0 */ in au1200_setlocation()
939 int plane = fbdev->plane; in au1200_setmode() local
941 lcd->window[plane].winctrl1 = ( 0 in au1200_setmode()
942 | LCD_WINCTRL1_PRI_N(plane) in au1200_setmode()
943 | win->w[plane].mode_winctrl1 /* FRM,CCO,PO,PIPE */ in au1200_setmode()
946 au1200_setlocation(fbdev, plane, win->w[plane].xpos, win->w[plane].ypos); in au1200_setmode()
948 lcd->window[plane].winctrl2 = ( 0 in au1200_setmode()
955 lcd->winenable |= win->w[plane].mode_winenable; in au1200_setmode()
1041 int screen_size, plane; in au1200fb_fb_check_var() local
1043 plane = fbdev->plane; in au1200fb_fb_check_var()
1047 var->xres = win->w[plane].xres; in au1200fb_fb_check_var()
1048 var->yres = win->w[plane].yres; in au1200fb_fb_check_var()
1054 var->bits_per_pixel = winbpp(win->w[plane].mode_winctrl1); in au1200fb_fb_check_var()
1288 static void set_window(unsigned int plane, in set_window() argument
1295 val = lcd->window[plane].winctrl0 & ~(LCD_WINCTRL0_OX | in set_window()
1299 lcd->window[plane].winctrl0 = val; in set_window()
1302 val = lcd->window[plane].winctrl0 & ~(LCD_WINCTRL0_A); in set_window()
1304 lcd->window[plane].winctrl0 = val; in set_window()
1307 val = lcd->window[plane].winctrl0 & ~(LCD_WINCTRL0_AEN); in set_window()
1309 lcd->window[plane].winctrl0 = val; in set_window()
1314 val = lcd->window[plane].winctrl1 & ~(LCD_WINCTRL1_PRI); in set_window()
1316 lcd->window[plane].winctrl1 = val; in set_window()
1319 val = lcd->window[plane].winctrl1 & ~(LCD_WINCTRL1_PIPE); in set_window()
1321 lcd->window[plane].winctrl1 = val; in set_window()
1324 val = lcd->window[plane].winctrl1 & ~(LCD_WINCTRL1_FRM); in set_window()
1326 lcd->window[plane].winctrl1 = val; in set_window()
1329 val = lcd->window[plane].winctrl1 & ~(LCD_WINCTRL1_CCO); in set_window()
1331 lcd->window[plane].winctrl1 = val; in set_window()
1334 val = lcd->window[plane].winctrl1 & ~(LCD_WINCTRL1_PO); in set_window()
1336 lcd->window[plane].winctrl1 = val; in set_window()
1339 val = lcd->window[plane].winctrl1 & ~(LCD_WINCTRL1_SZX | in set_window()
1343 lcd->window[plane].winctrl1 = val; in set_window()
1346 val = lcd->window[plane].winctrl2 & ~(LCD_WINCTRL2_BX); in set_window()
1348 lcd->window[plane].winctrl2 = val; in set_window()
1353 val = lcd->window[plane].winctrl2 & ~(LCD_WINCTRL2_CKMODE); in set_window()
1355 lcd->window[plane].winctrl2 = val; in set_window()
1358 val = lcd->window[plane].winctrl2 & ~(LCD_WINCTRL2_DBM); in set_window()
1360 lcd->window[plane].winctrl2 = val; in set_window()
1363 val = lcd->window[plane].winctrl2 & ~(LCD_WINCTRL2_RAM); in set_window()
1365 lcd->window[plane].winctrl2 = val; in set_window()
1371 val = lcd->window[plane].winctrl2 & ~(LCD_WINCTRL2_SCX | in set_window()
1375 lcd->window[plane].winctrl2 = val; in set_window()
1380 val &= ~(1<<plane); in set_window()
1381 val |= (pdata->enable & 1) << plane; in set_window()
1387 static void get_window(unsigned int plane, in get_window() argument
1391 pdata->xpos = (lcd->window[plane].winctrl0 & LCD_WINCTRL0_OX) >> 21; in get_window()
1392 pdata->ypos = (lcd->window[plane].winctrl0 & LCD_WINCTRL0_OY) >> 10; in get_window()
1393 pdata->alpha_color = (lcd->window[plane].winctrl0 & LCD_WINCTRL0_A) >> 2; in get_window()
1394 pdata->alpha_mode = (lcd->window[plane].winctrl0 & LCD_WINCTRL0_AEN) >> 1; in get_window()
1397 pdata->priority = (lcd->window[plane].winctrl1& LCD_WINCTRL1_PRI) >> 30; in get_window()
1398 pdata->channel = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_PIPE) >> 29; in get_window()
1399 pdata->buffer_format = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_FRM) >> 25; in get_window()
1400 pdata->color_order = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_CCO) >> 24; in get_window()
1401 pdata->pixel_order = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_PO) >> 22; in get_window()
1402 pdata->xsize = ((lcd->window[plane].winctrl1 & LCD_WINCTRL1_SZX) >> 11) + 1; in get_window()
1403 pdata->ysize = (lcd->window[plane].winctrl1 & LCD_WINCTRL1_SZY) + 1; in get_window()
1406 pdata->colorkey_mode = (lcd->window[plane].winctrl2 & LCD_WINCTRL2_CKMODE) >> 24; in get_window()
1407 pdata->double_buffer_mode = (lcd->window[plane].winctrl2 & LCD_WINCTRL2_DBM) >> 23; in get_window()
1408 pdata->ram_array_mode = (lcd->window[plane].winctrl2 & LCD_WINCTRL2_RAM) >> 21; in get_window()
1410 pdata->enable = (lcd->winenable >> plane) & 1; in get_window()
1418 int plane; in au1200fb_ioctl() local
1421 plane = fbinfo2index(info); in au1200fb_ioctl()
1422 print_dbg("au1200fb: ioctl %d on plane %d\n", cmd, plane); in au1200fb_ioctl()
1445 set_window(plane, &iodata.window); in au1200fb_ioctl()
1450 get_window(plane, &iodata.window); in au1200fb_ioctl()
1524 bpp = winbpp(win->w[fbdev->plane].mode_winctrl1); in au1200fb_init_fbinfo()
1649 int bpp, plane, ret, irq; in au1200fb_drv_probe() local
1668 for (plane = 0; plane < device_count; ++plane) { in au1200fb_drv_probe()
1669 bpp = winbpp(win->w[plane].mode_winctrl1); in au1200fb_drv_probe()
1670 if (win->w[plane].xres == 0) in au1200fb_drv_probe()
1671 win->w[plane].xres = panel->Xres; in au1200fb_drv_probe()
1672 if (win->w[plane].yres == 0) in au1200fb_drv_probe()
1673 win->w[plane].yres = panel->Yres; in au1200fb_drv_probe()
1682 _au1200fb_infos[plane] = fbi; in au1200fb_drv_probe()
1688 fbdev->plane = plane; in au1200fb_drv_probe()
1691 fbdev->fb_len = (win->w[plane].xres * win->w[plane].yres * bpp) / 8; in au1200fb_drv_probe()
1721 if (plane == 0) in au1200fb_drv_probe()
1748 for (plane = 0; plane < device_count; ++plane) { in au1200fb_drv_probe()
1749 fbi = _au1200fb_infos[plane]; in au1200fb_drv_probe()
1760 _au1200fb_infos[plane] = NULL; in au1200fb_drv_probe()
1769 int plane; in au1200fb_drv_remove() local
1774 for (plane = 0; plane < device_count; ++plane) { in au1200fb_drv_remove()
1775 fbi = _au1200fb_infos[plane]; in au1200fb_drv_remove()
1784 _au1200fb_infos[plane] = NULL; in au1200fb_drv_remove()