Searched refs:iobj (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
D | nv50.c | 58 struct nv50_instobj *iobj = nv50_instobj(memory); in nv50_instobj_wr32_slow() local 59 struct nv50_instmem *imem = iobj->imem; in nv50_instobj_wr32_slow() 61 u64 base = (nvkm_memory_addr(iobj->ram) + offset) & 0xffffff00000ULL; in nv50_instobj_wr32_slow() 62 u64 addr = (nvkm_memory_addr(iobj->ram) + offset) & 0x000000fffffULL; in nv50_instobj_wr32_slow() 77 struct nv50_instobj *iobj = nv50_instobj(memory); in nv50_instobj_rd32_slow() local 78 struct nv50_instmem *imem = iobj->imem; in nv50_instobj_rd32_slow() 80 u64 base = (nvkm_memory_addr(iobj->ram) + offset) & 0xffffff00000ULL; in nv50_instobj_rd32_slow() 81 u64 addr = (nvkm_memory_addr(iobj->ram) + offset) & 0x000000fffffULL; in nv50_instobj_rd32_slow() 120 nv50_instobj_kmap(struct nv50_instobj *iobj, struct nvkm_vmm *vmm) in nv50_instobj_kmap() argument 122 struct nv50_instmem *imem = iobj->imem; in nv50_instobj_kmap() [all …]
|
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 …]
|
D | nv04.c | 48 struct nv04_instobj *iobj = nv04_instobj(memory); in nv04_instobj_wr32() local 49 struct nvkm_device *device = iobj->imem->base.subdev.device; in nv04_instobj_wr32() 50 nvkm_wr32(device, 0x700000 + iobj->node->offset + offset, data); in nv04_instobj_wr32() 56 struct nv04_instobj *iobj = nv04_instobj(memory); in nv04_instobj_rd32() local 57 struct nvkm_device *device = iobj->imem->base.subdev.device; in nv04_instobj_rd32() 58 return nvkm_rd32(device, 0x700000 + iobj->node->offset + offset); in nv04_instobj_rd32() 75 struct nv04_instobj *iobj = nv04_instobj(memory); in nv04_instobj_acquire() local 76 struct nvkm_device *device = iobj->imem->base.subdev.device; in nv04_instobj_acquire() 77 return device->pri + 0x700000 + iobj->node->offset; in nv04_instobj_acquire() 101 struct nv04_instobj *iobj = nv04_instobj(memory); in nv04_instobj_dtor() local [all …]
|
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.subdev.mutex); in nv40_instobj_dtor() 103 nvkm_mm_free(&iobj->imem->heap, &iobj->node); in nv40_instobj_dtor() 104 mutex_unlock(&iobj->imem->base.subdev.mutex); in nv40_instobj_dtor() [all …]
|