/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | ramht.c | 22 #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 D | nv50.h | 23 struct nvkm_ramht *ramht; member in struct:nv50_fifo_chan
|
H A D | nv17.c | 28 #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 D | nv40.c | 29 #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 D | nv50.c | 29 #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 D | nv10.c | 28 #include <core/ramht.h> 155 nvkm_ramht_ref(imem->ramht, &priv->ramht); nv10_fifo_ctor()
|
H A D | g84.c | 29 #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 D | nv04.c | 30 #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 D | nv04.h | 145 struct nvkm_ramht *ramht; member in struct:nv04_fifo_priv
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
H A D | nv04.h | 16 struct nvkm_ramht *ramht; member in struct:nv04_instmem_priv
|
H A D | nv04.c | 26 #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 D | nv40.c | 26 #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 D | nv50.h | 80 struct nvkm_ramht *ramht; member in struct:nv50_disp_base
|
H A D | nv50.c | 33 #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 D | gf110.c | 30 #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()
|