Home
last modified time | relevance | path

Searched refs:db_tab (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/drivers/infiniband/hw/mthca/
Dmthca_memfree.c447 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 = dma_map_sg(&dev->pdev->dev, &db_tab->page[i].mem, 1, in mthca_map_user_db()
490 ret = mthca_MAP_ICM_page(dev, sg_dma_address(&db_tab->page[i].mem), in mthca_map_user_db()
493 dma_unmap_sg(&dev->pdev->dev, &db_tab->page[i].mem, 1, in mthca_map_user_db()
[all …]
Dmthca_provider.c307 context->db_tab = mthca_init_user_db_tab(to_mdev(ibdev)); in mthca_alloc_ucontext()
308 if (IS_ERR(context->db_tab)) { in mthca_alloc_ucontext()
309 err = PTR_ERR(context->db_tab); in mthca_alloc_ucontext()
315 mthca_cleanup_user_db_tab(to_mdev(ibdev), &context->uar, context->db_tab); in mthca_alloc_ucontext()
328 to_mucontext(context)->db_tab); in mthca_dealloc_ucontext()
409 context->db_tab, ucmd.db_index, in mthca_create_srq()
424 context->db_tab, ucmd.db_index); in mthca_create_srq()
447 context->db_tab, to_msrq(srq)->db_index); in mthca_destroy_srq()
478 context->db_tab, in mthca_create_qp()
485 context->db_tab, in mthca_create_qp()
[all …]
Dmthca_memfree.h166 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);
Dmthca_provider.h67 struct mthca_user_db_table *db_tab; member
Dmthca_dev.h351 struct mthca_db_table *db_tab; member