Searched refs:gpuobj (Results 1 - 28 of 28) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/
H A Dgpuobj.c24 #include <core/gpuobj.h>
32 nvkm_gpuobj_destroy(struct nvkm_gpuobj *gpuobj) nvkm_gpuobj_destroy() argument
36 if (gpuobj->flags & NVOBJ_FLAG_ZERO_FREE) { nvkm_gpuobj_destroy()
37 for (i = 0; i < gpuobj->size; i += 4) nvkm_gpuobj_destroy()
38 nv_wo32(gpuobj, i, 0x00000000); nvkm_gpuobj_destroy()
41 if (gpuobj->node) nvkm_gpuobj_destroy()
42 nvkm_mm_free(&nv_gpuobj(gpuobj->parent)->heap, &gpuobj->node); nvkm_gpuobj_destroy()
44 if (gpuobj->heap.block_size) nvkm_gpuobj_destroy()
45 nvkm_mm_fini(&gpuobj->heap); nvkm_gpuobj_destroy()
47 nvkm_object_destroy(&gpuobj->object); nvkm_gpuobj_destroy()
58 struct nvkm_gpuobj *gpuobj; nvkm_gpuobj_create_() local
73 nv_error(parent, "no gpuobj heap\n"); nvkm_gpuobj_create_()
103 gpuobj = *pobject; nvkm_gpuobj_create_()
107 gpuobj->parent = pargpu; nvkm_gpuobj_create_()
108 gpuobj->flags = flags; nvkm_gpuobj_create_()
109 gpuobj->addr = addr; nvkm_gpuobj_create_()
110 gpuobj->size = size; nvkm_gpuobj_create_()
114 &gpuobj->node); nvkm_gpuobj_create_()
118 gpuobj->addr += gpuobj->node->offset; nvkm_gpuobj_create_()
121 if (gpuobj->flags & NVOBJ_FLAG_HEAP) { nvkm_gpuobj_create_()
122 ret = nvkm_mm_init(&gpuobj->heap, 0, gpuobj->size, 1); nvkm_gpuobj_create_()
128 for (i = 0; i < gpuobj->size; i += 4) nvkm_gpuobj_create_()
129 nv_wo32(gpuobj, i, 0x00000000); nvkm_gpuobj_create_()
182 struct nvkm_gpuobj *gpuobj = nv_gpuobj(object); _nvkm_gpuobj_rd32() local
183 struct nvkm_ofuncs *pfuncs = nv_ofuncs(gpuobj->parent); _nvkm_gpuobj_rd32()
184 if (gpuobj->node) _nvkm_gpuobj_rd32()
185 addr += gpuobj->node->offset; _nvkm_gpuobj_rd32()
186 return pfuncs->rd32(gpuobj->parent, addr); _nvkm_gpuobj_rd32()
192 struct nvkm_gpuobj *gpuobj = nv_gpuobj(object); _nvkm_gpuobj_wr32() local
193 struct nvkm_ofuncs *pfuncs = nv_ofuncs(gpuobj->parent); _nvkm_gpuobj_wr32()
194 if (gpuobj->node) _nvkm_gpuobj_wr32()
195 addr += gpuobj->node->offset; _nvkm_gpuobj_wr32()
196 pfuncs->wr32(gpuobj->parent, addr, data); _nvkm_gpuobj_wr32()
235 nvkm_gpuobj_map(struct nvkm_gpuobj *gpuobj, u32 access, struct nvkm_vma *vma) nvkm_gpuobj_map() argument
237 struct nvkm_bar *bar = nvkm_bar(gpuobj); nvkm_gpuobj_map()
242 nv_pclass(nv_object(gpuobj), NV_MEMOBJ_CLASS); nvkm_gpuobj_map()
251 nvkm_gpuobj_map_vm(struct nvkm_gpuobj *gpuobj, struct nvkm_vm *vm, nvkm_gpuobj_map_vm() argument
255 nv_pclass(nv_object(gpuobj), NV_MEMOBJ_CLASS); nvkm_gpuobj_map_vm()
259 ret = nvkm_vm_get(vm, gpuobj->size, 12, access, vma); nvkm_gpuobj_map_vm()
284 struct nvkm_gpuobj *gpuobj = (void *)object; nvkm_gpudup_dtor() local
285 nvkm_object_ref(NULL, &gpuobj->parent); nvkm_gpudup_dtor()
286 nvkm_object_destroy(&gpuobj->object); nvkm_gpudup_dtor()
303 struct nvkm_gpuobj *gpuobj; nvkm_gpuobj_dup() local
307 &nvkm_gpudup_oclass, 0, &gpuobj); nvkm_gpuobj_dup()
308 *pgpuobj = gpuobj; nvkm_gpuobj_dup()
312 nvkm_object_ref(nv_object(base), &gpuobj->parent); nvkm_gpuobj_dup()
313 gpuobj->addr = base->addr; nvkm_gpuobj_dup()
314 gpuobj->size = base->size; nvkm_gpuobj_dup()
H A Dengctx.c106 struct nvkm_engine *engine = engctx->gpuobj.object.engine; nvkm_engctx_destroy()
118 if (engctx->gpuobj.size) nvkm_engctx_destroy()
119 nvkm_gpuobj_destroy(&engctx->gpuobj); nvkm_engctx_destroy()
121 nvkm_object_destroy(&engctx->gpuobj.object); nvkm_engctx_destroy()
133 ret = nvkm_gpuobj_init(&engctx->gpuobj); nvkm_engctx_init()
179 return nvkm_gpuobj_fini(&engctx->gpuobj, suspend); nvkm_engctx_fini()
H A Dnamedb.c25 #include <core/gpuobj.h>
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/core/
H A Dramht.h3 #include <core/gpuobj.h>
6 struct nvkm_gpuobj gpuobj; member in struct:nvkm_ramht
18 nvkm_gpuobj_ref(&obj->gpuobj, (struct nvkm_gpuobj **)ref); nvkm_ramht_ref()
H A Dengctx.h3 #include <core/gpuobj.h>
11 struct nvkm_gpuobj gpuobj; member in struct:nvkm_engctx
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/engine/
H A Dfifo.h46 #include <core/gpuobj.h>
49 struct nvkm_gpuobj gpuobj; member in struct:nvkm_fifo_base
55 nvkm_gpuobj_destroy(&(p)->gpuobj)
57 nvkm_gpuobj_init(&(p)->gpuobj)
59 nvkm_gpuobj_fini(&(p)->gpuobj, (s))
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/dmaobj/
H A Dnv04.c26 #include <core/gpuobj.h>
44 struct nvkm_gpuobj *gpuobj; nv04_dmaobj_bind() local
71 ret = nvkm_gpuobj_new(parent, parent, 16, 16, 0, &gpuobj); nv04_dmaobj_bind()
72 *pgpuobj = gpuobj; nv04_dmaobj_bind()
H A Dgf100.c27 #include <core/gpuobj.h>
H A Dgf110.c27 #include <core/gpuobj.h>
H A Dnv50.c27 #include <core/gpuobj.h>
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bar/
H A Dbase.c109 struct nvkm_object *gpuobj; nvkm_bar_alloc() local
111 &nvkm_barobj_oclass, mem, 0, &gpuobj); nvkm_bar_alloc()
113 *pobject = gpuobj; nvkm_bar_alloc()
H A Dgf100.c27 #include <core/gpuobj.h>
H A Dnv50.c27 #include <core/gpuobj.h>
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dctxnv40.h3 #include <core/gpuobj.h>
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dnv04.c27 #include <core/gpuobj.h>
H A Dnv41.c27 #include <core/gpuobj.h>
H A Dgf100.c30 #include <core/gpuobj.h>
H A Dnv44.c27 #include <core/gpuobj.h>
H A Dnv50.c30 #include <core/gpuobj.h>
H A Dbase.c27 #include <core/gpuobj.h>
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/sw/
H A Dnv50.c52 struct nvkm_gpuobj *gpuobj = nv_gpuobj(handle->object); nv50_sw_mthd_dma_vblsem() local
53 chan->vblank.ctxdma = gpuobj->node->offset >> 4; nv50_sw_mthd_dma_vblsem()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dnv17.c191 (priv->ramht->gpuobj.addr >> 8)); nv17_fifo_init()
H A Dg84.c227 (chan->ramht->gpuobj.node->offset >> 4)); g84_fifo_chan_ctor_dma()
302 (chan->ramht->gpuobj.node->offset >> 4)); g84_fifo_chan_ctor_ind()
H A Dnv50.c244 (chan->ramht->gpuobj.node->offset >> 4)); nv50_fifo_chan_ctor_dma()
307 (chan->ramht->gpuobj.node->offset >> 4)); nv50_fifo_chan_ctor_ind()
H A Dnv40.c312 (priv->ramht->gpuobj.addr >> 8)); nv40_fifo_init()
H A Dnv04.c611 (priv->ramht->gpuobj.addr >> 8)); nv04_fifo_init()
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnouveau_drm.c35 #include <core/gpuobj.h>
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dgf110.c29 #include <core/gpuobj.h>

Completed in 444 milliseconds