Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_net_sriov.c22 if (!app || !app->pf->vfcfg_tbl2) in nfp_net_sriov_check()
25 cap_vf = readw(app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_CAP); in nfp_net_sriov_check()
46 writeb(vf, app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_VF_NUM); in nfp_net_sriov_update()
47 writew(update, app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_UPD); in nfp_net_sriov_update()
55 ret = readw(app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_RET); in nfp_net_sriov_update()
81 writel(get_unaligned_be32(mac), app->pf->vfcfg_tbl2 + vf_offset); in nfp_app_set_vf_mac()
83 app->pf->vfcfg_tbl2 + vf_offset + NFP_NET_VF_CFG_MAC_LO); in nfp_app_set_vf_mac()
119 writew(vlan_tci, app->pf->vfcfg_tbl2 + vf_offset + NFP_NET_VF_CFG_VLAN); in nfp_app_set_vf_vlan()
140 vf_ctrl = readb(app->pf->vfcfg_tbl2 + vf_offset); in nfp_app_set_vf_spoofchk()
143 writeb(vf_ctrl, app->pf->vfcfg_tbl2 + vf_offset); in nfp_app_set_vf_spoofchk()
[all …]
Dnfp_net_main.c486 pf->vfcfg_tbl2 = nfp_pf_map_rtsym(pf, "net.vfcfg_tbl2", in nfp_net_pci_map_mem()
489 if (IS_ERR(pf->vfcfg_tbl2)) { in nfp_net_pci_map_mem()
490 if (PTR_ERR(pf->vfcfg_tbl2) != -ENOENT) { in nfp_net_pci_map_mem()
491 err = PTR_ERR(pf->vfcfg_tbl2); in nfp_net_pci_map_mem()
494 pf->vfcfg_tbl2 = NULL; in nfp_net_pci_map_mem()
Dnfp_main.h104 u8 __iomem *vfcfg_tbl2; member