Lines Matching full:dpi
708 struct bnxt_qplib_dpi *dpi, in bnxt_qplib_alloc_dpi() argument
717 /* Found unused DPI */ in bnxt_qplib_alloc_dpi()
721 dpi->dpi = bit_num; in bnxt_qplib_alloc_dpi()
722 dpi->dbr = dpit->dbr_bar_reg_iomem + (bit_num * PAGE_SIZE); in bnxt_qplib_alloc_dpi()
723 dpi->umdbr = dpit->unmapped_dbr + (bit_num * PAGE_SIZE); in bnxt_qplib_alloc_dpi()
730 struct bnxt_qplib_dpi *dpi) in bnxt_qplib_dealloc_dpi() argument
732 if (dpi->dpi >= dpit->max) { in bnxt_qplib_dealloc_dpi()
733 dev_warn(&res->pdev->dev, "Invalid DPI? dpi = %d\n", dpi->dpi); in bnxt_qplib_dealloc_dpi()
736 if (test_and_set_bit(dpi->dpi, dpit->tbl)) { in bnxt_qplib_dealloc_dpi()
737 dev_warn(&res->pdev->dev, "Freeing an unused DPI? dpi = %d\n", in bnxt_qplib_dealloc_dpi()
738 dpi->dpi); in bnxt_qplib_dealloc_dpi()
742 dpit->app_tbl[dpi->dpi] = NULL; in bnxt_qplib_dealloc_dpi()
743 memset(dpi, 0, sizeof(*dpi)); in bnxt_qplib_dealloc_dpi()