Lines Matching refs:idma
10046 struct sge_idma_monitor_state *idma) in t4_idma_monitor_init() argument
10060 idma->idma_1s_thresh = core_ticks_per_usec(adapter) * 1000000; /* 1s */ in t4_idma_monitor_init()
10061 idma->idma_stalled[0] = 0; in t4_idma_monitor_init()
10062 idma->idma_stalled[1] = 0; in t4_idma_monitor_init()
10073 struct sge_idma_monitor_state *idma, in t4_idma_monitor() argument
10098 if (idma_same_state_cnt[i] < idma->idma_1s_thresh) { in t4_idma_monitor()
10099 if (idma->idma_stalled[i] >= SGE_IDMA_WARN_THRESH * hz) in t4_idma_monitor()
10102 i, idma->idma_qid[i], in t4_idma_monitor()
10103 idma->idma_stalled[i] / hz); in t4_idma_monitor()
10104 idma->idma_stalled[i] = 0; in t4_idma_monitor()
10117 if (idma->idma_stalled[i] == 0) { in t4_idma_monitor()
10118 idma->idma_stalled[i] = hz; in t4_idma_monitor()
10119 idma->idma_warn[i] = 0; in t4_idma_monitor()
10121 idma->idma_stalled[i] += ticks; in t4_idma_monitor()
10122 idma->idma_warn[i] -= ticks; in t4_idma_monitor()
10125 if (idma->idma_stalled[i] < SGE_IDMA_WARN_THRESH * hz) in t4_idma_monitor()
10130 if (idma->idma_warn[i] > 0) in t4_idma_monitor()
10132 idma->idma_warn[i] = SGE_IDMA_WARN_REPEAT * hz; in t4_idma_monitor()
10140 idma->idma_state[i] = (debug0 >> (i * 9)) & 0x3f; in t4_idma_monitor()
10144 idma->idma_qid[i] = (debug11 >> (i * 16)) & 0xffff; in t4_idma_monitor()
10148 i, idma->idma_qid[i], idma->idma_state[i], in t4_idma_monitor()
10149 idma->idma_stalled[i] / hz, in t4_idma_monitor()
10151 t4_sge_decode_idma_state(adapter, idma->idma_state[i]); in t4_idma_monitor()