Lines Matching refs:hrq

2093 	struct lpfc_queue *hrq;  in lpfc_sli_hbq_to_firmware_s4()  local
2098 hrq = phba->sli4_hba.hdr_rq; in lpfc_sli_hbq_to_firmware_s4()
2106 rc = lpfc_sli4_rq_put(hrq, drq, &hrqe, &drqe); in lpfc_sli_hbq_to_firmware_s4()
2256 lpfc_sli_rqbuf_get(struct lpfc_hba *phba, struct lpfc_queue *hrq) in lpfc_sli_rqbuf_get() argument
2261 rqbp = hrq->rqbp; in lpfc_sli_rqbuf_get()
7230 lpfc_post_rq_buffer(struct lpfc_hba *phba, struct lpfc_queue *hrq, in lpfc_post_rq_buffer() argument
7241 rqbp = hrq->rqbp; in lpfc_post_rq_buffer()
7254 rqb_buffer->hrq = hrq; in lpfc_post_rq_buffer()
7269 rc = lpfc_sli4_rq_put(hrq, drq, &hrqe, &drqe); in lpfc_post_rq_buffer()
7274 hrq->queue_id, in lpfc_post_rq_buffer()
7275 hrq->host_index, in lpfc_post_rq_buffer()
7276 hrq->hba_index, in lpfc_post_rq_buffer()
7277 hrq->entry_count, in lpfc_post_rq_buffer()
13669 struct lpfc_queue *hrq = phba->sli4_hba.hdr_rq; in lpfc_sli4_sp_handle_rcqe() local
13677 if (unlikely(!hrq) || unlikely(!drq)) in lpfc_sli4_sp_handle_rcqe()
13684 if (rq_id != hrq->queue_id) in lpfc_sli4_sp_handle_rcqe()
13695 lpfc_sli4_rq_release(hrq, drq); in lpfc_sli4_sp_handle_rcqe()
13698 hrq->RQ_no_buf_found++; in lpfc_sli4_sp_handle_rcqe()
13702 hrq->RQ_rcv_buf++; in lpfc_sli4_sp_handle_rcqe()
13703 hrq->RQ_buf_posted--; in lpfc_sli4_sp_handle_rcqe()
13734 status, hrq->RQ_buf_posted, in lpfc_sli4_sp_handle_rcqe()
13735 hrq->RQ_no_posted_buf, in lpfc_sli4_sp_handle_rcqe()
13743 hrq->RQ_no_posted_buf++; in lpfc_sli4_sp_handle_rcqe()
14189 struct lpfc_queue *hrq; in lpfc_sli4_nvmet_handle_rcqe() local
14203 hrq = phba->sli4_hba.nvmet_mrq_hdr[idx]; in lpfc_sli4_nvmet_handle_rcqe()
14207 if (unlikely(!hrq) || unlikely(!drq)) in lpfc_sli4_nvmet_handle_rcqe()
14216 (rq_id != hrq->queue_id)) in lpfc_sli4_nvmet_handle_rcqe()
14227 lpfc_sli4_rq_release(hrq, drq); in lpfc_sli4_nvmet_handle_rcqe()
14228 dma_buf = lpfc_sli_rqbuf_get(phba, hrq); in lpfc_sli4_nvmet_handle_rcqe()
14230 hrq->RQ_no_buf_found++; in lpfc_sli4_nvmet_handle_rcqe()
14235 hrq->RQ_rcv_buf++; in lpfc_sli4_nvmet_handle_rcqe()
14236 hrq->RQ_buf_posted--; in lpfc_sli4_nvmet_handle_rcqe()
14265 status, hrq->RQ_buf_posted, in lpfc_sli4_nvmet_handle_rcqe()
14266 hrq->RQ_no_posted_buf, in lpfc_sli4_nvmet_handle_rcqe()
14274 hrq->RQ_no_posted_buf++; in lpfc_sli4_nvmet_handle_rcqe()
16130 lpfc_rq_create(struct lpfc_hba *phba, struct lpfc_queue *hrq, in lpfc_rq_create() argument
16145 if (!hrq || !drq || !cq) in lpfc_rq_create()
16150 if (hrq->entry_count != drq->entry_count) in lpfc_rq_create()
16167 hrq->entry_count); in lpfc_rq_create()
16176 switch (hrq->entry_count) { in lpfc_rq_create()
16180 hrq->entry_count); in lpfc_rq_create()
16181 if (hrq->entry_count < 512) { in lpfc_rq_create()
16213 hrq->page_count); in lpfc_rq_create()
16214 list_for_each_entry(dmabuf, &hrq->page_list, list) { in lpfc_rq_create()
16236 hrq->queue_id = bf_get(lpfc_mbx_rq_create_q_id, &rq_create->u.response); in lpfc_rq_create()
16237 if (hrq->queue_id == 0xFFFF) { in lpfc_rq_create()
16243 hrq->db_format = bf_get(lpfc_mbx_rq_create_db_format, in lpfc_rq_create()
16245 if ((hrq->db_format != LPFC_DB_LIST_FORMAT) && in lpfc_rq_create()
16246 (hrq->db_format != LPFC_DB_RING_FORMAT)) { in lpfc_rq_create()
16249 "supported: x%x\n", hrq->queue_id, in lpfc_rq_create()
16250 hrq->db_format); in lpfc_rq_create()
16261 "barset:x%x\n", hrq->queue_id, in lpfc_rq_create()
16272 "supported: x%x\n", hrq->queue_id, in lpfc_rq_create()
16277 hrq->db_regaddr = bar_memmap_p + db_offset; in lpfc_rq_create()
16280 "format:x%x\n", hrq->queue_id, pci_barset, in lpfc_rq_create()
16281 db_offset, hrq->db_format); in lpfc_rq_create()
16283 hrq->db_format = LPFC_DB_RING_FORMAT; in lpfc_rq_create()
16284 hrq->db_regaddr = phba->sli4_hba.RQDBregaddr; in lpfc_rq_create()
16286 hrq->type = LPFC_HRQ; in lpfc_rq_create()
16287 hrq->assoc_qid = cq->queue_id; in lpfc_rq_create()
16288 hrq->subtype = subtype; in lpfc_rq_create()
16289 hrq->host_index = 0; in lpfc_rq_create()
16290 hrq->hba_index = 0; in lpfc_rq_create()
16291 hrq->notify_interval = LPFC_RQ_NOTIFY_INTRVL; in lpfc_rq_create()
16301 &rq_create->u.request.context, hrq->entry_count); in lpfc_rq_create()
16387 list_add_tail(&hrq->list, &cq->child_list); in lpfc_rq_create()
16424 struct lpfc_queue *hrq, *drq, *cq; in lpfc_mrq_create() local
16470 hrq = hrqp[idx]; in lpfc_mrq_create()
16475 if (!hrq || !drq || !cq) { in lpfc_mrq_create()
16480 if (hrq->entry_count != drq->entry_count) { in lpfc_mrq_create()
16488 hrq->page_count); in lpfc_mrq_create()
16504 hrq->entry_count); in lpfc_mrq_create()
16513 list_for_each_entry(dmabuf, &hrq->page_list, list) { in lpfc_mrq_create()
16536 hrq->db_format = LPFC_DB_RING_FORMAT; in lpfc_mrq_create()
16537 hrq->db_regaddr = phba->sli4_hba.RQDBregaddr; in lpfc_mrq_create()
16538 hrq->type = LPFC_HRQ; in lpfc_mrq_create()
16539 hrq->assoc_qid = cq->queue_id; in lpfc_mrq_create()
16540 hrq->subtype = subtype; in lpfc_mrq_create()
16541 hrq->host_index = 0; in lpfc_mrq_create()
16542 hrq->hba_index = 0; in lpfc_mrq_create()
16543 hrq->notify_interval = LPFC_RQ_NOTIFY_INTRVL; in lpfc_mrq_create()
16554 list_add_tail(&hrq->list, &cq->child_list); in lpfc_mrq_create()
16578 hrq = hrqp[idx]; in lpfc_mrq_create()
16579 hrq->queue_id = rc + (2 * idx); in lpfc_mrq_create()
16828 lpfc_rq_destroy(struct lpfc_hba *phba, struct lpfc_queue *hrq, in lpfc_rq_destroy() argument
16837 if (!hrq || !drq) in lpfc_rq_destroy()
16839 mbox = mempool_alloc(hrq->phba->mbox_mem_pool, GFP_KERNEL); in lpfc_rq_destroy()
16848 hrq->queue_id); in lpfc_rq_destroy()
16849 mbox->vport = hrq->phba->pport; in lpfc_rq_destroy()
16851 rc = lpfc_sli_issue_mbox(hrq->phba, mbox, MBX_POLL); in lpfc_rq_destroy()
16862 mempool_free(mbox, hrq->phba->mbox_mem_pool); in lpfc_rq_destroy()
16879 list_del_init(&hrq->list); in lpfc_rq_destroy()
16881 mempool_free(mbox, hrq->phba->mbox_mem_pool); in lpfc_rq_destroy()