Lines Matching refs:idma
10044 struct sge_idma_monitor_state *idma) in t4_idma_monitor_init() argument
10058 idma->idma_1s_thresh = core_ticks_per_usec(adapter) * 1000000; /* 1s */ in t4_idma_monitor_init()
10059 idma->idma_stalled[0] = 0; in t4_idma_monitor_init()
10060 idma->idma_stalled[1] = 0; in t4_idma_monitor_init()
10071 struct sge_idma_monitor_state *idma, in t4_idma_monitor() argument
10096 if (idma_same_state_cnt[i] < idma->idma_1s_thresh) { in t4_idma_monitor()
10097 if (idma->idma_stalled[i] >= SGE_IDMA_WARN_THRESH * hz) in t4_idma_monitor()
10100 i, idma->idma_qid[i], in t4_idma_monitor()
10101 idma->idma_stalled[i] / hz); in t4_idma_monitor()
10102 idma->idma_stalled[i] = 0; in t4_idma_monitor()
10115 if (idma->idma_stalled[i] == 0) { in t4_idma_monitor()
10116 idma->idma_stalled[i] = hz; in t4_idma_monitor()
10117 idma->idma_warn[i] = 0; in t4_idma_monitor()
10119 idma->idma_stalled[i] += ticks; in t4_idma_monitor()
10120 idma->idma_warn[i] -= ticks; in t4_idma_monitor()
10123 if (idma->idma_stalled[i] < SGE_IDMA_WARN_THRESH * hz) in t4_idma_monitor()
10128 if (idma->idma_warn[i] > 0) in t4_idma_monitor()
10130 idma->idma_warn[i] = SGE_IDMA_WARN_REPEAT * hz; in t4_idma_monitor()
10138 idma->idma_state[i] = (debug0 >> (i * 9)) & 0x3f; in t4_idma_monitor()
10142 idma->idma_qid[i] = (debug11 >> (i * 16)) & 0xffff; in t4_idma_monitor()
10146 i, idma->idma_qid[i], idma->idma_state[i], in t4_idma_monitor()
10147 idma->idma_stalled[i] / hz, in t4_idma_monitor()
10149 t4_sge_decode_idma_state(adapter, idma->idma_state[i]); in t4_idma_monitor()