Lines Matching refs:fifo

49 __acquires(fifo->base.lock)  in nv04_fifo_pause()
51 struct nv04_fifo *fifo = nv04_fifo(base); in nv04_fifo_pause() local
52 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_pause()
55 spin_lock_irqsave(&fifo->base.lock, flags); in nv04_fifo_pause()
85 __releases(fifo->base.lock) in nv04_fifo_start()
87 struct nv04_fifo *fifo = nv04_fifo(base); in nv04_fifo_start() local
88 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_start()
94 spin_unlock_irqrestore(&fifo->base.lock, flags); in nv04_fifo_start()
135 nv04_fifo_cache_error(struct nv04_fifo *fifo, u32 chid, u32 get) in nv04_fifo_cache_error() argument
137 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in nv04_fifo_cache_error()
162 chan = nvkm_fifo_chan_chid(&fifo->base, chid, &flags); in nv04_fifo_cache_error()
167 nvkm_fifo_chan_put(&fifo->base, flags, &chan); in nv04_fifo_cache_error()
186 nv04_fifo_dma_pusher(struct nv04_fifo *fifo, u32 chid) in nv04_fifo_dma_pusher() argument
188 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in nv04_fifo_dma_pusher()
198 chan = nvkm_fifo_chan_chid(&fifo->base, chid, &flags); in nv04_fifo_dma_pusher()
230 nvkm_fifo_chan_put(&fifo->base, flags, &chan); in nv04_fifo_dma_pusher()
240 struct nv04_fifo *fifo = nv04_fifo(base); in nv04_fifo_intr() local
241 struct nvkm_subdev *subdev = &fifo->base.engine.subdev; in nv04_fifo_intr()
250 chid = nvkm_rd32(device, NV03_PFIFO_CACHE1_PUSH1) & (fifo->base.nr - 1); in nv04_fifo_intr()
254 nv04_fifo_cache_error(fifo, chid, get); in nv04_fifo_intr()
259 nv04_fifo_dma_pusher(fifo, chid); in nv04_fifo_intr()
282 nvkm_fifo_uevent(&fifo->base); in nv04_fifo_intr()
299 struct nv04_fifo *fifo = nv04_fifo(base); in nv04_fifo_init() local
300 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_init()
315 nvkm_wr32(device, NV03_PFIFO_CACHE1_PUSH1, fifo->base.nr - 1); in nv04_fifo_init()
330 struct nv04_fifo *fifo; in nv04_fifo_new_() local
333 if (!(fifo = kzalloc(sizeof(*fifo), GFP_KERNEL))) in nv04_fifo_new_()
335 fifo->ramfc = ramfc; in nv04_fifo_new_()
336 *pfifo = &fifo->base; in nv04_fifo_new_()
338 ret = nvkm_fifo_ctor(func, device, index, nr, &fifo->base); in nv04_fifo_new_()
342 set_bit(nr - 1, fifo->base.mask); /* inactive channel */ in nv04_fifo_new_()