Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_netvf_main.c75 u8 __iomem *ctrl_bar; in nfp_netvf_pci_probe() local
109 ctrl_bar = ioremap_nocache(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()
[all …]
Dnfp_net_main.c106 void __iomem *ctrl_bar, void __iomem *qc_bar, in nfp_net_pf_alloc_vnic() argument
113 tx_base = readl(ctrl_bar + NFP_NET_CFG_START_TXQ); in nfp_net_pf_alloc_vnic()
114 rx_base = readl(ctrl_bar + NFP_NET_CFG_START_RXQ); in nfp_net_pf_alloc_vnic()
115 n_tx_rings = readl(ctrl_bar + NFP_NET_CFG_MAX_TXRINGS); in nfp_net_pf_alloc_vnic()
116 n_rx_rings = readl(ctrl_bar + NFP_NET_CFG_MAX_RXRINGS); in nfp_net_pf_alloc_vnic()
119 nn = nfp_net_alloc(pf->pdev, ctrl_bar, needs_netdev, in nfp_net_pf_alloc_vnic()
125 nfp_net_get_fw_version(&nn->fw_ver, ctrl_bar); in nfp_net_pf_alloc_vnic()
190 nfp_net_pf_alloc_vnics(struct nfp_pf *pf, void __iomem *ctrl_bar, in nfp_net_pf_alloc_vnics() argument
198 nn = nfp_net_pf_alloc_vnic(pf, true, ctrl_bar, qc_bar, in nfp_net_pf_alloc_vnics()
205 ctrl_bar += NFP_PF_CSR_SLICE_SIZE; in nfp_net_pf_alloc_vnics()
[all …]
Dnfp_net.h518 u8 __iomem *ctrl_bar; member
706 return readb(nn->dp.ctrl_bar + off); in nn_readb()
711 writeb(val, nn->dp.ctrl_bar + off); in nn_writeb()
716 return readw(nn->dp.ctrl_bar + off); in nn_readw()
721 writew(val, nn->dp.ctrl_bar + off); in nn_writew()
726 return readl(nn->dp.ctrl_bar + off); in nn_readl()
731 writel(val, nn->dp.ctrl_bar + off); in nn_writel()
736 return readq(nn->dp.ctrl_bar + off); in nn_readq()
741 writeq(val, nn->dp.ctrl_bar + off); in nn_writeq()
923 void __iomem *ctrl_bar);
[all …]
Dccm_mbox.c220 data = nn->dp.ctrl_bar + nn->tlv_caps.mbox_off + in nfp_ccm_mbox_copy_out()
232 offset = data - nn->dp.ctrl_bar; in nfp_ccm_mbox_copy_out()
Dnfp_net_ethtool.c627 data = nfp_vnic_get_hw_stats(data, nn->dp.ctrl_bar, nn->max_r_vecs); in nfp_net_get_stats()
876 writel(new_rss_cfg, nn->dp.ctrl_bar + NFP_NET_CFG_RSS_CTRL); in nfp_net_set_rss_hash_opt()
988 regs_buf[i] = readl(nn->dp.ctrl_bar + (i * sizeof(u32))); in nfp_net_get_regs()
Dnfp_net_common.c57 void __iomem *ctrl_bar) in nfp_net_get_fw_version() argument
61 reg = readl(ctrl_bar + NFP_NET_CFG_VERSION); in nfp_net_get_fw_version()
3815 nfp_net_alloc(struct pci_dev *pdev, void __iomem *ctrl_bar, bool needs_netdev, in nfp_net_alloc() argument
3839 nn->dp.ctrl_bar = ctrl_bar; in nfp_net_alloc()
3864 err = nfp_net_tlv_caps_parse(&nn->pdev->dev, nn->dp.ctrl_bar, in nfp_net_alloc()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/abm/
Dmain.c117 port->vnic = alink->vnic->dp.ctrl_bar; in nfp_abm_spawn_repr()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/flower/
Dmain.c423 port->vnic = priv->nn->dp.ctrl_bar; in nfp_flower_spawn_vnic_reprs()