Lines Matching refs:db_base
35 #define DB_IDX(db, db_base) \ argument
36 (((unsigned long)(db) - (unsigned long)(db_base)) / HINIC_DB_PAGE_SIZE)
84 return func_to_io->db_base + idx * HINIC_DB_PAGE_SIZE; in get_db_area()
88 void __iomem *db_base) in return_db_area() argument
91 int pos, idx = DB_IDX(db_base, func_to_io->db_base); in return_db_area()
278 void __iomem *db_base; in init_qp() local
299 db_base = get_db_area(func_to_io); in init_qp()
300 if (IS_ERR(db_base)) { in init_qp()
302 err = PTR_ERR(db_base); in init_qp()
306 func_to_io->sq_db[q_id] = db_base; in init_qp()
312 CI_ADDR(func_to_io->ci_dma_base, q_id), db_base); in init_qp()
332 return_db_area(func_to_io, db_base); in init_qp()
556 func_to_io->db_base = pci_ioremap_bar(pdev, HINIC_PCI_DB_BAR); in hinic_io_init()
557 if (!func_to_io->db_base) { in hinic_io_init()
603 iounmap(func_to_io->db_base); in hinic_io_init()
631 iounmap(func_to_io->db_base); in hinic_io_free()