Lines Matching defs:hrq

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