Lines Matching +full:0 +full:xcfff
111 * totally random colour depending on what was in page 0, and (b)
196 .red = { .offset = 0, .length = 4, },
197 .green = { .offset = 0, .length = 4, },
198 .blue = { .offset = 0, .length = 4, },
199 .transp = { .offset = 0, .length = 0, },
203 .red = { .offset = 0, .length = 8, },
204 .green = { .offset = 0, .length = 8, },
205 .blue = { .offset = 0, .length = 8, },
206 .transp = { .offset = 0, .length = 0, },
212 .blue = { .offset = 0, .length = 5, },
213 .transp = { .offset = 0, .length = 0, },
248 chan &= 0xffff; in chan_to_field()
258 int ret = 0; in palette_pbs()
260 case 4: ret = 0 << 12; break; in palette_pbs()
276 val = ((red >> 4) & 0xf00); in sa1100fb_setpalettereg()
277 val |= ((green >> 8) & 0x0f0); in sa1100fb_setpalettereg()
278 val |= ((blue >> 12) & 0x00f); in sa1100fb_setpalettereg()
280 if (regno == 0) in sa1100fb_setpalettereg()
284 ret = 0; in sa1100fb_setpalettereg()
305 red = 0xffff - red; in sa1100fb_setcolreg()
306 green = 0xffff - green; in sa1100fb_setcolreg()
307 blue = 0xffff - blue; in sa1100fb_setcolreg()
330 ret = 0; in sa1100fb_setcolreg()
422 return 0; in sa1100fb_check_var()
463 dev_dbg(fbi->dev, "palette_mem_size = 0x%08lx\n", palette_mem_size); in sa1100fb_set_par()
474 return 0; in sa1100fb_set_par()
477 #if 0
516 * VESA_NO_BLANKING (mode 0) Video on, front/back light on
544 for (i = 0; i < fbi->palette_size; i++) in sa1100fb_blank()
545 sa1100fb_setpalettereg(i, 0, 0, 0, 0, info); in sa1100fb_blank()
555 return 0; in sa1100fb_blank()
644 if (var->upper_margin < 0 || var->upper_margin > 255) in sa1100fb_activate_var()
647 if (var->lower_margin < 0 || var->lower_margin > 255) in sa1100fb_activate_var()
654 LCCR0_ERM | LCCR0_LtlEnd | LCCR0_DMADel(0); in sa1100fb_activate_var()
681 dev_dbg(fbi->dev, "nlccr0 = 0x%08lx\n", new_regs.lccr0); in sa1100fb_activate_var()
682 dev_dbg(fbi->dev, "nlccr1 = 0x%08lx\n", new_regs.lccr1); in sa1100fb_activate_var()
683 dev_dbg(fbi->dev, "nlccr2 = 0x%08lx\n", new_regs.lccr2); in sa1100fb_activate_var()
684 dev_dbg(fbi->dev, "nlccr3 = 0x%08lx\n", new_regs.lccr3); in sa1100fb_activate_var()
712 return 0; in sa1100fb_activate_var()
739 u_int mask = 0; in sa1100fb_setup_gpio()
754 (fbi->reg_lccr0 & (LCCR0_Dual|LCCR0_Act)) != 0) { in sa1100fb_setup_gpio()
787 fbi->palette_cpu[0] &= 0xcfff; in sa1100fb_enable_controller()
788 fbi->palette_cpu[0] |= palette_pbs(&fbi->fb.var); in sa1100fb_enable_controller()
805 dev_dbg(fbi->dev, "DBAR1: 0x%08x\n", readl_relaxed(fbi->base + DBAR1)); in sa1100fb_enable_controller()
806 dev_dbg(fbi->dev, "DBAR2: 0x%08x\n", readl_relaxed(fbi->base + DBAR2)); in sa1100fb_enable_controller()
807 dev_dbg(fbi->dev, "LCCR0: 0x%08x\n", readl_relaxed(fbi->base + LCCR0)); in sa1100fb_enable_controller()
808 dev_dbg(fbi->dev, "LCCR1: 0x%08x\n", readl_relaxed(fbi->base + LCCR1)); in sa1100fb_enable_controller()
809 dev_dbg(fbi->dev, "LCCR2: 0x%08x\n", readl_relaxed(fbi->base + LCCR2)); in sa1100fb_enable_controller()
810 dev_dbg(fbi->dev, "LCCR3: 0x%08x\n", readl_relaxed(fbi->base + LCCR3)); in sa1100fb_enable_controller()
821 gpiod_set_value(fbi->shannon_lcden, 0); in sa1100fb_disable_controller()
827 writel_relaxed(~0, fbi->base + LCSR); in sa1100fb_disable_controller()
899 __sa1100fb_backlight_power(fbi, 0); in set_ctrlr_state()
902 __sa1100fb_lcd_power(fbi, 0); in set_ctrlr_state()
989 fbi->reg_lccr3 = (fbi->reg_lccr3 & ~0xff) | LCCR3_PixClkDiv(pcd); in sa1100fb_freq_transition()
993 return 0; in sa1100fb_freq_transition()
1007 return 0; in sa1100fb_suspend()
1015 return 0; in sa1100fb_resume()
1052 return fbi->map_cpu ? 0 : -ENOMEM; in sa1100fb_map_video_memory()
1079 fbi->fb.fix.type_aux = 0; in sa1100fb_init_fbinfo()
1080 fbi->fb.fix.xpanstep = 0; in sa1100fb_init_fbinfo()
1081 fbi->fb.fix.ypanstep = 0; in sa1100fb_init_fbinfo()
1082 fbi->fb.fix.ywrapstep = 0; in sa1100fb_init_fbinfo()
1085 fbi->fb.var.nonstd = 0; in sa1100fb_init_fbinfo()
1089 fbi->fb.var.accel_flags = 0; in sa1100fb_init_fbinfo()
1105 if (inf->lccr3 & (LCCR3_VrtSnchL|LCCR3_HorSnchL|0xff) || in sa1100fb_init_fbinfo()
1106 inf->pixclock == 0) in sa1100fb_init_fbinfo()
1131 for (i = 0; i < NR_RGB; i++) in sa1100fb_init_fbinfo()
1152 irq = platform_get_irq(pdev, 0); in sa1100fb_probe()
1153 if (irq < 0) in sa1100fb_probe()
1160 fbi->base = devm_platform_ioremap_resource(pdev, 0); in sa1100fb_probe()
1168 ret = devm_request_irq(&pdev->dev, irq, sa1100fb_handle_irq, 0, in sa1100fb_probe()
1194 if (ret < 0) { in sa1100fb_probe()
1206 return 0; in sa1100fb_probe()