Lines Matching full:ram
36 struct nv40_ram *ram = nv40_ram(base); in nv40_ram_calc() local
37 struct nvkm_subdev *subdev = &ram->base.fb->subdev; in nv40_ram_calc()
53 ram->ctrl = 0x80000000 | (log2P << 16); in nv40_ram_calc()
54 ram->ctrl |= min(pll.bias_p + log2P, (int)pll.max_p) << 20; in nv40_ram_calc()
56 ram->ctrl |= 0x00000100; in nv40_ram_calc()
57 ram->coef = (N1 << 8) | M1; in nv40_ram_calc()
59 ram->ctrl |= 0x40000000; in nv40_ram_calc()
60 ram->coef = (N2 << 24) | (M2 << 16) | (N1 << 8) | M1; in nv40_ram_calc()
69 struct nv40_ram *ram = nv40_ram(base); in nv40_ram_prog() local
70 struct nvkm_subdev *subdev = &ram->base.fb->subdev; in nv40_ram_prog()
115 /* prepare ram for reclocking */ in nv40_ram_prog()
130 nvkm_mask(device, 0x004044, 0xc0771100, ram->ctrl); in nv40_ram_prog()
131 nvkm_mask(device, 0x00402c, 0xc0771100, ram->ctrl); in nv40_ram_prog()
132 nvkm_wr32(device, 0x004048, ram->coef); in nv40_ram_prog()
133 nvkm_wr32(device, 0x004030, ram->coef); in nv40_ram_prog()
138 nvkm_mask(device, 0x004038, 0xc0771100, ram->ctrl); in nv40_ram_prog()
139 nvkm_wr32(device, 0x00403c, ram->coef); in nv40_ram_prog()
142 nvkm_mask(device, 0x004020, 0xc0771100, ram->ctrl); in nv40_ram_prog()
143 nvkm_wr32(device, 0x004024, ram->coef); in nv40_ram_prog()
194 struct nv40_ram *ram; in nv40_ram_new_() local
195 if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) in nv40_ram_new_()
197 *pram = &ram->base; in nv40_ram_new_()
198 return nvkm_ram_ctor(&nv40_ram_func, fb, type, size, &ram->base); in nv40_ram_new_()