Lines Matching defs:drq
2489 struct lpfc_queue *drq;
2494 drq = phba->sli4_hba.dat_rq;
2501 rc = lpfc_sli4_rq_put(hrq, drq, &hrqe, &drqe);
7762 struct lpfc_queue *drq, int count, int idx)
7786 rqb_buffer->drq = drq;
7800 rc = lpfc_sli4_rq_put(hrq, drq, &hrqe, &drqe);
7809 drq->host_index,
7810 drq->hba_index);
14615 struct lpfc_queue *drq = phba->sli4_hba.dat_rq;
14622 if (unlikely(!hrq) || unlikely(!drq))
14640 lpfc_sli4_rq_release(hrq, drq);
14708 lpfc_sli4_rq_release(hrq, drq);
15155 struct lpfc_queue *drq;
15169 drq = phba->sli4_hba.nvmet_mrq_data[idx];
15172 if (unlikely(!hrq) || unlikely(!drq))
15192 lpfc_sli4_rq_release(hrq, drq);
15255 lpfc_sli4_rq_release(hrq, drq);
17117 * @drq: The queue structure to use to create the data receive queue.
17122 * @drq, on a port, described by @phba by sending a RQ_CREATE mailbox command
17125 * The @phba struct is used to send mailbox command to HBA. The @drq and @hrq
17139 struct lpfc_queue *drq, struct lpfc_queue *cq, uint32_t subtype)
17153 if (!hrq || !drq || !cq)
17158 if (hrq->entry_count != drq->entry_count)
17321 switch (drq->entry_count) {
17325 drq->entry_count);
17326 if (drq->entry_count < 512) {
17364 drq->page_count);
17365 list_for_each_entry(dmabuf, &drq->page_list, list) {
17382 drq->queue_id = bf_get(lpfc_mbx_rq_create_q_id, &rq_create->u.response);
17383 if (drq->queue_id == 0xFFFF) {
17387 drq->type = LPFC_DRQ;
17388 drq->assoc_qid = cq->queue_id;
17389 drq->subtype = subtype;
17390 drq->host_index = 0;
17391 drq->hba_index = 0;
17392 drq->notify_interval = LPFC_RQ_NOTIFY_INTRVL;
17396 list_add_tail(&drq->list, &cq->child_list);
17412 * @drq, on a port, described by @phba by sending a RQ_CREATE mailbox command
17415 * The @phba struct is used to send mailbox command to HBA. The @drq and @hrq
17432 struct lpfc_queue *hrq, *drq, *cq;
17479 drq = drqp[idx];
17483 if (!hrq || !drq || !cq) {
17488 if (hrq->entry_count != drq->entry_count) {
17533 list_for_each_entry(dmabuf, &drq->page_list, list) {
17553 drq->db_format = LPFC_DB_RING_FORMAT;
17554 drq->db_regaddr = phba->sli4_hba.RQDBregaddr;
17555 drq->type = LPFC_DRQ;
17556 drq->assoc_qid = cq->queue_id;
17557 drq->subtype = subtype;
17558 drq->host_index = 0;
17559 drq->hba_index = 0;
17560 drq->notify_interval = LPFC_RQ_NOTIFY_INTRVL;
17563 list_add_tail(&drq->list, &cq->child_list);
17588 drq = drqp[idx];
17589 drq->queue_id = rc + (2 * idx) + 1;
17825 * @drq: The queue structure associated with the queue to destroy.
17837 struct lpfc_queue *drq)
17845 if (!hrq || !drq)
17874 drq->queue_id);
17875 rc = lpfc_sli_issue_mbox(drq->phba, mbox, MBX_POLL);
17888 list_del_init(&drq->list);