Lines Matching refs:ram_mask
146 ram_mask(fuc, 0x10f910, mask, data); in gk104_ram_train()
147 ram_mask(fuc, 0x10f914, mask, data); in gk104_ram_train()
166 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00001100); in r1373f4_init()
167 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00000010); in r1373f4_init()
169 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00010010); in r1373f4_init()
172 ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000000); in r1373f4_init()
173 ram_mask(fuc, 0x1373f4, 0x00000010, 0x00000000); in r1373f4_init()
178 ram_mask(fuc, 0x132000, 0x00000001, 0x00000000); in r1373f4_init()
179 ram_mask(fuc, 0x132020, 0x00000001, 0x00000000); in r1373f4_init()
181 ram_mask(fuc, 0x132030, 0xffff0000, runk0); in r1373f4_init()
182 ram_mask(fuc, 0x132034, 0x0000ffff, runk1); in r1373f4_init()
184 ram_mask(fuc, 0x132028, 0x00080000, 0x00080000); in r1373f4_init()
185 ram_mask(fuc, 0x132020, 0x00000001, 0x00000001); in r1373f4_init()
187 ram_mask(fuc, 0x132028, 0x00080000, 0x00000000); in r1373f4_init()
192 ram_mask(fuc, 0x1373f4, 0x00010000, 0x00000000); in r1373f4_init()
193 ram_mask(fuc, 0x132000, 0x80000000, 0x80000000); in r1373f4_init()
194 ram_mask(fuc, 0x132000, 0x00000001, 0x00000000); in r1373f4_init()
195 ram_mask(fuc, 0x132004, 0x103fffff, mcoef); in r1373f4_init()
196 ram_mask(fuc, 0x132000, 0x00000001, 0x00000001); in r1373f4_init()
198 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00001100); in r1373f4_init()
200 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00010100); in r1373f4_init()
203 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00000010); in r1373f4_init()
217 ram_mask(fuc, 0x1373f0, (~ram->mode & 3), 0x00000000); in r1373f4_fini()
219 ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000002); in r1373f4_fini()
220 ram_mask(fuc, 0x1373f4, 0x00001100, 0x00000000); in r1373f4_fini()
222 ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000001); in r1373f4_fini()
223 ram_mask(fuc, 0x1373f4, 0x00010000, 0x00000000); in r1373f4_fini()
225 ram_mask(fuc, 0x10f800, 0x00000030, (v0 ^ v1) << 4); in r1373f4_fini()
260 ram_mask(fuc, 0x10f808, 0x40000000, 0x40000000); in gk104_ram_calc_gddr5()
268 ram_mask(fuc, mr[1], 0x03c, ram->base.mr[1] & 0x03c); in gk104_ram_calc_gddr5()
273 u32 temp = ram_mask(fuc, gpio2E, 0x3000, fuc->r_func2E[1]); in gk104_ram_calc_gddr5()
280 ram_mask(fuc, 0x10f200, 0x00000800, 0x00000000); in gk104_ram_calc_gddr5()
289 ram_mask(fuc, 0x10f200, 0x80000000, 0x80000000); in gk104_ram_calc_gddr5()
291 ram_mask(fuc, 0x10f200, 0x80000000, 0x00000000); in gk104_ram_calc_gddr5()
339 ram_mask(fuc, 0x10f824, mask, data); in gk104_ram_calc_gddr5()
341 ram_mask(fuc, 0x132040, 0x00010000, 0x00000000); in gk104_ram_calc_gddr5()
344 ram_mask(fuc, 0x10f808, 0x00080000, 0x00000000); in gk104_ram_calc_gddr5()
345 ram_mask(fuc, 0x10f200, 0x18008000, 0x00008000); in gk104_ram_calc_gddr5()
346 ram_mask(fuc, 0x10f800, 0x00000000, 0x00000004); in gk104_ram_calc_gddr5()
347 ram_mask(fuc, 0x10f830, 0x00008000, 0x01040010); in gk104_ram_calc_gddr5()
348 ram_mask(fuc, 0x10f830, 0x01000000, 0x00000000); in gk104_ram_calc_gddr5()
350 ram_mask(fuc, 0x1373f0, 0x00000002, 0x00000001); in gk104_ram_calc_gddr5()
352 ram_mask(fuc, 0x10f830, 0x00c00000, 0x00240001); in gk104_ram_calc_gddr5()
360 u32 temp = ram_mask(fuc, gpioMV, 0x3000, fuc->r_funcMV[mv]); in gk104_ram_calc_gddr5()
369 ram_mask(fuc, 0x132040, 0x00010000, 0x00010000); in gk104_ram_calc_gddr5()
375 ram_mask(fuc, 0x10f200, 0x18000000, 0x18000000); in gk104_ram_calc_gddr5()
376 ram_mask(fuc, 0x10f800, 0x00000004, 0x00000000); in gk104_ram_calc_gddr5()
377 ram_mask(fuc, 0x1373f0, 0x00000000, 0x00000002); in gk104_ram_calc_gddr5()
378 ram_mask(fuc, 0x10f830, 0x00800001, 0x00408010); in gk104_ram_calc_gddr5()
381 ram_mask(fuc, 0x10f808, 0x00000000, 0x00080000); in gk104_ram_calc_gddr5()
382 ram_mask(fuc, 0x10f200, 0x00808000, 0x00800000); in gk104_ram_calc_gddr5()
385 ram_mask(fuc, 0x10f800, 0x00000004, 0x00000000); in gk104_ram_calc_gddr5()
392 ram_mask(fuc, 0x10f670, 0x80000000, 0x80000000); in gk104_ram_calc_gddr5()
411 ram_mask(fuc, 0x10f694, 0xff00ff00, data); in gk104_ram_calc_gddr5()
418 ram_mask(fuc, 0x10f60c, 0x00000080, data); in gk104_ram_calc_gddr5()
432 ram_mask(fuc, 0x10f824, mask, data); in gk104_ram_calc_gddr5()
438 ram_mask(fuc, 0x10f200, 0x00001000, data); in gk104_ram_calc_gddr5()
442 ram_mask(fuc, 0x10f670, 0x80000000, 0x00000000); in gk104_ram_calc_gddr5()
449 ram_mask(fuc, 0x10f82c, 0x00100000, data); in gk104_ram_calc_gddr5()
458 ram_mask(fuc, 0x10f830, 0x00007000, data); in gk104_ram_calc_gddr5()
461 ram_mask(fuc, 0x10f248, 0xffffffff, next->bios.timing[10]); in gk104_ram_calc_gddr5()
462 ram_mask(fuc, 0x10f290, 0xffffffff, next->bios.timing[0]); in gk104_ram_calc_gddr5()
463 ram_mask(fuc, 0x10f294, 0xffffffff, next->bios.timing[1]); in gk104_ram_calc_gddr5()
464 ram_mask(fuc, 0x10f298, 0xffffffff, next->bios.timing[2]); in gk104_ram_calc_gddr5()
465 ram_mask(fuc, 0x10f29c, 0xffffffff, next->bios.timing[3]); in gk104_ram_calc_gddr5()
466 ram_mask(fuc, 0x10f2a0, 0xffffffff, next->bios.timing[4]); in gk104_ram_calc_gddr5()
467 ram_mask(fuc, 0x10f2a4, 0xffffffff, next->bios.timing[5]); in gk104_ram_calc_gddr5()
468 ram_mask(fuc, 0x10f2a8, 0xffffffff, next->bios.timing[6]); in gk104_ram_calc_gddr5()
469 ram_mask(fuc, 0x10f2ac, 0xffffffff, next->bios.timing[7]); in gk104_ram_calc_gddr5()
470 ram_mask(fuc, 0x10f2cc, 0xffffffff, next->bios.timing[8]); in gk104_ram_calc_gddr5()
471 ram_mask(fuc, 0x10f2e8, 0xffffffff, next->bios.timing[9]); in gk104_ram_calc_gddr5()
479 ram_mask(fuc, 0x10f200, mask, data); in gk104_ram_calc_gddr5()
491 ram_mask(fuc, 0x10f604, mask, data); in gk104_ram_calc_gddr5()
503 ram_mask(fuc, 0x10f614, mask, data); in gk104_ram_calc_gddr5()
515 ram_mask(fuc, 0x10f610, mask, data); in gk104_ram_calc_gddr5()
539 ram_mask(fuc, 0x10f808, mask, data); in gk104_ram_calc_gddr5()
554 if ((ram_mask(fuc, 0x100770, mask, data) & mask & 4) != (data & 4)) { in gk104_ram_calc_gddr5()
555 ram_mask(fuc, 0x100750, 0x00000008, 0x00000008); in gk104_ram_calc_gddr5()
563 ram_mask(fuc, 0x100778, 0x00000700, data); in gk104_ram_calc_gddr5()
565 ram_mask(fuc, 0x10f250, 0x000003f0, next->bios.timing_20_2c_003f << 4); in gk104_ram_calc_gddr5()
569 ram_mask(fuc, 0x10f24c, 0x7f000000, data << 24); in gk104_ram_calc_gddr5()
570 ram_mask(fuc, 0x10f224, 0x001f0000, next->bios.timing_20_30_f8 << 16); in gk104_ram_calc_gddr5()
572 ram_mask(fuc, 0x10fec4, 0x041e0f07, next->bios.timing_20_31_0800 << 26 | in gk104_ram_calc_gddr5()
576 ram_mask(fuc, 0x10fec8, 0x00000027, next->bios.timing_20_31_8000 << 5 | in gk104_ram_calc_gddr5()
586 u32 temp = ram_mask(fuc, 0x10f294, 0xff000000, 0x24000000); in gk104_ram_calc_gddr5()
592 ram_mask(fuc, mr[3], 0xfff, ram->base.mr[3]); in gk104_ram_calc_gddr5()
594 ram_mask(fuc, mr[8], 0xfff, ram->base.mr[8]); in gk104_ram_calc_gddr5()
596 ram_mask(fuc, mr[1], 0xfff, ram->base.mr[1]); in gk104_ram_calc_gddr5()
597 ram_mask(fuc, mr[5], 0xfff, ram->base.mr[5] & ~0x004); /* LP3 later */ in gk104_ram_calc_gddr5()
598 ram_mask(fuc, mr[6], 0xfff, ram->base.mr[6]); in gk104_ram_calc_gddr5()
599 ram_mask(fuc, mr[7], 0xfff, ram->base.mr[7]); in gk104_ram_calc_gddr5()
602 u32 temp = ram_mask(fuc, gpio2E, 0x3000, fuc->r_func2E[0]); in gk104_ram_calc_gddr5()
609 ram_mask(fuc, 0x10f200, 0x80000000, 0x80000000); in gk104_ram_calc_gddr5()
611 ram_mask(fuc, 0x10f200, 0x80000000, 0x00000000); in gk104_ram_calc_gddr5()
647 ram_mask(fuc, 0x10f800, 0x00000004, 0x00000004); in gk104_ram_calc_gddr5()
651 if (ram_mask(fuc, mr[5], 0x004, ram->base.mr[5]) != ram->base.mr[5]) in gk104_ram_calc_gddr5()
655 ram_mask(fuc, 0x10f830, 0x01000000, 0x01000000); in gk104_ram_calc_gddr5()
656 ram_mask(fuc, 0x10f830, 0x01000000, 0x00000000); in gk104_ram_calc_gddr5()
671 ram_mask(fuc, 0x10f200, 0x00000800, data); in gk104_ram_calc_gddr5()
684 ram_mask(fuc, mr[0], 0x100, 0x100); in nvkm_sddr3_dll_reset()
685 ram_mask(fuc, mr[0], 0x100, 0x000); in nvkm_sddr3_dll_reset()
694 ram_mask(fuc, mr[1], 0x1, 0x1); in nvkm_sddr3_dll_disable()
711 ram_mask(fuc, 0x10f808, 0x40000000, 0x40000000); in gk104_ram_calc_sddr3()
718 u32 temp = ram_mask(fuc, gpio2E, 0x3000, fuc->r_func2E[1]); in gk104_ram_calc_sddr3()
725 ram_mask(fuc, 0x10f200, 0x00000800, 0x00000000); in gk104_ram_calc_sddr3()
727 ram_mask(fuc, 0x10f808, 0x04000000, 0x04000000); in gk104_ram_calc_sddr3()
736 ram_mask(fuc, 0x10f200, 0x80000000, 0x80000000); in gk104_ram_calc_sddr3()
738 ram_mask(fuc, 0x10f200, 0x80000000, 0x00000000); in gk104_ram_calc_sddr3()
780 ram_mask(fuc, 0x10f824, mask, data); in gk104_ram_calc_sddr3()
782 ram_mask(fuc, 0x132040, 0x00010000, 0x00000000); in gk104_ram_calc_sddr3()
784 ram_mask(fuc, 0x1373f4, 0x00000000, 0x00010010); in gk104_ram_calc_sddr3()
788 ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000000); in gk104_ram_calc_sddr3()
789 ram_mask(fuc, 0x1373f4, 0x00000010, 0x00000000); in gk104_ram_calc_sddr3()
794 ram_mask(fuc, 0x132000, 0x00000001, 0x00000000); in gk104_ram_calc_sddr3()
795 ram_mask(fuc, 0x132020, 0x00000001, 0x00000000); in gk104_ram_calc_sddr3()
797 ram_mask(fuc, 0x132030, 0xffff0000, runk0); in gk104_ram_calc_sddr3()
798 ram_mask(fuc, 0x132034, 0x0000ffff, runk1); in gk104_ram_calc_sddr3()
800 ram_mask(fuc, 0x132028, 0x00080000, 0x00080000); in gk104_ram_calc_sddr3()
801 ram_mask(fuc, 0x132020, 0x00000001, 0x00000001); in gk104_ram_calc_sddr3()
803 ram_mask(fuc, 0x132028, 0x00080000, 0x00000000); in gk104_ram_calc_sddr3()
806 ram_mask(fuc, 0x1373f4, 0x00000010, 0x00000010); in gk104_ram_calc_sddr3()
807 ram_mask(fuc, 0x1373f4, 0x00000003, 0x00000001); in gk104_ram_calc_sddr3()
808 ram_mask(fuc, 0x1373f4, 0x00010000, 0x00000000); in gk104_ram_calc_sddr3()
811 u32 temp = ram_mask(fuc, gpioMV, 0x3000, fuc->r_funcMV[mv]); in gk104_ram_calc_sddr3()
820 ram_mask(fuc, 0x132040, 0x00010000, 0x00010000); in gk104_ram_calc_sddr3()
826 ram_mask(fuc, 0x10f670, 0x80000000, 0x80000000); in gk104_ram_calc_sddr3()
845 ram_mask(fuc, 0x10f824, mask, data); in gk104_ram_calc_sddr3()
852 ram_mask(fuc, 0x10f82c, 0x00100000, data); in gk104_ram_calc_sddr3()
855 ram_mask(fuc, 0x10f248, 0xffffffff, next->bios.timing[10]); in gk104_ram_calc_sddr3()
856 ram_mask(fuc, 0x10f290, 0xffffffff, next->bios.timing[0]); in gk104_ram_calc_sddr3()
857 ram_mask(fuc, 0x10f294, 0xffffffff, next->bios.timing[1]); in gk104_ram_calc_sddr3()
858 ram_mask(fuc, 0x10f298, 0xffffffff, next->bios.timing[2]); in gk104_ram_calc_sddr3()
859 ram_mask(fuc, 0x10f29c, 0xffffffff, next->bios.timing[3]); in gk104_ram_calc_sddr3()
860 ram_mask(fuc, 0x10f2a0, 0xffffffff, next->bios.timing[4]); in gk104_ram_calc_sddr3()
861 ram_mask(fuc, 0x10f2a4, 0xffffffff, next->bios.timing[5]); in gk104_ram_calc_sddr3()
862 ram_mask(fuc, 0x10f2a8, 0xffffffff, next->bios.timing[6]); in gk104_ram_calc_sddr3()
863 ram_mask(fuc, 0x10f2ac, 0xffffffff, next->bios.timing[7]); in gk104_ram_calc_sddr3()
864 ram_mask(fuc, 0x10f2cc, 0xffffffff, next->bios.timing[8]); in gk104_ram_calc_sddr3()
865 ram_mask(fuc, 0x10f2e8, 0xffffffff, next->bios.timing[9]); in gk104_ram_calc_sddr3()
890 ram_mask(fuc, 0x10f808, mask, data); in gk104_ram_calc_sddr3()
894 ram_mask(fuc, 0x10f250, 0x000003f0, next->bios.timing_20_2c_003f << 4); in gk104_ram_calc_sddr3()
899 ram_mask(fuc, 0x10f24c, 0x7f000000, data << 24); in gk104_ram_calc_sddr3()
901 ram_mask(fuc, 0x10f224, 0x001f0000, next->bios.timing_20_30_f8 << 16); in gk104_ram_calc_sddr3()
912 ram_mask(fuc, mr[1], 0x1, 0x0); in gk104_ram_calc_sddr3()
916 ram_mask(fuc, mr[2], 0x00000fff, ram->base.mr[2]); in gk104_ram_calc_sddr3()
917 ram_mask(fuc, mr[1], 0xffffffff, ram->base.mr[1]); in gk104_ram_calc_sddr3()
927 u32 temp = ram_mask(fuc, gpio2E, 0x3000, fuc->r_func2E[0]); in gk104_ram_calc_sddr3()
935 ram_mask(fuc, 0x10f830, 0x01000000, 0x01000000); in gk104_ram_calc_sddr3()
936 ram_mask(fuc, 0x10f830, 0x01000000, 0x00000000); in gk104_ram_calc_sddr3()
939 ram_mask(fuc, 0x10f200, 0x80000000, 0x80000000); in gk104_ram_calc_sddr3()
941 ram_mask(fuc, 0x10f200, 0x80000000, 0x00000000); in gk104_ram_calc_sddr3()
953 ram_mask(fuc, 0x10f200, 0x00000800, data); in gk104_ram_calc_sddr3()