Lines Matching defs:temp
312 u16 temp, precache = 0;
320 temp = (mode->crtc_htotal >> 3) - 5;
321 if (temp & 0x100)
323 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x00, 0x00, temp);
325 temp = (mode->crtc_hdisplay >> 3) - 1;
326 if (temp & 0x100)
328 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x01, 0x00, temp);
330 temp = (mode->crtc_hblank_start >> 3) - 1;
331 if (temp & 0x100)
333 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x02, 0x00, temp);
335 temp = ((mode->crtc_hblank_end >> 3) - 1) & 0x7f;
336 if (temp & 0x20)
338 if (temp & 0x40)
340 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x03, 0xE0, (temp & 0x1f));
342 temp = ((mode->crtc_hsync_start-precache) >> 3) - 1;
343 if (temp & 0x100)
345 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x04, 0x00, temp);
347 temp = (((mode->crtc_hsync_end-precache) >> 3) - 1) & 0x3f;
348 if (temp & 0x20)
350 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x05, 0x60, (u8)((temp & 0x1f) | jreg05));
356 temp = (mode->crtc_vtotal) - 2;
357 if (temp & 0x100)
359 if (temp & 0x200)
361 if (temp & 0x400)
363 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x06, 0x00, temp);
365 temp = (mode->crtc_vsync_start) - 1;
366 if (temp & 0x100)
368 if (temp & 0x200)
370 if (temp & 0x400)
372 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x10, 0x00, temp);
374 temp = (mode->crtc_vsync_end - 1) & 0x3f;
375 if (temp & 0x10)
377 if (temp & 0x20)
379 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x11, 0x70, temp & 0xf);
381 temp = mode->crtc_vdisplay - 1;
382 if (temp & 0x100)
384 if (temp & 0x200)
386 if (temp & 0x400)
388 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x12, 0x00, temp);
390 temp = mode->crtc_vblank_start - 1;
391 if (temp & 0x100)
393 if (temp & 0x200)
395 if (temp & 0x400)
397 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x15, 0x00, temp);
399 temp = mode->crtc_vblank_end - 1;
400 if (temp & 0x100)
402 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x16, 0x00, temp);