• Home
  • Raw
  • Download

Lines Matching refs:fb

104 	int	(*check)(struct clcd_fb *fb, struct fb_var_screeninfo *var);
110 void (*decode)(struct clcd_fb *fb, struct clcd_regs *regs);
143 struct fb_info fb; member
154 static inline void clcdfb_decode(struct clcd_fb *fb, struct clcd_regs *regs) in clcdfb_decode() argument
161 val = ((fb->fb.var.xres / 16) - 1) << 2; in clcdfb_decode()
162 val |= (fb->fb.var.hsync_len - 1) << 8; in clcdfb_decode()
163 val |= (fb->fb.var.right_margin - 1) << 16; in clcdfb_decode()
164 val |= (fb->fb.var.left_margin - 1) << 24; in clcdfb_decode()
167 val = fb->fb.var.yres; in clcdfb_decode()
168 if (fb->panel->cntl & CNTL_LCDDUAL) in clcdfb_decode()
171 val |= (fb->fb.var.vsync_len - 1) << 10; in clcdfb_decode()
172 val |= fb->fb.var.lower_margin << 16; in clcdfb_decode()
173 val |= fb->fb.var.upper_margin << 24; in clcdfb_decode()
176 val = fb->panel->tim2; in clcdfb_decode()
177 val |= fb->fb.var.sync & FB_SYNC_HOR_HIGH_ACT ? 0 : TIM2_IHS; in clcdfb_decode()
178 val |= fb->fb.var.sync & FB_SYNC_VERT_HIGH_ACT ? 0 : TIM2_IVS; in clcdfb_decode()
180 cpl = fb->fb.var.xres_virtual; in clcdfb_decode()
181 if (fb->panel->cntl & CNTL_LCDTFT) /* TFT */ in clcdfb_decode()
183 else if (!fb->fb.var.grayscale) /* STN color */ in clcdfb_decode()
185 else if (fb->panel->cntl & CNTL_LCDMONO8) /* STN monochrome, 8bit */ in clcdfb_decode()
192 regs->tim3 = fb->panel->tim3; in clcdfb_decode()
194 val = fb->panel->cntl; in clcdfb_decode()
195 if (fb->fb.var.grayscale) in clcdfb_decode()
198 switch (fb->fb.var.bits_per_pixel) { in clcdfb_decode()
216 if ((fb->dev->periphid & 0x000fffff) == 0x00041110) in clcdfb_decode()
218 else if (fb->fb.var.green.length == 5) in clcdfb_decode()
229 regs->pixclock = fb->fb.var.pixclock; in clcdfb_decode()
232 static inline int clcdfb_check(struct clcd_fb *fb, struct fb_var_screeninfo *var) in clcdfb_check() argument
256 if (var->grayscale != fb->fb.var.grayscale || in clcdfb_check()
260 #define CHECK(e) (var->e != fb->fb.var.e) in clcdfb_check()
261 if (fb->panel->fixedtimings && in clcdfb_check()