Searched refs:db_tab (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/ |
D | mthca_memfree.c | 447 struct mthca_user_db_table *db_tab, int index, u64 uaddr) in mthca_map_user_db() argument 459 mutex_lock(&db_tab->mutex); in mthca_map_user_db() 463 if ((db_tab->page[i].refcount >= MTHCA_DB_REC_PER_PAGE) || in mthca_map_user_db() 464 (db_tab->page[i].uvirt && db_tab->page[i].uvirt != uaddr) || in mthca_map_user_db() 470 if (db_tab->page[i].refcount) { in mthca_map_user_db() 471 ++db_tab->page[i].refcount; in mthca_map_user_db() 480 sg_set_page(&db_tab->page[i].mem, pages[0], MTHCA_ICM_PAGE_SIZE, in mthca_map_user_db() 483 ret = pci_map_sg(dev->pdev, &db_tab->page[i].mem, 1, PCI_DMA_TODEVICE); in mthca_map_user_db() 489 ret = mthca_MAP_ICM_page(dev, sg_dma_address(&db_tab->page[i].mem), in mthca_map_user_db() 492 pci_unmap_sg(dev->pdev, &db_tab->page[i].mem, 1, PCI_DMA_TODEVICE); in mthca_map_user_db() [all …]
|
D | mthca_provider.c | 315 context->db_tab = mthca_init_user_db_tab(to_mdev(ibdev)); in mthca_alloc_ucontext() 316 if (IS_ERR(context->db_tab)) { in mthca_alloc_ucontext() 317 err = PTR_ERR(context->db_tab); in mthca_alloc_ucontext() 323 mthca_cleanup_user_db_tab(to_mdev(ibdev), &context->uar, context->db_tab); in mthca_alloc_ucontext() 336 to_mucontext(context)->db_tab); in mthca_dealloc_ucontext() 417 context->db_tab, ucmd.db_index, in mthca_create_srq() 432 context->db_tab, ucmd.db_index); in mthca_create_srq() 455 context->db_tab, to_msrq(srq)->db_index); in mthca_destroy_srq() 491 context->db_tab, in mthca_create_qp() 499 context->db_tab, in mthca_create_qp() [all …]
|
D | mthca_memfree.h | 166 struct mthca_user_db_table *db_tab, int index, u64 uaddr); 168 struct mthca_user_db_table *db_tab, int index); 171 struct mthca_user_db_table *db_tab);
|
D | mthca_provider.h | 67 struct mthca_user_db_table *db_tab; member
|
D | mthca_dev.h | 351 struct mthca_db_table *db_tab; member
|