Home
last modified time | relevance | path

Searched refs:dpit (Results 1 – 2 of 2) sorted by relevance

/drivers/infiniband/hw/bnxt_re/
Dqplib_res.c629 int bnxt_qplib_alloc_dpi(struct bnxt_qplib_dpi_tbl *dpit, in bnxt_qplib_alloc_dpi() argument
635 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() argument
654 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 …]
Dqplib_res.h249 int bnxt_qplib_alloc_dpi(struct bnxt_qplib_dpi_tbl *dpit,