Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/ntb/
Dntb_hw.c88 #define MW_TO_BAR(mw) (mw == 0 ? 2 : (mw == 1 ? 4 : 5)) macro
447 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()