Lines Matching refs:fctx
34 struct nv84_fence_chan *fctx = chan->fence; in nv84_fence_crtc() local
35 return fctx->dispc_vma[crtc].offset; in nv84_fence_crtc()
77 struct nv84_fence_chan *fctx = chan->fence; in nv84_fence_emit() local
81 addr += fctx->vma_gart.offset; in nv84_fence_emit()
83 addr += fctx->vma.offset; in nv84_fence_emit()
85 return fctx->base.emit32(chan, addr, fence->base.seqno); in nv84_fence_emit()
92 struct nv84_fence_chan *fctx = chan->fence; in nv84_fence_sync() local
96 addr += fctx->vma_gart.offset; in nv84_fence_sync()
98 addr += fctx->vma.offset; in nv84_fence_sync()
100 return fctx->base.sync32(chan, addr, fence->base.seqno); in nv84_fence_sync()
115 struct nv84_fence_chan *fctx = chan->fence; in nv84_fence_context_del() local
120 nouveau_bo_vma_del(bo, &fctx->dispc_vma[i]); in nv84_fence_context_del()
123 nouveau_bo_wr32(priv->bo, chan->chid * 16 / 4, fctx->base.sequence); in nv84_fence_context_del()
124 nouveau_bo_vma_del(priv->bo, &fctx->vma_gart); in nv84_fence_context_del()
125 nouveau_bo_vma_del(priv->bo, &fctx->vma); in nv84_fence_context_del()
126 nouveau_fence_context_del(&fctx->base); in nv84_fence_context_del()
128 nouveau_fence_context_free(&fctx->base); in nv84_fence_context_del()
136 struct nv84_fence_chan *fctx; in nv84_fence_context_new() local
139 fctx = chan->fence = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv84_fence_context_new()
140 if (!fctx) in nv84_fence_context_new()
143 nouveau_fence_context_new(chan, &fctx->base); in nv84_fence_context_new()
144 fctx->base.emit = nv84_fence_emit; in nv84_fence_context_new()
145 fctx->base.sync = nv84_fence_sync; in nv84_fence_context_new()
146 fctx->base.read = nv84_fence_read; in nv84_fence_context_new()
147 fctx->base.emit32 = nv84_fence_emit32; in nv84_fence_context_new()
148 fctx->base.sync32 = nv84_fence_sync32; in nv84_fence_context_new()
149 fctx->base.sequence = nv84_fence_read(chan); in nv84_fence_context_new()
151 ret = nouveau_bo_vma_add(priv->bo, cli->vm, &fctx->vma); in nv84_fence_context_new()
154 &fctx->vma_gart); in nv84_fence_context_new()
160 ret = nouveau_bo_vma_add(bo, cli->vm, &fctx->dispc_vma[i]); in nv84_fence_context_new()