Lines Matching refs:dma
65 val > chan->push.addr + (chan->dma.max << 2)) in READ_GET()
76 int ip = (chan->dma.ib_put * 2) + chan->dma.ib_base; in nv50_dma_push()
78 BUG_ON(chan->dma.ib_free < 1); in nv50_dma_push()
83 chan->dma.ib_put = (chan->dma.ib_put + 1) & chan->dma.ib_max; in nv50_dma_push()
89 nvif_wr32(&chan->user, 0x8c, chan->dma.ib_put); in nv50_dma_push()
92 chan->dma.ib_free--; in nv50_dma_push()
100 while (chan->dma.ib_free < count) { in nv50_dma_push_wait()
113 chan->dma.ib_free = get - chan->dma.ib_put; in nv50_dma_push_wait()
114 if (chan->dma.ib_free <= 0) in nv50_dma_push_wait()
115 chan->dma.ib_free += chan->dma.ib_max; in nv50_dma_push_wait()
131 while (chan->dma.free < count) { in nv50_dma_wait()
140 if (get <= chan->dma.cur) { in nv50_dma_wait()
141 chan->dma.free = chan->dma.max - chan->dma.cur; in nv50_dma_wait()
142 if (chan->dma.free >= count) in nv50_dma_wait()
154 chan->dma.cur = 0; in nv50_dma_wait()
155 chan->dma.put = 0; in nv50_dma_wait()
158 chan->dma.free = get - chan->dma.cur - 1; in nv50_dma_wait()
170 if (chan->dma.ib_max) in nouveau_dma_wait()
173 while (chan->dma.free < size) { in nouveau_dma_wait()
190 if (get <= chan->dma.cur) { in nouveau_dma_wait()
204 chan->dma.free = chan->dma.max - chan->dma.cur; in nouveau_dma_wait()
205 if (chan->dma.free >= size) in nouveau_dma_wait()
231 chan->dma.cur = in nouveau_dma_wait()
232 chan->dma.put = NOUVEAU_DMA_SKIPS; in nouveau_dma_wait()
241 chan->dma.free = get - chan->dma.cur - 1; in nouveau_dma_wait()