Lines Matching refs:cq

11791 lpfc_sli4_sp_handle_els_wcqe(struct lpfc_hba *phba, struct lpfc_queue *cq,  in lpfc_sli4_sp_handle_els_wcqe()  argument
11796 struct lpfc_sli_ring *pring = cq->pring; in lpfc_sli4_sp_handle_els_wcqe()
11869 struct lpfc_queue *cq, in lpfc_sli4_sp_handle_abort_xri_wcqe() argument
11886 switch (cq->subtype) { in lpfc_sli4_sp_handle_abort_xri_wcqe()
11908 cq->subtype); in lpfc_sli4_sp_handle_abort_xri_wcqe()
11996 lpfc_sli4_sp_handle_cqe(struct lpfc_hba *phba, struct lpfc_queue *cq, in lpfc_sli4_sp_handle_cqe() argument
12010 workposted = lpfc_sli4_sp_handle_els_wcqe(phba, cq, in lpfc_sli4_sp_handle_cqe()
12021 workposted = lpfc_sli4_sp_handle_abort_xri_wcqe(phba, cq, in lpfc_sli4_sp_handle_cqe()
12057 struct lpfc_queue *cq = NULL, *childq; in lpfc_sli4_sp_handle_eqe() local
12068 cq = childq; in lpfc_sli4_sp_handle_eqe()
12072 if (unlikely(!cq)) { in lpfc_sli4_sp_handle_eqe()
12081 switch (cq->type) { in lpfc_sli4_sp_handle_eqe()
12083 while ((cqe = lpfc_sli4_cq_get(cq))) { in lpfc_sli4_sp_handle_eqe()
12085 if (!(++ecount % cq->entry_repost)) in lpfc_sli4_sp_handle_eqe()
12086 lpfc_sli4_cq_release(cq, LPFC_QUEUE_NOARM); in lpfc_sli4_sp_handle_eqe()
12087 cq->CQ_mbox++; in lpfc_sli4_sp_handle_eqe()
12091 while ((cqe = lpfc_sli4_cq_get(cq))) { in lpfc_sli4_sp_handle_eqe()
12092 if (cq->subtype == LPFC_FCP) in lpfc_sli4_sp_handle_eqe()
12093 workposted |= lpfc_sli4_fp_handle_wcqe(phba, cq, in lpfc_sli4_sp_handle_eqe()
12096 workposted |= lpfc_sli4_sp_handle_cqe(phba, cq, in lpfc_sli4_sp_handle_eqe()
12098 if (!(++ecount % cq->entry_repost)) in lpfc_sli4_sp_handle_eqe()
12099 lpfc_sli4_cq_release(cq, LPFC_QUEUE_NOARM); in lpfc_sli4_sp_handle_eqe()
12103 if (ecount > cq->CQ_max_cqe) in lpfc_sli4_sp_handle_eqe()
12104 cq->CQ_max_cqe = ecount; in lpfc_sli4_sp_handle_eqe()
12109 cq->type); in lpfc_sli4_sp_handle_eqe()
12117 "(x%x), type (%d)\n", cq->queue_id, cq->type); in lpfc_sli4_sp_handle_eqe()
12120 lpfc_sli4_cq_release(cq, LPFC_QUEUE_REARM); in lpfc_sli4_sp_handle_eqe()
12137 lpfc_sli4_fp_handle_fcp_wcqe(struct lpfc_hba *phba, struct lpfc_queue *cq, in lpfc_sli4_fp_handle_fcp_wcqe() argument
12140 struct lpfc_sli_ring *pring = cq->pring; in lpfc_sli4_fp_handle_fcp_wcqe()
12211 lpfc_sli4_fp_handle_rel_wcqe(struct lpfc_hba *phba, struct lpfc_queue *cq, in lpfc_sli4_fp_handle_rel_wcqe() argument
12220 list_for_each_entry(childwq, &cq->child_list, list) { in lpfc_sli4_fp_handle_rel_wcqe()
12244 lpfc_sli4_fp_handle_wcqe(struct lpfc_hba *phba, struct lpfc_queue *cq, in lpfc_sli4_fp_handle_wcqe() argument
12256 cq->CQ_wq++; in lpfc_sli4_fp_handle_wcqe()
12259 lpfc_sli4_fp_handle_fcp_wcqe(phba, cq, in lpfc_sli4_fp_handle_wcqe()
12263 cq->CQ_release_wqe++; in lpfc_sli4_fp_handle_wcqe()
12265 lpfc_sli4_fp_handle_rel_wcqe(phba, cq, in lpfc_sli4_fp_handle_wcqe()
12269 cq->CQ_xri_aborted++; in lpfc_sli4_fp_handle_wcqe()
12272 workposted = lpfc_sli4_sp_handle_abort_xri_wcqe(phba, cq, in lpfc_sli4_fp_handle_wcqe()
12300 struct lpfc_queue *cq; in lpfc_sli4_hba_handle_eqe() local
12331 cq = phba->sli4_hba.fcp_cq[qidx]; in lpfc_sli4_hba_handle_eqe()
12332 if (unlikely(!cq)) { in lpfc_sli4_hba_handle_eqe()
12340 if (unlikely(cqid != cq->queue_id)) { in lpfc_sli4_hba_handle_eqe()
12344 cqid, cq->queue_id); in lpfc_sli4_hba_handle_eqe()
12349 while ((cqe = lpfc_sli4_cq_get(cq))) { in lpfc_sli4_hba_handle_eqe()
12350 workposted |= lpfc_sli4_fp_handle_wcqe(phba, cq, cqe); in lpfc_sli4_hba_handle_eqe()
12351 if (!(++ecount % cq->entry_repost)) in lpfc_sli4_hba_handle_eqe()
12352 lpfc_sli4_cq_release(cq, LPFC_QUEUE_NOARM); in lpfc_sli4_hba_handle_eqe()
12356 if (ecount > cq->CQ_max_cqe) in lpfc_sli4_hba_handle_eqe()
12357 cq->CQ_max_cqe = ecount; in lpfc_sli4_hba_handle_eqe()
12363 "queue fcpcqid=%d\n", cq->queue_id); in lpfc_sli4_hba_handle_eqe()
12366 lpfc_sli4_cq_release(cq, LPFC_QUEUE_REARM); in lpfc_sli4_hba_handle_eqe()
12403 struct lpfc_queue *cq; in lpfc_sli4_fof_handle_eqe() local
12422 cq = phba->sli4_hba.oas_cq; in lpfc_sli4_fof_handle_eqe()
12423 if (unlikely(!cq)) { in lpfc_sli4_fof_handle_eqe()
12431 if (unlikely(cqid != cq->queue_id)) { in lpfc_sli4_fof_handle_eqe()
12435 cqid, cq->queue_id); in lpfc_sli4_fof_handle_eqe()
12440 while ((cqe = lpfc_sli4_cq_get(cq))) { in lpfc_sli4_fof_handle_eqe()
12441 workposted |= lpfc_sli4_fp_handle_wcqe(phba, cq, cqe); in lpfc_sli4_fof_handle_eqe()
12442 if (!(++ecount % cq->entry_repost)) in lpfc_sli4_fof_handle_eqe()
12443 lpfc_sli4_cq_release(cq, LPFC_QUEUE_NOARM); in lpfc_sli4_fof_handle_eqe()
12447 if (ecount > cq->CQ_max_cqe) in lpfc_sli4_fof_handle_eqe()
12448 cq->CQ_max_cqe = ecount; in lpfc_sli4_fof_handle_eqe()
12454 "queue fcpcqid=%d\n", cq->queue_id); in lpfc_sli4_fof_handle_eqe()
12457 lpfc_sli4_cq_release(cq, LPFC_QUEUE_REARM); in lpfc_sli4_fof_handle_eqe()
13070 lpfc_cq_create(struct lpfc_hba *phba, struct lpfc_queue *cq, in lpfc_cq_create() argument
13082 if (!cq || !eq) in lpfc_cq_create()
13098 cq->page_count); in lpfc_cq_create()
13112 switch (cq->entry_count) { in lpfc_cq_create()
13116 cq->entry_count); in lpfc_cq_create()
13117 if (cq->entry_count < 256) { in lpfc_cq_create()
13135 list_for_each_entry(dmabuf, &cq->page_list, list) { in lpfc_cq_create()
13155 cq->queue_id = bf_get(lpfc_mbx_cq_create_q_id, &cq_create->u.response); in lpfc_cq_create()
13156 if (cq->queue_id == 0xFFFF) { in lpfc_cq_create()
13161 list_add_tail(&cq->list, &eq->child_list); in lpfc_cq_create()
13163 cq->type = type; in lpfc_cq_create()
13164 cq->subtype = subtype; in lpfc_cq_create()
13165 cq->queue_id = bf_get(lpfc_mbx_cq_create_q_id, &cq_create->u.response); in lpfc_cq_create()
13166 cq->assoc_qid = eq->queue_id; in lpfc_cq_create()
13167 cq->host_index = 0; in lpfc_cq_create()
13168 cq->hba_index = 0; in lpfc_cq_create()
13191 LPFC_MBOXQ_t *mbox, struct lpfc_queue *cq) in lpfc_mq_create_fb_init() argument
13206 cq->queue_id); in lpfc_mq_create_fb_init()
13257 struct lpfc_queue *cq, uint32_t subtype) in lpfc_mq_create() argument
13269 if (!mq || !cq) in lpfc_mq_create()
13302 cq->queue_id); in lpfc_mq_create()
13305 cq->queue_id); in lpfc_mq_create()
13352 lpfc_mq_create_fb_init(phba, mq, mbox, cq); in lpfc_mq_create()
13376 mq->assoc_qid = cq->queue_id; in lpfc_mq_create()
13382 list_add_tail(&mq->list, &cq->child_list); in lpfc_mq_create()
13412 struct lpfc_queue *cq, uint32_t subtype) in lpfc_wq_create() argument
13427 if (!wq || !cq) in lpfc_wq_create()
13445 cq->queue_id); in lpfc_wq_create()
13582 wq->assoc_qid = cq->queue_id; in lpfc_wq_create()
13589 list_add_tail(&wq->list, &cq->child_list); in lpfc_wq_create()
13648 struct lpfc_queue *drq, struct lpfc_queue *cq, uint32_t subtype) in lpfc_rq_create() argument
13662 if (!hrq || !drq || !cq) in lpfc_rq_create()
13728 cq->queue_id); in lpfc_rq_create()
13804 hrq->assoc_qid = cq->queue_id; in lpfc_rq_create()
13859 cq->queue_id); in lpfc_rq_create()
13885 drq->assoc_qid = cq->queue_id; in lpfc_rq_create()
13891 list_add_tail(&hrq->list, &cq->child_list); in lpfc_rq_create()
13892 list_add_tail(&drq->list, &cq->child_list); in lpfc_rq_create()
13968 lpfc_cq_destroy(struct lpfc_hba *phba, struct lpfc_queue *cq) in lpfc_cq_destroy() argument
13976 if (!cq) in lpfc_cq_destroy()
13978 mbox = mempool_alloc(cq->phba->mbox_mem_pool, GFP_KERNEL); in lpfc_cq_destroy()
13987 cq->queue_id); in lpfc_cq_destroy()
13988 mbox->vport = cq->phba->pport; in lpfc_cq_destroy()
13990 rc = lpfc_sli_issue_mbox(cq->phba, mbox, MBX_POLL); in lpfc_cq_destroy()
14004 list_del_init(&cq->list); in lpfc_cq_destroy()
14005 mempool_free(mbox, cq->phba->mbox_mem_pool); in lpfc_cq_destroy()