Lines Matching refs:db_rec
601 if (dev->db_tab->page[i].db_rec && in mthca_alloc_db()
609 if (!dev->db_tab->page[i].db_rec) { in mthca_alloc_db()
627 page->db_rec = dma_alloc_coherent(&dev->pdev->dev, in mthca_alloc_db()
630 if (!page->db_rec) { in mthca_alloc_db()
639 page->db_rec, page->mapping); in mthca_alloc_db()
654 page->db_rec[j] = cpu_to_be64((qn << 8) | (type << 5)); in mthca_alloc_db()
656 *db = (__be32 *) &page->db_rec[j]; in mthca_alloc_db()
676 page->db_rec[j] = 0; in mthca_free_db()
686 page->db_rec, page->mapping); in mthca_free_db()
687 page->db_rec = NULL; in mthca_free_db()
726 dev->db_tab->page[i].db_rec = NULL; in mthca_init_db_tab()
745 if (!dev->db_tab->page[i].db_rec) in mthca_cleanup_db_tab()
754 dev->db_tab->page[i].db_rec, in mthca_cleanup_db_tab()