• Home
  • Raw
  • Download

Lines Matching refs:var

136 	int	(*check)(struct clcd_fb *fb, struct fb_var_screeninfo *var);
191 struct fb_var_screeninfo *var = &fb->fb.var; in clcdfb_decode() local
197 val = ((var->xres / 16) - 1) << 2; in clcdfb_decode()
198 val |= (var->hsync_len - 1) << 8; in clcdfb_decode()
199 val |= (var->right_margin - 1) << 16; in clcdfb_decode()
200 val |= (var->left_margin - 1) << 24; in clcdfb_decode()
203 val = var->yres; in clcdfb_decode()
207 val |= (var->vsync_len - 1) << 10; in clcdfb_decode()
208 val |= var->lower_margin << 16; in clcdfb_decode()
209 val |= var->upper_margin << 24; in clcdfb_decode()
213 val |= var->sync & FB_SYNC_HOR_HIGH_ACT ? 0 : TIM2_IHS; in clcdfb_decode()
214 val |= var->sync & FB_SYNC_VERT_HIGH_ACT ? 0 : TIM2_IVS; in clcdfb_decode()
216 cpl = var->xres_virtual; in clcdfb_decode()
219 else if (!var->grayscale) /* STN color */ in clcdfb_decode()
231 if (var->grayscale) in clcdfb_decode()
235 var->bits_per_pixel >= 16) { in clcdfb_decode()
240 if (var->red.offset == 0) in clcdfb_decode()
246 switch (var->bits_per_pixel) { in clcdfb_decode()
266 var->green.length == 5) in clcdfb_decode()
268 else if (var->green.length == 6) in clcdfb_decode()
279 regs->pixclock = var->pixclock; in clcdfb_decode()
282 static inline int clcdfb_check(struct clcd_fb *fb, struct fb_var_screeninfo *var) in clcdfb_check() argument
284 var->xres_virtual = var->xres = (var->xres + 15) & ~15; in clcdfb_check()
285 var->yres_virtual = var->yres = (var->yres + 1) & ~1; in clcdfb_check()
287 #define CHECK(e,l,h) (var->e < l || var->e > h) in clcdfb_check()
291 var->xres > 4096 || in clcdfb_check()
292 var->lower_margin > 255 || /* back porch */ in clcdfb_check()
293 var->upper_margin > 255 || /* front porch */ in clcdfb_check()
294 var->vsync_len > 32 || in clcdfb_check()
295 var->yres > 1024) in clcdfb_check()
306 if (var->grayscale != fb->fb.var.grayscale || in clcdfb_check()
307 (var->vmode & FB_VMODE_MASK) != FB_VMODE_NONINTERLACED) in clcdfb_check()
310 #define CHECK(e) (var->e != fb->fb.var.e) in clcdfb_check()
326 var->nonstd = 0; in clcdfb_check()
327 var->accel_flags = 0; in clcdfb_check()