Lines Matching refs:b2b_bar
1299 int b2b_bar; in xeon_setup_b2b_mw() local
1307 b2b_bar = 0; in xeon_setup_b2b_mw()
1310 b2b_bar = ndev_mw_to_bar(ndev, ndev->b2b_idx); in xeon_setup_b2b_mw()
1311 if (b2b_bar < 0) in xeon_setup_b2b_mw()
1314 dev_dbg(&pdev->dev, "using b2b mw bar %d\n", b2b_bar); in xeon_setup_b2b_mw()
1316 bar_size = pci_resource_len(ndev->ntb.pdev, b2b_bar); in xeon_setup_b2b_mw()
1341 if (b2b_bar == 2) { in xeon_setup_b2b_mw()
1354 if (b2b_bar == 4) { in xeon_setup_b2b_mw()
1366 if (b2b_bar == 4) { in xeon_setup_b2b_mw()
1378 if (b2b_bar == 5) { in xeon_setup_b2b_mw()
1390 if (b2b_bar == 0) in xeon_setup_b2b_mw()
1392 else if (b2b_bar == 2) in xeon_setup_b2b_mw()
1394 else if (b2b_bar == 4 && !ndev->bar4_split) in xeon_setup_b2b_mw()
1396 else if (b2b_bar == 4) in xeon_setup_b2b_mw()
1398 else if (b2b_bar == 5) in xeon_setup_b2b_mw()
1411 bar_addr = addr->bar2_addr64 + (b2b_bar == 2 ? ndev->b2b_off : 0); in xeon_setup_b2b_mw()
1418 (b2b_bar == 4 ? ndev->b2b_off : 0); in xeon_setup_b2b_mw()
1424 (b2b_bar == 4 ? ndev->b2b_off : 0); in xeon_setup_b2b_mw()
1430 (b2b_bar == 5 ? ndev->b2b_off : 0); in xeon_setup_b2b_mw()
1438 bar_addr = addr->bar2_addr64 + (b2b_bar == 2 ? ndev->b2b_off : 0); in xeon_setup_b2b_mw()
1445 (b2b_bar == 4 ? ndev->b2b_off : 0); in xeon_setup_b2b_mw()
1451 (b2b_bar == 4 ? ndev->b2b_off : 0); in xeon_setup_b2b_mw()
1457 (b2b_bar == 5 ? ndev->b2b_off : 0); in xeon_setup_b2b_mw()
1506 if (b2b_bar == 0) in xeon_setup_b2b_mw()
1508 else if (b2b_bar == 2) in xeon_setup_b2b_mw()
1510 else if (b2b_bar == 4 && !ndev->bar4_split) in xeon_setup_b2b_mw()
1512 else if (b2b_bar == 4) in xeon_setup_b2b_mw()
1514 else if (b2b_bar == 5) in xeon_setup_b2b_mw()
1524 if (b2b_bar) { in xeon_setup_b2b_mw()
1526 ndev->peer_mmio = pci_iomap(pdev, b2b_bar, in xeon_setup_b2b_mw()
1531 ndev->peer_addr = pci_resource_start(pdev, b2b_bar); in xeon_setup_b2b_mw()