Lines Matching refs:dpi
733 struct bnxt_qplib_dpi *dpi, in bnxt_qplib_alloc_dpi() argument
746 dpi->dpi = bit_num; in bnxt_qplib_alloc_dpi()
747 dpi->dbr = dpit->dbr_bar_reg_iomem + (bit_num * PAGE_SIZE); in bnxt_qplib_alloc_dpi()
748 dpi->umdbr = dpit->unmapped_dbr + (bit_num * PAGE_SIZE); in bnxt_qplib_alloc_dpi()
755 struct bnxt_qplib_dpi *dpi) in bnxt_qplib_dealloc_dpi() argument
757 if (dpi->dpi >= dpit->max) { in bnxt_qplib_dealloc_dpi()
758 dev_warn(&res->pdev->dev, "Invalid DPI? dpi = %d\n", dpi->dpi); in bnxt_qplib_dealloc_dpi()
761 if (test_and_set_bit(dpi->dpi, dpit->tbl)) { in bnxt_qplib_dealloc_dpi()
763 dpi->dpi); in bnxt_qplib_dealloc_dpi()
767 dpit->app_tbl[dpi->dpi] = NULL; in bnxt_qplib_dealloc_dpi()
768 memset(dpi, 0, sizeof(*dpi)); in bnxt_qplib_dealloc_dpi()