Searched refs:vf_shift (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_sriov.c | 497 u32 reg_offset, vf_shift, vfre; in ixgbe_set_vf_lpe() local 532 vf_shift = vf % 32; in ixgbe_set_vf_lpe() 538 vfre &= ~BIT(vf_shift); in ixgbe_set_vf_lpe() 540 vfre |= BIT(vf_shift); in ixgbe_set_vf_lpe() 841 u32 reg_offset, vf_shift; in ixgbe_set_vf_rx_tx() local 843 vf_shift = vf % 32; in ixgbe_set_vf_rx_tx() 850 reg_req_tx = reg_cur_tx | 1 << vf_shift; in ixgbe_set_vf_rx_tx() 851 reg_req_rx = reg_cur_rx | 1 << vf_shift; in ixgbe_set_vf_rx_tx() 853 reg_req_tx = reg_cur_tx & ~(1 << vf_shift); in ixgbe_set_vf_rx_tx() 854 reg_req_rx = reg_cur_rx & ~(1 << vf_shift); in ixgbe_set_vf_rx_tx() [all …]
|
| H A D | ixgbe_main.c | 4627 u32 reg_offset, vf_shift, vmolr; in ixgbe_configure_virtualization() local 4648 vf_shift = VMDQ_P(0) % 32; in ixgbe_configure_virtualization() 4652 IXGBE_WRITE_REG(hw, IXGBE_VFRE(reg_offset), GENMASK(31, vf_shift)); in ixgbe_configure_virtualization() 4654 IXGBE_WRITE_REG(hw, IXGBE_VFTE(reg_offset), GENMASK(31, vf_shift)); in ixgbe_configure_virtualization()
|
| /linux/drivers/net/ethernet/wangxun/libwx/ |
| H A D | wx_mbx.c | 167 u32 vf_shift = WX_VF_IND_SHIFT(vf); in wx_check_for_rst_pf() local 171 if (!(vflre & BIT(vf_shift))) in wx_check_for_rst_pf() 173 wr32(wx, WX_VFLREC(reg_offset), BIT(vf_shift)); in wx_check_for_rst_pf()
|
| H A D | wx_hw.c | 1451 u32 pfvfspoof, reg_offset, vf_shift; in wx_set_ethertype_anti_spoofing() local 1453 vf_shift = WX_VF_IND_SHIFT(vf); 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() 1487 u32 reg_offset, vf_shift; in wx_configure_virtualization() local 1502 vf_shift = BIT(VMDQ_P(0)); in wx_configure_virtualization() 1504 wr32(wx, WX_RDM_VF_RE(0), vf_shift); in wx_configure_virtualization() 1505 wr32(wx, WX_TDM_VF_TE(0), vf_shift); in wx_configure_virtualization() 1507 vf_shift = WX_VF_IND_SHIFT(VMDQ_P(0)); in wx_configure_virtualization() 1511 wr32(wx, WX_RDM_VF_RE(reg_offset), GENMASK(31, vf_shift)); in wx_configure_virtualization() [all …]
|