Lines Matching defs:hrq

2488 	struct lpfc_queue *hrq;
2493 hrq = phba->sli4_hba.hdr_rq;
2501 rc = lpfc_sli4_rq_put(hrq, drq, &hrqe, &drqe);
2645 * @hrq: HBQ number.
2651 lpfc_sli_rqbuf_get(struct lpfc_hba *phba, struct lpfc_queue *hrq)
2656 rqbp = hrq->rqbp;
7761 lpfc_post_rq_buffer(struct lpfc_hba *phba, struct lpfc_queue *hrq,
7772 rqbp = hrq->rqbp;
7785 rqb_buffer->hrq = hrq;
7800 rc = lpfc_sli4_rq_put(hrq, drq, &hrqe, &drqe);
7805 hrq->queue_id,
7806 hrq->host_index,
7807 hrq->hba_index,
7808 hrq->entry_count,
14614 struct lpfc_queue *hrq = phba->sli4_hba.hdr_rq;
14622 if (unlikely(!hrq) || unlikely(!drq))
14629 if (rq_id != hrq->queue_id)
14640 lpfc_sli4_rq_release(hrq, drq);
14643 hrq->RQ_no_buf_found++;
14647 hrq->RQ_rcv_buf++;
14648 hrq->RQ_buf_posted--;
14679 status, hrq->RQ_buf_posted,
14680 hrq->RQ_no_posted_buf,
14688 hrq->RQ_no_posted_buf++;
14708 lpfc_sli4_rq_release(hrq, drq);
14711 hrq->RQ_no_buf_found++;
14715 hrq->RQ_rcv_buf++;
14716 hrq->RQ_buf_posted--;
15154 struct lpfc_queue *hrq;
15168 hrq = phba->sli4_hba.nvmet_mrq_hdr[idx];
15172 if (unlikely(!hrq) || unlikely(!drq))
15181 (rq_id != hrq->queue_id))
15192 lpfc_sli4_rq_release(hrq, drq);
15193 dma_buf = lpfc_sli_rqbuf_get(phba, hrq);
15195 hrq->RQ_no_buf_found++;
15200 hrq->RQ_rcv_buf++;
15201 hrq->RQ_buf_posted--;
15230 status, hrq->RQ_buf_posted,
15231 hrq->RQ_no_posted_buf,
15239 hrq->RQ_no_posted_buf++;
15255 lpfc_sli4_rq_release(hrq, drq);
15256 dma_buf = lpfc_sli_rqbuf_get(phba, hrq);
15258 hrq->RQ_no_buf_found++;
15262 hrq->RQ_rcv_buf++;
15263 hrq->RQ_buf_posted--;
17116 * @hrq: The queue structure to use to create the header receive queue.
17121 * This function creates a receive buffer queue pair , as detailed in @hrq and
17125 * The @phba struct is used to send mailbox command to HBA. The @drq and @hrq
17138 lpfc_rq_create(struct lpfc_hba *phba, struct lpfc_queue *hrq,
17153 if (!hrq || !drq || !cq)
17158 if (hrq->entry_count != drq->entry_count)
17175 hrq->entry_count);
17184 switch (hrq->entry_count) {
17188 hrq->entry_count);
17189 if (hrq->entry_count < 512) {
17221 hrq->page_count);
17222 list_for_each_entry(dmabuf, &hrq->page_list, list) {
17244 hrq->queue_id = bf_get(lpfc_mbx_rq_create_q_id, &rq_create->u.response);
17245 if (hrq->queue_id == 0xFFFF) {
17251 hrq->db_format = bf_get(lpfc_mbx_rq_create_db_format,
17253 if ((hrq->db_format != LPFC_DB_LIST_FORMAT) &&
17254 (hrq->db_format != LPFC_DB_RING_FORMAT)) {
17257 "supported: x%x\n", hrq->queue_id,
17258 hrq->db_format);
17269 "barset:x%x\n", hrq->queue_id,
17280 "supported: x%x\n", hrq->queue_id,
17285 hrq->db_regaddr = bar_memmap_p + db_offset;
17288 "format:x%x\n", hrq->queue_id, pci_barset,
17289 db_offset, hrq->db_format);
17291 hrq->db_format = LPFC_DB_RING_FORMAT;
17292 hrq->db_regaddr = phba->sli4_hba.RQDBregaddr;
17294 hrq->type = LPFC_HRQ;
17295 hrq->assoc_qid = cq->queue_id;
17296 hrq->subtype = subtype;
17297 hrq->host_index = 0;
17298 hrq->hba_index = 0;
17299 hrq->notify_interval = LPFC_RQ_NOTIFY_INTRVL;
17309 &rq_create->u.request.context, hrq->entry_count);
17395 list_add_tail(&hrq->list, &cq->child_list);
17411 * This function creates a receive buffer queue pair , as detailed in @hrq and
17415 * The @phba struct is used to send mailbox command to HBA. The @drq and @hrq
17432 struct lpfc_queue *hrq, *drq, *cq;
17478 hrq = hrqp[idx];
17483 if (!hrq || !drq || !cq) {
17488 if (hrq->entry_count != drq->entry_count) {
17496 hrq->page_count);
17512 hrq->entry_count);
17521 list_for_each_entry(dmabuf, &hrq->page_list, list) {
17544 hrq->db_format = LPFC_DB_RING_FORMAT;
17545 hrq->db_regaddr = phba->sli4_hba.RQDBregaddr;
17546 hrq->type = LPFC_HRQ;
17547 hrq->assoc_qid = cq->queue_id;
17548 hrq->subtype = subtype;
17549 hrq->host_index = 0;
17550 hrq->hba_index = 0;
17551 hrq->notify_interval = LPFC_RQ_NOTIFY_INTRVL;
17562 list_add_tail(&hrq->list, &cq->child_list);
17586 hrq = hrqp[idx];
17587 hrq->queue_id = rc + (2 * idx);
17824 * @hrq: The queue structure associated with the queue to destroy.
17836 lpfc_rq_destroy(struct lpfc_hba *phba, struct lpfc_queue *hrq,
17845 if (!hrq || !drq)
17847 mbox = mempool_alloc(hrq->phba->mbox_mem_pool, GFP_KERNEL);
17856 hrq->queue_id);
17857 mbox->vport = hrq->phba->pport;
17859 rc = lpfc_sli_issue_mbox(hrq->phba, mbox, MBX_POLL);
17870 mempool_free(mbox, hrq->phba->mbox_mem_pool);
17887 list_del_init(&hrq->list);
17889 mempool_free(mbox, hrq->phba->mbox_mem_pool);