Lines Matching refs:idma
9776 struct sge_idma_monitor_state *idma) in t4_idma_monitor_init() argument
9790 idma->idma_1s_thresh = core_ticks_per_usec(adapter) * 1000000; /* 1s */ in t4_idma_monitor_init()
9791 idma->idma_stalled[0] = 0; in t4_idma_monitor_init()
9792 idma->idma_stalled[1] = 0; in t4_idma_monitor_init()
9803 struct sge_idma_monitor_state *idma, in t4_idma_monitor() argument
9828 if (idma_same_state_cnt[i] < idma->idma_1s_thresh) { in t4_idma_monitor()
9829 if (idma->idma_stalled[i] >= SGE_IDMA_WARN_THRESH * hz) in t4_idma_monitor()
9832 i, idma->idma_qid[i], in t4_idma_monitor()
9833 idma->idma_stalled[i] / hz); in t4_idma_monitor()
9834 idma->idma_stalled[i] = 0; in t4_idma_monitor()
9847 if (idma->idma_stalled[i] == 0) { in t4_idma_monitor()
9848 idma->idma_stalled[i] = hz; in t4_idma_monitor()
9849 idma->idma_warn[i] = 0; in t4_idma_monitor()
9851 idma->idma_stalled[i] += ticks; in t4_idma_monitor()
9852 idma->idma_warn[i] -= ticks; in t4_idma_monitor()
9855 if (idma->idma_stalled[i] < SGE_IDMA_WARN_THRESH * hz) in t4_idma_monitor()
9860 if (idma->idma_warn[i] > 0) in t4_idma_monitor()
9862 idma->idma_warn[i] = SGE_IDMA_WARN_REPEAT * hz; in t4_idma_monitor()
9870 idma->idma_state[i] = (debug0 >> (i * 9)) & 0x3f; in t4_idma_monitor()
9874 idma->idma_qid[i] = (debug11 >> (i * 16)) & 0xffff; in t4_idma_monitor()
9878 i, idma->idma_qid[i], idma->idma_state[i], in t4_idma_monitor()
9879 idma->idma_stalled[i] / hz, in t4_idma_monitor()
9881 t4_sge_decode_idma_state(adapter, idma->idma_state[i]); in t4_idma_monitor()