Lines Matching refs:ram
35 struct mcp77_ram *ram = mcp77_ram(base); in mcp77_ram_init() local
36 struct nvkm_device *device = ram->base.fb->subdev.device; in mcp77_ram_init()
37 u32 dniso = ((ram->base.size - (ram->poller_base + 0x00)) >> 5) - 1; in mcp77_ram_init()
38 u32 hostnb = ((ram->base.size - (ram->poller_base + 0x20)) >> 5) - 1; in mcp77_ram_init()
39 u32 flush = ((ram->base.size - (ram->poller_base + 0x40)) >> 5) - 1; in mcp77_ram_init()
66 struct mcp77_ram *ram; in mcp77_ram_new() local
69 if (!(ram = kzalloc(sizeof(*ram), GFP_KERNEL))) in mcp77_ram_new()
71 *pram = &ram->base; in mcp77_ram_new()
74 size, &ram->base); in mcp77_ram_new()
78 ram->poller_base = size - rsvd_tail; in mcp77_ram_new()
79 ram->base.stolen = base; in mcp77_ram_new()
80 nvkm_mm_fini(&ram->base.vram); in mcp77_ram_new()
82 return nvkm_mm_init(&ram->base.vram, NVKM_RAM_MM_NORMAL, in mcp77_ram_new()