Searched refs:ramht (Results 1 - 15 of 15) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/
H A Dramht.c22 #include <core/ramht.h>
28 nvkm_ramht_hash(struct nvkm_ramht *ramht, int chid, u32 handle) nvkm_ramht_hash() argument
33 hash ^= (handle & ((1 << ramht->bits) - 1)); nvkm_ramht_hash()
34 handle >>= ramht->bits; nvkm_ramht_hash()
37 hash ^= chid << (ramht->bits - 4); nvkm_ramht_hash()
43 nvkm_ramht_insert(struct nvkm_ramht *ramht, int chid, u32 handle, u32 context) nvkm_ramht_insert() argument
45 struct nvkm_bar *bar = nvkm_bar(ramht); nvkm_ramht_insert()
48 co = ho = nvkm_ramht_hash(ramht, chid, handle); nvkm_ramht_insert()
50 if (!nv_ro32(ramht, co + 4)) { nvkm_ramht_insert()
51 nv_wo32(ramht, co + 0, handle); nvkm_ramht_insert()
52 nv_wo32(ramht, co + 4, context); nvkm_ramht_insert()
59 if (co >= nv_gpuobj(ramht)->size) nvkm_ramht_insert()
67 nvkm_ramht_remove(struct nvkm_ramht *ramht, int cookie) nvkm_ramht_remove() argument
69 struct nvkm_bar *bar = nvkm_bar(ramht); nvkm_ramht_remove()
70 nv_wo32(ramht, cookie + 0, 0x00000000); nvkm_ramht_remove()
71 nv_wo32(ramht, cookie + 4, 0x00000000); nvkm_ramht_remove()
93 struct nvkm_ramht *ramht; nvkm_ramht_new() local
97 &parent->engine->subdev.object : parent, /* <nv50 ramht */ nvkm_ramht_new()
99 align, NVOBJ_FLAG_ZERO_ALLOC, &ramht); nvkm_ramht_new()
100 *pramht = ramht; nvkm_ramht_new()
104 ramht->bits = order_base_2(nv_gpuobj(ramht)->size >> 3); nvkm_ramht_new()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dnv50.h23 struct nvkm_ramht *ramht; member in struct:nv50_fifo_chan
H A Dnv17.c28 #include <core/ramht.h>
162 nvkm_ramht_ref(imem->ramht, &priv->ramht); nv17_fifo_ctor()
190 ((priv->ramht->bits - 9) << 16) | nv17_fifo_init()
191 (priv->ramht->gpuobj.addr >> 8)); nv17_fifo_init()
H A Dnv40.c29 #include <core/ramht.h>
99 ret = nvkm_ramht_insert(priv->ramht, chid, handle, context); nv40_fifo_object_attach()
281 nvkm_ramht_ref(imem->ramht, &priv->ramht); nv40_fifo_ctor()
311 ((priv->ramht->bits - 9) << 16) | nv40_fifo_init()
312 (priv->ramht->gpuobj.addr >> 8)); nv40_fifo_init()
H A Dnv50.c29 #include <core/ramht.h>
178 return nvkm_ramht_insert(chan->ramht, 0, handle, context); nv50_fifo_object_attach()
185 nvkm_ramht_remove(chan->ramht, cookie); nv50_fifo_object_detach()
227 &chan->ramht); nv50_fifo_chan_ctor_dma()
242 nv_wo32(base->ramfc, 0x80, ((chan->ramht->bits - 9) << 27) | nv50_fifo_chan_ctor_dma()
244 (chan->ramht->gpuobj.node->offset >> 4)); nv50_fifo_chan_ctor_dma()
290 &chan->ramht); nv50_fifo_chan_ctor_ind()
305 nv_wo32(base->ramfc, 0x80, ((chan->ramht->bits - 9) << 27) | nv50_fifo_chan_ctor_ind()
307 (chan->ramht->gpuobj.node->offset >> 4)); nv50_fifo_chan_ctor_ind()
316 nvkm_ramht_ref(NULL, &chan->ramht); nv50_fifo_chan_dtor()
H A Dnv10.c28 #include <core/ramht.h>
155 nvkm_ramht_ref(imem->ramht, &priv->ramht); nv10_fifo_ctor()
H A Dg84.c29 #include <core/ramht.h>
158 return nvkm_ramht_insert(chan->ramht, 0, handle, context); g84_fifo_object_attach()
205 &chan->ramht); g84_fifo_chan_ctor_dma()
225 nv_wo32(base->ramfc, 0x80, ((chan->ramht->bits - 9) << 27) | g84_fifo_chan_ctor_dma()
227 (chan->ramht->gpuobj.node->offset >> 4)); g84_fifo_chan_ctor_dma()
280 &chan->ramht); g84_fifo_chan_ctor_ind()
300 nv_wo32(base->ramfc, 0x80, ((chan->ramht->bits - 9) << 27) | g84_fifo_chan_ctor_ind()
302 (chan->ramht->gpuobj.node->offset >> 4)); g84_fifo_chan_ctor_ind()
H A Dnv04.c30 #include <core/ramht.h>
87 ret = nvkm_ramht_insert(priv->ramht, chid, handle, context); nv04_fifo_object_attach()
97 nvkm_ramht_remove(priv->ramht, cookie); nv04_fifo_object_detach()
572 nvkm_ramht_ref(imem->ramht, &priv->ramht); nv04_fifo_ctor()
592 nvkm_ramht_ref(NULL, &priv->ramht); nv04_fifo_dtor()
610 ((priv->ramht->bits - 9) << 16) | nv04_fifo_init()
611 (priv->ramht->gpuobj.addr >> 8)); nv04_fifo_init()
H A Dnv04.h145 struct nvkm_ramht *ramht; member in struct:nv04_fifo_priv
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
H A Dnv04.h16 struct nvkm_ramht *ramht; member in struct:nv04_instmem_priv
H A Dnv04.c26 #include <core/ramht.h>
127 nvkm_ramht_ref(NULL, &priv->ramht); nv04_instmem_dtor()
162 ret = nvkm_ramht_new(nv_object(priv), NULL, 0x08000, 0, &priv->ramht); nv04_instmem_ctor()
H A Dnv40.c26 #include <core/ramht.h>
101 ret = nvkm_ramht_new(nv_object(priv), NULL, 0x08000, 0, &priv->ramht); nv40_instmem_ctor()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dnv50.h80 struct nvkm_ramht *ramht; member in struct:nv50_disp_base
H A Dnv50.c33 #include <core/ramht.h>
195 return nvkm_ramht_insert(base->ramht, chid, name, data); nv50_disp_dmac_object_attach()
202 nvkm_ramht_remove(base->ramht, cookie); nv50_disp_dmac_object_detach()
1121 &base->ramht); nv50_disp_main_ctor()
1128 nvkm_ramht_ref(NULL, &base->ramht); nv50_disp_main_dtor()
1192 nv_wr32(priv, 0x610010, (nv_gpuobj(base->ramht)->addr >> 8) | 9); nv50_disp_main_init()
H A Dgf110.c30 #include <core/ramht.h>
81 return nvkm_ramht_insert(base->ramht, chan->chid, name, data); gf110_disp_dmac_object_attach()
88 nvkm_ramht_remove(base->ramht, cookie); gf110_disp_dmac_object_detach()

Completed in 185 milliseconds