Searched refs:dpit (Results 1 – 2 of 2) sorted by relevance
629 int bnxt_qplib_alloc_dpi(struct bnxt_qplib_dpi_tbl *dpit, in bnxt_qplib_alloc_dpi() argument635 bit_num = find_first_bit(dpit->tbl, dpit->max); in bnxt_qplib_alloc_dpi()636 if (bit_num == dpit->max) in bnxt_qplib_alloc_dpi()640 clear_bit(bit_num, dpit->tbl); in bnxt_qplib_alloc_dpi()641 dpit->app_tbl[bit_num] = app; in bnxt_qplib_alloc_dpi()644 dpi->dbr = dpit->dbr_bar_reg_iomem + (bit_num * PAGE_SIZE); in bnxt_qplib_alloc_dpi()645 dpi->umdbr = dpit->unmapped_dbr + (bit_num * PAGE_SIZE); in bnxt_qplib_alloc_dpi()651 struct bnxt_qplib_dpi_tbl *dpit, in bnxt_qplib_dealloc_dpi() argument654 if (dpi->dpi >= dpit->max) { in bnxt_qplib_dealloc_dpi()658 if (test_and_set_bit(dpi->dpi, dpit->tbl)) { in bnxt_qplib_dealloc_dpi()[all …]
249 int bnxt_qplib_alloc_dpi(struct bnxt_qplib_dpi_tbl *dpit,