Searched refs:gpuobj (Results 1 – 12 of 12) sorted by relevance
/linux-3.4.99/drivers/gpu/drm/nouveau/ |
D | nouveau_object.c | 174 struct nouveau_gpuobj *gpuobj; in nouveau_gpuobj_new() local 181 gpuobj = kzalloc(sizeof(*gpuobj), GFP_KERNEL); in nouveau_gpuobj_new() 182 if (!gpuobj) in nouveau_gpuobj_new() 184 NV_DEBUG(dev, "gpuobj %p\n", gpuobj); in nouveau_gpuobj_new() 185 gpuobj->dev = dev; in nouveau_gpuobj_new() 186 gpuobj->flags = flags; in nouveau_gpuobj_new() 187 kref_init(&gpuobj->refcount); in nouveau_gpuobj_new() 188 gpuobj->size = size; in nouveau_gpuobj_new() 191 list_add_tail(&gpuobj->list, &dev_priv->gpuobj_list); in nouveau_gpuobj_new() 199 nouveau_gpuobj_ref(NULL, &gpuobj); in nouveau_gpuobj_new() [all …]
|
D | nouveau_ramht.c | 85 struct nouveau_gpuobj *gpuobj) in nouveau_ramht_insert() argument 91 struct nouveau_gpuobj *ramht = chan->ramht->gpuobj; in nouveau_ramht_insert() 102 entry->gpuobj = NULL; in nouveau_ramht_insert() 104 nouveau_gpuobj_ref(gpuobj, &entry->gpuobj); in nouveau_ramht_insert() 107 ctx = NV_RAMHT_CONTEXT_VALID | (gpuobj->pinst >> 4) | in nouveau_ramht_insert() 109 (gpuobj->engine << NV_RAMHT_CONTEXT_ENGINE_SHIFT); in nouveau_ramht_insert() 112 ctx = (gpuobj->pinst >> 4) | in nouveau_ramht_insert() 114 (gpuobj->engine << NV40_RAMHT_CONTEXT_ENGINE_SHIFT); in nouveau_ramht_insert() 116 if (gpuobj->engine == NVOBJ_ENGINE_DISPLAY) { in nouveau_ramht_insert() 117 ctx = (gpuobj->cinst << 10) | in nouveau_ramht_insert() [all …]
|
D | nv04_instmem.c | 140 nv04_instmem_get(struct nouveau_gpuobj *gpuobj, struct nouveau_channel *chan, in nv04_instmem_get() argument 143 struct drm_nouveau_private *dev_priv = gpuobj->dev->dev_private; in nv04_instmem_get() 161 gpuobj->node = ramin; in nv04_instmem_get() 162 gpuobj->vinst = ramin->start; in nv04_instmem_get() 167 nv04_instmem_put(struct nouveau_gpuobj *gpuobj) in nv04_instmem_put() argument 169 struct drm_nouveau_private *dev_priv = gpuobj->dev->dev_private; in nv04_instmem_put() 172 drm_mm_put_block(gpuobj->node); in nv04_instmem_put() 173 gpuobj->node = NULL; in nv04_instmem_put() 178 nv04_instmem_map(struct nouveau_gpuobj *gpuobj) in nv04_instmem_map() argument 180 gpuobj->pinst = gpuobj->vinst; in nv04_instmem_map() [all …]
|
D | nv50_instmem.c | 309 nv50_instmem_get(struct nouveau_gpuobj *gpuobj, struct nouveau_channel *chan, in nv50_instmem_get() argument 312 struct drm_device *dev = gpuobj->dev; in nv50_instmem_get() 332 gpuobj->vinst = node->vram->offset; in nv50_instmem_get() 334 if (gpuobj->flags & NVOBJ_FLAG_VM) { in nv50_instmem_get() 336 if (!(gpuobj->flags & NVOBJ_FLAG_VM_USER)) in nv50_instmem_get() 348 gpuobj->linst = node->chan_vma.offset; in nv50_instmem_get() 351 gpuobj->size = size; in nv50_instmem_get() 352 gpuobj->node = node; in nv50_instmem_get() 357 nv50_instmem_put(struct nouveau_gpuobj *gpuobj) in nv50_instmem_put() argument 359 struct drm_device *dev = gpuobj->dev; in nv50_instmem_put() [all …]
|
D | nouveau_sgdma.c | 37 struct nouveau_gpuobj *gpuobj = dev_priv->gart_info.sg_ctxdma; in nv04_sgdma_bind() local 49 nv_wo32(gpuobj, (pte * 4) + 0, offset_l | 3); in nv04_sgdma_bind() 63 struct nouveau_gpuobj *gpuobj = dev_priv->gart_info.sg_ctxdma; in nv04_sgdma_unbind() local 74 nv_wo32(gpuobj, (pte * 4) + 0, 0x00000000); in nv04_sgdma_unbind() 337 struct nouveau_gpuobj *gpuobj = NULL; in nouveau_sgdma_init() local 382 NVOBJ_FLAG_ZERO_FREE, &gpuobj); in nouveau_sgdma_init() 388 dev_priv->gart_info.sg_ctxdma = gpuobj; in nouveau_sgdma_init() 395 NVOBJ_FLAG_ZERO_FREE, &gpuobj); in nouveau_sgdma_init() 401 nv_wo32(gpuobj, 0, NV_CLASS_DMA_IN_MEMORY | in nouveau_sgdma_init() 406 nv_wo32(gpuobj, 4, aper_size - 1); in nouveau_sgdma_init() [all …]
|
D | nouveau_ramht.h | 31 struct nouveau_gpuobj *gpuobj; member 39 struct nouveau_gpuobj *gpuobj; member
|
D | nouveau_notifier.c | 101 struct nouveau_gpuobj *gpuobj) in nouveau_notifier_gpuobj_dtor() argument 105 if (gpuobj->priv) in nouveau_notifier_gpuobj_dtor() 106 drm_mm_put_block(gpuobj->priv); in nouveau_notifier_gpuobj_dtor()
|
D | nv50_graph.c | 346 struct nouveau_gpuobj *gpuobj; in nv50_graph_nvsw_dma_vblsem() local 348 gpuobj = nouveau_ramht_find(chan, data); in nv50_graph_nvsw_dma_vblsem() 349 if (!gpuobj) in nv50_graph_nvsw_dma_vblsem() 352 if (nouveau_notifier_offset(gpuobj, NULL)) in nv50_graph_nvsw_dma_vblsem() 355 chan->nvsw.vblsem = gpuobj; in nv50_graph_nvsw_dma_vblsem()
|
D | nv10_fifo.c | 201 (dev_priv->ramht->gpuobj->pinst >> 8)); in nv10_fifo_init_ramxx()
|
D | nv40_fifo.c | 240 (dev_priv->ramht->gpuobj->pinst >> 8)); in nv40_fifo_init_ramxx()
|
D | nv04_fifo.c | 289 (dev_priv->ramht->gpuobj->pinst >> 8)); in nv04_fifo_init_ramxx()
|
D | nv50_fifo.c | 277 (chan->ramht->gpuobj->cinst >> 4)); in nv50_fifo_create_context()
|