Lines Matching refs:get
104 uint32_t get = nvif_rd32(chan->userd, 0x88); in nv50_dma_push_wait() local
105 if (get != prev_get) { in nv50_dma_push_wait()
106 prev_get = get; in nv50_dma_push_wait()
116 chan->dma.ib_free = get - chan->dma.ib_put; in nv50_dma_push_wait()
135 int get = READ_GET(chan, &prev_get, &cnt); in nv50_dma_wait() local
136 if (unlikely(get < 0)) { in nv50_dma_wait()
137 if (get == -EINVAL) in nv50_dma_wait()
140 return get; in nv50_dma_wait()
143 if (get <= chan->dma.cur) { in nv50_dma_wait()
150 get = READ_GET(chan, &prev_get, &cnt); in nv50_dma_wait()
151 if (unlikely(get < 0)) { in nv50_dma_wait()
152 if (get == -EINVAL) in nv50_dma_wait()
154 return get; in nv50_dma_wait()
156 } while (get == 0); in nv50_dma_wait()
161 chan->dma.free = get - chan->dma.cur - 1; in nv50_dma_wait()
171 int cnt = 0, get; in nouveau_dma_wait() local
177 get = READ_GET(chan, &prev_get, &cnt); in nouveau_dma_wait()
178 if (unlikely(get == -EBUSY)) in nouveau_dma_wait()
190 if (unlikely(get == -EINVAL) || get < NOUVEAU_DMA_SKIPS) in nouveau_dma_wait()
193 if (get <= chan->dma.cur) { in nouveau_dma_wait()
223 get = READ_GET(chan, &prev_get, &cnt); in nouveau_dma_wait()
224 if (unlikely(get == -EBUSY)) in nouveau_dma_wait()
226 if (unlikely(get == -EINVAL)) in nouveau_dma_wait()
228 } while (get <= NOUVEAU_DMA_SKIPS); in nouveau_dma_wait()
244 chan->dma.free = get - chan->dma.cur - 1; in nouveau_dma_wait()