Lines Matching refs:variant
63 #define OSD_BASE(win, variant) ((variant).osd + ((win) * (variant).osd_stride))
64 #define VIDOSD_A(win, variant) (OSD_BASE(win, variant) + 0x00)
65 #define VIDOSD_B(win, variant) (OSD_BASE(win, variant) + 0x04)
66 #define VIDOSD_C(win, variant) (OSD_BASE(win, variant) + 0x08)
67 #define VIDOSD_D(win, variant) (OSD_BASE(win, variant) + 0x0C)
70 * struct s3c_fb_variant - fb variant information
134 * @variant: The variant information for this driver.
138 struct s3c_fb_variant variant;
161 * @varint: The variant information for this window.
172 struct s3c_fb_win_variant variant;
196 * @variant: Variant information for this hardware.
211 struct s3c_fb_variant variant;
231 return win->variant.valid_bpp & VALID_BPP(bpp);
268 if (sfb->variant.palette[win->index] != 0) {
353 if (sfb->variant.has_clksel)
400 if (win->variant.osd_size_off)
401 writel(size, sfb->regs + OSD_BASE(win->index, sfb->variant)
402 + win->variant.osd_size_off);
415 if (win->variant.has_osd_alpha)
416 writel(alpha, sfb->regs + VIDOSD_C(win->index, sfb->variant));
431 if (sfb->variant.has_prtcon) {
433 } else if (sfb->variant.has_shadowcon) {
439 if (sfb->variant.has_prtcon) {
441 } else if (sfb->variant.has_shadowcon) {
514 if (win->variant.palette_sz >= 256)
543 writel(info->fix.smem_start, buf + sfb->variant.buf_start);
546 writel(data, buf + sfb->variant.buf_end);
553 writel(data, regs + sfb->variant.buf_size + (win_no * 4));
559 writel(data, regs + VIDOSD_A(win_no, sfb->variant));
568 writel(data, regs + VIDOSD_B(win_no, sfb->variant));
580 if (sfb->variant.has_shadowcon) {
650 void __iomem *keycon = regs + sfb->variant.keycon;
664 writel(data, regs + sfb->variant.wincon + (win_no * 4));
665 writel(0x0, regs + sfb->variant.winmap + (win_no * 4));
668 if (sfb->variant.has_blendcon) {
707 palreg = sfb->regs + sfb->variant.palette[win->index];
717 if (win->variant.palette_16bpp)
771 if (regno < win->variant.palette_sz) {
809 wincon = readl(sfb->regs + sfb->variant.wincon + (index * 4));
821 sfb->regs + sfb->variant.winmap + (index * 4));
827 writel(0x0, sfb->regs + sfb->variant.winmap + (index * 4));
841 writel(wincon, sfb->regs + sfb->variant.wincon + (index * 4));
906 writel(info->fix.smem_start + start_boff, buf + sfb->variant.buf_start);
907 writel(info->fix.smem_start + end_boff, buf + sfb->variant.buf_end);
1150 if (sfb->variant.has_shadowcon) {
1167 * @variant: The variant information for this window.
1174 struct s3c_fb_win_variant *variant,
1185 dev_dbg(sfb->dev, "probing window %d, variant %p\n", win_no, variant);
1189 palette_size = variant->palette_sz * 4;
1208 win->variant = *variant;
1222 if (win->variant.palette_16bpp) {
1265 ret = fb_alloc_cmap(&fbinfo->cmap, win->variant.palette_sz, 1);
1314 if (sfb->variant.is_2443)
1321 writel(data, regs + sfb->variant.vidtcon);
1326 writel(data, regs + sfb->variant.vidtcon + 4);
1332 writel(data, regs + sfb->variant.vidtcon + 8);
1347 writel(0, regs + sfb->variant.wincon + (win * 4));
1348 writel(0, regs + VIDOSD_A(win, sfb->variant));
1349 writel(0, regs + VIDOSD_B(win, sfb->variant));
1350 writel(0, regs + VIDOSD_C(win, sfb->variant));
1352 if (sfb->variant.has_shadowcon) {
1376 if (fbdrv->variant.nr_windows > S3C_FB_MAX_WIN) {
1397 sfb->variant = fbdrv->variant;
1409 if (!sfb->variant.has_clksel) {
1455 if (sfb->variant.has_fixvclk) {
1464 for (win = 0; win < fbdrv->variant.nr_windows; win++)
1468 for (win = 0; win < (fbdrv->variant.nr_windows - 1); win++) {
1469 void __iomem *regs = sfb->regs + sfb->variant.keycon;
1480 for (win = 0; win < fbdrv->variant.nr_windows; win++) {
1505 if (!sfb->variant.has_clksel)
1532 if (!sfb->variant.has_clksel)
1561 if (!sfb->variant.has_clksel)
1583 if (!sfb->variant.has_clksel)
1591 if (sfb->variant.has_fixvclk) {
1599 for (win_no = 0; win_no < sfb->variant.nr_windows; win_no++)
1602 for (win_no = 0; win_no < sfb->variant.nr_windows - 1; win_no++) {
1603 void __iomem *regs = sfb->regs + sfb->variant.keycon;
1638 if (!sfb->variant.has_clksel)
1653 if (!sfb->variant.has_clksel)
1778 .variant = {
1809 .variant = {
1842 .variant = {
1874 .variant = {
1906 .variant = {