Lines Matching refs:ucreg
736 dpi->dpi = bit_num + (reg->offset - dpit->ucreg.offset) / PAGE_SIZE; in bnxt_qplib_alloc_dpi()
744 dpi->umdbr = dpit->ucreg.bar_base + in bnxt_qplib_alloc_dpi()
745 dpit->ucreg.offset + bit_num * PAGE_SIZE; in bnxt_qplib_alloc_dpi()
811 dpit->ucreg.offset = dbr_offset; in bnxt_qplib_alloc_dpi_tbl()
837 dpit->priv_db = dpit->ucreg.bar_reg + dpit->ucreg.offset; in bnxt_qplib_alloc_dpi_tbl()
921 reg = &res->dpi_tbl.ucreg; in bnxt_qplib_unmap_db_bar()
932 struct bnxt_qplib_reg_desc *ucreg; in bnxt_qplib_map_db_bar() local
939 ucreg = &res->dpi_tbl.ucreg; in bnxt_qplib_map_db_bar()
940 ucreg->bar_id = RCFW_DBR_PCI_BAR_REGION; in bnxt_qplib_map_db_bar()
941 ucreg->bar_base = pci_resource_start(res->pdev, ucreg->bar_id); in bnxt_qplib_map_db_bar()
942 ucreg->len = ucreg->offset + PAGE_SIZE; in bnxt_qplib_map_db_bar()
943 if (!ucreg->len || ((ucreg->len & (PAGE_SIZE - 1)) != 0)) { in bnxt_qplib_map_db_bar()
945 (int)ucreg->len); in bnxt_qplib_map_db_bar()
948 ucreg->bar_reg = ioremap(ucreg->bar_base, ucreg->len); in bnxt_qplib_map_db_bar()
949 if (!ucreg->bar_reg) { in bnxt_qplib_map_db_bar()