Lines Matching refs:eq

12392 lpfc_sli4_eq_flush(struct lpfc_hba *phba, struct lpfc_queue *eq)  in lpfc_sli4_eq_flush()  argument
12397 while ((eqe = lpfc_sli4_eq_get(eq))) in lpfc_sli4_eq_flush()
12401 lpfc_sli4_eq_release(eq, LPFC_QUEUE_REARM); in lpfc_sli4_eq_flush()
12508 struct lpfc_queue *eq; in lpfc_sli4_fof_intr_handler() local
12523 eq = phba->sli4_hba.fof_eq; in lpfc_sli4_fof_intr_handler()
12524 if (unlikely(!eq)) in lpfc_sli4_fof_intr_handler()
12529 eq->EQ_badstate++; in lpfc_sli4_fof_intr_handler()
12534 lpfc_sli4_eq_flush(phba, eq); in lpfc_sli4_fof_intr_handler()
12542 while ((eqe = lpfc_sli4_eq_get(eq))) { in lpfc_sli4_fof_intr_handler()
12544 if (!(++ecount % eq->entry_repost)) in lpfc_sli4_fof_intr_handler()
12545 lpfc_sli4_eq_release(eq, LPFC_QUEUE_NOARM); in lpfc_sli4_fof_intr_handler()
12546 eq->EQ_processed++; in lpfc_sli4_fof_intr_handler()
12550 if (ecount > eq->EQ_max_eqe) in lpfc_sli4_fof_intr_handler()
12551 eq->EQ_max_eqe = ecount; in lpfc_sli4_fof_intr_handler()
12555 eq->EQ_no_entry++; in lpfc_sli4_fof_intr_handler()
12569 lpfc_sli4_eq_release(eq, LPFC_QUEUE_REARM); in lpfc_sli4_fof_intr_handler()
12893 struct lpfc_queue *eq; in lpfc_modify_fcp_eq_delay() local
12924 eq = phba->sli4_hba.hba_eq[fcp_eqidx]; in lpfc_modify_fcp_eq_delay()
12925 if (!eq) in lpfc_modify_fcp_eq_delay()
12927 eq_delay->u.request.eq[cnt].eq_id = eq->queue_id; in lpfc_modify_fcp_eq_delay()
12928 eq_delay->u.request.eq[cnt].phase = 0; in lpfc_modify_fcp_eq_delay()
12929 eq_delay->u.request.eq[cnt].delay_multi = dmult; in lpfc_modify_fcp_eq_delay()
12975 lpfc_eq_create(struct lpfc_hba *phba, struct lpfc_queue *eq, uint32_t imax) in lpfc_eq_create() argument
12987 if (!eq) in lpfc_eq_create()
13002 eq->page_count); in lpfc_eq_create()
13010 switch (eq->entry_count) { in lpfc_eq_create()
13014 eq->entry_count); in lpfc_eq_create()
13015 if (eq->entry_count < 256) in lpfc_eq_create()
13039 list_for_each_entry(dmabuf, &eq->page_list, list) { in lpfc_eq_create()
13060 eq->type = LPFC_EQ; in lpfc_eq_create()
13061 eq->subtype = LPFC_NONE; in lpfc_eq_create()
13062 eq->queue_id = bf_get(lpfc_mbx_eq_create_q_id, &eq_create->u.response); in lpfc_eq_create()
13063 if (eq->queue_id == 0xFFFF) in lpfc_eq_create()
13065 eq->host_index = 0; in lpfc_eq_create()
13066 eq->hba_index = 0; in lpfc_eq_create()
13095 struct lpfc_queue *eq, uint32_t type, uint32_t subtype) in lpfc_cq_create() argument
13106 if (!cq || !eq) in lpfc_cq_create()
13131 eq->queue_id); in lpfc_cq_create()
13134 eq->queue_id); in lpfc_cq_create()
13185 list_add_tail(&cq->list, &eq->child_list); in lpfc_cq_create()
13190 cq->assoc_qid = eq->queue_id; in lpfc_cq_create()
13936 lpfc_eq_destroy(struct lpfc_hba *phba, struct lpfc_queue *eq) in lpfc_eq_destroy() argument
13944 if (!eq) in lpfc_eq_destroy()
13946 mbox = mempool_alloc(eq->phba->mbox_mem_pool, GFP_KERNEL); in lpfc_eq_destroy()
13955 eq->queue_id); in lpfc_eq_destroy()
13956 mbox->vport = eq->phba->pport; in lpfc_eq_destroy()
13959 rc = lpfc_sli_issue_mbox(eq->phba, mbox, MBX_POLL); in lpfc_eq_destroy()
13974 list_del_init(&eq->list); in lpfc_eq_destroy()
13975 mempool_free(mbox, eq->phba->mbox_mem_pool); in lpfc_eq_destroy()