Lines Matching defs:idma
8121 * t4_sge_decode_idma_state - decode the idma state
8123 * @state: the state idma is stuck in
8268 CH_WARN(adapter, "idma state %s\n", sge_idma_decode[state]);
8270 CH_WARN(adapter, "idma state %d unknown\n", state);
11355 * @idma: the adapter IDMA Monitor state
11360 struct sge_idma_monitor_state *idma)
11374 idma->idma_1s_thresh = core_ticks_per_usec(adapter) * 1000000; /* 1s */
11375 idma->idma_stalled[0] = idma->idma_stalled[1] = 0;
11381 * @idma: the adapter IDMA Monitor state
11386 struct sge_idma_monitor_state *idma,
11411 if (idma_same_state_cnt[i] < idma->idma_1s_thresh) {
11412 if (idma->idma_stalled[i] >= SGE_IDMA_WARN_THRESH*hz)
11413 CH_WARN(adapter, "SGE idma%d, queue %u, "
11415 i, idma->idma_qid[i],
11416 idma->idma_stalled[i]/hz);
11417 idma->idma_stalled[i] = 0;
11430 if (idma->idma_stalled[i] == 0) {
11431 idma->idma_stalled[i] = hz;
11432 idma->idma_warn[i] = 0;
11434 idma->idma_stalled[i] += ticks;
11435 idma->idma_warn[i] -= ticks;
11438 if (idma->idma_stalled[i] < SGE_IDMA_WARN_THRESH*hz)
11443 if (idma->idma_warn[i] > 0)
11445 idma->idma_warn[i] = SGE_IDMA_WARN_REPEAT*hz;
11453 idma->idma_state[i] = (debug0 >> (i * 9)) & 0x3f;
11457 idma->idma_qid[i] = (debug11 >> (i * 16)) & 0xffff;
11459 CH_WARN(adapter, "SGE idma%u, queue %u, potentially stuck in "
11461 i, idma->idma_qid[i], idma->idma_state[i],
11462 idma->idma_stalled[i]/hz,
11464 t4_sge_decode_idma_state(adapter, idma->idma_state[i]);