Lines Matching refs:inf
464 struct pxafb_mach_info *inf = fbi->inf; in pxafb_check_var() local
467 if (inf->fixed_modes) { in pxafb_check_var()
470 mode = pxafb_getmode(inf, var); in pxafb_check_var()
1236 struct pxafb_mach_info *inf = fbi->inf; in setup_smart_timing() local
1237 struct pxafb_mode_info *mode = &inf->modes[0]; in setup_smart_timing()
1264 struct pxafb_mach_info *inf = fbi->inf; in pxafb_smart_thread() local
1266 if (!inf->smart_update) { in pxafb_smart_thread()
1283 inf->smart_update(&fbi->fb); in pxafb_smart_thread()
1729 struct pxafb_mach_info *inf) in pxafb_decode_mach_info() argument
1731 unsigned int lcd_conn = inf->lcd_conn; in pxafb_decode_mach_info()
1735 fbi->cmap_inverse = inf->cmap_inverse; in pxafb_decode_mach_info()
1736 fbi->cmap_static = inf->cmap_static; in pxafb_decode_mach_info()
1737 fbi->lccr4 = inf->lccr4; in pxafb_decode_mach_info()
1760 fbi->lccr0 = inf->lccr0; in pxafb_decode_mach_info()
1761 fbi->lccr3 = inf->lccr3; in pxafb_decode_mach_info()
1770 fbi->lccr3 = LCCR3_Acb((inf->lcd_conn >> 10) & 0xff); in pxafb_decode_mach_info()
1775 pxafb_setmode(&fbi->fb.var, &inf->modes[0]); in pxafb_decode_mach_info()
1782 for (i = 0, m = &inf->modes[0]; i < inf->num_modes; i++, m++) in pxafb_decode_mach_info()
1786 if (inf->video_mem_size > fbi->video_mem_size) in pxafb_decode_mach_info()
1787 fbi->video_mem_size = inf->video_mem_size; in pxafb_decode_mach_info()
1794 struct pxafb_mach_info *inf) in pxafb_init_fbinfo() argument
1806 fbi->inf = inf; in pxafb_init_fbinfo()
1839 pxafb_decode_mach_info(fbi, inf); in pxafb_init_fbinfo()
1857 struct pxafb_mach_info *inf) in parse_opt_mode() argument
1895 inf->modes[0].xres = xres; inf->modes[0].yres = yres; in parse_opt_mode()
1904 inf->modes[0].bpp = bpp; in parse_opt_mode()
1915 struct pxafb_mach_info *inf) in parse_opt() argument
1917 struct pxafb_mode_info *mode = &inf->modes[0]; in parse_opt()
1925 return parse_opt_mode(dev, this_opt, inf); in parse_opt()
1966 inf->lccr3 &= ~LCCR3_DPC; in parse_opt()
1969 inf->lccr3 |= LCCR3_DPC; in parse_opt()
1974 inf->lccr3 = (inf->lccr3 & ~LCCR3_OEP) | LCCR3_OutEnL; in parse_opt()
1977 inf->lccr3 = (inf->lccr3 & ~LCCR3_OEP) | LCCR3_OutEnH; in parse_opt()
1982 inf->lccr3 = (inf->lccr3 & ~LCCR3_PCP) | LCCR3_PixFlEdg; in parse_opt()
1985 inf->lccr3 = (inf->lccr3 & ~LCCR3_PCP) | LCCR3_PixRsEdg; in parse_opt()
1988 inf->lccr0 = (inf->lccr0 & ~LCCR0_CMS) | LCCR0_Color; in parse_opt()
1990 inf->lccr0 = (inf->lccr0 & ~LCCR0_CMS) | LCCR0_Mono; in parse_opt()
1992 inf->lccr0 = (inf->lccr0 & ~LCCR0_PAS) | LCCR0_Act; in parse_opt()
1994 inf->lccr0 = (inf->lccr0 & ~LCCR0_PAS) | LCCR0_Pas; in parse_opt()
1996 inf->lccr0 = (inf->lccr0 & ~LCCR0_SDS) | LCCR0_Sngl; in parse_opt()
1998 inf->lccr0 = (inf->lccr0 & ~LCCR0_SDS) | LCCR0_Dual; in parse_opt()
2000 inf->lccr0 = (inf->lccr0 & ~LCCR0_DPD) | LCCR0_4PixMono; in parse_opt()
2002 inf->lccr0 = (inf->lccr0 & ~LCCR0_DPD) | LCCR0_8PixMono; in parse_opt()
2015 struct pxafb_mach_info *inf) in pxafb_parse_options() argument
2027 ret = parse_opt(dev, this_opt, inf); in pxafb_parse_options()
2064 static void pxafb_check_options(struct device *dev, struct pxafb_mach_info *inf) in pxafb_check_options() argument
2066 if (inf->lcd_conn) in pxafb_check_options()
2069 if (inf->lccr0 & LCCR0_INVALID_CONFIG_MASK) in pxafb_check_options()
2072 inf->lccr0 & LCCR0_INVALID_CONFIG_MASK); in pxafb_check_options()
2073 if (inf->lccr3 & LCCR3_INVALID_CONFIG_MASK) in pxafb_check_options()
2076 inf->lccr3 & LCCR3_INVALID_CONFIG_MASK); in pxafb_check_options()
2077 if (inf->lccr0 & LCCR0_DPD && in pxafb_check_options()
2078 ((inf->lccr0 & LCCR0_PAS) != LCCR0_Pas || in pxafb_check_options()
2079 (inf->lccr0 & LCCR0_SDS) != LCCR0_Sngl || in pxafb_check_options()
2080 (inf->lccr0 & LCCR0_CMS) != LCCR0_Mono)) in pxafb_check_options()
2084 if ((inf->lccr0 & LCCR0_PAS) == LCCR0_Act && in pxafb_check_options()
2085 (inf->lccr0 & LCCR0_SDS) == LCCR0_Dual) in pxafb_check_options()
2087 if ((inf->lccr0 & LCCR0_PAS) == LCCR0_Pas && in pxafb_check_options()
2088 (inf->modes->upper_margin || inf->modes->lower_margin)) in pxafb_check_options()
2239 struct pxafb_mach_info *inf, *pdata; in pxafb_probe() local
2246 inf = devm_kmalloc(&dev->dev, sizeof(*inf), GFP_KERNEL); in pxafb_probe()
2247 if (!inf) in pxafb_probe()
2251 *inf = *pdata; in pxafb_probe()
2252 inf->modes = in pxafb_probe()
2254 sizeof(inf->modes[0]), GFP_KERNEL); in pxafb_probe()
2255 if (!inf->modes) in pxafb_probe()
2257 for (i = 0; i < inf->num_modes; i++) in pxafb_probe()
2258 inf->modes[i] = pdata->modes[i]; in pxafb_probe()
2260 inf = of_pxafb_of_mach_info(&dev->dev); in pxafb_probe()
2263 if (IS_ERR_OR_NULL(inf)) in pxafb_probe()
2266 ret = pxafb_parse_options(&dev->dev, g_options, inf); in pxafb_probe()
2270 pxafb_check_options(&dev->dev, inf); in pxafb_probe()
2273 inf->modes->xres, in pxafb_probe()
2274 inf->modes->yres, in pxafb_probe()
2275 inf->modes->bpp); in pxafb_probe()
2276 if (inf->modes->xres == 0 || in pxafb_probe()
2277 inf->modes->yres == 0 || in pxafb_probe()
2278 inf->modes->bpp == 0) { in pxafb_probe()
2284 fbi = pxafb_init_fbinfo(&dev->dev, inf); in pxafb_probe()
2291 if (cpu_is_pxa3xx() && inf->acceleration_enabled) in pxafb_probe()
2294 fbi->backlight_power = inf->pxafb_backlight_power; in pxafb_probe()
2295 fbi->lcd_power = inf->pxafb_lcd_power; in pxafb_probe()