Lines Matching refs:nq_db
379 bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, nq->res->cctx, true); in bnxt_qplib_service_nq()
425 bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, nq->res->cctx, false); in bnxt_qplib_nq_stop_irq()
448 if (nq->nq_db.reg.bar_reg) { in bnxt_qplib_disable_nq()
449 iounmap(nq->nq_db.reg.bar_reg); in bnxt_qplib_disable_nq()
450 nq->nq_db.reg.bar_reg = NULL; in bnxt_qplib_disable_nq()
494 bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, res->cctx, true); in bnxt_qplib_nq_start_irq()
502 struct bnxt_qplib_nq_db *nq_db; in bnxt_qplib_map_nq_db() local
506 nq_db = &nq->nq_db; in bnxt_qplib_map_nq_db()
508 nq_db->reg.bar_id = NQ_CONS_PCI_BAR_REGION; in bnxt_qplib_map_nq_db()
509 nq_db->reg.bar_base = pci_resource_start(pdev, nq_db->reg.bar_id); in bnxt_qplib_map_nq_db()
510 if (!nq_db->reg.bar_base) { in bnxt_qplib_map_nq_db()
512 nq_db->reg.bar_id); in bnxt_qplib_map_nq_db()
516 reg_base = nq_db->reg.bar_base + reg_offt; in bnxt_qplib_map_nq_db()
518 nq_db->reg.len = 8; in bnxt_qplib_map_nq_db()
519 nq_db->reg.bar_reg = ioremap(reg_base, nq_db->reg.len); in bnxt_qplib_map_nq_db()
520 if (!nq_db->reg.bar_reg) { in bnxt_qplib_map_nq_db()
522 nq_db->reg.bar_id); in bnxt_qplib_map_nq_db()
526 nq_db->dbinfo.db = nq_db->reg.bar_reg; in bnxt_qplib_map_nq_db()
527 nq_db->dbinfo.hwq = &nq->hwq; in bnxt_qplib_map_nq_db()
528 nq_db->dbinfo.xid = nq->ring_id; in bnxt_qplib_map_nq_db()