Lines Matching refs:inf

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