Lines Matching refs:hrq

11946 	struct lpfc_queue *hrq = phba->sli4_hba.hdr_rq;  in lpfc_sli4_sp_handle_rcqe()  local
11953 if (unlikely(!hrq) || unlikely(!drq)) in lpfc_sli4_sp_handle_rcqe()
11960 if (rq_id != hrq->queue_id) in lpfc_sli4_sp_handle_rcqe()
11968 hrq->RQ_buf_trunc++; in lpfc_sli4_sp_handle_rcqe()
11970 lpfc_sli4_rq_release(hrq, drq); in lpfc_sli4_sp_handle_rcqe()
11974 hrq->RQ_no_buf_found++; in lpfc_sli4_sp_handle_rcqe()
11978 hrq->RQ_rcv_buf++; in lpfc_sli4_sp_handle_rcqe()
11990 hrq->RQ_no_posted_buf++; in lpfc_sli4_sp_handle_rcqe()
13671 lpfc_rq_create(struct lpfc_hba *phba, struct lpfc_queue *hrq, in lpfc_rq_create() argument
13686 if (!hrq || !drq || !cq) in lpfc_rq_create()
13691 if (hrq->entry_count != drq->entry_count) in lpfc_rq_create()
13708 hrq->entry_count); in lpfc_rq_create()
13717 switch (hrq->entry_count) { in lpfc_rq_create()
13721 hrq->entry_count); in lpfc_rq_create()
13722 if (hrq->entry_count < 512) { in lpfc_rq_create()
13754 hrq->page_count); in lpfc_rq_create()
13755 list_for_each_entry(dmabuf, &hrq->page_list, list) { in lpfc_rq_create()
13777 hrq->queue_id = bf_get(lpfc_mbx_rq_create_q_id, &rq_create->u.response); in lpfc_rq_create()
13778 if (hrq->queue_id == 0xFFFF) { in lpfc_rq_create()
13784 hrq->db_format = bf_get(lpfc_mbx_rq_create_db_format, in lpfc_rq_create()
13786 if ((hrq->db_format != LPFC_DB_LIST_FORMAT) && in lpfc_rq_create()
13787 (hrq->db_format != LPFC_DB_RING_FORMAT)) { in lpfc_rq_create()
13790 "supported: x%x\n", hrq->queue_id, in lpfc_rq_create()
13791 hrq->db_format); in lpfc_rq_create()
13802 "barset:x%x\n", hrq->queue_id, in lpfc_rq_create()
13813 "supported: x%x\n", hrq->queue_id, in lpfc_rq_create()
13818 hrq->db_regaddr = bar_memmap_p + db_offset; in lpfc_rq_create()
13821 "format:x%x\n", hrq->queue_id, pci_barset, in lpfc_rq_create()
13822 db_offset, hrq->db_format); in lpfc_rq_create()
13824 hrq->db_format = LPFC_DB_RING_FORMAT; in lpfc_rq_create()
13825 hrq->db_regaddr = phba->sli4_hba.RQDBregaddr; in lpfc_rq_create()
13827 hrq->type = LPFC_HRQ; in lpfc_rq_create()
13828 hrq->assoc_qid = cq->queue_id; in lpfc_rq_create()
13829 hrq->subtype = subtype; in lpfc_rq_create()
13830 hrq->host_index = 0; in lpfc_rq_create()
13831 hrq->hba_index = 0; in lpfc_rq_create()
13841 &rq_create->u.request.context, hrq->entry_count); in lpfc_rq_create()
13915 list_add_tail(&hrq->list, &cq->child_list); in lpfc_rq_create()
14153 lpfc_rq_destroy(struct lpfc_hba *phba, struct lpfc_queue *hrq, in lpfc_rq_destroy() argument
14162 if (!hrq || !drq) in lpfc_rq_destroy()
14164 mbox = mempool_alloc(hrq->phba->mbox_mem_pool, GFP_KERNEL); in lpfc_rq_destroy()
14173 hrq->queue_id); in lpfc_rq_destroy()
14174 mbox->vport = hrq->phba->pport; in lpfc_rq_destroy()
14176 rc = lpfc_sli_issue_mbox(hrq->phba, mbox, MBX_POLL); in lpfc_rq_destroy()
14188 mempool_free(mbox, hrq->phba->mbox_mem_pool); in lpfc_rq_destroy()
14205 list_del_init(&hrq->list); in lpfc_rq_destroy()
14207 mempool_free(mbox, hrq->phba->mbox_mem_pool); in lpfc_rq_destroy()