Lines Matching refs:memory
22 #define nvkm_mem(p) container_of((p), struct nvkm_mem, memory)
31 struct nvkm_memory memory; member
43 nvkm_mem_target(struct nvkm_memory *memory) in nvkm_mem_target() argument
45 return nvkm_mem(memory)->target; in nvkm_mem_target()
49 nvkm_mem_page(struct nvkm_memory *memory) in nvkm_mem_page() argument
55 nvkm_mem_addr(struct nvkm_memory *memory) in nvkm_mem_addr() argument
57 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_addr()
64 nvkm_mem_size(struct nvkm_memory *memory) in nvkm_mem_size() argument
66 return nvkm_mem(memory)->pages << PAGE_SHIFT; in nvkm_mem_size()
70 nvkm_mem_map_dma(struct nvkm_memory *memory, u64 offset, struct nvkm_vmm *vmm, in nvkm_mem_map_dma() argument
73 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_map_dma()
75 .memory = &mem->memory, in nvkm_mem_map_dma()
83 nvkm_mem_dtor(struct nvkm_memory *memory) in nvkm_mem_dtor() argument
85 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_dtor()
110 nvkm_mem_map_sgl(struct nvkm_memory *memory, u64 offset, struct nvkm_vmm *vmm, in nvkm_mem_map_sgl() argument
113 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_map_sgl()
115 .memory = &mem->memory, in nvkm_mem_map_sgl()
133 nvkm_mem_map_host(struct nvkm_memory *memory, void **pmap) in nvkm_mem_map_host() argument
135 struct nvkm_mem *mem = nvkm_mem(memory); in nvkm_mem_map_host()
170 *pmemory = &mem->memory; in nvkm_mem_new_host()
174 nvkm_memory_ctor(&nvkm_mem_dma, &mem->memory); in nvkm_mem_new_host()
177 nvkm_memory_ctor(&nvkm_mem_sgl, &mem->memory); in nvkm_mem_new_host()
191 nvkm_memory_ctor(&nvkm_mem_dma, &mem->memory); in nvkm_mem_new_host()
227 struct nvkm_memory *memory = NULL; in nvkm_mem_new_type() local
232 argv, argc, &memory); in nvkm_mem_new_type()
235 argv, argc, &memory); in nvkm_mem_new_type()
239 nvkm_memory_unref(&memory); in nvkm_mem_new_type()
240 *pmemory = memory; in nvkm_mem_new_type()