Lines Matching refs:val
192 u32 val, cpl; 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()
201 regs->tim0 = val; in clcdfb_decode()
203 val = var->yres; in clcdfb_decode()
205 val /= 2; in clcdfb_decode()
206 val -= 1; 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()
210 regs->tim1 = val; in clcdfb_decode()
212 val = fb->panel->tim2; 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()
226 regs->tim2 = val | ((cpl - 1) << 16); in clcdfb_decode()
230 val = fb->panel->cntl; in clcdfb_decode()
232 val |= CNTL_LCDBW; in clcdfb_decode()
241 val &= ~CNTL_BGR; in clcdfb_decode()
243 val |= CNTL_BGR; in clcdfb_decode()
248 val |= CNTL_LCDBPP1; in clcdfb_decode()
251 val |= CNTL_LCDBPP2; in clcdfb_decode()
254 val |= CNTL_LCDBPP4; in clcdfb_decode()
257 val |= CNTL_LCDBPP8; in clcdfb_decode()
267 val |= CNTL_LCDBPP16; in clcdfb_decode()
269 val |= CNTL_LCDBPP16_565; in clcdfb_decode()
271 val |= CNTL_LCDBPP16_444; in clcdfb_decode()
274 val |= CNTL_LCDBPP24; in clcdfb_decode()
278 regs->cntl = val; in clcdfb_decode()