Lines Matching full:ram

25 #include "ram.h"
109 struct gf100_ram *ram = container_of(fuc, typeof(*ram), fuc); in gf100_ram_train() local
110 struct nvkm_fb *fb = ram->base.fb; in gf100_ram_train()
129 struct gf100_ram *ram = gf100_ram(base); in gf100_ram_calc() local
130 struct gf100_ramfuc *fuc = &ram->fuc; in gf100_ram_calc()
131 struct nvkm_subdev *subdev = &ram->base.fb->subdev; in gf100_ram_calc()
180 ret = ram_init(fuc, ram->base.fb); in gf100_ram_calc()
215 ret = gt215_pll_calc(subdev, &ram->refpll, ram->mempll.refclk, in gf100_ram_calc()
230 ret = gt215_pll_calc(subdev, &ram->mempll, freq, in gf100_ram_calc()
409 struct gf100_ram *ram = gf100_ram(base); in gf100_ram_prog() local
410 struct nvkm_device *device = ram->base.fb->subdev.device; in gf100_ram_prog()
411 ram_exec(&ram->fuc, nvkm_boolopt(device->cfgopt, "NvMemExec", true)); in gf100_ram_prog()
418 struct gf100_ram *ram = gf100_ram(base); in gf100_ram_tidy() local
419 ram_exec(&ram->fuc, false); in gf100_ram_tidy()
437 struct gf100_ram *ram = gf100_ram(base); in gf100_ram_init() local
438 struct nvkm_device *device = ram->base.fb->subdev.device; in gf100_ram_init()
441 switch (ram->base.type) { in gf100_ram_init()
492 struct nvkm_ram *ram) in gf100_ram_ctor() argument
526 ret = nvkm_ram_ctor(func, fb, type, total, ram); in gf100_ram_ctor()
530 nvkm_mm_fini(&ram->vram); in gf100_ram_ctor()
539 ret = nvkm_mm_init(&ram->vram, NVKM_RAM_MM_NORMAL, in gf100_ram_ctor()
548 ret = nvkm_mm_init(&ram->vram, NVKM_RAM_MM_MIXED, in gf100_ram_ctor()
555 ret = nvkm_mm_init(&ram->vram, NVKM_RAM_MM_NORMAL, in gf100_ram_ctor()
572 struct gf100_ram *ram; in gf100_ram_new_() local
575 if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) in gf100_ram_new_()
577 *pram = &ram->base; in gf100_ram_new_()
579 ret = gf100_ram_ctor(func, fb, &ram->base); in gf100_ram_new_()
583 ret = nvbios_pll_parse(bios, 0x0c, &ram->refpll); in gf100_ram_new_()
589 ret = nvbios_pll_parse(bios, 0x04, &ram->mempll); in gf100_ram_new_()
595 ram->fuc.r_0x10fe20 = ramfuc_reg(0x10fe20); in gf100_ram_new_()
596 ram->fuc.r_0x10fe24 = ramfuc_reg(0x10fe24); in gf100_ram_new_()
597 ram->fuc.r_0x137320 = ramfuc_reg(0x137320); in gf100_ram_new_()
598 ram->fuc.r_0x137330 = ramfuc_reg(0x137330); in gf100_ram_new_()
600 ram->fuc.r_0x132000 = ramfuc_reg(0x132000); in gf100_ram_new_()
601 ram->fuc.r_0x132004 = ramfuc_reg(0x132004); in gf100_ram_new_()
602 ram->fuc.r_0x132100 = ramfuc_reg(0x132100); in gf100_ram_new_()
604 ram->fuc.r_0x137390 = ramfuc_reg(0x137390); in gf100_ram_new_()
606 ram->fuc.r_0x10f290 = ramfuc_reg(0x10f290); in gf100_ram_new_()
607 ram->fuc.r_0x10f294 = ramfuc_reg(0x10f294); in gf100_ram_new_()
608 ram->fuc.r_0x10f298 = ramfuc_reg(0x10f298); in gf100_ram_new_()
609 ram->fuc.r_0x10f29c = ramfuc_reg(0x10f29c); in gf100_ram_new_()
610 ram->fuc.r_0x10f2a0 = ramfuc_reg(0x10f2a0); in gf100_ram_new_()
612 ram->fuc.r_0x10f300 = ramfuc_reg(0x10f300); in gf100_ram_new_()
613 ram->fuc.r_0x10f338 = ramfuc_reg(0x10f338); in gf100_ram_new_()
614 ram->fuc.r_0x10f340 = ramfuc_reg(0x10f340); in gf100_ram_new_()
615 ram->fuc.r_0x10f344 = ramfuc_reg(0x10f344); in gf100_ram_new_()
616 ram->fuc.r_0x10f348 = ramfuc_reg(0x10f348); in gf100_ram_new_()
618 ram->fuc.r_0x10f910 = ramfuc_reg(0x10f910); in gf100_ram_new_()
619 ram->fuc.r_0x10f914 = ramfuc_reg(0x10f914); in gf100_ram_new_()
621 ram->fuc.r_0x100b0c = ramfuc_reg(0x100b0c); in gf100_ram_new_()
622 ram->fuc.r_0x10f050 = ramfuc_reg(0x10f050); in gf100_ram_new_()
623 ram->fuc.r_0x10f090 = ramfuc_reg(0x10f090); in gf100_ram_new_()
624 ram->fuc.r_0x10f200 = ramfuc_reg(0x10f200); in gf100_ram_new_()
625 ram->fuc.r_0x10f210 = ramfuc_reg(0x10f210); in gf100_ram_new_()
626 ram->fuc.r_0x10f310 = ramfuc_reg(0x10f310); in gf100_ram_new_()
627 ram->fuc.r_0x10f314 = ramfuc_reg(0x10f314); in gf100_ram_new_()
628 ram->fuc.r_0x10f610 = ramfuc_reg(0x10f610); in gf100_ram_new_()
629 ram->fuc.r_0x10f614 = ramfuc_reg(0x10f614); in gf100_ram_new_()
630 ram->fuc.r_0x10f800 = ramfuc_reg(0x10f800); in gf100_ram_new_()
631 ram->fuc.r_0x10f808 = ramfuc_reg(0x10f808); in gf100_ram_new_()
632 ram->fuc.r_0x10f824 = ramfuc_reg(0x10f824); in gf100_ram_new_()
633 ram->fuc.r_0x10f830 = ramfuc_reg(0x10f830); in gf100_ram_new_()
634 ram->fuc.r_0x10f988 = ramfuc_reg(0x10f988); in gf100_ram_new_()
635 ram->fuc.r_0x10f98c = ramfuc_reg(0x10f98c); in gf100_ram_new_()
636 ram->fuc.r_0x10f990 = ramfuc_reg(0x10f990); in gf100_ram_new_()
637 ram->fuc.r_0x10f998 = ramfuc_reg(0x10f998); in gf100_ram_new_()
638 ram->fuc.r_0x10f9b0 = ramfuc_reg(0x10f9b0); in gf100_ram_new_()
639 ram->fuc.r_0x10f9b4 = ramfuc_reg(0x10f9b4); in gf100_ram_new_()
640 ram->fuc.r_0x10fb04 = ramfuc_reg(0x10fb04); in gf100_ram_new_()
641 ram->fuc.r_0x10fb08 = ramfuc_reg(0x10fb08); in gf100_ram_new_()
642 ram->fuc.r_0x137310 = ramfuc_reg(0x137300); in gf100_ram_new_()
643 ram->fuc.r_0x137310 = ramfuc_reg(0x137310); in gf100_ram_new_()
644 ram->fuc.r_0x137360 = ramfuc_reg(0x137360); in gf100_ram_new_()
645 ram->fuc.r_0x1373ec = ramfuc_reg(0x1373ec); in gf100_ram_new_()
646 ram->fuc.r_0x1373f0 = ramfuc_reg(0x1373f0); in gf100_ram_new_()
647 ram->fuc.r_0x1373f8 = ramfuc_reg(0x1373f8); in gf100_ram_new_()
649 ram->fuc.r_0x61c140 = ramfuc_reg(0x61c140); in gf100_ram_new_()
650 ram->fuc.r_0x611200 = ramfuc_reg(0x611200); in gf100_ram_new_()
652 ram->fuc.r_0x13d8f4 = ramfuc_reg(0x13d8f4); in gf100_ram_new_()