Lines Matching refs:res_mode
237 struct ctfb_res_modes *res_mode; in card_init() local
270 res_mode = (struct ctfb_res_modes *) in card_init()
280 res_mode = (struct ctfb_res_modes *) &var_mode; in card_init()
281 bpp = video_get_params (res_mode, penv); in card_init()
285 t1 = (res_mode->left_margin + res_mode->xres + in card_init()
286 res_mode->right_margin + res_mode->hsync_len) / 8; in card_init()
288 t1 *= res_mode->pixclock; in card_init()
291 t1 *= (res_mode->upper_margin + res_mode->yres + in card_init()
292 res_mode->lower_margin + res_mode->vsync_len); in card_init()
297 sprintf (dev->modeIdent, "%dx%dx%d %ldkHz %ldHz", res_mode->xres, in card_init()
298 res_mode->yres, bpp, (hsync / 1000), (vsync / 1000)); in card_init()
300 dev->winSizeX = res_mode->xres; in card_init()
301 dev->winSizeY = res_mode->yres; in card_init()
337 res_mode->left_margin + in card_init()
338 res_mode->right_margin + in card_init()
339 res_mode->hsync_len - 1) << 16); in card_init()
342 DISP_WR_REG (GC_VSW_HSW_HSP_A, (res_mode->vsync_len - 1) << 24 | in card_init()
343 (res_mode->hsync_len - 1) << 16 | in card_init()
345 res_mode->right_margin - 1)); in card_init()
346 DISP_WR_REG (GC_VTR_A, (dev->winSizeY + res_mode->lower_margin + in card_init()
347 res_mode->upper_margin + in card_init()
348 res_mode->vsync_len - 1) << 16); in card_init()
351 res_mode->lower_margin - 1)); in card_init()