Lines Matching refs:g_specs
1963 static S_TIMING_SPECS g_specs;
1968 return &g_specs;
2151 g_specs.vga_width = 0;
2152 g_specs.vga_lines = 0;
2153 g_specs.h_total = 0;
2157 g_specs.vga_width = vgaparams[i].width;
2158 g_specs.vga_lines = vgaparams[i].lines;
2159 g_specs.h_total = vgaparams[i].h_total;
2163 if (!g_specs.h_total)
2205 g_specs.tv_width = tvsetup.tv_width[k];
2206 g_specs.tv_lines = tvsetup.tv_lines[k];
2481 g_specs.tv_width = tvsetup.tv_width[k];
2482 g_specs.tv_lines = tvsetup.tv_lines[k];
2507 g_specs.v_total =
2511 v_offset = (g_specs.v_total - v_total_min + (v_step / 2)) / v_step;
2512 g_specs.v_total = v_total_min + v_offset * v_step;
2513 TRACE(("desired v_total=%d\n", g_specs.v_total))
2522 r = (float)g_specs.v_total / (float)base_v_total;
2534 g_specs.v_sync = g_specs.v_total - v_offset + pos_y;
2535 TRACE(("desired v_total=%d, desired v_sync=%d\n", g_specs.v_total,
2536 g_specs.v_sync))
2537 if (g_specs.v_sync < g_specs.vga_lines + 10) {
2540 g_specs.v_sync = g_specs.vga_lines + 10;
2541 } else if (g_specs.v_sync > g_specs.v_total - 10) {
2543 g_specs.v_sync = g_specs.v_total - 10;
2545 TRACE(("v_total=%d v_sync=%d\n", g_specs.v_total, g_specs.v_sync))
2552 (1.0f - (double)g_specs.tv_lines / (double)g_specs.v_total)) + 0.5f;
2554 TRACE(("vsc=%04x, tv_lines=%d, v_total=%d\n", reg, g_specs.tv_lines,
2555 g_specs.v_total))
2563 vga_pixels = g_specs.vga_width;
2604 g_specs.h_sync =
2605 fsmax((g_specs.h_total + g_specs.vga_width) / 2 - 40,
2606 g_specs.vga_width + 10);
2608 g_specs.h_sync &= ~1;
2609 TRACE(("hsync = %u\n", g_specs.h_sync))
2619 (int)((long)(g_specs.h_total - g_specs.h_sync) * vga_pixels /
2620 g_specs.vga_width);
2644 f = (((float)g_specs.h_total * g_specs.v_total) * 27.f) /
2645 ((float)g_specs.tv_width * g_specs.tv_lines);
2693 reg = ((unsigned long)g_specs.v_total * g_specs.h_total) / 2;
2706 reg = (unsigned long)g_specs.v_total * g_specs.h_total;