Home
last modified time | relevance | path

Searched refs:num_mw (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/infiniband/sw/rxe/
Drxe_mw.c148 atomic_dec(&mw->mr->num_mw); in rxe_do_bind_mw()
154 atomic_inc(&mr->num_mw); in rxe_do_bind_mw()
242 atomic_dec(&mr->num_mw); in rxe_do_invalidate_mw()
317 atomic_dec(&mr->num_mw); in rxe_mw_cleanup()
Drxe_mr.c538 if (atomic_read(&mr->num_mw) > 0) { in rxe_invalidate_mr()
608 if (atomic_read(&mr->num_mw) > 0) in rxe_dereg_mr()
Drxe_verbs.h322 atomic_t num_mw; member
/linux-6.1.9/drivers/ntb/
Dntb_transport.c791 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()