Lines Matching refs:iobj

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
103 mutex_lock(&iobj->imem->base.mutex); in nv04_instobj_dtor()
104 nvkm_mm_free(&iobj->imem->heap, &iobj->node); in nv04_instobj_dtor()
105 mutex_unlock(&iobj->imem->base.mutex); in nv04_instobj_dtor()
106 nvkm_instobj_dtor(&iobj->imem->base, &iobj->base); in nv04_instobj_dtor()
107 return iobj; in nv04_instobj_dtor()
125 struct nv04_instobj *iobj; in nv04_instobj_new() local
128 if (!(iobj = kzalloc(sizeof(*iobj), GFP_KERNEL))) in nv04_instobj_new()
130 *pmemory = &iobj->base.memory; in nv04_instobj_new()
132 nvkm_instobj_ctor(&nv04_instobj_func, &imem->base, &iobj->base); in nv04_instobj_new()
133 iobj->base.memory.ptrs = &nv04_instobj_ptrs; in nv04_instobj_new()
134 iobj->imem = imem; in nv04_instobj_new()
137 ret = nvkm_mm_head(&imem->heap, 0, 1, size, size, align ? align : 1, &iobj->node); in nv04_instobj_new()
161 struct nvkm_instobj *iobj; in nv04_instmem_resume() local
163 list_for_each_entry(iobj, &imem->boot, head) { in nv04_instmem_resume()
164 if (iobj->suspend) in nv04_instmem_resume()
165 nvkm_instobj_load(iobj); in nv04_instmem_resume()
170 list_for_each_entry(iobj, &imem->list, head) { in nv04_instmem_resume()
171 if (iobj->suspend) in nv04_instmem_resume()
172 nvkm_instobj_load(iobj); in nv04_instmem_resume()
179 struct nvkm_instobj *iobj; in nv04_instmem_suspend() local
181 list_for_each_entry(iobj, &imem->list, head) { in nv04_instmem_suspend()
182 if (iobj->preserve) { in nv04_instmem_suspend()
183 int ret = nvkm_instobj_save(iobj); in nv04_instmem_suspend()
191 list_for_each_entry(iobj, &imem->boot, head) { in nv04_instmem_suspend()
192 int ret = nvkm_instobj_save(iobj); in nv04_instmem_suspend()