Lines Matching defs:hrq
8989 struct lpfc_queue *hrq = phba->sli4_hba.hdr_rq;
8995 if (bf_get(lpfc_rcqe_rq_id, rcqe) != hrq->queue_id)
9004 lpfc_sli4_rq_release(hrq, drq);
10219 * @hrq: The queue structure to use to create the header receive queue.
10223 * This function creates a receive buffer queue pair , as detailed in @hrq and
10227 * The @phba struct is used to send mailbox command to HBA. The @drq and @hrq
10240 lpfc_rq_create(struct lpfc_hba *phba, struct lpfc_queue *hrq,
10254 if (hrq->entry_count != drq->entry_count)
10265 switch (hrq->entry_count) {
10269 hrq->entry_count);
10270 if (hrq->entry_count < 512)
10293 hrq->page_count);
10296 list_for_each_entry(dmabuf, &hrq->page_list, list) {
10316 hrq->queue_id = bf_get(lpfc_mbx_rq_create_q_id, &rq_create->u.response);
10317 if (hrq->queue_id == 0xFFFF) {
10321 hrq->type = LPFC_HRQ;
10322 hrq->subtype = subtype;
10323 hrq->host_index = 0;
10324 hrq->hba_index = 0;
10387 list_add_tail(&hrq->list, &cq->child_list);
10621 lpfc_rq_destroy(struct lpfc_hba *phba, struct lpfc_queue *hrq,
10629 if (!hrq || !drq)
10631 mbox = mempool_alloc(hrq->phba->mbox_mem_pool, GFP_KERNEL);
10640 hrq->queue_id);
10641 mbox->vport = hrq->phba->pport;
10643 rc = lpfc_sli_issue_mbox(hrq->phba, mbox, MBX_POLL);
10655 mempool_free(mbox, hrq->phba->mbox_mem_pool);
10672 list_del_init(&hrq->list);
10674 mempool_free(mbox, hrq->phba->mbox_mem_pool);