Lines Matching refs:iobj
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
102 mutex_lock(&iobj->imem->base.subdev.mutex); in nv04_instobj_dtor()
103 nvkm_mm_free(&iobj->imem->heap, &iobj->node); in nv04_instobj_dtor()
104 mutex_unlock(&iobj->imem->base.subdev.mutex); in nv04_instobj_dtor()
105 nvkm_instobj_dtor(&iobj->imem->base, &iobj->base); in nv04_instobj_dtor()
106 return iobj; in nv04_instobj_dtor()
124 struct nv04_instobj *iobj; in nv04_instobj_new() local
127 if (!(iobj = kzalloc(sizeof(*iobj), GFP_KERNEL))) in nv04_instobj_new()
129 *pmemory = &iobj->base.memory; in nv04_instobj_new()
131 nvkm_instobj_ctor(&nv04_instobj_func, &imem->base, &iobj->base); in nv04_instobj_new()
132 iobj->base.memory.ptrs = &nv04_instobj_ptrs; in nv04_instobj_new()
133 iobj->imem = imem; in nv04_instobj_new()
137 align ? align : 1, &iobj->node); in nv04_instobj_new()