Lines Matching refs:qtest

5715 	struct bfa_diag_qtest_result_s *res = fcdiag->qtest.result;  in bfa_fcdiag_queuetest_timeout()
5717 bfa_trc(fcdiag, fcdiag->qtest.all); in bfa_fcdiag_queuetest_timeout()
5718 bfa_trc(fcdiag, fcdiag->qtest.count); in bfa_fcdiag_queuetest_timeout()
5720 fcdiag->qtest.timer_active = 0; in bfa_fcdiag_queuetest_timeout()
5723 res->count = QTEST_CNT_DEFAULT - fcdiag->qtest.count; in bfa_fcdiag_queuetest_timeout()
5724 if (fcdiag->qtest.all) in bfa_fcdiag_queuetest_timeout()
5725 res->queue = fcdiag->qtest.all; in bfa_fcdiag_queuetest_timeout()
5728 fcdiag->qtest.status = BFA_STATUS_ETIMER; in bfa_fcdiag_queuetest_timeout()
5729 fcdiag->qtest.cbfn(fcdiag->qtest.cbarg, fcdiag->qtest.status); in bfa_fcdiag_queuetest_timeout()
5730 fcdiag->qtest.lock = 0; in bfa_fcdiag_queuetest_timeout()
5739 req = bfa_reqq_next(fcdiag->bfa, fcdiag->qtest.queue); in bfa_fcdiag_queuetest_send()
5750 bfa_trc(fcdiag, fcdiag->qtest.queue); in bfa_fcdiag_queuetest_send()
5752 bfa_reqq_produce(fcdiag->bfa, fcdiag->qtest.queue, req->mh); in bfa_fcdiag_queuetest_send()
5760 struct bfa_diag_qtest_result_s *res = fcdiag->qtest.result; in bfa_fcdiag_queuetest_comp()
5765 if (!fcdiag->qtest.timer_active) { in bfa_fcdiag_queuetest_comp()
5766 bfa_trc(fcdiag, fcdiag->qtest.timer_active); in bfa_fcdiag_queuetest_comp()
5771 fcdiag->qtest.count--; in bfa_fcdiag_queuetest_comp()
5782 if (fcdiag->qtest.count > 0) { in bfa_fcdiag_queuetest_comp()
5788 } else if (fcdiag->qtest.all > 0 && in bfa_fcdiag_queuetest_comp()
5789 fcdiag->qtest.queue < (BFI_IOC_MAX_CQS - 1)) { in bfa_fcdiag_queuetest_comp()
5790 fcdiag->qtest.count = QTEST_CNT_DEFAULT; in bfa_fcdiag_queuetest_comp()
5791 fcdiag->qtest.queue++; in bfa_fcdiag_queuetest_comp()
5801 if (fcdiag->qtest.timer_active) { in bfa_fcdiag_queuetest_comp()
5802 bfa_timer_stop(&fcdiag->qtest.timer); in bfa_fcdiag_queuetest_comp()
5803 fcdiag->qtest.timer_active = 0; in bfa_fcdiag_queuetest_comp()
5805 res->queue = fcdiag->qtest.queue; in bfa_fcdiag_queuetest_comp()
5806 res->count = QTEST_CNT_DEFAULT - fcdiag->qtest.count; in bfa_fcdiag_queuetest_comp()
5809 fcdiag->qtest.status = res->status; in bfa_fcdiag_queuetest_comp()
5810 fcdiag->qtest.cbfn(fcdiag->qtest.cbarg, fcdiag->qtest.status); in bfa_fcdiag_queuetest_comp()
5811 fcdiag->qtest.lock = 0; in bfa_fcdiag_queuetest_comp()
6032 if (fcdiag->qtest.lock) { in bfa_fcdiag_queuetest()
6033 bfa_trc(fcdiag, fcdiag->qtest.lock); in bfa_fcdiag_queuetest()
6038 fcdiag->qtest.lock = 1; in bfa_fcdiag_queuetest()
6039 fcdiag->qtest.cbfn = cbfn; in bfa_fcdiag_queuetest()
6040 fcdiag->qtest.cbarg = cbarg; in bfa_fcdiag_queuetest()
6041 fcdiag->qtest.result = result; in bfa_fcdiag_queuetest()
6042 fcdiag->qtest.count = QTEST_CNT_DEFAULT; in bfa_fcdiag_queuetest()
6045 fcdiag->qtest.result->status = BFA_STATUS_OK; in bfa_fcdiag_queuetest()
6046 fcdiag->qtest.result->count = 0; in bfa_fcdiag_queuetest()
6050 fcdiag->qtest.result->queue = (u8)queue; in bfa_fcdiag_queuetest()
6051 fcdiag->qtest.queue = (u8)queue; in bfa_fcdiag_queuetest()
6052 fcdiag->qtest.all = 0; in bfa_fcdiag_queuetest()
6054 fcdiag->qtest.result->queue = 0; in bfa_fcdiag_queuetest()
6055 fcdiag->qtest.queue = 0; in bfa_fcdiag_queuetest()
6056 fcdiag->qtest.all = 1; in bfa_fcdiag_queuetest()
6062 bfa_timer_start(bfa, &fcdiag->qtest.timer, in bfa_fcdiag_queuetest()
6065 fcdiag->qtest.timer_active = 1; in bfa_fcdiag_queuetest()