Lines Matching refs:iobj
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()
105 nvkm_instobj_dtor(&iobj->imem->base, &iobj->base); in nv40_instobj_dtor()
106 return iobj; in nv40_instobj_dtor()
124 struct nv40_instobj *iobj; in nv40_instobj_new() local
127 if (!(iobj = kzalloc(sizeof(*iobj), GFP_KERNEL))) in nv40_instobj_new()
129 *pmemory = &iobj->base.memory; in nv40_instobj_new()
131 nvkm_instobj_ctor(&nv40_instobj_func, &imem->base, &iobj->base); in nv40_instobj_new()
132 iobj->base.memory.ptrs = &nv40_instobj_ptrs; in nv40_instobj_new()
133 iobj->imem = imem; in nv40_instobj_new()
136 ret = nvkm_mm_head(&imem->heap, 0, 1, size, size, align ? align : 1, &iobj->node); in nv40_instobj_new()