Lines Matching refs:drq
2094 struct lpfc_queue *drq; in lpfc_sli_hbq_to_firmware_s4() local
2099 drq = phba->sli4_hba.dat_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()
7231 struct lpfc_queue *drq, int count, int idx) in lpfc_post_rq_buffer() argument
7255 rqb_buffer->drq = drq; in lpfc_post_rq_buffer()
7269 rc = lpfc_sli4_rq_put(hrq, drq, &hrqe, &drqe); in lpfc_post_rq_buffer()
7278 drq->host_index, in lpfc_post_rq_buffer()
7279 drq->hba_index); in lpfc_post_rq_buffer()
13653 struct lpfc_queue *drq = phba->sli4_hba.dat_rq; in lpfc_sli4_sp_handle_rcqe() local
13660 if (unlikely(!hrq) || unlikely(!drq)) in lpfc_sli4_sp_handle_rcqe()
13678 lpfc_sli4_rq_release(hrq, drq); in lpfc_sli4_sp_handle_rcqe()
14173 struct lpfc_queue *drq; in lpfc_sli4_nvmet_handle_rcqe() local
14187 drq = phba->sli4_hba.nvmet_mrq_data[idx]; in lpfc_sli4_nvmet_handle_rcqe()
14190 if (unlikely(!hrq) || unlikely(!drq)) in lpfc_sli4_nvmet_handle_rcqe()
14210 lpfc_sli4_rq_release(hrq, drq); in lpfc_sli4_nvmet_handle_rcqe()
16114 struct lpfc_queue *drq, struct lpfc_queue *cq, uint32_t subtype) in lpfc_rq_create() argument
16128 if (!hrq || !drq || !cq) in lpfc_rq_create()
16133 if (hrq->entry_count != drq->entry_count) in lpfc_rq_create()
16296 switch (drq->entry_count) { in lpfc_rq_create()
16300 drq->entry_count); in lpfc_rq_create()
16301 if (drq->entry_count < 512) { in lpfc_rq_create()
16339 drq->page_count); in lpfc_rq_create()
16340 list_for_each_entry(dmabuf, &drq->page_list, list) { in lpfc_rq_create()
16357 drq->queue_id = bf_get(lpfc_mbx_rq_create_q_id, &rq_create->u.response); in lpfc_rq_create()
16358 if (drq->queue_id == 0xFFFF) { in lpfc_rq_create()
16362 drq->type = LPFC_DRQ; in lpfc_rq_create()
16363 drq->assoc_qid = cq->queue_id; in lpfc_rq_create()
16364 drq->subtype = subtype; in lpfc_rq_create()
16365 drq->host_index = 0; in lpfc_rq_create()
16366 drq->hba_index = 0; in lpfc_rq_create()
16367 drq->notify_interval = LPFC_RQ_NOTIFY_INTRVL; in lpfc_rq_create()
16371 list_add_tail(&drq->list, &cq->child_list); in lpfc_rq_create()
16407 struct lpfc_queue *hrq, *drq, *cq; in lpfc_mrq_create() local
16454 drq = drqp[idx]; in lpfc_mrq_create()
16458 if (!hrq || !drq || !cq) { in lpfc_mrq_create()
16463 if (hrq->entry_count != drq->entry_count) { in lpfc_mrq_create()
16508 list_for_each_entry(dmabuf, &drq->page_list, list) { in lpfc_mrq_create()
16528 drq->db_format = LPFC_DB_RING_FORMAT; in lpfc_mrq_create()
16529 drq->db_regaddr = phba->sli4_hba.RQDBregaddr; in lpfc_mrq_create()
16530 drq->type = LPFC_DRQ; in lpfc_mrq_create()
16531 drq->assoc_qid = cq->queue_id; in lpfc_mrq_create()
16532 drq->subtype = subtype; in lpfc_mrq_create()
16533 drq->host_index = 0; in lpfc_mrq_create()
16534 drq->hba_index = 0; in lpfc_mrq_create()
16535 drq->notify_interval = LPFC_RQ_NOTIFY_INTRVL; in lpfc_mrq_create()
16538 list_add_tail(&drq->list, &cq->child_list); in lpfc_mrq_create()
16563 drq = drqp[idx]; in lpfc_mrq_create()
16564 drq->queue_id = rc + (2 * idx) + 1; in lpfc_mrq_create()
16812 struct lpfc_queue *drq) in lpfc_rq_destroy() argument
16820 if (!hrq || !drq) in lpfc_rq_destroy()
16849 drq->queue_id); in lpfc_rq_destroy()
16850 rc = lpfc_sli_issue_mbox(drq->phba, mbox, MBX_POLL); in lpfc_rq_destroy()
16863 list_del_init(&drq->list); in lpfc_rq_destroy()