Home
last modified time | relevance | path

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

/drivers/ntb/
Dntb_transport.c793 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()
855 static int ntb_set_mw(struct ntb_transport_ctx *nt, int num_mw, in ntb_set_mw() argument
858 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; in ntb_set_mw()
868 rc = ntb_mw_get_align(nt->ndev, PIDX, num_mw, &xlat_align, in ntb_set_mw()
881 ntb_free_mw(nt, num_mw); in ntb_set_mw()
903 rc = ntb_mw_set_trans(nt->ndev, PIDX, num_mw, mw->dma_addr, in ntb_set_mw()
906 dev_err(&pdev->dev, "Unable to set mw%d translation", num_mw); in ntb_set_mw()
907 ntb_free_mw(nt, num_mw); in ntb_set_mw()