Lines Matching refs:wqe
671 struct bfa_fcxp_wqe_s *wqe; in bfa_fcxp_put() local
674 bfa_q_deq(&mod->req_wait_q, &wqe); in bfa_fcxp_put()
676 bfa_q_deq(&mod->rsp_wait_q, &wqe); in bfa_fcxp_put()
678 if (wqe) { in bfa_fcxp_put()
681 bfa_fcxp_init(fcxp, wqe->caller, wqe->bfa, wqe->nreq_sgles, in bfa_fcxp_put()
682 wqe->nrsp_sgles, wqe->req_sga_cbfn, in bfa_fcxp_put()
683 wqe->req_sglen_cbfn, wqe->rsp_sga_cbfn, in bfa_fcxp_put()
684 wqe->rsp_sglen_cbfn); in bfa_fcxp_put()
686 wqe->alloc_cbfn(wqe->alloc_cbarg, fcxp); in bfa_fcxp_put()
1112 bfa_fcxp_req_rsp_alloc_wait(struct bfa_s *bfa, struct bfa_fcxp_wqe_s *wqe, in bfa_fcxp_req_rsp_alloc_wait() argument
1127 wqe->alloc_cbfn = alloc_cbfn; in bfa_fcxp_req_rsp_alloc_wait()
1128 wqe->alloc_cbarg = alloc_cbarg; in bfa_fcxp_req_rsp_alloc_wait()
1129 wqe->caller = caller; in bfa_fcxp_req_rsp_alloc_wait()
1130 wqe->bfa = bfa; in bfa_fcxp_req_rsp_alloc_wait()
1131 wqe->nreq_sgles = nreq_sgles; in bfa_fcxp_req_rsp_alloc_wait()
1132 wqe->nrsp_sgles = nrsp_sgles; in bfa_fcxp_req_rsp_alloc_wait()
1133 wqe->req_sga_cbfn = req_sga_cbfn; in bfa_fcxp_req_rsp_alloc_wait()
1134 wqe->req_sglen_cbfn = req_sglen_cbfn; in bfa_fcxp_req_rsp_alloc_wait()
1135 wqe->rsp_sga_cbfn = rsp_sga_cbfn; in bfa_fcxp_req_rsp_alloc_wait()
1136 wqe->rsp_sglen_cbfn = rsp_sglen_cbfn; in bfa_fcxp_req_rsp_alloc_wait()
1139 list_add_tail(&wqe->qe, &mod->req_wait_q); in bfa_fcxp_req_rsp_alloc_wait()
1141 list_add_tail(&wqe->qe, &mod->rsp_wait_q); in bfa_fcxp_req_rsp_alloc_wait()
1145 bfa_fcxp_walloc_cancel(struct bfa_s *bfa, struct bfa_fcxp_wqe_s *wqe) in bfa_fcxp_walloc_cancel() argument
1149 WARN_ON(!bfa_q_is_on_q(&mod->req_wait_q, wqe) || in bfa_fcxp_walloc_cancel()
1150 !bfa_q_is_on_q(&mod->rsp_wait_q, wqe)); in bfa_fcxp_walloc_cancel()
1151 list_del(&wqe->qe); in bfa_fcxp_walloc_cancel()
1228 bfa_reqq_wait(lps->bfa, lps->reqq, &lps->wqe); in bfa_lps_sm_init()
1345 bfa_reqq_wcancel(&lps->wqe); in bfa_lps_sm_loginwait()
1374 bfa_reqq_wait(lps->bfa, lps->reqq, &lps->wqe); in bfa_lps_sm_online()
1395 bfa_reqq_wait(lps->bfa, lps->reqq, &lps->wqe); in bfa_lps_sm_online()
1433 bfa_reqq_wcancel(&lps->wqe); in bfa_lps_sm_online_n2n_pid_wait()
1444 bfa_reqq_wcancel(&lps->wqe); in bfa_lps_sm_online_n2n_pid_wait()
1495 bfa_reqq_wcancel(&lps->wqe); in bfa_lps_sm_logowait()
1554 bfa_reqq_winit(&lps->wqe, bfa_lps_reqq_resume, lps); in bfa_lps_attach()
5390 struct bfa_sgpg_wqe_s *wqe; in bfa_sgpg_mfree() local
5404 wqe = bfa_q_first(&mod->sgpg_wait_q); in bfa_sgpg_mfree()
5405 if (mod->free_sgpgs < wqe->nsgpg) in bfa_sgpg_mfree()
5408 nsgpg = wqe->nsgpg; in bfa_sgpg_mfree()
5409 bfa_sgpg_malloc(bfa, &wqe->sgpg_q, nsgpg); in bfa_sgpg_mfree()
5410 wqe->nsgpg -= nsgpg; in bfa_sgpg_mfree()
5411 if (wqe->nsgpg == 0) { in bfa_sgpg_mfree()
5412 list_del(&wqe->qe); in bfa_sgpg_mfree()
5413 wqe->cbfn(wqe->cbarg); in bfa_sgpg_mfree()
5419 bfa_sgpg_wait(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe, int nsgpg) in bfa_sgpg_wait() argument
5426 wqe->nsgpg_total = wqe->nsgpg = nsgpg; in bfa_sgpg_wait()
5436 list_splice_tail_init(&mod->sgpg_q, &wqe->sgpg_q); in bfa_sgpg_wait()
5437 wqe->nsgpg -= mod->free_sgpgs; in bfa_sgpg_wait()
5441 list_add_tail(&wqe->qe, &mod->sgpg_wait_q); in bfa_sgpg_wait()
5445 bfa_sgpg_wcancel(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe) in bfa_sgpg_wcancel() argument
5449 WARN_ON(!bfa_q_is_on_q(&mod->sgpg_wait_q, wqe)); in bfa_sgpg_wcancel()
5450 list_del(&wqe->qe); in bfa_sgpg_wcancel()
5452 if (wqe->nsgpg_total != wqe->nsgpg) in bfa_sgpg_wcancel()
5453 bfa_sgpg_mfree(bfa, &wqe->sgpg_q, in bfa_sgpg_wcancel()
5454 wqe->nsgpg_total - wqe->nsgpg); in bfa_sgpg_wcancel()
5458 bfa_sgpg_winit(struct bfa_sgpg_wqe_s *wqe, void (*cbfn) (void *cbarg), in bfa_sgpg_winit() argument
5461 INIT_LIST_HEAD(&wqe->sgpg_q); in bfa_sgpg_winit()
5462 wqe->cbfn = cbfn; in bfa_sgpg_winit()
5463 wqe->cbarg = cbarg; in bfa_sgpg_winit()