Lines Matching refs:ctrl_bar
75 u8 __iomem *ctrl_bar; in nfp_netvf_pci_probe() local
109 ctrl_bar = ioremap(pci_resource_start(pdev, NFP_NET_CTRL_BAR), in nfp_netvf_pci_probe()
111 if (!ctrl_bar) { in nfp_netvf_pci_probe()
118 nfp_net_get_fw_version(&fw_ver, ctrl_bar); in nfp_netvf_pci_probe()
149 max_tx_rings = readl(ctrl_bar + NFP_NET_CFG_MAX_TXRINGS); in nfp_netvf_pci_probe()
150 max_rx_rings = readl(ctrl_bar + NFP_NET_CFG_MAX_RXRINGS); in nfp_netvf_pci_probe()
169 startq = readl(ctrl_bar + NFP_NET_CFG_START_TXQ); in nfp_netvf_pci_probe()
171 startq = readl(ctrl_bar + NFP_NET_CFG_START_RXQ); in nfp_netvf_pci_probe()
175 nn = nfp_net_alloc(pdev, ctrl_bar, true, max_tx_rings, max_rx_rings); in nfp_netvf_pci_probe()
272 iounmap(ctrl_bar); in nfp_netvf_pci_probe()
310 iounmap(nn->dp.ctrl_bar); in nfp_netvf_pci_remove()