Searched refs:iobj (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
H A D | nv50.c | 59 struct nv50_instobj *iobj = nv50_instobj(memory); in nv50_instobj_wr32_slow() local 60 struct nv50_instmem *imem = iobj->imem; in nv50_instobj_wr32_slow() 62 u64 base = (nvkm_memory_addr(iobj->ram) + offset) & 0xffffff00000ULL; in nv50_instobj_wr32_slow() 63 u64 addr = (nvkm_memory_addr(iobj->ram) + offset) & 0x000000fffffULL; in nv50_instobj_wr32_slow() 78 struct nv50_instobj *iobj = nv50_instobj(memory); in nv50_instobj_rd32_slow() local 79 struct nv50_instmem *imem = iobj->imem; in nv50_instobj_rd32_slow() 81 u64 base = (nvkm_memory_addr(iobj->ram) + offset) & 0xffffff00000ULL; in nv50_instobj_rd32_slow() 82 u64 addr = (nvkm_memory_addr(iobj->ram) + offset) & 0x000000fffffULL; in nv50_instobj_rd32_slow() 121 nv50_instobj_kmap(struct nv50_instobj *iobj, struct nvkm_vmm *vmm) in nv50_instobj_kmap() argument 123 struct nv50_instmem *imem = iobj->imem; in nv50_instobj_kmap() [all …]
|
H A D | nv04.c | 49 struct nv04_instobj *iobj = nv04_instobj(memory); in nv04_instobj_wr32() local 50 struct nvkm_device *device = iobj->imem->base.subdev.device; in nv04_instobj_wr32() 51 nvkm_wr32(device, 0x700000 + iobj->node->offset + offset, data); in nv04_instobj_wr32() 57 struct nv04_instobj *iobj = nv04_instobj(memory); in nv04_instobj_rd32() local 58 struct nvkm_device *device = iobj->imem->base.subdev.device; in nv04_instobj_rd32() 59 return nvkm_rd32(device, 0x700000 + iobj->node->offset + offset); in nv04_instobj_rd32() 76 struct nv04_instobj *iobj = nv04_instobj(memory); in nv04_instobj_acquire() local 77 struct nvkm_device *device = iobj->imem->base.subdev.device; in nv04_instobj_acquire() 78 return device->pri + 0x700000 + iobj->node->offset; in nv04_instobj_acquire() 102 struct nv04_instobj *iobj = nv04_instobj(memory); in nv04_instobj_dtor() local [all …]
|
H A D | nv40.c | 50 struct nv40_instobj *iobj = nv40_instobj(memory); in nv40_instobj_wr32() local 51 iowrite32_native(data, iobj->imem->iomem + iobj->node->offset + offset); in nv40_instobj_wr32() 57 struct nv40_instobj *iobj = nv40_instobj(memory); in nv40_instobj_rd32() local 58 return ioread32_native(iobj->imem->iomem + iobj->node->offset + offset); in nv40_instobj_rd32() 76 struct nv40_instobj *iobj = nv40_instobj(memory); in nv40_instobj_acquire() local 77 return iobj->imem->iomem + iobj->node->offset; in nv40_instobj_acquire() 101 struct nv40_instobj *iobj = nv40_instobj(memory); in nv40_instobj_dtor() local 102 mutex_lock(&iobj->imem->base.mutex); in nv40_instobj_dtor() 103 nvkm_mm_free(&iobj->imem->heap, &iobj->node); in nv40_instobj_dtor() 104 mutex_unlock(&iobj->imem->base.mutex); in nv40_instobj_dtor() [all …]
|
H A D | base.c | 32 nvkm_instobj_load(struct nvkm_instobj *iobj) in nvkm_instobj_load() argument 34 struct nvkm_memory *memory = &iobj->memory; in nvkm_instobj_load() 41 nvkm_wo32(memory, i, iobj->suspend[i / 4]); in nvkm_instobj_load() 43 memcpy_toio(map, iobj->suspend, size); in nvkm_instobj_load() 47 kvfree(iobj->suspend); in nvkm_instobj_load() 48 iobj->suspend = NULL; in nvkm_instobj_load() 52 nvkm_instobj_save(struct nvkm_instobj *iobj) in nvkm_instobj_save() argument 54 struct nvkm_memory *memory = &iobj->memory; in nvkm_instobj_save() 59 iobj->suspend = kvmalloc(size, GFP_KERNEL); in nvkm_instobj_save() 60 if (!iobj->suspend) in nvkm_instobj_save() [all …]
|
H A D | r535.c | 225 struct nvkm_instobj *iobj; in r535_instmem_suspend() local 235 list_for_each_entry(iobj, &imem->list, head) { in r535_instmem_suspend() 236 if (iobj->preserve) { in r535_instmem_suspend() 237 if (!fbsr_inst(&fbsr, "inst", &iobj->memory)) in r535_instmem_suspend() 242 list_for_each_entry(iobj, &imem->boot, head) { in r535_instmem_suspend() 243 if (!fbsr_inst(&fbsr, "boot", &iobj->memory)) in r535_instmem_suspend()
|