Lines Matching refs:qtest
5743 struct bfa_diag_qtest_result_s *res = fcdiag->qtest.result; in bfa_fcdiag_queuetest_timeout()
5745 bfa_trc(fcdiag, fcdiag->qtest.all); in bfa_fcdiag_queuetest_timeout()
5746 bfa_trc(fcdiag, fcdiag->qtest.count); in bfa_fcdiag_queuetest_timeout()
5748 fcdiag->qtest.timer_active = 0; in bfa_fcdiag_queuetest_timeout()
5751 res->count = QTEST_CNT_DEFAULT - fcdiag->qtest.count; in bfa_fcdiag_queuetest_timeout()
5752 if (fcdiag->qtest.all) in bfa_fcdiag_queuetest_timeout()
5753 res->queue = fcdiag->qtest.all; in bfa_fcdiag_queuetest_timeout()
5756 fcdiag->qtest.status = BFA_STATUS_ETIMER; in bfa_fcdiag_queuetest_timeout()
5757 fcdiag->qtest.cbfn(fcdiag->qtest.cbarg, fcdiag->qtest.status); in bfa_fcdiag_queuetest_timeout()
5758 fcdiag->qtest.lock = 0; in bfa_fcdiag_queuetest_timeout()
5767 req = bfa_reqq_next(fcdiag->bfa, fcdiag->qtest.queue); in bfa_fcdiag_queuetest_send()
5778 bfa_trc(fcdiag, fcdiag->qtest.queue); in bfa_fcdiag_queuetest_send()
5780 bfa_reqq_produce(fcdiag->bfa, fcdiag->qtest.queue, req->mh); in bfa_fcdiag_queuetest_send()
5788 struct bfa_diag_qtest_result_s *res = fcdiag->qtest.result; in bfa_fcdiag_queuetest_comp()
5793 if (!fcdiag->qtest.timer_active) { in bfa_fcdiag_queuetest_comp()
5794 bfa_trc(fcdiag, fcdiag->qtest.timer_active); in bfa_fcdiag_queuetest_comp()
5799 fcdiag->qtest.count--; in bfa_fcdiag_queuetest_comp()
5810 if (fcdiag->qtest.count > 0) { in bfa_fcdiag_queuetest_comp()
5816 } else if (fcdiag->qtest.all > 0 && in bfa_fcdiag_queuetest_comp()
5817 fcdiag->qtest.queue < (BFI_IOC_MAX_CQS - 1)) { in bfa_fcdiag_queuetest_comp()
5818 fcdiag->qtest.count = QTEST_CNT_DEFAULT; in bfa_fcdiag_queuetest_comp()
5819 fcdiag->qtest.queue++; in bfa_fcdiag_queuetest_comp()
5829 if (fcdiag->qtest.timer_active) { in bfa_fcdiag_queuetest_comp()
5830 bfa_timer_stop(&fcdiag->qtest.timer); in bfa_fcdiag_queuetest_comp()
5831 fcdiag->qtest.timer_active = 0; in bfa_fcdiag_queuetest_comp()
5833 res->queue = fcdiag->qtest.queue; in bfa_fcdiag_queuetest_comp()
5834 res->count = QTEST_CNT_DEFAULT - fcdiag->qtest.count; in bfa_fcdiag_queuetest_comp()
5837 fcdiag->qtest.status = res->status; in bfa_fcdiag_queuetest_comp()
5838 fcdiag->qtest.cbfn(fcdiag->qtest.cbarg, fcdiag->qtest.status); in bfa_fcdiag_queuetest_comp()
5839 fcdiag->qtest.lock = 0; in bfa_fcdiag_queuetest_comp()
6060 if (fcdiag->qtest.lock) { in bfa_fcdiag_queuetest()
6061 bfa_trc(fcdiag, fcdiag->qtest.lock); in bfa_fcdiag_queuetest()
6066 fcdiag->qtest.lock = 1; in bfa_fcdiag_queuetest()
6067 fcdiag->qtest.cbfn = cbfn; in bfa_fcdiag_queuetest()
6068 fcdiag->qtest.cbarg = cbarg; in bfa_fcdiag_queuetest()
6069 fcdiag->qtest.result = result; in bfa_fcdiag_queuetest()
6070 fcdiag->qtest.count = QTEST_CNT_DEFAULT; in bfa_fcdiag_queuetest()
6073 fcdiag->qtest.result->status = BFA_STATUS_OK; in bfa_fcdiag_queuetest()
6074 fcdiag->qtest.result->count = 0; in bfa_fcdiag_queuetest()
6078 fcdiag->qtest.result->queue = (u8)queue; in bfa_fcdiag_queuetest()
6079 fcdiag->qtest.queue = (u8)queue; in bfa_fcdiag_queuetest()
6080 fcdiag->qtest.all = 0; in bfa_fcdiag_queuetest()
6082 fcdiag->qtest.result->queue = 0; in bfa_fcdiag_queuetest()
6083 fcdiag->qtest.queue = 0; in bfa_fcdiag_queuetest()
6084 fcdiag->qtest.all = 1; in bfa_fcdiag_queuetest()
6090 bfa_timer_start(bfa, &fcdiag->qtest.timer, in bfa_fcdiag_queuetest()
6093 fcdiag->qtest.timer_active = 1; in bfa_fcdiag_queuetest()