Lines Matching refs:constants
440 struct aty128_constants constants; /* PLL and others */ member
904 par->constants.ppll_max = BIOS_IN32(bios_pll + 0x16); in aty128_get_pllinfo()
905 par->constants.ppll_min = BIOS_IN32(bios_pll + 0x12); in aty128_get_pllinfo()
906 par->constants.xclk = BIOS_IN16(bios_pll + 0x08); in aty128_get_pllinfo()
907 par->constants.ref_divider = BIOS_IN16(bios_pll + 0x10); in aty128_get_pllinfo()
908 par->constants.ref_clk = BIOS_IN16(bios_pll + 0x0e); in aty128_get_pllinfo()
911 par->constants.ppll_max, par->constants.ppll_min, in aty128_get_pllinfo()
912 par->constants.xclk, par->constants.ref_divider, in aty128_get_pllinfo()
913 par->constants.ref_clk); in aty128_get_pllinfo()
956 if (!par->constants.ref_clk) in aty128_timings()
957 par->constants.ref_clk = 2950; in aty128_timings()
965 par->constants.xclk = round_div((2 * Nx * par->constants.ref_clk), in aty128_timings()
968 par->constants.ref_divider = in aty128_timings()
972 if (!par->constants.ref_divider) { in aty128_timings()
973 par->constants.ref_divider = 0x3b; in aty128_timings()
978 aty_st_pll(PPLL_REF_DIV, par->constants.ref_divider); in aty128_timings()
982 if (!par->constants.ppll_min) in aty128_timings()
983 par->constants.ppll_min = 12500; in aty128_timings()
984 if (!par->constants.ppll_max) in aty128_timings()
985 par->constants.ppll_max = 25000; /* 23000 on some cards? */ in aty128_timings()
986 if (!par->constants.xclk) in aty128_timings()
987 par->constants.xclk = 0x1d4d; /* same as mclk */ in aty128_timings()
989 par->constants.fifo_width = 128; in aty128_timings()
990 par->constants.fifo_depth = 32; in aty128_timings()
1336 aty_st_pll(PPLL_REF_DIV, par->constants.ref_divider & 0x3ff); in aty128_set_pll()
1362 const struct aty128_constants c = par->constants; in aty128_var_to_pll()
1428 u32 xclk = par->constants.xclk; in aty128_ddafifo()
1429 u32 fifo_width = par->constants.fifo_width; in aty128_ddafifo()
1430 u32 fifo_depth = par->constants.fifo_depth; in aty128_ddafifo()