Lines Matching refs:memory
34 struct nvkm_memory *memory = &iobj->memory; in nvkm_instobj_load() local
35 const u64 size = nvkm_memory_size(memory); in nvkm_instobj_load()
39 if (!(map = nvkm_kmap(memory))) { in nvkm_instobj_load()
41 nvkm_wo32(memory, i, iobj->suspend[i / 4]); in nvkm_instobj_load()
45 nvkm_done(memory); in nvkm_instobj_load()
54 struct nvkm_memory *memory = &iobj->memory; in nvkm_instobj_save() local
55 const u64 size = nvkm_memory_size(memory); in nvkm_instobj_save()
63 if (!(map = nvkm_kmap(memory))) { in nvkm_instobj_save()
65 iobj->suspend[i / 4] = nvkm_ro32(memory, i); in nvkm_instobj_save()
69 nvkm_done(memory); in nvkm_instobj_save()
85 nvkm_memory_ctor(func, &iobj->memory); in nvkm_instobj_ctor()
94 struct nvkm_memory *memory, struct nvkm_memory **pmemory) in nvkm_instobj_wrap() argument
101 return imem->func->memory_wrap(imem, memory, pmemory); in nvkm_instobj_wrap()
109 struct nvkm_memory *memory = NULL; in nvkm_instobj_new() local
113 ret = imem->func->memory_new(imem, size, align, zero, &memory); in nvkm_instobj_new()
120 zero, nvkm_memory_addr(memory), nvkm_memory_size(memory)); in nvkm_instobj_new()
123 void __iomem *map = nvkm_kmap(memory); in nvkm_instobj_new()
126 nvkm_wo32(memory, offset, 0x00000000); in nvkm_instobj_new()
130 nvkm_done(memory); in nvkm_instobj_new()
135 nvkm_memory_unref(&memory); in nvkm_instobj_new()
136 *pmemory = memory; in nvkm_instobj_new()