Lines Matching refs:ram
61 nvkm_sddr2_calc(struct nvkm_ram *ram) in nvkm_sddr2_calc() argument
65 switch (ram->next->bios.timing_ver) { in nvkm_sddr2_calc()
67 CL = ram->next->bios.timing_10_CL; in nvkm_sddr2_calc()
68 WR = ram->next->bios.timing_10_WR; in nvkm_sddr2_calc()
69 DLL = !ram->next->bios.ramcfg_DLLoff; in nvkm_sddr2_calc()
70 ODT = ram->next->bios.timing_10_ODT & 3; in nvkm_sddr2_calc()
73 CL = (ram->next->bios.timing[1] & 0x0000001f); in nvkm_sddr2_calc()
74 WR = (ram->next->bios.timing[2] & 0x007f0000) >> 16; in nvkm_sddr2_calc()
80 if (ram->next->bios.timing_ver == 0x20 || in nvkm_sddr2_calc()
81 ram->next->bios.ramcfg_timing == 0xff) { in nvkm_sddr2_calc()
82 ODT = (ram->mr[1] & 0x004) >> 2 | in nvkm_sddr2_calc()
83 (ram->mr[1] & 0x040) >> 5; in nvkm_sddr2_calc()
91 ram->mr[0] &= ~0xf70; in nvkm_sddr2_calc()
92 ram->mr[0] |= (WR & 0x07) << 9; in nvkm_sddr2_calc()
93 ram->mr[0] |= (CL & 0x07) << 4; in nvkm_sddr2_calc()
95 ram->mr[1] &= ~0x045; in nvkm_sddr2_calc()
96 ram->mr[1] |= (ODT & 0x1) << 2; in nvkm_sddr2_calc()
97 ram->mr[1] |= (ODT & 0x2) << 5; in nvkm_sddr2_calc()
98 ram->mr[1] |= !DLL; in nvkm_sddr2_calc()