ram 264 arch/arm/kernel/tcm.c char *ram; ram 326 arch/arm/kernel/tcm.c ram = &__dtcm_start; ram 327 arch/arm/kernel/tcm.c memcpy(start, ram, dtcm_code_sz); ram 364 arch/arm/kernel/tcm.c ram = &__itcm_start; ram 365 arch/arm/kernel/tcm.c memcpy(start, ram, itcm_code_sz); ram 81 arch/m68k/include/asm/bvme6000hw.h pad_E[3], ram, ram 28 arch/microblaze/include/asm/setup.h void machine_early_init(const char *cmdline, unsigned int ram, ram 94 arch/microblaze/kernel/setup.c void __init machine_early_init(const char *cmdline, unsigned int ram, ram 110 arch/microblaze/kernel/setup.c romfs_base = (ram ? ram : (unsigned int)&__init_end); ram 137 arch/microblaze/kernel/setup.c pr_info("Ramdisk addr 0x%08x, ", ram); ram 134 arch/powerpc/mm/mmu_decl.h extern unsigned long map_mem_in_cams(unsigned long ram, int max_cam_idx, ram 136 arch/powerpc/mm/mmu_decl.h extern unsigned long calc_cam_sz(unsigned long ram, unsigned long virt, ram 143 arch/powerpc/mm/nohash/fsl_booke.c unsigned long calc_cam_sz(unsigned long ram, unsigned long virt, ram 146 arch/powerpc/mm/nohash/fsl_booke.c unsigned int camsize = __ilog2(ram); ram 169 arch/powerpc/mm/nohash/fsl_booke.c unsigned long ram, int max_cam_idx, ram 176 arch/powerpc/mm/nohash/fsl_booke.c for (i = 0; ram && i < max_cam_idx; i++) { ram 179 arch/powerpc/mm/nohash/fsl_booke.c cam_sz = calc_cam_sz(ram, virt, phys); ram 184 arch/powerpc/mm/nohash/fsl_booke.c ram -= cam_sz; ram 205 arch/powerpc/mm/nohash/fsl_booke.c unsigned long map_mem_in_cams(unsigned long ram, int max_cam_idx, bool dryrun) ram 210 arch/powerpc/mm/nohash/fsl_booke.c return map_mem_in_cams_addr(phys, virt, ram, max_cam_idx, dryrun); ram 234 arch/powerpc/mm/nohash/fsl_booke.c unsigned long ram; ram 238 arch/powerpc/mm/nohash/fsl_booke.c ram = min((phys_addr_t)__max_low_memory, (phys_addr_t)total_lowmem); ram 241 arch/powerpc/mm/nohash/fsl_booke.c __max_low_memory = map_mem_in_cams(ram, CONFIG_LOWMEM_CAM_NUM, false); ram 400 arch/x86/events/intel/rapl.c RAPL_EVENT_ATTR_STR(energy-ram , rapl_ram, "event=0x03"); ram 406 arch/x86/events/intel/rapl.c RAPL_EVENT_ATTR_STR(energy-ram.unit , rapl_ram_unit, "Joules"); ram 415 arch/x86/events/intel/rapl.c RAPL_EVENT_ATTR_STR(energy-ram.scale, rapl_ram_scale, "2.3283064365386962890625e-10"); ram 408 arch/x86/mm/pat.c int ram; ram 418 arch/x86/mm/pat.c state->ram |= total_nr_pages > 0; ram 421 arch/x86/mm/pat.c return state->ram && state->not_ram; ram 446 arch/x86/mm/pat.c return (ret > 0) ? -1 : (state.ram ? 1 : 0); ram 27 arch/x86/xen/mmu_hvm.c int ram; ram 34 arch/x86/xen/mmu_hvm.c ram = 0; ram 39 arch/x86/xen/mmu_hvm.c ram = 1; ram 43 arch/x86/xen/mmu_hvm.c return ram; ram 824 drivers/atm/eni.c DPRINTK("loc 0x%x\n",(unsigned) (eni_vcc->recv-eni_dev->ram)/4); ram 835 drivers/atm/eni.c (((eni_vcc->recv-eni_dev->ram) >> (MID_LOC_SKIP+2)) << ram 1337 drivers/atm/eni.c ((tx->send-eni_dev->ram) >> (MID_LOC_SKIP+2)), ram 1751 drivers/atm/eni.c eni_dev->ram = base+RAM_BASE; ram 1754 drivers/atm/eni.c writel(0x55555555,eni_dev->ram+i); ram 1755 drivers/atm/eni.c if (readl(eni_dev->ram+i) != 0x55555555) last = i; ram 1757 drivers/atm/eni.c writel(0xAAAAAAAA,eni_dev->ram+i); ram 1758 drivers/atm/eni.c if (readl(eni_dev->ram+i) != 0xAAAAAAAA) last = i; ram 1759 drivers/atm/eni.c else writel(i,eni_dev->ram+i); ram 1763 drivers/atm/eni.c if (readl(eni_dev->ram+i) != i) break; ram 1765 drivers/atm/eni.c memset_io(eni_dev->ram,0,eni_dev->mem); ram 1836 drivers/atm/eni.c eni_dev->vci = eni_dev->ram; ram 1837 drivers/atm/eni.c eni_dev->rx_dma = eni_dev->ram+NR_VCI*16; ram 1848 drivers/atm/eni.c buffer_mem = eni_dev->mem - (buf - eni_dev->ram); ram 2166 drivers/atm/eni.c (unsigned long) (tx->send - eni_dev->ram), ram 2167 drivers/atm/eni.c tx->send-eni_dev->ram+tx->words*4-1,tx->words*4, ram 2192 drivers/atm/eni.c (unsigned long) (eni_vcc->recv - eni_dev->ram), ram 2193 drivers/atm/eni.c eni_vcc->recv-eni_dev->ram+eni_vcc->words*4-1, ram 2211 drivers/atm/eni.c offset = (unsigned long) eni_dev->ram+eni_dev->base_diff; ram 79 drivers/atm/eni.h void __iomem *ram; /* RAM base */ ram 2394 drivers/atm/iphase.c iadev->ram = base + ACTUAL_RAM_BASE; ram 2401 drivers/atm/iphase.c iadev->phy, iadev->ram, iadev->seg_ram, ram 997 drivers/atm/iphase.h u32 __iomem *ram; /* base pointer to SAR RAM */ ram 36 drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h struct nvkm_ram *ram; ram 186 drivers/gpu/drm/nouveau/nvkm/engine/device/user.c if (fb && fb->ram) ram 187 drivers/gpu/drm/nouveau/nvkm/engine/device/user.c args->v0.ram_size = args->v0.ram_user = fb->ram->size; ram 113 drivers/gpu/drm/nouveau/nvkm/engine/dma/user.c if (dmaobj->limit >= fb->ram->size - instmem->reserved) ram 95 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv40.c nvkm_wr32(device, 0x002220, ((fb->ram->size - 512 * 1024 + ram 573 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c if (device->fb->ram->type != NVKM_RAM_TYPE_GDDR5) ram 61 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h hwsq_init(struct hwsq *ram, struct nvkm_subdev *subdev) ram 65 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h ret = nvkm_hwsq_init(subdev, &ram->hwsq); ram 69 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h ram->sequence++; ram 70 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h ram->subdev = subdev; ram 75 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h hwsq_exec(struct hwsq *ram, bool exec) ram 78 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h if (ram->subdev) { ram 79 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h ret = nvkm_hwsq_fini(&ram->hwsq, exec); ram 80 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h ram->subdev = NULL; ram 86 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h hwsq_rd32(struct hwsq *ram, struct hwsq_reg *reg) ram 88 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h struct nvkm_device *device = ram->subdev->device; ram 89 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h if (reg->sequence != ram->sequence) ram 95 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h hwsq_wr32(struct hwsq *ram, struct hwsq_reg *reg, u32 data) ram 99 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h reg->sequence = ram->sequence; ram 104 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h nvkm_hwsq_wr32(ram->hwsq, reg->addr+off, reg->data); ram 111 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h hwsq_nuke(struct hwsq *ram, struct hwsq_reg *reg) ram 117 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h hwsq_mask(struct hwsq *ram, struct hwsq_reg *reg, u32 mask, u32 data) ram 119 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h u32 temp = hwsq_rd32(ram, reg); ram 121 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h hwsq_wr32(ram, reg, (temp & ~mask) | data); ram 126 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h hwsq_setf(struct hwsq *ram, u8 flag, int data) ram 128 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h nvkm_hwsq_setf(ram->hwsq, flag, data); ram 132 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h hwsq_wait(struct hwsq *ram, u8 flag, u8 data) ram 134 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h nvkm_hwsq_wait(ram->hwsq, flag, data); ram 138 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h hwsq_wait_vblank(struct hwsq *ram) ram 140 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h nvkm_hwsq_wait_vblank(ram->hwsq); ram 144 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h hwsq_nsec(struct hwsq *ram, u32 nsec) ram 146 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h nvkm_hwsq_nsec(ram->hwsq, nsec); ram 283 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (fb && fb->ram && fb->ram->func->calc) { ram 284 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c struct nvkm_ram *ram = fb->ram; ram 287 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c ret = ram->func->calc(ram, khz); ram 289 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c ret = ram->func->prog(ram); ram 291 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c ram->func->tidy(ram); ram 103 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c int ret = fb->func->ram_new(fb, &fb->ram); ram 134 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (fb->ram) { ram 135 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c ret = nvkm_ram_init(fb->ram); ram 173 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c nvkm_ram_del(&fb->ram); ram 71 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c nvkm_gddr3_calc(struct nvkm_ram *ram) ram 75 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c switch (ram->next->bios.timing_ver) { ram 77 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c CWL = ram->next->bios.timing_10_CWL; ram 78 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c CL = ram->next->bios.timing_10_CL; ram 79 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c WR = ram->next->bios.timing_10_WR; ram 80 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c DLL = !ram->next->bios.ramcfg_DLLoff; ram 81 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ODT = ram->next->bios.timing_10_ODT; ram 82 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c RON = ram->next->bios.ramcfg_RON; ram 85 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c CWL = (ram->next->bios.timing[1] & 0x00000f80) >> 7; ram 86 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c CL = (ram->next->bios.timing[1] & 0x0000001f) >> 0; ram 87 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c WR = (ram->next->bios.timing[2] & 0x007f0000) >> 16; ram 89 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c DLL = !(ram->mr[1] & 0x1); ram 90 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c RON = !((ram->mr[1] & 0x300) >> 8); ram 96 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c if (ram->next->bios.timing_ver == 0x20 || ram 97 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ram->next->bios.ramcfg_timing == 0xff) { ram 98 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ODT = (ram->mr[1] & 0xc) >> 2; ram 101 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c hi = ram->mr[2] & 0x1; ram 107 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ram->mr[0] &= ~0xf74; ram 108 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ram->mr[0] |= (CWL & 0x07) << 9; ram 109 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ram->mr[0] |= (CL & 0x07) << 4; ram 110 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ram->mr[0] |= (CL & 0x08) >> 1; ram 112 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ram->mr[1] &= ~0x3fc; ram 113 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ram->mr[1] |= (ODT & 0x03) << 2; ram 114 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ram->mr[1] |= (RON & 0x03) << 8; ram 115 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ram->mr[1] |= (WR & 0x03) << 4; ram 116 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ram->mr[1] |= (WR & 0x04) << 5; ram 117 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c ram->mr[1] |= !DLL << 6; ram 35 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c nvkm_gddr5_calc(struct nvkm_ram *ram, bool nuts) ram 39 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c int rq = ram->freq < 1000000; /* XXX */ ram 41 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c xd = !ram->next->bios.ramcfg_DLLoff; ram 43 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c switch (ram->next->bios.ramcfg_ver) { ram 45 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c pd = ram->next->bios.ramcfg_11_01_80; ram 46 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c lf = ram->next->bios.ramcfg_11_01_40; ram 47 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c vh = ram->next->bios.ramcfg_11_02_10; ram 48 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c vr = ram->next->bios.ramcfg_11_02_04; ram 49 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c vo = ram->next->bios.ramcfg_11_06; ram 50 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c l3 = !ram->next->bios.ramcfg_11_07_02; ram 56 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c switch (ram->next->bios.timing_ver) { ram 58 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c WL = (ram->next->bios.timing[1] & 0x00000f80) >> 7; ram 59 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c CL = (ram->next->bios.timing[1] & 0x0000001f); ram 60 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c WR = (ram->next->bios.timing[2] & 0x007f0000) >> 16; ram 61 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c at[0] = ram->next->bios.timing_20_2e_c0; ram 62 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c at[1] = ram->next->bios.timing_20_2e_30; ram 63 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c dt = ram->next->bios.timing_20_2e_03; ram 64 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ds = ram->next->bios.timing_20_2f_03; ram 75 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[0] &= ~0xf7f; ram 76 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[0] |= (WR & 0x0f) << 8; ram 77 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[0] |= (CL & 0x0f) << 3; ram 78 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[0] |= (WL & 0x07) << 0; ram 80 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[1] &= ~0x0bf; ram 81 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[1] |= (xd & 0x01) << 7; ram 82 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[1] |= (at[0] & 0x03) << 4; ram 83 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[1] |= (dt & 0x03) << 2; ram 84 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[1] |= (ds & 0x03) << 0; ram 89 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr1_nuts = ram->mr[1]; ram 91 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[1] &= ~0x030; ram 92 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[1] |= (at[1] & 0x03) << 4; ram 95 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[3] &= ~0x020; ram 96 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[3] |= (rq & 0x01) << 5; ram 98 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[5] &= ~0x004; ram 99 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[5] |= (l3 << 2); ram 102 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c vo = (ram->mr[6] & 0xff0) >> 4; ram 103 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c if (ram->mr[6] & 0x001) ram 105 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[6] &= ~0xff1; ram 106 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[6] |= (vo & 0xff) << 4; ram 107 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[6] |= (pd & 0x01) << 0; ram 110 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[7] &= ~0x300; ram 111 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[7] |= (vr & 0x03) << 8; ram 113 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[7] &= ~0x088; ram 114 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[7] |= (vh & 0x01) << 7; ram 115 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[7] |= (lf & 0x01) << 3; ram 117 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[8] &= ~0x003; ram 118 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[8] |= (WR & 0x10) >> 3; ram 119 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[8] |= (CL & 0x10) >> 4; ram 47 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c u32 tags = round_up(tiles / fb->ram->parts, 0x40); ram 34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv25.c u32 tags = round_up(tiles / fb->ram->parts, 0x40); ram 53 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c u32 tags = round_up(tiles / fb->ram->parts, 0x40); ram 34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv35.c u32 tags = round_up(tiles / fb->ram->parts, 0x40); ram 34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv36.c u32 tags = round_up(tiles / fb->ram->parts, 0x40); ram 34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv40.c u32 tags = round_up(tiles / fb->ram->parts, 0x100); ram 32 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c struct nvkm_ram *ram; ram 84 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c mutex_lock(&vram->ram->fb->subdev.mutex); ram 87 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c nvkm_mm_free(&vram->ram->vram, &node); ram 89 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c mutex_unlock(&vram->ram->fb->subdev.mutex); ram 107 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c struct nvkm_ram *ram; ram 117 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c if (!device->fb || !(ram = device->fb->ram)) ram 119 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c ram = device->fb->ram; ram 120 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c mm = &ram->vram; ram 125 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c vram->ram = ram; ram 129 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c mutex_lock(&ram->fb->subdev.mutex); ram 137 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c mutex_unlock(&ram->fb->subdev.mutex); ram 146 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c mutex_unlock(&ram->fb->subdev.mutex); ram 151 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c nvkm_ram_init(struct nvkm_ram *ram) ram 153 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c if (ram->func->init) ram 154 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c return ram->func->init(ram); ram 161 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c struct nvkm_ram *ram = *pram; ram 162 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c if (ram && !WARN_ON(!ram->func)) { ram 163 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c if (ram->func->dtor) ram 164 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c *pram = ram->func->dtor(ram); ram 165 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c nvkm_mm_fini(&ram->vram); ram 173 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c enum nvkm_ram_type type, u64 size, struct nvkm_ram *ram) ram 195 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c ram->func = func; ram 196 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c ram->fb = fb; ram 197 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c ram->type = type; ram 198 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c ram->size = size; ram 200 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c if (!nvkm_mm_initialised(&ram->vram)) { ram 201 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c ret = nvkm_mm_init(&ram->vram, NVKM_RAM_MM_NORMAL, 0, ram 59 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_init(struct ramfuc *ram, struct nvkm_fb *fb) ram 61 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h int ret = nvkm_memx_init(fb->subdev.device->pmu, &ram->memx); ram 65 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ram->sequence++; ram 66 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ram->fb = fb; ram 71 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_exec(struct ramfuc *ram, bool exec) ram 74 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h if (ram->fb) { ram 75 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ret = nvkm_memx_fini(&ram->memx, exec); ram 76 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ram->fb = NULL; ram 82 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_rd32(struct ramfuc *ram, struct ramfuc_reg *reg) ram 84 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h struct nvkm_device *device = ram->fb->subdev.device; ram 85 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h if (reg->sequence != ram->sequence) ram 91 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_wr32(struct ramfuc *ram, struct ramfuc_reg *reg, u32 data) ram 95 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h reg->sequence = ram->sequence; ram 100 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h nvkm_memx_wr32(ram->memx, reg->addr+off, reg->data); ram 106 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_nuke(struct ramfuc *ram, struct ramfuc_reg *reg) ram 112 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_mask(struct ramfuc *ram, struct ramfuc_reg *reg, u32 mask, u32 data) ram 114 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h u32 temp = ramfuc_rd32(ram, reg); ram 116 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_wr32(ram, reg, (temp & ~mask) | data); ram 123 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_wait(struct ramfuc *ram, u32 addr, u32 mask, u32 data, u32 nsec) ram 125 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h nvkm_memx_wait(ram->memx, addr, mask, data, nsec); ram 129 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_nsec(struct ramfuc *ram, u32 nsec) ram 131 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h nvkm_memx_nsec(ram->memx, nsec); ram 135 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_wait_vblank(struct ramfuc *ram) ram 137 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h nvkm_memx_wait_vblank(ram->memx); ram 141 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_train(struct ramfuc *ram) ram 143 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h nvkm_memx_train(ram->memx); ram 153 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_block(struct ramfuc *ram) ram 155 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h nvkm_memx_block(ram->memx); ram 159 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_unblock(struct ramfuc *ram) ram 161 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h nvkm_memx_unblock(ram->memx); ram 109 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct gf100_ram *ram = container_of(fuc, typeof(*ram), fuc); ram 110 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_fb *fb = ram->base.fb; ram 129 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct gf100_ram *ram = gf100_ram(base); ram 130 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct gf100_ramfuc *fuc = &ram->fuc; ram 131 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; ram 180 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = ram_init(fuc, ram->base.fb); ram 215 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = gt215_pll_calc(subdev, &ram->refpll, ram->mempll.refclk, ram 230 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = gt215_pll_calc(subdev, &ram->mempll, freq, ram 409 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct gf100_ram *ram = gf100_ram(base); ram 410 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_device *device = ram->base.fb->subdev.device; ram 411 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_exec(&ram->fuc, nvkm_boolopt(device->cfgopt, "NvMemExec", true)); ram 418 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct gf100_ram *ram = gf100_ram(base); ram 419 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram_exec(&ram->fuc, false); ram 437 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct gf100_ram *ram = gf100_ram(base); ram 438 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_device *device = ram->base.fb->subdev.device; ram 441 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c switch (ram->base.type) { ram 492 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_ram *ram) ram 526 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = nvkm_ram_ctor(func, fb, type, total, ram); ram 530 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c nvkm_mm_fini(&ram->vram); ram 539 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = nvkm_mm_init(&ram->vram, NVKM_RAM_MM_NORMAL, ram 548 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = nvkm_mm_init(&ram->vram, NVKM_RAM_MM_MIXED, ram 555 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = nvkm_mm_init(&ram->vram, NVKM_RAM_MM_NORMAL, ram 572 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct gf100_ram *ram; ram 575 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) ram 577 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c *pram = &ram->base; ram 579 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = gf100_ram_ctor(func, fb, &ram->base); ram 583 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = nvbios_pll_parse(bios, 0x0c, &ram->refpll); ram 589 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = nvbios_pll_parse(bios, 0x04, &ram->mempll); ram 595 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10fe20 = ramfuc_reg(0x10fe20); ram 596 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10fe24 = ramfuc_reg(0x10fe24); ram 597 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x137320 = ramfuc_reg(0x137320); ram 598 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x137330 = ramfuc_reg(0x137330); ram 600 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x132000 = ramfuc_reg(0x132000); ram 601 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x132004 = ramfuc_reg(0x132004); ram 602 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x132100 = ramfuc_reg(0x132100); ram 604 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x137390 = ramfuc_reg(0x137390); ram 606 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f290 = ramfuc_reg(0x10f290); ram 607 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f294 = ramfuc_reg(0x10f294); ram 608 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f298 = ramfuc_reg(0x10f298); ram 609 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f29c = ramfuc_reg(0x10f29c); ram 610 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f2a0 = ramfuc_reg(0x10f2a0); ram 612 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f300 = ramfuc_reg(0x10f300); ram 613 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f338 = ramfuc_reg(0x10f338); ram 614 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f340 = ramfuc_reg(0x10f340); ram 615 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f344 = ramfuc_reg(0x10f344); ram 616 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f348 = ramfuc_reg(0x10f348); ram 618 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f910 = ramfuc_reg(0x10f910); ram 619 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f914 = ramfuc_reg(0x10f914); ram 621 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x100b0c = ramfuc_reg(0x100b0c); ram 622 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f050 = ramfuc_reg(0x10f050); ram 623 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f090 = ramfuc_reg(0x10f090); ram 624 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f200 = ramfuc_reg(0x10f200); ram 625 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f210 = ramfuc_reg(0x10f210); ram 626 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f310 = ramfuc_reg(0x10f310); ram 627 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f314 = ramfuc_reg(0x10f314); ram 628 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f610 = ramfuc_reg(0x10f610); ram 629 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f614 = ramfuc_reg(0x10f614); ram 630 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f800 = ramfuc_reg(0x10f800); ram 631 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f808 = ramfuc_reg(0x10f808); ram 632 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f824 = ramfuc_reg(0x10f824); ram 633 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f830 = ramfuc_reg(0x10f830); ram 634 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f988 = ramfuc_reg(0x10f988); ram 635 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f98c = ramfuc_reg(0x10f98c); ram 636 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f990 = ramfuc_reg(0x10f990); ram 637 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f998 = ramfuc_reg(0x10f998); ram 638 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f9b0 = ramfuc_reg(0x10f9b0); ram 639 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10f9b4 = ramfuc_reg(0x10f9b4); ram 640 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10fb04 = ramfuc_reg(0x10fb04); ram 641 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x10fb08 = ramfuc_reg(0x10fb08); ram 642 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x137310 = ramfuc_reg(0x137300); ram 643 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x137310 = ramfuc_reg(0x137310); ram 644 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x137360 = ramfuc_reg(0x137360); ram 645 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x1373ec = ramfuc_reg(0x1373ec); ram 646 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x1373f0 = ramfuc_reg(0x1373f0); ram 647 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x1373f8 = ramfuc_reg(0x1373f8); ram 649 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x61c140 = ramfuc_reg(0x61c140); ram 650 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x611200 = ramfuc_reg(0x611200); ram 652 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ram->fuc.r_0x13d8f4 = ramfuc_reg(0x13d8f4); ram 143 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ram *ram = container_of(fuc, typeof(*ram), fuc); ram 149 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c for (i = 0; (data & 0x80000000) && i < ram->parts; addr += 0x1000, i++) { ram 150 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->pmask & (1 << i)) ram 159 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ram *ram = container_of(fuc, typeof(*ram), fuc); ram 160 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c const u32 mcoef = ((--ram->P2 << 28) | (ram->N2 << 8) | ram->M2); ram 161 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c const u32 rcoef = (( ram->P1 << 16) | (ram->N1 << 8) | ram->M1); ram 162 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c const u32 runk0 = ram->fN1 << 16; ram 163 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c const u32 runk1 = ram->fN1; ram 165 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->from == 2) { ram 191 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 2) { ram 209 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ram *ram = container_of(fuc, typeof(*ram), fuc); ram 210 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_ram_data *next = ram->base.next; ram 217 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f0, (~ram->mode & 3), 0x00000000); ram 218 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 2) { ram 229 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_nuts(struct gk104_ram *ram, struct ramfuc_reg *reg, ram 232 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_fb *fb = ram->base.fb; ram 233 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct ramfuc *fuc = &ram->fuc.base; ram 241 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->pnuts & (1 << i)) { ram 252 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_calc_gddr5(struct gk104_ram *ram, u32 freq) ram 254 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ramfuc *fuc = &ram->fuc; ram 255 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_ram_data *next = ram->base.next; ram 263 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (nvkm_device_engine(ram->base.fb->subdev.device, NVKM_ENGINE_DISP)) ram 267 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if ((ram->base.mr[1] & 0x03c) != 0x030) { ram 268 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[1], 0x03c, ram->base.mr[1] & 0x03c); ram 269 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nuts(ram, mr[1], 0x03c, ram->base.mr1_nuts & 0x03c, 0x000); ram 343 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->from == 2 && ram->mode != 2) { ram 354 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->from != 2 && ram->mode != 2) { ram 373 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->from != 2 && ram->mode == 2) { ram 384 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->from == 2 && ram->mode == 2) { ram 390 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode != 2) /*XXX*/ { ram 408 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode != 2) { ram 414 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 2 && next->bios.ramcfg_11_08_10) ram 474 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.ramcfg_11_08_20) { ram 482 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.ramcfg_11_02_03) { ram 486 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.ramcfg_11_01_10) { ram 494 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.timing_20_30_07) { ram 498 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.ramcfg_11_01_01) { ram 506 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.timing_20_30_07) { ram 510 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.ramcfg_11_01_02) { ram 544 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.ramcfg_11_02_03) { ram 548 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.ramcfg_11_01_10) { ram 585 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_08_10 && (ram->mode == 2) /*XXX*/) { ram 592 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[3], 0xfff, ram->base.mr[3]); ram 593 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, mr[0], ram->base.mr[0]); ram 594 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[8], 0xfff, ram->base.mr[8]); ram 596 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[1], 0xfff, ram->base.mr[1]); ram 597 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[5], 0xfff, ram->base.mr[5] & ~0x004); /* LP3 later */ ram 598 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[6], 0xfff, ram->base.mr[6]); ram 599 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[7], 0xfff, ram->base.mr[7]); ram 613 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nuts(ram, 0x10f200, 0x18808800, 0x00000000, 0x18808800); ram 628 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 1) { ram 646 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 2) { /*XXX*/ ram 651 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram_mask(fuc, mr[5], 0x004, ram->base.mr[5]) != ram->base.mr[5]) ram 654 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode != 2) { ram 664 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (nvkm_device_engine(ram->base.fb->subdev.device, NVKM_ENGINE_DISP)) ram 672 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_nuts(ram, 0x10f200, 0x18808800, data, 0x18808800); ram 700 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_calc_sddr3(struct gk104_ram *ram, u32 freq) ram 702 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ramfuc *fuc = &ram->fuc; ram 703 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c const u32 rcoef = (( ram->P1 << 16) | (ram->N1 << 8) | ram->M1); ram 704 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c const u32 runk0 = ram->fN1 << 16; ram 705 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c const u32 runk1 = ram->fN1; ram 706 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_ram_data *next = ram->base.next; ram 714 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (nvkm_device_engine(ram->base.fb->subdev.device, NVKM_ENGINE_DISP)) ram 824 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode != 2) /*XXX*/ { ram 916 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[2], 0x00000fff, ram->base.mr[2]); ram 917 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, mr[1], 0xffffffff, ram->base.mr[1]); ram 918 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_wr32(fuc, mr[0], ram->base.mr[0]); ram 934 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode != 2) { ram 946 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (nvkm_device_engine(ram->base.fb->subdev.device, NVKM_ENGINE_DISP)) ram 962 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_calc_data(struct gk104_ram *ram, u32 khz, struct nvkm_ram_data *data) ram 964 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; ram 968 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c list_for_each_entry(cfg, &ram->cfg, head) { ram 1041 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_calc_xits(struct gk104_ram *ram, struct nvkm_ram_data *next) ram 1043 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ramfuc *fuc = &ram->fuc; ram 1044 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; ram 1048 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = ram_init(fuc, ram->base.fb); ram 1052 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->mode = (next->freq > fuc->refpll.vco1.max_freq) ? 2 : 1; ram 1053 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->from = ram_rd32(fuc, 0x1373f4) & 0x0000000f; ram 1064 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 2) { ram 1066 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c &ram->N1, &ram->fN1, &ram->M1, &ram->P1, ram 1067 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c &ram->N2, &ram->M2, &ram->P2); ram 1077 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = gt215_pll_calc(subdev, &fuc->refpll, refclk, &ram->N1, ram 1078 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c &ram->fN1, &ram->M1, &ram->P1); ram 1088 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->base.mr[i] = ram_rd32(fuc, mr[i]); ram 1090 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->base.freq = next->freq; ram 1092 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c switch (ram->base.type) { ram 1094 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = nvkm_sddr3_calc(&ram->base); ram 1096 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = gk104_ram_calc_sddr3(ram, next->freq); ram 1099 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = nvkm_gddr5_calc(&ram->base, ram->pnuts != 0); ram 1101 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = gk104_ram_calc_gddr5(ram, next->freq); ram 1114 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ram *ram = gk104_ram(base); ram 1115 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_clk *clk = ram->base.fb->subdev.device->clk; ram 1116 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_ram_data *xits = &ram->base.xition; ram 1120 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->base.next == NULL) { ram 1121 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = gk104_ram_calc_data(ram, ram 1123 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c &ram->base.former); ram 1127 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = gk104_ram_calc_data(ram, freq, &ram->base.target); ram 1131 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->base.target.freq < ram->base.former.freq) { ram 1132 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c *xits = ram->base.target; ram 1133 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c copy = &ram->base.former; ram 1135 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c *xits = ram->base.former; ram 1136 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c copy = &ram->base.target; ram 1143 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->base.next = &ram->base.target; ram 1144 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (memcmp(xits, &ram->base.former, sizeof(xits->bios))) ram 1145 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->base.next = &ram->base.xition; ram 1147 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c BUG_ON(ram->base.next != &ram->base.xition); ram 1148 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->base.next = &ram->base.target; ram 1151 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c return gk104_ram_calc_xits(ram, ram->base.next); ram 1155 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_prog_0(struct gk104_ram *ram, u32 freq) ram 1157 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_device *device = ram->base.fb->subdev.device; ram 1162 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c list_for_each_entry(cfg, &ram->cfg, head) { ram 1168 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (&cfg->head == &ram->cfg) ram 1171 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (mask = 0, data = 0, ram->diff.rammap_11_0a_03fe) { ram 1175 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.rammap_11_09_01ff) { ram 1181 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (mask = 0, data = 0, ram->diff.rammap_11_0a_0400) { ram 1187 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (mask = 0, data = 0, ram->diff.rammap_11_0a_0800) { ram 1193 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (mask = 0, data = 0, ram->diff.rammap_11_0b_01f0) { ram 1199 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (mask = 0, data = 0, ram->diff.rammap_11_0b_0200) { ram 1205 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (mask = 0, data = 0, ram->diff.rammap_11_0d) { ram 1209 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.rammap_11_0f) { ram 1215 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (mask = 0, data = 0, ram->diff.rammap_11_0e) { ram 1219 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.rammap_11_0b_0800) { ram 1223 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->diff.rammap_11_0b_0400) { ram 1233 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ram *ram = gk104_ram(base); ram 1234 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ramfuc *fuc = &ram->fuc; ram 1235 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_device *device = ram->base.fb->subdev.device; ram 1236 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_ram_data *next = ram->base.next; ram 1240 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c return (ram->base.next == &ram->base.xition); ram 1243 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_prog_0(ram, 1000); ram 1245 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_prog_0(ram, next->freq); ram 1247 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c return (ram->base.next == &ram->base.xition); ram 1253 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ram *ram = gk104_ram(base); ram 1254 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->base.next = NULL; ram 1255 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_exec(&ram->fuc, false); ram 1271 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_train_type(struct nvkm_ram *ram, int i, u8 ramcfg, ram 1274 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_bios *bios = ram->fb->subdev.device->bios; ram 1332 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_train_init_0(struct nvkm_ram *ram, struct gk104_ram_train *train) ram 1334 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_subdev *subdev = &ram->fb->subdev; ram 1368 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_train_init(struct nvkm_ram *ram) ram 1370 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u8 ramcfg = nvbios_ramcfg_index(&ram->fb->subdev); ram 1378 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = gk104_ram_train_type(ram, i, ramcfg, train); ram 1383 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c switch (ram->type) { ram 1385 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = gk104_ram_train_init_0(ram, train); ram 1397 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_init(struct nvkm_ram *ram) ram 1399 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_subdev *subdev = &ram->fb->subdev; ram 1435 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c return gk104_ram_train_init(ram); ram 1439 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_ctor_data(struct gk104_ram *ram, u8 ramcfg, int i) ram 1441 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_bios *bios = ram->base.fb->subdev.device->bios; ram 1443 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvbios_ramcfg *d = &ram->diff; ram 1451 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c p = &list_last_entry(&ram->cfg, typeof(*cfg), head)->bios; ram 1480 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c list_add_tail(&cfg->head, &ram->cfg); ram 1510 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ram *ram = gk104_ram(base); ram 1513 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c list_for_each_entry_safe(cfg, tmp, &ram->cfg, head) { ram 1517 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c return ram; ram 1528 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct gk104_ram *ram; ram 1533 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) ram 1535 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c *pram = &ram->base; ram 1537 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = gf100_ram_ctor(func, fb, &ram->base); ram 1541 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c INIT_LIST_HEAD(&ram->cfg); ram 1548 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->parts = nvkm_rd32(device, 0x022438); ram 1549 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->pmask = nvkm_rd32(device, 0x022554); ram 1550 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->pnuts = 0; ram 1551 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c for (i = 0, tmp = 0; i < ram->parts; i++) { ram 1552 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (!(ram->pmask & (1 << i))) { ram 1555 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->pnuts |= (1 << i); ram 1574 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = gk104_ram_ctor_data(ram, ramcfg, i); ram 1582 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = nvbios_pll_parse(bios, 0x0c, &ram->fuc.refpll); ram 1588 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = nvbios_pll_parse(bios, 0x04, &ram->fuc.mempll); ram 1597 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_gpioMV = ramfuc_reg(0x00d610 + (gpio.line * 0x04)); ram 1598 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_funcMV[0] = (gpio.log[0] ^ 2) << 12; ram 1599 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_funcMV[1] = (gpio.log[1] ^ 2) << 12; ram 1604 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_gpio2E = ramfuc_reg(0x00d610 + (gpio.line * 0x04)); ram 1605 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_func2E[0] = (gpio.log[0] ^ 2) << 12; ram 1606 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_func2E[1] = (gpio.log[1] ^ 2) << 12; ram 1609 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_gpiotrig = ramfuc_reg(0x00d604); ram 1611 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132020 = ramfuc_reg(0x132020); ram 1612 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132028 = ramfuc_reg(0x132028); ram 1613 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132024 = ramfuc_reg(0x132024); ram 1614 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132030 = ramfuc_reg(0x132030); ram 1615 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132034 = ramfuc_reg(0x132034); ram 1616 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132000 = ramfuc_reg(0x132000); ram 1617 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132004 = ramfuc_reg(0x132004); ram 1618 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x132040 = ramfuc_reg(0x132040); ram 1620 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f248 = ramfuc_reg(0x10f248); ram 1621 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f290 = ramfuc_reg(0x10f290); ram 1622 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f294 = ramfuc_reg(0x10f294); ram 1623 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f298 = ramfuc_reg(0x10f298); ram 1624 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f29c = ramfuc_reg(0x10f29c); ram 1625 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f2a0 = ramfuc_reg(0x10f2a0); ram 1626 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f2a4 = ramfuc_reg(0x10f2a4); ram 1627 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f2a8 = ramfuc_reg(0x10f2a8); ram 1628 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f2ac = ramfuc_reg(0x10f2ac); ram 1629 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f2cc = ramfuc_reg(0x10f2cc); ram 1630 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f2e8 = ramfuc_reg(0x10f2e8); ram 1631 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f250 = ramfuc_reg(0x10f250); ram 1632 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f24c = ramfuc_reg(0x10f24c); ram 1633 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10fec4 = ramfuc_reg(0x10fec4); ram 1634 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10fec8 = ramfuc_reg(0x10fec8); ram 1635 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f604 = ramfuc_reg(0x10f604); ram 1636 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f614 = ramfuc_reg(0x10f614); ram 1637 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f610 = ramfuc_reg(0x10f610); ram 1638 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x100770 = ramfuc_reg(0x100770); ram 1639 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x100778 = ramfuc_reg(0x100778); ram 1640 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f224 = ramfuc_reg(0x10f224); ram 1642 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f870 = ramfuc_reg(0x10f870); ram 1643 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f698 = ramfuc_reg(0x10f698); ram 1644 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f694 = ramfuc_reg(0x10f694); ram 1645 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f6b8 = ramfuc_reg(0x10f6b8); ram 1646 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f808 = ramfuc_reg(0x10f808); ram 1647 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f670 = ramfuc_reg(0x10f670); ram 1648 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f60c = ramfuc_reg(0x10f60c); ram 1649 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f830 = ramfuc_reg(0x10f830); ram 1650 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x1373ec = ramfuc_reg(0x1373ec); ram 1651 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f800 = ramfuc_reg(0x10f800); ram 1652 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f82c = ramfuc_reg(0x10f82c); ram 1654 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f978 = ramfuc_reg(0x10f978); ram 1655 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f910 = ramfuc_reg(0x10f910); ram 1656 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f914 = ramfuc_reg(0x10f914); ram 1658 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c switch (ram->base.type) { ram 1660 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[0] = ramfuc_reg(0x10f300); ram 1661 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[1] = ramfuc_reg(0x10f330); ram 1662 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[2] = ramfuc_reg(0x10f334); ram 1663 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[3] = ramfuc_reg(0x10f338); ram 1664 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[4] = ramfuc_reg(0x10f33c); ram 1665 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[5] = ramfuc_reg(0x10f340); ram 1666 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[6] = ramfuc_reg(0x10f344); ram 1667 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[7] = ramfuc_reg(0x10f348); ram 1668 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[8] = ramfuc_reg(0x10f354); ram 1669 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[15] = ramfuc_reg(0x10f34c); ram 1672 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[0] = ramfuc_reg(0x10f300); ram 1673 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[1] = ramfuc_reg(0x10f304); ram 1674 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_mr[2] = ramfuc_reg(0x10f320); ram 1680 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x62c000 = ramfuc_reg(0x62c000); ram 1681 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f200 = ramfuc_reg(0x10f200); ram 1682 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f210 = ramfuc_reg(0x10f210); ram 1683 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f310 = ramfuc_reg(0x10f310); ram 1684 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f314 = ramfuc_reg(0x10f314); ram 1685 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f318 = ramfuc_reg(0x10f318); ram 1686 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f090 = ramfuc_reg(0x10f090); ram 1687 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f69c = ramfuc_reg(0x10f69c); ram 1688 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f824 = ramfuc_reg(0x10f824); ram 1689 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x1373f0 = ramfuc_reg(0x1373f0); ram 1690 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x1373f4 = ramfuc_reg(0x1373f4); ram 1691 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x137320 = ramfuc_reg(0x137320); ram 1692 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f65c = ramfuc_reg(0x10f65c); ram 1693 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x10f6bc = ramfuc_reg(0x10f6bc); ram 1694 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x100710 = ramfuc_reg(0x100710); ram 1695 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->fuc.r_0x100750 = ramfuc_reg(0x100750); ram 31 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c gp100_ram_init(struct nvkm_ram *ram) ram 33 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c struct nvkm_subdev *subdev = &ram->fb->subdev; ram 92 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c struct nvkm_ram *ram; ram 94 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c if (!(ram = *pram = kzalloc(sizeof(*ram), GFP_KERNEL))) ram 97 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c return gf100_ram_ctor(&gp100_ram, fb, ram); ram 154 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_link_train(struct gt215_ram *ram) ram 156 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ltrain *train = &ram->ltrain; ram 157 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ramfuc *fuc = &ram->fuc; ram 158 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; ram 194 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ret = ram->base.func->calc(&ram->base, (u32) M0205T.freq * 1000); ram 237 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->base.func->calc(&ram->base, clk_current); ram 246 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_train_result(ram->base.fb, result, 64); ram 272 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_link_train_init(struct gt215_ram *ram) ram 280 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ltrain *train = &ram->ltrain; ram 281 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_device *device = ram->base.fb->subdev.device; ram 302 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c true, true, &ram->ltrain.memory); ram 306 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c addr = nvkm_memory_addr(ram->ltrain.memory); ram 338 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_link_train_fini(struct gt215_ram *ram) ram 340 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c nvkm_memory_unref(&ram->ltrain.memory); ram 348 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_timing_calc(struct gt215_ram *ram, u32 *timing) ram 350 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvbios_ramcfg *cfg = &ram->base.target.bios; ram 351 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; ram 362 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c switch ((!T(CWL)) * ram->base.type) { ram 403 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c switch (ram->base.type) { ram 494 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ram *ram = gt215_ram(base); ram 495 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ramfuc *fuc = &ram->fuc; ram 496 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ltrain *train = &ram->ltrain; ram 497 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; ram 511 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c next = &ram->base.target; ram 513 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->base.next = next; ram 515 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (ram->ltrain.state == NVA3_TRAIN_ONCE) ram 516 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_link_train(ram); ram 557 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_timing_calc(ram, timing); ram 559 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ret = ram_init(fuc, ram->base.fb); ram 564 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->base.mr[0] = ram_rd32(fuc, mr[0]); ram 565 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->base.mr[1] = ram_rd32(fuc, mr[1]); ram 566 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->base.mr[2] = ram_rd32(fuc, mr[2]); ram 568 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c switch (ram->base.type) { ram 570 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ret = nvkm_sddr2_calc(&ram->base); ram 573 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ret = nvkm_sddr3_calc(&ram->base); ram 576 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ret = nvkm_gddr3_calc(&ram->base); ram 630 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (ram->base.type == NVKM_RAM_TYPE_GDDR3) ram 637 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c switch (next->bios.ramcfg_DLLoff * ram->base.type) { ram 639 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c nvkm_sddr3_dll_disable(fuc, ram->base.mr); ram 642 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c nvkm_gddr3_dll_disable(fuc, ram->base.mr); ram 749 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (ram_rd32(fuc, mr[i]) != ram->base.mr[i]) { ram 750 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_wr32(fuc, mr[i], ram->base.mr[i]); ram 781 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c switch (ram->base.type) { ram 794 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c switch (ram->base.type) { ram 841 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (ram->base.type == NVKM_RAM_TYPE_GDDR3) { ram 847 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (ram->base.type == NVKM_RAM_TYPE_DDR3) { ram 885 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ram *ram = gt215_ram(base); ram 886 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ramfuc *fuc = &ram->fuc; ram 887 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_device *device = ram->base.fb->subdev.device; ram 910 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ram *ram = gt215_ram(base); ram 911 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_exec(&ram->fuc, false); ram 917 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ram *ram = gt215_ram(base); ram 918 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_link_train_init(ram); ram 925 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ram *ram = gt215_ram(base); ram 926 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_link_train_fini(ram); ram 927 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c return ram; ram 942 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct gt215_ram *ram; ram 945 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) ram 947 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c *pram = &ram->base; ram 949 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ret = nv50_ram_ctor(>215_ram_func, fb, &ram->base); ram 953 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x001610 = ramfuc_reg(0x001610); ram 954 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x001700 = ramfuc_reg(0x001700); ram 955 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x002504 = ramfuc_reg(0x002504); ram 956 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x004000 = ramfuc_reg(0x004000); ram 957 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x004004 = ramfuc_reg(0x004004); ram 958 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x004018 = ramfuc_reg(0x004018); ram 959 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x004128 = ramfuc_reg(0x004128); ram 960 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x004168 = ramfuc_reg(0x004168); ram 961 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100080 = ramfuc_reg(0x100080); ram 962 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100200 = ramfuc_reg(0x100200); ram 963 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100210 = ramfuc_reg(0x100210); ram 965 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100220[i] = ramfuc_reg(0x100220 + (i * 4)); ram 966 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100264 = ramfuc_reg(0x100264); ram 967 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1002d0 = ramfuc_reg(0x1002d0); ram 968 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1002d4 = ramfuc_reg(0x1002d4); ram 969 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1002dc = ramfuc_reg(0x1002dc); ram 970 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x10053c = ramfuc_reg(0x10053c); ram 971 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1005a0 = ramfuc_reg(0x1005a0); ram 972 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1005a4 = ramfuc_reg(0x1005a4); ram 973 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100700 = ramfuc_reg(0x100700); ram 974 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100714 = ramfuc_reg(0x100714); ram 975 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100718 = ramfuc_reg(0x100718); ram 976 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x10071c = ramfuc_reg(0x10071c); ram 977 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100720 = ramfuc_reg(0x100720); ram 978 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100760 = ramfuc_stride(0x100760, 4, ram->base.part_mask); ram 979 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1007a0 = ramfuc_stride(0x1007a0, 4, ram->base.part_mask); ram 980 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1007e0 = ramfuc_stride(0x1007e0, 4, ram->base.part_mask); ram 981 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x100da0 = ramfuc_stride(0x100da0, 4, ram->base.part_mask); ram 982 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x10f804 = ramfuc_reg(0x10f804); ram 983 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1110e0 = ramfuc_stride(0x1110e0, 4, ram->base.part_mask); ram 984 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x111100 = ramfuc_reg(0x111100); ram 985 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x111104 = ramfuc_reg(0x111104); ram 986 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x1111e0 = ramfuc_reg(0x1111e0); ram 987 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x111400 = ramfuc_reg(0x111400); ram 988 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_0x611200 = ramfuc_reg(0x611200); ram 990 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c if (ram->base.ranks > 1) { ram 991 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[0] = ramfuc_reg2(0x1002c0, 0x1002c8); ram 992 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[1] = ramfuc_reg2(0x1002c4, 0x1002cc); ram 993 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[2] = ramfuc_reg2(0x1002e0, 0x1002e8); ram 994 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[3] = ramfuc_reg2(0x1002e4, 0x1002ec); ram 996 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[0] = ramfuc_reg(0x1002c0); ram 997 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[1] = ramfuc_reg(0x1002c4); ram 998 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[2] = ramfuc_reg(0x1002e0); ram 999 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_mr[3] = ramfuc_reg(0x1002e4); ram 1001 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_gpio[0] = ramfuc_reg(0x00e104); ram 1002 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_gpio[1] = ramfuc_reg(0x00e108); ram 1003 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_gpio[2] = ramfuc_reg(0x00e120); ram 1004 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram->fuc.r_gpio[3] = ramfuc_reg(0x00e124); ram 35 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c struct mcp77_ram *ram = mcp77_ram(base); ram 36 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c struct nvkm_device *device = ram->base.fb->subdev.device; ram 37 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c u32 dniso = ((ram->base.size - (ram->poller_base + 0x00)) >> 5) - 1; ram 38 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c u32 hostnb = ((ram->base.size - (ram->poller_base + 0x20)) >> 5) - 1; ram 39 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c u32 flush = ((ram->base.size - (ram->poller_base + 0x40)) >> 5) - 1; ram 66 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c struct mcp77_ram *ram; ram 69 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) ram 71 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c *pram = &ram->base; ram 74 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c size, &ram->base); ram 78 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c ram->poller_base = size - rsvd_tail; ram 79 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c ram->base.stolen = base; ram 80 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c nvkm_mm_fini(&ram->base.vram); ram 82 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c return nvkm_mm_init(&ram->base.vram, NVKM_RAM_MM_NORMAL, ram 36 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c struct nv40_ram *ram = nv40_ram(base); ram 37 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; ram 53 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c ram->ctrl = 0x80000000 | (log2P << 16); ram 54 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c ram->ctrl |= min(pll.bias_p + log2P, (int)pll.max_p) << 20; ram 56 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c ram->ctrl |= 0x00000100; ram 57 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c ram->coef = (N1 << 8) | M1; ram 59 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c ram->ctrl |= 0x40000000; ram 60 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c ram->coef = (N2 << 24) | (M2 << 16) | (N1 << 8) | M1; ram 69 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c struct nv40_ram *ram = nv40_ram(base); ram 70 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; ram 130 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c nvkm_mask(device, 0x004044, 0xc0771100, ram->ctrl); ram 131 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c nvkm_mask(device, 0x00402c, 0xc0771100, ram->ctrl); ram 132 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c nvkm_wr32(device, 0x004048, ram->coef); ram 133 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c nvkm_wr32(device, 0x004030, ram->coef); ram 138 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c nvkm_mask(device, 0x004038, 0xc0771100, ram->ctrl); ram 139 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c nvkm_wr32(device, 0x00403c, ram->coef); ram 142 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c nvkm_mask(device, 0x004020, 0xc0771100, ram->ctrl); ram 143 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c nvkm_wr32(device, 0x004024, ram->coef); ram 194 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c struct nv40_ram *ram; ram 195 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) ram 197 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c *pram = &ram->base; ram 198 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c return nvkm_ram_ctor(&nv40_ram_func, fb, type, size, &ram->base); ram 73 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c nv50_ram_timing_calc(struct nv50_ram *ram, u32 *timing) ram 75 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvbios_ramcfg *cfg = &ram->base.target.bios; ram 76 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; ram 86 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c switch ((!T(CWL)) * ram->base.type) { ram 97 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c unkt3b = 0x19 + ram->base.next->bios.rammap_00_16_40; ram 99 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->base.next->bios.rammap_00_16_40) << 16 | ram 133 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (ram->base.type == NVKM_RAM_TYPE_DDR2) { ram 137 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (ram->base.type == NVKM_RAM_TYPE_GDDR3) { ram 151 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c nv50_ram_timing_read(struct nv50_ram *ram, u32 *timing) ram 154 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvbios_ramcfg *cfg = &ram->base.target.bios; ram 155 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; ram 165 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c switch (ram->base.type) { ram 221 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nv50_ram *ram = nv50_ram(base); ram 222 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nv50_ramseq *hwsq = &ram->hwsq; ram 223 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; ram 235 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c next = &ram->base.target; ram 237 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->base.next = next; ram 277 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c nv50_ram_timing_calc(ram, timing); ram 279 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c nv50_ram_timing_read(ram, timing); ram 287 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->base.mr[0] = ram_rd32(hwsq, mr[0]); ram 288 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->base.mr[1] = ram_rd32(hwsq, mr[1]); ram 289 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->base.mr[2] = ram_rd32(hwsq, mr[2]); ram 291 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c switch (ram->base.type) { ram 293 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ret = nvkm_gddr3_calc(&ram->base); ram 375 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c switch (ram->base.type) { ram 382 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram_wr32(hwsq, mr[1], ram->base.mr[1]); ram 384 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram_wr32(hwsq, mr[0], ram->base.mr[0]); ram 454 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram_mask(hwsq, mr[1], 0xffffffff, ram->base.mr[1]); ram 483 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nv50_ram *ram = nv50_ram(base); ram 484 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_device *device = ram->base.fb->subdev.device; ram 485 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram_exec(&ram->hwsq, nvkm_boolopt(device->cfgopt, "NvMemExec", true)); ram 492 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nv50_ram *ram = nv50_ram(base); ram 493 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram_exec(&ram->hwsq, false); ram 504 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c nv50_fb_vram_rblock(struct nvkm_ram *ram) ram 506 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_subdev *subdev = &ram->fb->subdev; ram 523 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c rowsize = ram->parts * banks * (1 << colbits) * 8; ram 528 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (predicted != ram->size) { ram 530 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c (u32)(ram->size >> 20)); ram 543 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_fb *fb, struct nvkm_ram *ram) ram 570 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ret = nvkm_ram_ctor(func, fb, type, size, ram); ram 574 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->part_mask = (nvkm_rd32(device, 0x001540) & 0x00ff0000) >> 16; ram 575 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->parts = hweight8(ram->part_mask); ram 576 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->ranks = (nvkm_rd32(device, 0x100200) & 0x4) ? 2 : 1; ram 577 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c nvkm_mm_fini(&ram->vram); ram 579 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c return nvkm_mm_init(&ram->vram, NVKM_RAM_MM_NORMAL, ram 582 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c nv50_fb_vram_rblock(ram) >> NVKM_RAM_MM_SHIFT); ram 588 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nv50_ram *ram; ram 591 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) ram 593 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c *pram = &ram->base; ram 595 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ret = nv50_ram_ctor(&nv50_ram_func, fb, &ram->base); ram 599 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x002504 = hwsq_reg(0x002504); ram 600 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x00c040 = hwsq_reg(0x00c040); ram 601 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x004008 = hwsq_reg(0x004008); ram 602 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x00400c = hwsq_reg(0x00400c); ram 603 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x100200 = hwsq_reg(0x100200); ram 604 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x100210 = hwsq_reg(0x100210); ram 605 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x10021c = hwsq_reg(0x10021c); ram 606 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x1002d0 = hwsq_reg(0x1002d0); ram 607 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x1002d4 = hwsq_reg(0x1002d4); ram 608 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x1002dc = hwsq_reg(0x1002dc); ram 609 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x10053c = hwsq_reg(0x10053c); ram 610 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x1005a0 = hwsq_reg(0x1005a0); ram 611 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x1005a4 = hwsq_reg(0x1005a4); ram 612 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x100710 = hwsq_reg(0x100710); ram 613 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x100714 = hwsq_reg(0x100714); ram 614 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x100718 = hwsq_reg(0x100718); ram 615 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x10071c = hwsq_reg(0x10071c); ram 616 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x100da0 = hwsq_stride(0x100da0, 4, ram->base.part_mask); ram 617 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x100e20 = hwsq_reg(0x100e20); ram 618 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x100e24 = hwsq_reg(0x100e24); ram 619 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_0x611200 = hwsq_reg(0x611200); ram 622 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_timing[i] = hwsq_reg(0x100220 + (i * 0x04)); ram 624 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c if (ram->base.ranks > 1) { ram 625 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_mr[0] = hwsq_reg2(0x1002c0, 0x1002c8); ram 626 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_mr[1] = hwsq_reg2(0x1002c4, 0x1002cc); ram 627 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_mr[2] = hwsq_reg2(0x1002e0, 0x1002e8); ram 628 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_mr[3] = hwsq_reg2(0x1002e4, 0x1002ec); ram 630 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_mr[0] = hwsq_reg(0x1002c0); ram 631 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_mr[1] = hwsq_reg(0x1002c4); ram 632 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_mr[2] = hwsq_reg(0x1002e0); ram 633 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_mr[3] = hwsq_reg(0x1002e4); ram 636 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_gpio[0] = hwsq_reg(0x00e104); ram 637 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_gpio[1] = hwsq_reg(0x00e108); ram 638 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_gpio[2] = hwsq_reg(0x00e120); ram 639 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ram->hwsq.r_gpio[3] = hwsq_reg(0x00e124); ram 61 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c nvkm_sddr2_calc(struct nvkm_ram *ram) ram 65 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c switch (ram->next->bios.timing_ver) { ram 67 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c CL = ram->next->bios.timing_10_CL; ram 68 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c WR = ram->next->bios.timing_10_WR; ram 69 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c DLL = !ram->next->bios.ramcfg_DLLoff; ram 70 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c ODT = ram->next->bios.timing_10_ODT & 3; ram 73 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c CL = (ram->next->bios.timing[1] & 0x0000001f); ram 74 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c WR = (ram->next->bios.timing[2] & 0x007f0000) >> 16; ram 80 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c if (ram->next->bios.timing_ver == 0x20 || ram 81 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c ram->next->bios.ramcfg_timing == 0xff) { ram 82 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c ODT = (ram->mr[1] & 0x004) >> 2 | ram 83 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c (ram->mr[1] & 0x040) >> 5; ram 91 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c ram->mr[0] &= ~0xf70; ram 92 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c ram->mr[0] |= (WR & 0x07) << 9; ram 93 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c ram->mr[0] |= (CL & 0x07) << 4; ram 95 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c ram->mr[1] &= ~0x045; ram 96 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c ram->mr[1] |= (ODT & 0x1) << 2; ram 97 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c ram->mr[1] |= (ODT & 0x2) << 5; ram 98 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr2.c ram->mr[1] |= !DLL; ram 70 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c nvkm_sddr3_calc(struct nvkm_ram *ram) ram 74 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c DLL = !ram->next->bios.ramcfg_DLLoff; ram 76 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c switch (ram->next->bios.timing_ver) { ram 78 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c if (ram->next->bios.timing_hdr < 0x17) { ram 82 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c CWL = ram->next->bios.timing_10_CWL; ram 83 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c CL = ram->next->bios.timing_10_CL; ram 84 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c WR = ram->next->bios.timing_10_WR; ram 85 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ODT = ram->next->bios.timing_10_ODT; ram 88 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c CWL = (ram->next->bios.timing[1] & 0x00000f80) >> 7; ram 89 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c CL = (ram->next->bios.timing[1] & 0x0000001f) >> 0; ram 90 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c WR = (ram->next->bios.timing[2] & 0x007f0000) >> 16; ram 92 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ODT = (ram->mr[1] & 0x004) >> 2 | ram 93 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c (ram->mr[1] & 0x040) >> 5 | ram 94 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c (ram->mr[1] & 0x200) >> 7; ram 106 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ram->mr[0] &= ~0xf74; ram 107 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ram->mr[0] |= (WR & 0x07) << 9; ram 108 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ram->mr[0] |= (CL & 0x0e) << 3; ram 109 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ram->mr[0] |= (CL & 0x01) << 2; ram 111 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ram->mr[1] &= ~0x245; ram 112 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ram->mr[1] |= (ODT & 0x1) << 2; ram 113 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ram->mr[1] |= (ODT & 0x2) << 5; ram 114 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ram->mr[1] |= (ODT & 0x4) << 7; ram 115 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ram->mr[1] |= !DLL; ram 117 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ram->mr[2] &= ~0x038; ram 118 drivers/gpu/drm/nouveau/nvkm/subdev/fb/sddr3.c ram->mr[2] |= (CWL & 0x07) << 3; ram 48 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c struct nvkm_memory *ram; ram 61 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c u64 base = (nvkm_memory_addr(iobj->ram) + offset) & 0xffffff00000ULL; ram 62 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c u64 addr = (nvkm_memory_addr(iobj->ram) + offset) & 0x000000fffffULL; ram 80 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c u64 base = (nvkm_memory_addr(iobj->ram) + offset) & 0xffffff00000ULL; ram 81 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c u64 addr = (nvkm_memory_addr(iobj->ram) + offset) & 0x000000fffffULL; ram 186 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c memory = nv50_instobj(memory)->ram; ram 282 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c return nvkm_memory_size(nv50_instobj(memory)->ram); ram 288 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c return nvkm_memory_addr(nv50_instobj(memory)->ram); ram 307 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c return nvkm_memory_target(nv50_instobj(memory)->ram); ram 332 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c nvkm_memory_unref(&iobj->ram); ram 368 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c return nvkm_ram_get(device, 0, 1, page, size, true, true, &iobj->ram); ram 158 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c struct nvkm_ram *ram = fb->ram; ram 164 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c if (!ram) { ram 170 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c ltc->num_tags = (ram->size >> 17) / 4; ram 318 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c struct nvkm_mm *mm = &device->fb->ram->vram; ram 373 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c if (mmu->subdev.device->fb && mmu->subdev.device->fb->ram) ram 236 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c struct nvkm_ram *ram = device->fb->ram; ram 263 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c if (ram->stolen) { ram 264 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c map->type |= ram->stolen; ram 215 drivers/gpu/drm/qxl/qxl_drv.h void *ram; ram 3231 drivers/gpu/drm/radeon/radeon_combios.c static uint32_t combios_detect_ram(struct drm_device *dev, int ram, ram 3241 drivers/gpu/drm/radeon/radeon_combios.c ram /= 2; ram 3242 drivers/gpu/drm/radeon/radeon_combios.c mem_size = ram; ram 3251 drivers/gpu/drm/radeon/radeon_combios.c while (ram--) { ram 3252 drivers/gpu/drm/radeon/radeon_combios.c addr = ram * 1024 * 1024; ram 3296 drivers/gpu/drm/radeon/radeon_combios.c int ram = 0; ram 3300 drivers/gpu/drm/radeon/radeon_combios.c ram = RBIOS8(offset); ram 3304 drivers/gpu/drm/radeon/radeon_combios.c ram *= 2; ram 3306 drivers/gpu/drm/radeon/radeon_combios.c combios_detect_ram(dev, ram, ram 135 drivers/iommu/omap-iommu-debug.c seq_printf(s, "%08x %08x %01x\n", cr->cam, cr->ram, ram 285 drivers/iommu/omap-iommu.c cr->ram = iommu_read_reg(obj, MMU_READ_RAM); ram 291 drivers/iommu/omap-iommu.c iommu_write_reg(obj, cr->ram, MMU_RAM); ram 331 drivers/iommu/omap-iommu.c cr->ram = e->pa | e->endian | e->elsz | e->mixed; ram 105 drivers/iommu/omap-iommu.h u32 ram; ram 42 drivers/net/ethernet/amd/mvme147.c unsigned long ram; ram 114 drivers/net/ethernet/amd/mvme147.c lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 32K */ ram 115 drivers/net/ethernet/amd/mvme147.c if (!lp->ram) { ram 123 drivers/net/ethernet/amd/mvme147.c lp->lance.init_block = (struct lance_init_block *)(lp->ram); /* CPU addr */ ram 124 drivers/net/ethernet/amd/mvme147.c lp->lance.lance_init_block = (struct lance_init_block *)(lp->ram); /* LANCE addr of same RAM */ ram 137 drivers/net/ethernet/amd/mvme147.c free_pages(lp->ram, 3); ram 196 drivers/net/ethernet/amd/mvme147.c free_pages(lp->ram, 3); ram 409 drivers/net/wan/c101.c unsigned long irq, ram; ram 415 drivers/net/wan/c101.c ram = simple_strtoul(hw, &hw, 0); ram 418 drivers/net/wan/c101.c c101_run(irq, ram); ram 503 drivers/net/wan/n2.c unsigned long io, irq, ram; ram 514 drivers/net/wan/n2.c ram = simple_strtoul(hw, &hw, 0); ram 532 drivers/net/wan/n2.c n2_run(io, irq, ram, valid[0], valid[1]); ram 1748 drivers/scsi/isci/registers.h u32 ram[128]; ram 1758 drivers/scsi/isci/registers.h u32 ram[128]; ram 1769 drivers/scsi/isci/registers.h u32 ram[scu_scratch_ram_SIZE_IN_DWORDS]; ram 265 drivers/scsi/myrb.h } __packed ram:3; /* Byte 40 Bits 0-2 */ ram 111 drivers/scsi/qla2xxx/qla_dbg.c qla27xx_dump_mpi_ram(struct qla_hw_data *ha, uint32_t addr, uint32_t *ram, ram 168 drivers/scsi/qla2xxx/qla_dbg.c *nxt = ram + i; ram 179 drivers/scsi/qla2xxx/qla_dbg.c ram[i + j] = ram 185 drivers/scsi/qla2xxx/qla_dbg.c *nxt = ram + i; ram 190 drivers/scsi/qla2xxx/qla_dbg.c qla24xx_dump_ram(struct qla_hw_data *ha, uint32_t addr, uint32_t *ram, ram 244 drivers/scsi/qla2xxx/qla_dbg.c *nxt = ram + i; ram 255 drivers/scsi/qla2xxx/qla_dbg.c ram[i + j] = ram 261 drivers/scsi/qla2xxx/qla_dbg.c *nxt = ram + i; ram 369 drivers/scsi/qla2xxx/qla_dbg.c qla2xxx_dump_ram(struct qla_hw_data *ha, uint32_t addr, uint16_t *ram, ram 442 drivers/scsi/qla2xxx/qla_dbg.c ram[cnt + idx] = swab16(dump[idx]); ram 448 drivers/scsi/qla2xxx/qla_dbg.c *nxt = rval == QLA_SUCCESS ? &ram[cnt] : NULL; ram 2222 drivers/video/fbdev/cirrusfb.c struct zorro_dev *ram = zorro_find_device(zcl->ramid, NULL); ram 2223 drivers/video/fbdev/cirrusfb.c if (!ram || !zorro_resource_len(ram)) { ram 2228 drivers/video/fbdev/cirrusfb.c rambase = zorro_resource_start(ram); ram 2229 drivers/video/fbdev/cirrusfb.c ramsize = zorro_resource_len(ram); ram 2231 drivers/video/fbdev/cirrusfb.c (ram = zorro_find_device(zcl->ramid2, NULL))) { ram 2232 drivers/video/fbdev/cirrusfb.c if (zorro_resource_start(ram) != rambase + ramsize) { ram 2235 drivers/video/fbdev/cirrusfb.c &ram->resource); ram 2237 drivers/video/fbdev/cirrusfb.c ramsize += zorro_resource_len(ram); ram 88 sound/soc/codecs/tscs454.c static inline void coeff_ram_init(struct coeff_ram *ram) ram 90 sound/soc/codecs/tscs454.c init_coeff_ram_cache(ram->cache); ram 91 sound/soc/codecs/tscs454.c mutex_init(&ram->lock); ram 86 sound/soc/intel/haswell/sst-haswell-dsp.c void __iomem *ram; ram 130 sound/soc/intel/haswell/sst-haswell-dsp.c ram = dsp->addr.lpe; ram 137 sound/soc/intel/haswell/sst-haswell-dsp.c ram = dsp->addr.lpe; ram 154 sound/soc/intel/haswell/sst-haswell-dsp.c count, mod->type, block->size, ram, ram 60 tools/testing/selftests/vm/transhuge-stress.c size_t ram, len; ram 67 tools/testing/selftests/vm/transhuge-stress.c ram = sysconf(_SC_PHYS_PAGES); ram 68 tools/testing/selftests/vm/transhuge-stress.c if (ram > SIZE_MAX / sysconf(_SC_PAGESIZE) / 4) ram 69 tools/testing/selftests/vm/transhuge-stress.c ram = SIZE_MAX / 4; ram 71 tools/testing/selftests/vm/transhuge-stress.c ram *= sysconf(_SC_PAGESIZE); ram 74 tools/testing/selftests/vm/transhuge-stress.c len = ram; ram 98 tools/testing/selftests/vm/transhuge-stress.c map_len = ram >> (HPAGE_SHIFT - 1);