Lines Matching refs:htotal
761 u_short htotal; /* vmode */ member
1027 #define htotal2hw(htotal) (div8(htotal) - 1) argument
1031 #define hcenter2hw(htotal) (div8(htotal)) argument
1133 u_int htotal, vtotal; in ami_decode_var() local
1222 par->htotal = down8((var->left_margin + par->xres + var->right_margin + in ami_decode_var()
1233 par->diwstop_h = par->htotal - in ami_decode_var()
1244 if (par->diwstop_h >= par->htotal + 8) { in ami_decode_var()
1267 if (par->htotal != PAL_HTOTAL) { in ami_decode_var()
1279 htotal = PAL_HTOTAL>>clk_shift; in ami_decode_var()
1297 if (par->htotal != NTSC_HTOTAL) { in ami_decode_var()
1309 htotal = NTSC_HTOTAL>>clk_shift; in ami_decode_var()
1334 par->diwstop_h = par->htotal - mod8(par->hsstrt) + 8 - (1 << clk_shift); in ami_decode_var()
1340 if (par->hbstrt >= par->htotal + 8) in ami_decode_var()
1341 par->hbstrt -= par->htotal; in ami_decode_var()
1342 par->hcenter = par->hsstrt + (par->htotal >> 1); in ami_decode_var()
1355 if (par->htotal > 2048) { in ami_decode_var()
1369 htotal = par->htotal>>clk_shift; in ami_decode_var()
1404 maxfetchstop = down16(par->htotal - 80); in ami_decode_var()
1437 if (par->htotal - fsize - 64 < par->bpp * 64) in ami_decode_var()
1566 var->left_margin = (par->htotal>>clk_shift) - var->xres - var->right_margin - var->hsync_len; 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()
1710 custom.htotal = htotal2hw(par->htotal); in ami_init_display()
1732 amiga_audio_min_period = div16(par->htotal); in ami_init_display()
1772 custom.hsstrt = hsstrt2hw(par->htotal + 16); in ami_do_blank()
1773 custom.hsstop = hsstop2hw(par->htotal + 16); in ami_do_blank()
1778 custom.hsstrt = hsstrt2hw(par->htotal + 16); in ami_do_blank()
1779 custom.hsstop = hsstop2hw(par->htotal + 16); in ami_do_blank()
1785 custom.htotal = htotal2hw(par->htotal); in ami_do_blank()
2159 h_end1 = par->htotal - 32; in ami_rebuild_copper()