Lines Matching refs:clk_shift
729 u_short clk_shift; /* vmode */ member
1131 u_short clk_shift, line_shift; in ami_decode_var() local
1139 for (clk_shift = TAG_SHRES; clk_shift <= TAG_LORES; clk_shift++) in ami_decode_var()
1140 if (var->pixclock <= pixclock[clk_shift]) in ami_decode_var()
1142 if (clk_shift > TAG_LORES) { in ami_decode_var()
1146 par->clk_shift = clk_shift; in ami_decode_var()
1165 if (par->bpp > maxdepth[clk_shift]) { in ami_decode_var()
1166 if (round_down_bpp && maxdepth[clk_shift]) in ami_decode_var()
1167 par->bpp = maxdepth[clk_shift]; in ami_decode_var()
1220 xres_n = par->xres << clk_shift; in ami_decode_var()
1223 var->hsync_len) << clk_shift); in ami_decode_var()
1229 par->bplcon3 = sprpixmode[clk_shift]; in ami_decode_var()
1234 ((var->right_margin - var->hsync_len) << clk_shift); in ami_decode_var()
1279 htotal = PAL_HTOTAL>>clk_shift; in ami_decode_var()
1309 htotal = NTSC_HTOTAL>>clk_shift; in ami_decode_var()
1332 par->hsstrt = var->right_margin << clk_shift; in ami_decode_var()
1333 par->hsstop = (var->right_margin + var->hsync_len) << clk_shift; in ami_decode_var()
1334 par->diwstop_h = par->htotal - mod8(par->hsstrt) + 8 - (1 << clk_shift); in ami_decode_var()
1369 htotal = par->htotal>>clk_shift; in ami_decode_var()
1380 fconst = 16 << maxfmode << clk_shift; in ami_decode_var()
1388 fsize = ((maxfmode + clk_shift <= 1) ? fconst : 64); in ami_decode_var()
1399 fstrt = downx(fconst, par->diwstrt_h - fconst + (1 << clk_shift) - 4) - in ami_decode_var()
1408 modx(fconst, downx(1 << clk_shift, par->diwstrt_h - 4))); in ami_decode_var()
1418 if (maxfmode + clk_shift <= 1) { in ami_decode_var()
1464 par->bplcon0 = BPC0_COLOR | bplpixmode[clk_shift]; in ami_decode_var()
1518 u_short clk_shift, line_shift; in ami_encode_var() local
1522 clk_shift = par->clk_shift; in ami_encode_var()
1554 var->pixclock = pixclock[clk_shift]; in ami_encode_var()
1564 var->hsync_len = (par->hsstop - par->hsstrt)>>clk_shift; in ami_encode_var()
1565 var->right_margin = par->hsstrt>>clk_shift; in ami_encode_var()
1566 var->left_margin = (par->htotal>>clk_shift) - var->xres - var->right_margin - var->hsync_len; in ami_encode_var()
1579 var->hsync_len = (152>>clk_shift) + mod4(par->diwstop_h); in ami_encode_var()
1580 var->right_margin = ((par->htotal - down4(par->diwstop_h))>>clk_shift) + var->hsync_len; in ami_encode_var()
1581 var->left_margin = (par->htotal>>clk_shift) - var->xres - var->right_margin - var->hsync_len; in ami_encode_var()
1602 short clk_shift, vshift, fstrt, fsize, fstop, fconst, shift, move, mod; in ami_update_par() local
1604 clk_shift = par->clk_shift; in ami_update_par()
1609 fconst = 16 << maxfmode << clk_shift; in ami_update_par()
1611 fstrt = par->diwstrt_h - (vshift << clk_shift) - 4; in ami_update_par()
1612 fsize = (par->xres + vshift) << clk_shift; in ami_update_par()
1615 if (maxfmode + clk_shift > 1) { in ami_update_par()
1628 move = move - div8((mod - fstrt)>>clk_shift); in ami_update_par()
1630 mod = par->next_line - div8(fsize>>clk_shift); in ami_update_par()
1638 par->bpl1mod = -div8(fsize>>clk_shift); in ami_update_par()
2073 hs = par->diwstrt_h + (mx << par->clk_shift) - 4; in ami_set_sprite()
2156 if (IS_AGA && maxfmode + par->clk_shift == 0) in ami_rebuild_copper()
2178 if (line >= 510 && IS_AGA && maxfmode + par->clk_shift == 0) in ami_rebuild_copper()
2212 if (line > 510 && IS_AGA && maxfmode + par->clk_shift == 0) in ami_rebuild_copper()