Searched refs:ctrl_bar (Results 1 – 8 of 8) sorted by relevance
/drivers/net/ethernet/netronome/nfp/ |
D | nfp_netvf_main.c | 88 u8 __iomem *ctrl_bar; in nfp_netvf_pci_probe() local 123 ctrl_bar = ioremap(pci_resource_start(pdev, NFP_NET_CTRL_BAR), in nfp_netvf_pci_probe() 125 if (!ctrl_bar) { in nfp_netvf_pci_probe() 132 nfp_net_get_fw_version(&fw_ver, ctrl_bar); in nfp_netvf_pci_probe() 165 max_tx_rings = readl(ctrl_bar + NFP_NET_CFG_MAX_TXRINGS); in nfp_netvf_pci_probe() 166 max_rx_rings = readl(ctrl_bar + NFP_NET_CFG_MAX_RXRINGS); in nfp_netvf_pci_probe() 185 startq = readl(ctrl_bar + NFP_NET_CFG_START_TXQ); in nfp_netvf_pci_probe() 187 startq = readl(ctrl_bar + NFP_NET_CFG_START_RXQ); in nfp_netvf_pci_probe() 191 nn = nfp_net_alloc(pdev, dev_info, ctrl_bar, true, in nfp_netvf_pci_probe() 288 iounmap(ctrl_bar); in nfp_netvf_pci_probe() [all …]
|
D | nfp_net_main.c | 100 void __iomem *ctrl_bar, void __iomem *qc_bar, in nfp_net_pf_alloc_vnic() argument 107 tx_base = readl(ctrl_bar + NFP_NET_CFG_START_TXQ); in nfp_net_pf_alloc_vnic() 108 rx_base = readl(ctrl_bar + NFP_NET_CFG_START_RXQ); in nfp_net_pf_alloc_vnic() 109 n_tx_rings = readl(ctrl_bar + NFP_NET_CFG_MAX_TXRINGS); in nfp_net_pf_alloc_vnic() 110 n_rx_rings = readl(ctrl_bar + NFP_NET_CFG_MAX_RXRINGS); in nfp_net_pf_alloc_vnic() 113 nn = nfp_net_alloc(pf->pdev, pf->dev_info, ctrl_bar, needs_netdev, in nfp_net_pf_alloc_vnic() 178 nfp_net_pf_alloc_vnics(struct nfp_pf *pf, void __iomem *ctrl_bar, in nfp_net_pf_alloc_vnics() argument 186 nn = nfp_net_pf_alloc_vnic(pf, true, ctrl_bar, qc_bar, in nfp_net_pf_alloc_vnics() 196 ctrl_bar += NFP_PF_CSR_SLICE_SIZE; in nfp_net_pf_alloc_vnics() 300 u8 __iomem *ctrl_bar; in nfp_net_pf_app_init() local [all …]
|
D | nfp_net.h | 523 u8 __iomem *ctrl_bar; member 749 return readb(nn->dp.ctrl_bar + off); in nn_readb() 754 writeb(val, nn->dp.ctrl_bar + off); in nn_writeb() 759 return readw(nn->dp.ctrl_bar + off); in nn_readw() 764 writew(val, nn->dp.ctrl_bar + off); in nn_writew() 769 return readl(nn->dp.ctrl_bar + off); in nn_readl() 774 writel(val, nn->dp.ctrl_bar + off); in nn_writel() 779 return readq(nn->dp.ctrl_bar + off); in nn_readq() 784 writeq(val, nn->dp.ctrl_bar + off); in nn_writeq() 946 void __iomem *ctrl_bar); [all …]
|
D | nfp_net_ethtool.c | 993 mem = nn->dp.ctrl_bar + nn->tlv_caps.vnic_stats_off; in nfp_vnic_get_tlv_stats_strings() 1025 mem = nn->dp.ctrl_bar + nn->tlv_caps.vnic_stats_off; in nfp_vnic_get_tlv_stats() 1030 mem = nn->dp.ctrl_bar; in nfp_vnic_get_tlv_stats() 1113 data = nfp_vnic_get_hw_stats(data, nn->dp.ctrl_bar, in nfp_net_get_stats() 1377 writel(new_rss_cfg, nn->dp.ctrl_bar + NFP_NET_CFG_RSS_CTRL); in nfp_net_set_rss_hash_opt() 1489 regs_buf[i] = readl(nn->dp.ctrl_bar + (i * sizeof(u32))); in nfp_net_get_regs()
|
D | nfp_net_common.c | 64 void __iomem *ctrl_bar) in nfp_net_get_fw_version() argument 68 reg = readl(ctrl_bar + NFP_NET_CFG_VERSION); in nfp_net_get_fw_version() 2289 void __iomem *ctrl_bar, bool needs_netdev, in nfp_net_alloc() argument 2314 nn->dp.ctrl_bar = ctrl_bar; in nfp_net_alloc() 2317 nfp_net_get_fw_version(&nn->fw_ver, ctrl_bar); in nfp_net_alloc() 2376 err = nfp_net_tlv_caps_parse(&nn->pdev->dev, nn->dp.ctrl_bar, in nfp_net_alloc()
|
D | ccm_mbox.c | 220 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()
|
/drivers/net/ethernet/netronome/nfp/abm/ |
D | main.c | 117 port->vnic = alink->vnic->dp.ctrl_bar; in nfp_abm_spawn_repr()
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | main.c | 432 port->vnic = priv->nn->dp.ctrl_bar; in nfp_flower_spawn_vnic_reprs()
|