Searched refs:num_mw (Results 1 – 4 of 4) sorted by relevance
/linux-5.19.10/drivers/infiniband/sw/rxe/ |
D | rxe_mw.c | 146 atomic_dec(&mw->mr->num_mw); in rxe_do_bind_mw() 152 atomic_inc(&mr->num_mw); in rxe_do_bind_mw() 240 atomic_dec(&mr->num_mw); in rxe_do_invalidate_mw() 315 atomic_dec(&mr->num_mw); in rxe_mw_cleanup()
|
D | rxe_mr.c | 549 if (atomic_read(&mr->num_mw) > 0) { in rxe_invalidate_mr() 619 if (atomic_read(&mr->num_mw) > 0) in rxe_dereg_mr()
|
D | rxe_verbs.h | 326 atomic_t num_mw; member
|
/linux-5.19.10/drivers/ntb/ |
D | ntb_transport.c | 791 static void ntb_free_mw(struct ntb_transport_ctx *nt, int num_mw) in ntb_free_mw() argument 793 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; in ntb_free_mw() 799 ntb_mw_clear_trans(nt->ndev, PIDX, num_mw); in ntb_free_mw() 853 static int ntb_set_mw(struct ntb_transport_ctx *nt, int num_mw, in ntb_set_mw() argument 856 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; in ntb_set_mw() 866 rc = ntb_mw_get_align(nt->ndev, PIDX, num_mw, &xlat_align, in ntb_set_mw() 879 ntb_free_mw(nt, num_mw); in ntb_set_mw() 901 rc = ntb_mw_set_trans(nt->ndev, PIDX, num_mw, mw->dma_addr, in ntb_set_mw() 904 dev_err(&pdev->dev, "Unable to set mw%d translation", num_mw); in ntb_set_mw() 905 ntb_free_mw(nt, num_mw); in ntb_set_mw()
|