Lines Matching refs:get
116 uint32_t get = nvif_rd32(chan, 0x88); in nv50_dma_push_wait() local
117 if (get != prev_get) { in nv50_dma_push_wait()
118 prev_get = get; in nv50_dma_push_wait()
128 chan->dma.ib_free = get - chan->dma.ib_put; in nv50_dma_push_wait()
147 int get = READ_GET(chan, &prev_get, &cnt); in nv50_dma_wait() local
148 if (unlikely(get < 0)) { in nv50_dma_wait()
149 if (get == -EINVAL) in nv50_dma_wait()
152 return get; in nv50_dma_wait()
155 if (get <= chan->dma.cur) { in nv50_dma_wait()
162 get = READ_GET(chan, &prev_get, &cnt); in nv50_dma_wait()
163 if (unlikely(get < 0)) { in nv50_dma_wait()
164 if (get == -EINVAL) in nv50_dma_wait()
166 return get; in nv50_dma_wait()
168 } while (get == 0); in nv50_dma_wait()
173 chan->dma.free = get - chan->dma.cur - 1; in nv50_dma_wait()
183 int cnt = 0, get; in nouveau_dma_wait() local
189 get = READ_GET(chan, &prev_get, &cnt); in nouveau_dma_wait()
190 if (unlikely(get == -EBUSY)) in nouveau_dma_wait()
202 if (unlikely(get == -EINVAL) || get < NOUVEAU_DMA_SKIPS) in nouveau_dma_wait()
205 if (get <= chan->dma.cur) { in nouveau_dma_wait()
235 get = READ_GET(chan, &prev_get, &cnt); in nouveau_dma_wait()
236 if (unlikely(get == -EBUSY)) in nouveau_dma_wait()
238 if (unlikely(get == -EINVAL)) in nouveau_dma_wait()
240 } while (get <= NOUVEAU_DMA_SKIPS); in nouveau_dma_wait()
256 chan->dma.free = get - chan->dma.cur - 1; in nouveau_dma_wait()