Searched refs:MW_TO_BAR (Results 1 – 1 of 1) sorted by relevance
88 #define MW_TO_BAR(mw) (mw == 0 ? 2 : (mw == 1 ? 4 : 5)) macro447 return pci_resource_start(ndev->pdev, MW_TO_BAR(mw)); in ntb_get_mw_base()501 MW_TO_BAR(mw)); in ntb_set_mw_addr()505 switch (MW_TO_BAR(mw)) { in ntb_set_mw_addr()1757 ndev->mw[i].bar_sz = pci_resource_len(pdev, MW_TO_BAR(i)); in ntb_pci_probe()1767 MW_TO_BAR(i)), in ntb_pci_probe()1772 MW_TO_BAR(i)), in ntb_pci_probe()1780 MW_TO_BAR(i)); in ntb_pci_probe()