Lines Matching refs:memory
24 #define nvkm_vram(p) container_of((p), struct nvkm_vram, memory)
32 struct nvkm_memory memory; member
39 nvkm_vram_kmap(struct nvkm_memory *memory, struct nvkm_memory **pmemory) in nvkm_vram_kmap() argument
41 return nvkm_instobj_wrap(nvkm_vram(memory)->ram->fb->subdev.device, memory, pmemory); in nvkm_vram_kmap()
45 nvkm_vram_map(struct nvkm_memory *memory, u64 offset, struct nvkm_vmm *vmm, in nvkm_vram_map() argument
48 struct nvkm_vram *vram = nvkm_vram(memory); in nvkm_vram_map()
50 .memory = &vram->memory, in nvkm_vram_map()
59 nvkm_vram_size(struct nvkm_memory *memory) in nvkm_vram_size() argument
61 return (u64)nvkm_mm_size(nvkm_vram(memory)->mn) << NVKM_RAM_MM_SHIFT; in nvkm_vram_size()
65 nvkm_vram_addr(struct nvkm_memory *memory) in nvkm_vram_addr() argument
67 struct nvkm_vram *vram = nvkm_vram(memory); in nvkm_vram_addr()
74 nvkm_vram_page(struct nvkm_memory *memory) in nvkm_vram_page() argument
76 return nvkm_vram(memory)->page; in nvkm_vram_page()
80 nvkm_vram_target(struct nvkm_memory *memory) in nvkm_vram_target() argument
86 nvkm_vram_dtor(struct nvkm_memory *memory) in nvkm_vram_dtor() argument
88 struct nvkm_vram *vram = nvkm_vram(memory); in nvkm_vram_dtor()
132 nvkm_memory_ctor(&nvkm_vram, &vram->memory); in nvkm_ram_get()
135 *pmemory = &vram->memory; in nvkm_ram_get()