Lines Matching refs:temp
274 u16 temp; in ast_set_crtc_reg() local
278 temp = (mode->crtc_htotal >> 3) - 5; in ast_set_crtc_reg()
279 if (temp & 0x100) in ast_set_crtc_reg()
281 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x00, 0x00, temp); in ast_set_crtc_reg()
283 temp = (mode->crtc_hdisplay >> 3) - 1; in ast_set_crtc_reg()
284 if (temp & 0x100) in ast_set_crtc_reg()
286 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x01, 0x00, temp); in ast_set_crtc_reg()
288 temp = (mode->crtc_hblank_start >> 3) - 1; in ast_set_crtc_reg()
289 if (temp & 0x100) in ast_set_crtc_reg()
291 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x02, 0x00, temp); in ast_set_crtc_reg()
293 temp = ((mode->crtc_hblank_end >> 3) - 1) & 0x7f; in ast_set_crtc_reg()
294 if (temp & 0x20) in ast_set_crtc_reg()
296 if (temp & 0x40) in ast_set_crtc_reg()
298 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x03, 0xE0, (temp & 0x1f)); in ast_set_crtc_reg()
300 temp = (mode->crtc_hsync_start >> 3) - 1; in ast_set_crtc_reg()
301 if (temp & 0x100) in ast_set_crtc_reg()
303 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x04, 0x00, temp); in ast_set_crtc_reg()
305 temp = ((mode->crtc_hsync_end >> 3) - 1) & 0x3f; in ast_set_crtc_reg()
306 if (temp & 0x20) in ast_set_crtc_reg()
308 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x05, 0x60, (u8)((temp & 0x1f) | jreg05)); in ast_set_crtc_reg()
314 temp = (mode->crtc_vtotal) - 2; in ast_set_crtc_reg()
315 if (temp & 0x100) in ast_set_crtc_reg()
317 if (temp & 0x200) in ast_set_crtc_reg()
319 if (temp & 0x400) in ast_set_crtc_reg()
321 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x06, 0x00, temp); in ast_set_crtc_reg()
323 temp = (mode->crtc_vsync_start) - 1; in ast_set_crtc_reg()
324 if (temp & 0x100) in ast_set_crtc_reg()
326 if (temp & 0x200) in ast_set_crtc_reg()
328 if (temp & 0x400) in ast_set_crtc_reg()
330 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x10, 0x00, temp); in ast_set_crtc_reg()
332 temp = (mode->crtc_vsync_end - 1) & 0x3f; in ast_set_crtc_reg()
333 if (temp & 0x10) in ast_set_crtc_reg()
335 if (temp & 0x20) in ast_set_crtc_reg()
337 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x11, 0x70, temp & 0xf); in ast_set_crtc_reg()
339 temp = mode->crtc_vdisplay - 1; in ast_set_crtc_reg()
340 if (temp & 0x100) in ast_set_crtc_reg()
342 if (temp & 0x200) in ast_set_crtc_reg()
344 if (temp & 0x400) in ast_set_crtc_reg()
346 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x12, 0x00, temp); in ast_set_crtc_reg()
348 temp = mode->crtc_vblank_start - 1; in ast_set_crtc_reg()
349 if (temp & 0x100) in ast_set_crtc_reg()
351 if (temp & 0x200) in ast_set_crtc_reg()
353 if (temp & 0x400) in ast_set_crtc_reg()
355 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x15, 0x00, temp); in ast_set_crtc_reg()
357 temp = mode->crtc_vblank_end - 1; in ast_set_crtc_reg()
358 if (temp & 0x100) in ast_set_crtc_reg()
360 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x16, 0x00, temp); in ast_set_crtc_reg()