Searched refs:num_mw (Results 1 – 5 of 5) sorted by relevance
| /drivers/infiniband/sw/rxe/ |
| A D | rxe_mw.c | 148 atomic_dec(&mw->mr->num_mw); in rxe_do_bind_mw() 154 atomic_inc(&mr->num_mw); in rxe_do_bind_mw() 249 atomic_dec(&mr->num_mw); in rxe_do_invalidate_mw() 323 atomic_dec(&mr->num_mw); in rxe_mw_cleanup()
|
| A D | rxe_verbs.h | 348 atomic_t num_mw; member
|
| A D | rxe_mr.c | 659 if (atomic_read(&mr->num_mw) > 0) { in rxe_invalidate_mr()
|
| A D | rxe_verbs.c | 1414 if (atomic_read(&mr->num_mw) > 0) { in rxe_dereg_mr()
|
| /drivers/ntb/ |
| A D | ntb_transport.c | 793 static void ntb_free_mw(struct ntb_transport_ctx *nt, int num_mw) in ntb_free_mw() argument 795 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; in ntb_free_mw() 801 ntb_mw_clear_trans(nt->ndev, PIDX, num_mw); in ntb_free_mw() 868 static int ntb_set_mw(struct ntb_transport_ctx *nt, int num_mw, in ntb_set_mw() argument 871 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; in ntb_set_mw() 881 rc = ntb_mw_get_align(nt->ndev, PIDX, num_mw, &xlat_align, in ntb_set_mw() 894 ntb_free_mw(nt, num_mw); in ntb_set_mw() 916 rc = ntb_mw_set_trans(nt->ndev, PIDX, num_mw, mw->dma_addr, in ntb_set_mw() 919 dev_err(&pdev->dev, "Unable to set mw%d translation", num_mw); in ntb_set_mw() 920 ntb_free_mw(nt, num_mw); in ntb_set_mw()
|
Completed in 18 milliseconds