Lines Matching refs:cq

11809 lpfc_sli4_sp_handle_els_wcqe(struct lpfc_hba *phba, struct lpfc_queue *cq,  in lpfc_sli4_sp_handle_els_wcqe()  argument
11814 struct lpfc_sli_ring *pring = cq->pring; in lpfc_sli4_sp_handle_els_wcqe()
11887 struct lpfc_queue *cq, in lpfc_sli4_sp_handle_abort_xri_wcqe() argument
11904 switch (cq->subtype) { in lpfc_sli4_sp_handle_abort_xri_wcqe()
11926 cq->subtype); in lpfc_sli4_sp_handle_abort_xri_wcqe()
12014 lpfc_sli4_sp_handle_cqe(struct lpfc_hba *phba, struct lpfc_queue *cq, in lpfc_sli4_sp_handle_cqe() argument
12028 workposted = lpfc_sli4_sp_handle_els_wcqe(phba, cq, in lpfc_sli4_sp_handle_cqe()
12039 workposted = lpfc_sli4_sp_handle_abort_xri_wcqe(phba, cq, in lpfc_sli4_sp_handle_cqe()
12075 struct lpfc_queue *cq = NULL, *childq; in lpfc_sli4_sp_handle_eqe() local
12086 cq = childq; in lpfc_sli4_sp_handle_eqe()
12090 if (unlikely(!cq)) { in lpfc_sli4_sp_handle_eqe()
12099 switch (cq->type) { in lpfc_sli4_sp_handle_eqe()
12101 while ((cqe = lpfc_sli4_cq_get(cq))) { in lpfc_sli4_sp_handle_eqe()
12103 if (!(++ecount % cq->entry_repost)) in lpfc_sli4_sp_handle_eqe()
12104 lpfc_sli4_cq_release(cq, LPFC_QUEUE_NOARM); in lpfc_sli4_sp_handle_eqe()
12105 cq->CQ_mbox++; in lpfc_sli4_sp_handle_eqe()
12109 while ((cqe = lpfc_sli4_cq_get(cq))) { in lpfc_sli4_sp_handle_eqe()
12110 if (cq->subtype == LPFC_FCP) in lpfc_sli4_sp_handle_eqe()
12111 workposted |= lpfc_sli4_fp_handle_wcqe(phba, cq, in lpfc_sli4_sp_handle_eqe()
12114 workposted |= lpfc_sli4_sp_handle_cqe(phba, cq, in lpfc_sli4_sp_handle_eqe()
12116 if (!(++ecount % cq->entry_repost)) in lpfc_sli4_sp_handle_eqe()
12117 lpfc_sli4_cq_release(cq, LPFC_QUEUE_NOARM); in lpfc_sli4_sp_handle_eqe()
12121 if (ecount > cq->CQ_max_cqe) in lpfc_sli4_sp_handle_eqe()
12122 cq->CQ_max_cqe = ecount; in lpfc_sli4_sp_handle_eqe()
12127 cq->type); in lpfc_sli4_sp_handle_eqe()
12135 "(x%x), type (%d)\n", cq->queue_id, cq->type); in lpfc_sli4_sp_handle_eqe()
12138 lpfc_sli4_cq_release(cq, LPFC_QUEUE_REARM); in lpfc_sli4_sp_handle_eqe()
12155 lpfc_sli4_fp_handle_fcp_wcqe(struct lpfc_hba *phba, struct lpfc_queue *cq, in lpfc_sli4_fp_handle_fcp_wcqe() argument
12158 struct lpfc_sli_ring *pring = cq->pring; in lpfc_sli4_fp_handle_fcp_wcqe()
12229 lpfc_sli4_fp_handle_rel_wcqe(struct lpfc_hba *phba, struct lpfc_queue *cq, in lpfc_sli4_fp_handle_rel_wcqe() argument
12238 list_for_each_entry(childwq, &cq->child_list, list) { in lpfc_sli4_fp_handle_rel_wcqe()
12262 lpfc_sli4_fp_handle_wcqe(struct lpfc_hba *phba, struct lpfc_queue *cq, in lpfc_sli4_fp_handle_wcqe() argument
12274 cq->CQ_wq++; in lpfc_sli4_fp_handle_wcqe()
12277 lpfc_sli4_fp_handle_fcp_wcqe(phba, cq, in lpfc_sli4_fp_handle_wcqe()
12281 cq->CQ_release_wqe++; in lpfc_sli4_fp_handle_wcqe()
12283 lpfc_sli4_fp_handle_rel_wcqe(phba, cq, in lpfc_sli4_fp_handle_wcqe()
12287 cq->CQ_xri_aborted++; in lpfc_sli4_fp_handle_wcqe()
12290 workposted = lpfc_sli4_sp_handle_abort_xri_wcqe(phba, cq, in lpfc_sli4_fp_handle_wcqe()
12318 struct lpfc_queue *cq; in lpfc_sli4_hba_handle_eqe() local
12349 cq = phba->sli4_hba.fcp_cq[qidx]; in lpfc_sli4_hba_handle_eqe()
12350 if (unlikely(!cq)) { in lpfc_sli4_hba_handle_eqe()
12358 if (unlikely(cqid != cq->queue_id)) { in lpfc_sli4_hba_handle_eqe()
12362 cqid, cq->queue_id); in lpfc_sli4_hba_handle_eqe()
12367 while ((cqe = lpfc_sli4_cq_get(cq))) { in lpfc_sli4_hba_handle_eqe()
12368 workposted |= lpfc_sli4_fp_handle_wcqe(phba, cq, cqe); in lpfc_sli4_hba_handle_eqe()
12369 if (!(++ecount % cq->entry_repost)) in lpfc_sli4_hba_handle_eqe()
12370 lpfc_sli4_cq_release(cq, LPFC_QUEUE_NOARM); in lpfc_sli4_hba_handle_eqe()
12374 if (ecount > cq->CQ_max_cqe) in lpfc_sli4_hba_handle_eqe()
12375 cq->CQ_max_cqe = ecount; in lpfc_sli4_hba_handle_eqe()
12381 "queue fcpcqid=%d\n", cq->queue_id); in lpfc_sli4_hba_handle_eqe()
12384 lpfc_sli4_cq_release(cq, LPFC_QUEUE_REARM); in lpfc_sli4_hba_handle_eqe()
12421 struct lpfc_queue *cq; in lpfc_sli4_fof_handle_eqe() local
12440 cq = phba->sli4_hba.oas_cq; in lpfc_sli4_fof_handle_eqe()
12441 if (unlikely(!cq)) { in lpfc_sli4_fof_handle_eqe()
12449 if (unlikely(cqid != cq->queue_id)) { in lpfc_sli4_fof_handle_eqe()
12453 cqid, cq->queue_id); in lpfc_sli4_fof_handle_eqe()
12458 while ((cqe = lpfc_sli4_cq_get(cq))) { in lpfc_sli4_fof_handle_eqe()
12459 workposted |= lpfc_sli4_fp_handle_wcqe(phba, cq, cqe); in lpfc_sli4_fof_handle_eqe()
12460 if (!(++ecount % cq->entry_repost)) in lpfc_sli4_fof_handle_eqe()
12461 lpfc_sli4_cq_release(cq, LPFC_QUEUE_NOARM); in lpfc_sli4_fof_handle_eqe()
12465 if (ecount > cq->CQ_max_cqe) in lpfc_sli4_fof_handle_eqe()
12466 cq->CQ_max_cqe = ecount; in lpfc_sli4_fof_handle_eqe()
12472 "queue fcpcqid=%d\n", cq->queue_id); in lpfc_sli4_fof_handle_eqe()
12475 lpfc_sli4_cq_release(cq, LPFC_QUEUE_REARM); in lpfc_sli4_fof_handle_eqe()
13094 lpfc_cq_create(struct lpfc_hba *phba, struct lpfc_queue *cq, in lpfc_cq_create() argument
13106 if (!cq || !eq) in lpfc_cq_create()
13122 cq->page_count); in lpfc_cq_create()
13136 switch (cq->entry_count) { in lpfc_cq_create()
13140 cq->entry_count); in lpfc_cq_create()
13141 if (cq->entry_count < 256) { in lpfc_cq_create()
13159 list_for_each_entry(dmabuf, &cq->page_list, list) { in lpfc_cq_create()
13179 cq->queue_id = bf_get(lpfc_mbx_cq_create_q_id, &cq_create->u.response); in lpfc_cq_create()
13180 if (cq->queue_id == 0xFFFF) { in lpfc_cq_create()
13185 list_add_tail(&cq->list, &eq->child_list); in lpfc_cq_create()
13187 cq->type = type; in lpfc_cq_create()
13188 cq->subtype = subtype; in lpfc_cq_create()
13189 cq->queue_id = bf_get(lpfc_mbx_cq_create_q_id, &cq_create->u.response); in lpfc_cq_create()
13190 cq->assoc_qid = eq->queue_id; in lpfc_cq_create()
13191 cq->host_index = 0; in lpfc_cq_create()
13192 cq->hba_index = 0; in lpfc_cq_create()
13215 LPFC_MBOXQ_t *mbox, struct lpfc_queue *cq) in lpfc_mq_create_fb_init() argument
13230 cq->queue_id); in lpfc_mq_create_fb_init()
13281 struct lpfc_queue *cq, uint32_t subtype) in lpfc_mq_create() argument
13293 if (!mq || !cq) in lpfc_mq_create()
13326 cq->queue_id); in lpfc_mq_create()
13329 cq->queue_id); in lpfc_mq_create()
13376 lpfc_mq_create_fb_init(phba, mq, mbox, cq); in lpfc_mq_create()
13400 mq->assoc_qid = cq->queue_id; in lpfc_mq_create()
13406 list_add_tail(&mq->list, &cq->child_list); in lpfc_mq_create()
13436 struct lpfc_queue *cq, uint32_t subtype) in lpfc_wq_create() argument
13451 if (!wq || !cq) in lpfc_wq_create()
13469 cq->queue_id); in lpfc_wq_create()
13606 wq->assoc_qid = cq->queue_id; in lpfc_wq_create()
13613 list_add_tail(&wq->list, &cq->child_list); in lpfc_wq_create()
13672 struct lpfc_queue *drq, struct lpfc_queue *cq, uint32_t subtype) in lpfc_rq_create() argument
13686 if (!hrq || !drq || !cq) in lpfc_rq_create()
13752 cq->queue_id); in lpfc_rq_create()
13828 hrq->assoc_qid = cq->queue_id; in lpfc_rq_create()
13883 cq->queue_id); in lpfc_rq_create()
13909 drq->assoc_qid = cq->queue_id; in lpfc_rq_create()
13915 list_add_tail(&hrq->list, &cq->child_list); in lpfc_rq_create()
13916 list_add_tail(&drq->list, &cq->child_list); in lpfc_rq_create()
13992 lpfc_cq_destroy(struct lpfc_hba *phba, struct lpfc_queue *cq) in lpfc_cq_destroy() argument
14000 if (!cq) in lpfc_cq_destroy()
14002 mbox = mempool_alloc(cq->phba->mbox_mem_pool, GFP_KERNEL); in lpfc_cq_destroy()
14011 cq->queue_id); in lpfc_cq_destroy()
14012 mbox->vport = cq->phba->pport; in lpfc_cq_destroy()
14014 rc = lpfc_sli_issue_mbox(cq->phba, mbox, MBX_POLL); in lpfc_cq_destroy()
14028 list_del_init(&cq->list); in lpfc_cq_destroy()
14029 mempool_free(mbox, cq->phba->mbox_mem_pool); in lpfc_cq_destroy()