Home
last modified time | relevance | path

Searched refs:pfvfspoof (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_sriov.c268 u32 pfvfspoof; in wx_set_vlan_anti_spoofing() local
270 pfvfspoof = rd32(wx, WX_TDM_VLAN_AS(index)); in wx_set_vlan_anti_spoofing()
272 pfvfspoof |= BIT(vf_bit); in wx_set_vlan_anti_spoofing()
274 pfvfspoof &= ~BIT(vf_bit); in wx_set_vlan_anti_spoofing()
275 wr32(wx, WX_TDM_VLAN_AS(index), pfvfspoof); in wx_set_vlan_anti_spoofing()
H A Dwx_hw.c1451 u32 pfvfspoof, reg_offset, vf_shift; in wx_set_ethertype_anti_spoofing() local
1456 pfvfspoof = rd32(wx, WX_TDM_ETYPE_AS(reg_offset)); in wx_set_ethertype_anti_spoofing()
1458 pfvfspoof |= BIT(vf_shift); in wx_set_ethertype_anti_spoofing()
1460 pfvfspoof &= ~BIT(vf_shift); in wx_set_ethertype_anti_spoofing()
1461 wr32(wx, WX_TDM_ETYPE_AS(reg_offset), pfvfspoof); in wx_set_ethertype_anti_spoofing()