Lines Matching refs:prescale
931 int prescale; in falcon_decode_var() local
1241 prescale = hxx_prescale(&par->hw.falcon); in falcon_decode_var()
1251 hdb_off = (base_off + 16 * plen) + prescale; in falcon_decode_var()
1256 hdb_off = (64 + base_off + (128 / bpp + 2) * plen) + prescale; in falcon_decode_var()
1258 hdb_off = (base_off + (128 / bpp + 18) * plen) + prescale; in falcon_decode_var()
1261 gstart = (prescale / 2 + plen * left_margin) / prescale; in falcon_decode_var()
1263 gend1 = gstart + roundup(xres, align) * plen / prescale; in falcon_decode_var()
1265 gend2 = gstart + xres * plen / prescale; in falcon_decode_var()
1267 (2 * prescale) - 2; in falcon_decode_var()
1270 par->HDB = gstart - hdb_off / prescale; in falcon_decode_var()
1274 par->HDE = gend1 - par->HHT - 2 - hde_off / prescale; in falcon_decode_var()
1282 if (hde_off % prescale) in falcon_decode_var()
1284 par->HSS = par->HHT + 2 - plen * hsync_len / prescale; in falcon_decode_var()
1290 hfreq = pclock->f / ((par->HHT + 2) * prescale * 2); in falcon_decode_var()
1397 int prescale, plen; in falcon_encode_var() local
1497 prescale = hxx_prescale(hw); in falcon_encode_var()
1502 hdb_off = (base_off + 16 * plen) + prescale; in falcon_encode_var()
1507 + prescale; in falcon_encode_var()
1510 + prescale; in falcon_encode_var()
1514 var->left_margin = hdb_off + prescale * ((hw->hdb & 0x1ff) - in falcon_encode_var()
1517 var->right_margin = prescale * (hw->hht + 2 - hw->hde) - hde_off; in falcon_encode_var()
1520 var->right_margin = prescale * (hw->hht + 2 - hw->hbb); in falcon_encode_var()
1521 var->hsync_len = prescale * (hw->hht + 2 - hw->hss); in falcon_encode_var()