Lines Matching refs:creq
347 struct bnxt_qplib_hwq *creq = &rcfw->creq; in bnxt_qplib_service_creq() local
354 spin_lock_irqsave(&creq->lock, flags); in bnxt_qplib_service_creq()
355 raw_cons = creq->cons; in bnxt_qplib_service_creq()
357 sw_cons = HWQ_CMP(raw_cons, creq); in bnxt_qplib_service_creq()
358 creq_ptr = (struct creq_base **)creq->pbl_ptr; in bnxt_qplib_service_creq()
360 if (!CREQ_CMP_VALID(creqe, raw_cons, creq->max_elements)) in bnxt_qplib_service_creq()
393 if (creq->cons != raw_cons) { in bnxt_qplib_service_creq()
394 creq->cons = raw_cons; in bnxt_qplib_service_creq()
396 creq->max_elements); in bnxt_qplib_service_creq()
398 spin_unlock_irqrestore(&creq->lock, flags); in bnxt_qplib_service_creq()
404 struct bnxt_qplib_hwq *creq = &rcfw->creq; in bnxt_qplib_creq_irq() local
409 sw_cons = HWQ_CMP(creq->cons, creq); in bnxt_qplib_creq_irq()
410 creq_ptr = (struct creq_base **)rcfw->creq.pbl_ptr; in bnxt_qplib_creq_irq()
539 bnxt_qplib_free_hwq(rcfw->pdev, &rcfw->creq); in bnxt_qplib_free_rcfw_channel()
548 rcfw->creq.max_elements = BNXT_QPLIB_CREQE_MAX_CNT; in bnxt_qplib_alloc_rcfw_channel()
549 if (bnxt_qplib_alloc_init_hwq(rcfw->pdev, &rcfw->creq, NULL, 0, in bnxt_qplib_alloc_rcfw_channel()
550 &rcfw->creq.max_elements, in bnxt_qplib_alloc_rcfw_channel()
589 CREQ_DB(rcfw->creq_bar_reg_iomem, rcfw->creq.cons, in bnxt_qplib_rcfw_stop_irq()
590 rcfw->creq.max_elements); in bnxt_qplib_rcfw_stop_irq()
646 CREQ_DB_REARM(rcfw->creq_bar_reg_iomem, rcfw->creq.cons, in bnxt_qplib_rcfw_start_irq()
647 rcfw->creq.max_elements); in bnxt_qplib_rcfw_start_irq()