Lines Matching refs:hrq

11928 	struct lpfc_queue *hrq = phba->sli4_hba.hdr_rq;  in lpfc_sli4_sp_handle_rcqe()  local
11935 if (unlikely(!hrq) || unlikely(!drq)) in lpfc_sli4_sp_handle_rcqe()
11942 if (rq_id != hrq->queue_id) in lpfc_sli4_sp_handle_rcqe()
11950 hrq->RQ_buf_trunc++; in lpfc_sli4_sp_handle_rcqe()
11952 lpfc_sli4_rq_release(hrq, drq); in lpfc_sli4_sp_handle_rcqe()
11956 hrq->RQ_no_buf_found++; in lpfc_sli4_sp_handle_rcqe()
11960 hrq->RQ_rcv_buf++; in lpfc_sli4_sp_handle_rcqe()
11972 hrq->RQ_no_posted_buf++; in lpfc_sli4_sp_handle_rcqe()
13647 lpfc_rq_create(struct lpfc_hba *phba, struct lpfc_queue *hrq, in lpfc_rq_create() argument
13662 if (!hrq || !drq || !cq) in lpfc_rq_create()
13667 if (hrq->entry_count != drq->entry_count) in lpfc_rq_create()
13684 hrq->entry_count); in lpfc_rq_create()
13693 switch (hrq->entry_count) { in lpfc_rq_create()
13697 hrq->entry_count); in lpfc_rq_create()
13698 if (hrq->entry_count < 512) { in lpfc_rq_create()
13730 hrq->page_count); in lpfc_rq_create()
13731 list_for_each_entry(dmabuf, &hrq->page_list, list) { in lpfc_rq_create()
13753 hrq->queue_id = bf_get(lpfc_mbx_rq_create_q_id, &rq_create->u.response); in lpfc_rq_create()
13754 if (hrq->queue_id == 0xFFFF) { in lpfc_rq_create()
13760 hrq->db_format = bf_get(lpfc_mbx_rq_create_db_format, in lpfc_rq_create()
13762 if ((hrq->db_format != LPFC_DB_LIST_FORMAT) && in lpfc_rq_create()
13763 (hrq->db_format != LPFC_DB_RING_FORMAT)) { in lpfc_rq_create()
13766 "supported: x%x\n", hrq->queue_id, in lpfc_rq_create()
13767 hrq->db_format); in lpfc_rq_create()
13778 "barset:x%x\n", hrq->queue_id, in lpfc_rq_create()
13789 "supported: x%x\n", hrq->queue_id, in lpfc_rq_create()
13794 hrq->db_regaddr = bar_memmap_p + db_offset; in lpfc_rq_create()
13797 "format:x%x\n", hrq->queue_id, pci_barset, in lpfc_rq_create()
13798 db_offset, hrq->db_format); in lpfc_rq_create()
13800 hrq->db_format = LPFC_DB_RING_FORMAT; in lpfc_rq_create()
13801 hrq->db_regaddr = phba->sli4_hba.RQDBregaddr; in lpfc_rq_create()
13803 hrq->type = LPFC_HRQ; in lpfc_rq_create()
13804 hrq->assoc_qid = cq->queue_id; in lpfc_rq_create()
13805 hrq->subtype = subtype; in lpfc_rq_create()
13806 hrq->host_index = 0; in lpfc_rq_create()
13807 hrq->hba_index = 0; in lpfc_rq_create()
13817 &rq_create->u.request.context, hrq->entry_count); in lpfc_rq_create()
13891 list_add_tail(&hrq->list, &cq->child_list); in lpfc_rq_create()
14129 lpfc_rq_destroy(struct lpfc_hba *phba, struct lpfc_queue *hrq, in lpfc_rq_destroy() argument
14138 if (!hrq || !drq) in lpfc_rq_destroy()
14140 mbox = mempool_alloc(hrq->phba->mbox_mem_pool, GFP_KERNEL); in lpfc_rq_destroy()
14149 hrq->queue_id); in lpfc_rq_destroy()
14150 mbox->vport = hrq->phba->pport; in lpfc_rq_destroy()
14152 rc = lpfc_sli_issue_mbox(hrq->phba, mbox, MBX_POLL); in lpfc_rq_destroy()
14164 mempool_free(mbox, hrq->phba->mbox_mem_pool); in lpfc_rq_destroy()
14181 list_del_init(&hrq->list); in lpfc_rq_destroy()
14183 mempool_free(mbox, hrq->phba->mbox_mem_pool); in lpfc_rq_destroy()