Lines Matching full:dpi
703 struct bnxt_qplib_dpi *dpi, in bnxt_qplib_alloc_dpi() argument
720 /* Found unused DPI */ in bnxt_qplib_alloc_dpi()
724 dpi->bit = bit_num; in bnxt_qplib_alloc_dpi()
725 dpi->dpi = bit_num + (reg->offset - dpit->ucreg.offset) / PAGE_SIZE; in bnxt_qplib_alloc_dpi()
728 dpi->umdbr = umaddr; in bnxt_qplib_alloc_dpi()
733 dpi->umdbr = dpit->ucreg.bar_base + in bnxt_qplib_alloc_dpi()
735 dpi->dbr = dpit->priv_db; in bnxt_qplib_alloc_dpi()
736 dpi->dpi = dpi->bit; in bnxt_qplib_alloc_dpi()
739 dpi->dbr = ioremap_wc(umaddr, PAGE_SIZE); in bnxt_qplib_alloc_dpi()
742 dpi->dbr = ioremap(umaddr, PAGE_SIZE); in bnxt_qplib_alloc_dpi()
746 dpi->type = type; in bnxt_qplib_alloc_dpi()
753 struct bnxt_qplib_dpi *dpi) in bnxt_qplib_dealloc_dpi() argument
758 if (dpi->dpi && dpi->type != BNXT_QPLIB_DPI_TYPE_KERNEL) in bnxt_qplib_dealloc_dpi()
759 pci_iounmap(res->pdev, dpi->dbr); in bnxt_qplib_dealloc_dpi()
761 if (test_and_set_bit(dpi->bit, dpit->tbl)) { in bnxt_qplib_dealloc_dpi()
763 "Freeing an unused DPI? dpi = %d, bit = %d\n", in bnxt_qplib_dealloc_dpi()
764 dpi->dpi, dpi->bit); in bnxt_qplib_dealloc_dpi()
769 dpit->app_tbl[dpi->bit] = NULL; in bnxt_qplib_dealloc_dpi()
770 memset(dpi, 0, sizeof(*dpi)); in bnxt_qplib_dealloc_dpi()
939 dev_err(&res->pdev->dev, "privileged dpi map failed!"); in bnxt_qplib_map_db_bar()