Lines Matching refs:inf

464 	struct pxafb_mach_info *inf = fbi->inf;
467 if (inf->fixed_modes) {
470 mode = pxafb_getmode(inf, var);
1233 struct pxafb_mach_info *inf = fbi->inf;
1234 struct pxafb_mode_info *mode = &inf->modes[0];
1261 struct pxafb_mach_info *inf = fbi->inf;
1263 if (!inf->smart_update) {
1280 inf->smart_update(&fbi->fb);
1726 struct pxafb_mach_info *inf)
1728 unsigned int lcd_conn = inf->lcd_conn;
1732 fbi->cmap_inverse = inf->cmap_inverse;
1733 fbi->cmap_static = inf->cmap_static;
1734 fbi->lccr4 = inf->lccr4;
1757 fbi->lccr0 = inf->lccr0;
1758 fbi->lccr3 = inf->lccr3;
1767 fbi->lccr3 = LCCR3_Acb((inf->lcd_conn >> 10) & 0xff);
1772 pxafb_setmode(&fbi->fb.var, &inf->modes[0]);
1779 for (i = 0, m = &inf->modes[0]; i < inf->num_modes; i++, m++)
1783 if (inf->video_mem_size > fbi->video_mem_size)
1784 fbi->video_mem_size = inf->video_mem_size;
1791 struct pxafb_mach_info *inf)
1803 fbi->inf = inf;
1835 pxafb_decode_mach_info(fbi, inf);
1853 struct pxafb_mach_info *inf)
1891 inf->modes[0].xres = xres; inf->modes[0].yres = yres;
1900 inf->modes[0].bpp = bpp;
1911 struct pxafb_mach_info *inf)
1913 struct pxafb_mode_info *mode = &inf->modes[0];
1921 return parse_opt_mode(dev, this_opt, inf);
1962 inf->lccr3 &= ~LCCR3_DPC;
1965 inf->lccr3 |= LCCR3_DPC;
1970 inf->lccr3 = (inf->lccr3 & ~LCCR3_OEP) | LCCR3_OutEnL;
1973 inf->lccr3 = (inf->lccr3 & ~LCCR3_OEP) | LCCR3_OutEnH;
1978 inf->lccr3 = (inf->lccr3 & ~LCCR3_PCP) | LCCR3_PixFlEdg;
1981 inf->lccr3 = (inf->lccr3 & ~LCCR3_PCP) | LCCR3_PixRsEdg;
1984 inf->lccr0 = (inf->lccr0 & ~LCCR0_CMS) | LCCR0_Color;
1986 inf->lccr0 = (inf->lccr0 & ~LCCR0_CMS) | LCCR0_Mono;
1988 inf->lccr0 = (inf->lccr0 & ~LCCR0_PAS) | LCCR0_Act;
1990 inf->lccr0 = (inf->lccr0 & ~LCCR0_PAS) | LCCR0_Pas;
1992 inf->lccr0 = (inf->lccr0 & ~LCCR0_SDS) | LCCR0_Sngl;
1994 inf->lccr0 = (inf->lccr0 & ~LCCR0_SDS) | LCCR0_Dual;
1996 inf->lccr0 = (inf->lccr0 & ~LCCR0_DPD) | LCCR0_4PixMono;
1998 inf->lccr0 = (inf->lccr0 & ~LCCR0_DPD) | LCCR0_8PixMono;
2011 struct pxafb_mach_info *inf)
2023 ret = parse_opt(dev, this_opt, inf);
2060 static void pxafb_check_options(struct device *dev, struct pxafb_mach_info *inf)
2062 if (inf->lcd_conn)
2065 if (inf->lccr0 & LCCR0_INVALID_CONFIG_MASK)
2068 inf->lccr0 & LCCR0_INVALID_CONFIG_MASK);
2069 if (inf->lccr3 & LCCR3_INVALID_CONFIG_MASK)
2072 inf->lccr3 & LCCR3_INVALID_CONFIG_MASK);
2073 if (inf->lccr0 & LCCR0_DPD &&
2074 ((inf->lccr0 & LCCR0_PAS) != LCCR0_Pas ||
2075 (inf->lccr0 & LCCR0_SDS) != LCCR0_Sngl ||
2076 (inf->lccr0 & LCCR0_CMS) != LCCR0_Mono))
2080 if ((inf->lccr0 & LCCR0_PAS) == LCCR0_Act &&
2081 (inf->lccr0 & LCCR0_SDS) == LCCR0_Dual)
2083 if ((inf->lccr0 & LCCR0_PAS) == LCCR0_Pas &&
2084 (inf->modes->upper_margin || inf->modes->lower_margin))
2235 struct pxafb_mach_info *inf, *pdata;
2242 inf = devm_kmalloc(&dev->dev, sizeof(*inf), GFP_KERNEL);
2243 if (!inf)
2247 *inf = *pdata;
2248 inf->modes =
2250 sizeof(inf->modes[0]), GFP_KERNEL);
2251 if (!inf->modes)
2253 for (i = 0; i < inf->num_modes; i++)
2254 inf->modes[i] = pdata->modes[i];
2256 inf = of_pxafb_of_mach_info(&dev->dev);
2259 if (IS_ERR_OR_NULL(inf))
2262 ret = pxafb_parse_options(&dev->dev, g_options, inf);
2266 pxafb_check_options(&dev->dev, inf);
2269 inf->modes->xres,
2270 inf->modes->yres,
2271 inf->modes->bpp);
2272 if (inf->modes->xres == 0 ||
2273 inf->modes->yres == 0 ||
2274 inf->modes->bpp == 0) {
2280 fbi = pxafb_init_fbinfo(&dev->dev, inf);
2287 if (cpu_is_pxa3xx() && inf->acceleration_enabled)
2290 fbi->backlight_power = inf->pxafb_backlight_power;
2291 fbi->lcd_power = inf->pxafb_lcd_power;