Lines Matching refs:drq
2489 struct lpfc_queue *drq; in lpfc_sli_hbq_to_firmware_s4() local
2494 drq = phba->sli4_hba.dat_rq; in lpfc_sli_hbq_to_firmware_s4()
2501 rc = lpfc_sli4_rq_put(hrq, drq, &hrqe, &drqe); in lpfc_sli_hbq_to_firmware_s4()
7793 struct lpfc_queue *drq, int count, int idx) in lpfc_post_rq_buffer() argument
7817 rqb_buffer->drq = drq; in lpfc_post_rq_buffer()
7831 rc = lpfc_sli4_rq_put(hrq, drq, &hrqe, &drqe); in lpfc_post_rq_buffer()
7840 drq->host_index, in lpfc_post_rq_buffer()
7841 drq->hba_index); in lpfc_post_rq_buffer()
14642 struct lpfc_queue *drq = phba->sli4_hba.dat_rq; in lpfc_sli4_sp_handle_rcqe() local
14649 if (unlikely(!hrq) || unlikely(!drq)) in lpfc_sli4_sp_handle_rcqe()
14667 lpfc_sli4_rq_release(hrq, drq); in lpfc_sli4_sp_handle_rcqe()
15156 struct lpfc_queue *drq; in lpfc_sli4_nvmet_handle_rcqe() local
15170 drq = phba->sli4_hba.nvmet_mrq_data[idx]; in lpfc_sli4_nvmet_handle_rcqe()
15173 if (unlikely(!hrq) || unlikely(!drq)) in lpfc_sli4_nvmet_handle_rcqe()
15193 lpfc_sli4_rq_release(hrq, drq); in lpfc_sli4_nvmet_handle_rcqe()
17066 struct lpfc_queue *drq, struct lpfc_queue *cq, uint32_t subtype) in lpfc_rq_create() argument
17080 if (!hrq || !drq || !cq) in lpfc_rq_create()
17085 if (hrq->entry_count != drq->entry_count) in lpfc_rq_create()
17248 switch (drq->entry_count) { in lpfc_rq_create()
17252 drq->entry_count); in lpfc_rq_create()
17253 if (drq->entry_count < 512) { in lpfc_rq_create()
17291 drq->page_count); in lpfc_rq_create()
17292 list_for_each_entry(dmabuf, &drq->page_list, list) { in lpfc_rq_create()
17309 drq->queue_id = bf_get(lpfc_mbx_rq_create_q_id, &rq_create->u.response); in lpfc_rq_create()
17310 if (drq->queue_id == 0xFFFF) { in lpfc_rq_create()
17314 drq->type = LPFC_DRQ; in lpfc_rq_create()
17315 drq->assoc_qid = cq->queue_id; in lpfc_rq_create()
17316 drq->subtype = subtype; in lpfc_rq_create()
17317 drq->host_index = 0; in lpfc_rq_create()
17318 drq->hba_index = 0; in lpfc_rq_create()
17319 drq->notify_interval = LPFC_RQ_NOTIFY_INTRVL; in lpfc_rq_create()
17323 list_add_tail(&drq->list, &cq->child_list); in lpfc_rq_create()
17359 struct lpfc_queue *hrq, *drq, *cq; in lpfc_mrq_create() local
17406 drq = drqp[idx]; in lpfc_mrq_create()
17410 if (!hrq || !drq || !cq) { in lpfc_mrq_create()
17415 if (hrq->entry_count != drq->entry_count) { in lpfc_mrq_create()
17460 list_for_each_entry(dmabuf, &drq->page_list, list) { in lpfc_mrq_create()
17480 drq->db_format = LPFC_DB_RING_FORMAT; in lpfc_mrq_create()
17481 drq->db_regaddr = phba->sli4_hba.RQDBregaddr; in lpfc_mrq_create()
17482 drq->type = LPFC_DRQ; in lpfc_mrq_create()
17483 drq->assoc_qid = cq->queue_id; in lpfc_mrq_create()
17484 drq->subtype = subtype; in lpfc_mrq_create()
17485 drq->host_index = 0; in lpfc_mrq_create()
17486 drq->hba_index = 0; in lpfc_mrq_create()
17487 drq->notify_interval = LPFC_RQ_NOTIFY_INTRVL; in lpfc_mrq_create()
17490 list_add_tail(&drq->list, &cq->child_list); in lpfc_mrq_create()
17515 drq = drqp[idx]; in lpfc_mrq_create()
17516 drq->queue_id = rc + (2 * idx) + 1; in lpfc_mrq_create()
17764 struct lpfc_queue *drq) in lpfc_rq_destroy() argument
17772 if (!hrq || !drq) in lpfc_rq_destroy()
17801 drq->queue_id); in lpfc_rq_destroy()
17802 rc = lpfc_sli_issue_mbox(drq->phba, mbox, MBX_POLL); in lpfc_rq_destroy()
17815 list_del_init(&drq->list); in lpfc_rq_destroy()