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()
13670 struct lpfc_queue *drq = phba->sli4_hba.dat_rq; in lpfc_sli4_sp_handle_rcqe() local
13677 if (unlikely(!hrq) || unlikely(!drq)) in lpfc_sli4_sp_handle_rcqe()
13695 lpfc_sli4_rq_release(hrq, drq); in lpfc_sli4_sp_handle_rcqe()
14190 struct lpfc_queue *drq; in lpfc_sli4_nvmet_handle_rcqe() local
14204 drq = phba->sli4_hba.nvmet_mrq_data[idx]; in lpfc_sli4_nvmet_handle_rcqe()
14207 if (unlikely(!hrq) || unlikely(!drq)) in lpfc_sli4_nvmet_handle_rcqe()
14227 lpfc_sli4_rq_release(hrq, drq); in lpfc_sli4_nvmet_handle_rcqe()
16131 struct lpfc_queue *drq, struct lpfc_queue *cq, uint32_t subtype) in lpfc_rq_create() argument
16145 if (!hrq || !drq || !cq) in lpfc_rq_create()
16150 if (hrq->entry_count != drq->entry_count) in lpfc_rq_create()
16313 switch (drq->entry_count) { in lpfc_rq_create()
16317 drq->entry_count); in lpfc_rq_create()
16318 if (drq->entry_count < 512) { in lpfc_rq_create()
16356 drq->page_count); in lpfc_rq_create()
16357 list_for_each_entry(dmabuf, &drq->page_list, list) { in lpfc_rq_create()
16374 drq->queue_id = bf_get(lpfc_mbx_rq_create_q_id, &rq_create->u.response); in lpfc_rq_create()
16375 if (drq->queue_id == 0xFFFF) { in lpfc_rq_create()
16379 drq->type = LPFC_DRQ; in lpfc_rq_create()
16380 drq->assoc_qid = cq->queue_id; in lpfc_rq_create()
16381 drq->subtype = subtype; in lpfc_rq_create()
16382 drq->host_index = 0; in lpfc_rq_create()
16383 drq->hba_index = 0; in lpfc_rq_create()
16384 drq->notify_interval = LPFC_RQ_NOTIFY_INTRVL; in lpfc_rq_create()
16388 list_add_tail(&drq->list, &cq->child_list); in lpfc_rq_create()
16424 struct lpfc_queue *hrq, *drq, *cq; in lpfc_mrq_create() local
16471 drq = drqp[idx]; in lpfc_mrq_create()
16475 if (!hrq || !drq || !cq) { in lpfc_mrq_create()
16480 if (hrq->entry_count != drq->entry_count) { in lpfc_mrq_create()
16525 list_for_each_entry(dmabuf, &drq->page_list, list) { in lpfc_mrq_create()
16545 drq->db_format = LPFC_DB_RING_FORMAT; in lpfc_mrq_create()
16546 drq->db_regaddr = phba->sli4_hba.RQDBregaddr; in lpfc_mrq_create()
16547 drq->type = LPFC_DRQ; in lpfc_mrq_create()
16548 drq->assoc_qid = cq->queue_id; in lpfc_mrq_create()
16549 drq->subtype = subtype; in lpfc_mrq_create()
16550 drq->host_index = 0; in lpfc_mrq_create()
16551 drq->hba_index = 0; in lpfc_mrq_create()
16552 drq->notify_interval = LPFC_RQ_NOTIFY_INTRVL; in lpfc_mrq_create()
16555 list_add_tail(&drq->list, &cq->child_list); in lpfc_mrq_create()
16580 drq = drqp[idx]; in lpfc_mrq_create()
16581 drq->queue_id = rc + (2 * idx) + 1; in lpfc_mrq_create()
16829 struct lpfc_queue *drq) in lpfc_rq_destroy() argument
16837 if (!hrq || !drq) in lpfc_rq_destroy()
16866 drq->queue_id); in lpfc_rq_destroy()
16867 rc = lpfc_sli_issue_mbox(drq->phba, mbox, MBX_POLL); in lpfc_rq_destroy()
16880 list_del_init(&drq->list); in lpfc_rq_destroy()