Lines Matching refs:stat
206 u32 stat = nvkm_rd32(engn->runl->fifo->engine.subdev.device, 0x002640 + (engn->id * 0x08)); in gk104_engn_status() local
208 status->busy = !!(stat & 0x80000000); in gk104_engn_status()
209 status->faulted = !!(stat & 0x40000000); in gk104_engn_status()
210 status->next.tsg = !!(stat & 0x10000000); in gk104_engn_status()
211 status->next.id = (stat & 0x0fff0000) >> 16; in gk104_engn_status()
212 status->chsw = !!(stat & 0x00008000); in gk104_engn_status()
213 status->save = !!(stat & 0x00004000); in gk104_engn_status()
214 status->load = !!(stat & 0x00002000); in gk104_engn_status()
215 status->prev.tsg = !!(stat & 0x00001000); in gk104_engn_status()
216 status->prev.id = (stat & 0x00000fff); in gk104_engn_status()
237 stat, status->busy, status->faulted, status->chsw, status->save, status->load, in gk104_engn_status()
312 u32 stat = nvkm_rd32(device, 0x040148 + (runq->id * 0x2000)) & mask; in gk104_runq_intr_1() local
316 if (stat & 0x80000000) { in gk104_runq_intr_1()
319 stat &= ~0x80000000; in gk104_runq_intr_1()
322 if (stat) { in gk104_runq_intr_1()
323 nvkm_snprintbf(msg, sizeof(msg), gk104_runq_intr_1_names, stat); in gk104_runq_intr_1()
325 runq->id, stat, msg, chid, in gk104_runq_intr_1()
330 nvkm_wr32(device, 0x040148 + (runq->id * 0x2000), stat); in gk104_runq_intr_1()
624 u32 stat = nvkm_rd32(device, 0x00256c); in gk104_fifo_intr_chsw() local
626 nvkm_error(subdev, "CHSW_ERROR %08x\n", stat); in gk104_fifo_intr_chsw()
627 nvkm_wr32(device, 0x00256c, stat); in gk104_fifo_intr_chsw()
634 u32 stat = nvkm_rd32(subdev->device, 0x00259c); in gk104_fifo_intr_dropped_fault() local
636 nvkm_error(subdev, "DROPPED_MMU_FAULT %08x\n", stat); in gk104_fifo_intr_dropped_fault()
658 u32 stat = nvkm_rd32(device, 0x002100) & mask; in gk104_fifo_intr() local
660 if (stat & 0x00000001) { in gk104_fifo_intr()
663 stat &= ~0x00000001; in gk104_fifo_intr()
666 if (stat & 0x00000010) { in gk104_fifo_intr()
669 stat &= ~0x00000010; in gk104_fifo_intr()
672 if (stat & 0x00000100) { in gk104_fifo_intr()
675 stat &= ~0x00000100; in gk104_fifo_intr()
678 if (stat & 0x00010000) { in gk104_fifo_intr()
681 stat &= ~0x00010000; in gk104_fifo_intr()
684 if (stat & 0x00800000) { in gk104_fifo_intr()
687 stat &= ~0x00800000; in gk104_fifo_intr()
690 if (stat & 0x01000000) { in gk104_fifo_intr()
693 stat &= ~0x01000000; in gk104_fifo_intr()
696 if (stat & 0x08000000) { in gk104_fifo_intr()
699 stat &= ~0x08000000; in gk104_fifo_intr()
702 if (stat & 0x10000000) { in gk104_fifo_intr()
704 stat &= ~0x10000000; in gk104_fifo_intr()
707 if (stat & 0x20000000) { in gk104_fifo_intr()
709 stat &= ~0x20000000; in gk104_fifo_intr()
712 if (stat & 0x40000000) { in gk104_fifo_intr()
714 stat &= ~0x40000000; in gk104_fifo_intr()
717 if (stat & 0x80000000) { in gk104_fifo_intr()
720 stat &= ~0x80000000; in gk104_fifo_intr()
723 if (stat) { in gk104_fifo_intr()
724 nvkm_error(subdev, "INTR %08x\n", stat); in gk104_fifo_intr()
726 nvkm_mask(device, 0x002140, stat, 0x00000000); in gk104_fifo_intr()
728 nvkm_wr32(device, 0x002100, stat); in gk104_fifo_intr()