dpit              629 drivers/infiniband/hw/bnxt_re/qplib_res.c int bnxt_qplib_alloc_dpi(struct bnxt_qplib_dpi_tbl *dpit,
dpit              635 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bit_num = find_first_bit(dpit->tbl, dpit->max);
dpit              636 drivers/infiniband/hw/bnxt_re/qplib_res.c 	if (bit_num == dpit->max)
dpit              640 drivers/infiniband/hw/bnxt_re/qplib_res.c 	clear_bit(bit_num, dpit->tbl);
dpit              641 drivers/infiniband/hw/bnxt_re/qplib_res.c 	dpit->app_tbl[bit_num] = app;
dpit              644 drivers/infiniband/hw/bnxt_re/qplib_res.c 	dpi->dbr = dpit->dbr_bar_reg_iomem + (bit_num * PAGE_SIZE);
dpit              645 drivers/infiniband/hw/bnxt_re/qplib_res.c 	dpi->umdbr = dpit->unmapped_dbr + (bit_num * PAGE_SIZE);
dpit              651 drivers/infiniband/hw/bnxt_re/qplib_res.c 			   struct bnxt_qplib_dpi_tbl *dpit,
dpit              654 drivers/infiniband/hw/bnxt_re/qplib_res.c 	if (dpi->dpi >= dpit->max) {
dpit              658 drivers/infiniband/hw/bnxt_re/qplib_res.c 	if (test_and_set_bit(dpi->dpi, dpit->tbl)) {
dpit              663 drivers/infiniband/hw/bnxt_re/qplib_res.c 	if (dpit->app_tbl)
dpit              664 drivers/infiniband/hw/bnxt_re/qplib_res.c 		dpit->app_tbl[dpi->dpi] = NULL;
dpit              671 drivers/infiniband/hw/bnxt_re/qplib_res.c 				    struct bnxt_qplib_dpi_tbl *dpit)
dpit              673 drivers/infiniband/hw/bnxt_re/qplib_res.c 	kfree(dpit->tbl);
dpit              674 drivers/infiniband/hw/bnxt_re/qplib_res.c 	kfree(dpit->app_tbl);
dpit              675 drivers/infiniband/hw/bnxt_re/qplib_res.c 	if (dpit->dbr_bar_reg_iomem)
dpit              676 drivers/infiniband/hw/bnxt_re/qplib_res.c 		pci_iounmap(res->pdev, dpit->dbr_bar_reg_iomem);
dpit              677 drivers/infiniband/hw/bnxt_re/qplib_res.c 	memset(dpit, 0, sizeof(*dpit));
dpit              681 drivers/infiniband/hw/bnxt_re/qplib_res.c 				    struct bnxt_qplib_dpi_tbl *dpit,
dpit              688 drivers/infiniband/hw/bnxt_re/qplib_res.c 	if (dpit->dbr_bar_reg_iomem) {
dpit              707 drivers/infiniband/hw/bnxt_re/qplib_res.c 	dpit->dbr_bar_reg_iomem = ioremap_nocache(bar_reg_base + dbr_offset,
dpit              709 drivers/infiniband/hw/bnxt_re/qplib_res.c 	if (!dpit->dbr_bar_reg_iomem) {
dpit              715 drivers/infiniband/hw/bnxt_re/qplib_res.c 	dpit->unmapped_dbr = bar_reg_base + dbr_offset;
dpit              716 drivers/infiniband/hw/bnxt_re/qplib_res.c 	dpit->max = dbr_len / PAGE_SIZE;
dpit              718 drivers/infiniband/hw/bnxt_re/qplib_res.c 	dpit->app_tbl = kcalloc(dpit->max, sizeof(void *), GFP_KERNEL);
dpit              719 drivers/infiniband/hw/bnxt_re/qplib_res.c 	if (!dpit->app_tbl)
dpit              722 drivers/infiniband/hw/bnxt_re/qplib_res.c 	bytes = dpit->max >> 3;
dpit              726 drivers/infiniband/hw/bnxt_re/qplib_res.c 	dpit->tbl = kmalloc(bytes, GFP_KERNEL);
dpit              727 drivers/infiniband/hw/bnxt_re/qplib_res.c 	if (!dpit->tbl) {
dpit              728 drivers/infiniband/hw/bnxt_re/qplib_res.c 		kfree(dpit->app_tbl);
dpit              729 drivers/infiniband/hw/bnxt_re/qplib_res.c 		dpit->app_tbl = NULL;
dpit              733 drivers/infiniband/hw/bnxt_re/qplib_res.c 	memset((u8 *)dpit->tbl, 0xFF, bytes);
dpit              738 drivers/infiniband/hw/bnxt_re/qplib_res.c 	pci_iounmap(res->pdev, dpit->dbr_bar_reg_iomem);
dpit              249 drivers/infiniband/hw/bnxt_re/qplib_res.h int bnxt_qplib_alloc_dpi(struct bnxt_qplib_dpi_tbl *dpit,