Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c494 u32 reg_offset, vf_shift, vfre; in ixgbe_set_vf_lpe() local
527 vf_shift = vf % 32; in ixgbe_set_vf_lpe()
533 vfre &= ~BIT(vf_shift); in ixgbe_set_vf_lpe()
535 vfre |= BIT(vf_shift); in ixgbe_set_vf_lpe()
838 u32 reg_offset, vf_shift; in ixgbe_set_vf_rx_tx() local
840 vf_shift = vf % 32; in ixgbe_set_vf_rx_tx()
847 reg_req_tx = reg_cur_tx | 1 << vf_shift; in ixgbe_set_vf_rx_tx()
848 reg_req_rx = reg_cur_rx | 1 << vf_shift; 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()
[all …]
Dixgbe_mbx.c275 u32 vf_shift = vf_number % 32; in ixgbe_check_for_rst_pf() local
292 if (vflre & BIT(vf_shift)) { in ixgbe_check_for_rst_pf()
293 IXGBE_WRITE_REG(hw, IXGBE_VFLREC(reg_offset), BIT(vf_shift)); in ixgbe_check_for_rst_pf()
Dixgbe_main.c4186 u32 reg_offset, vf_shift, vmolr; in ixgbe_configure_virtualization() local
4207 vf_shift = VMDQ_P(0) % 32; in ixgbe_configure_virtualization()
4211 IXGBE_WRITE_REG(hw, IXGBE_VFRE(reg_offset), GENMASK(31, vf_shift)); in ixgbe_configure_virtualization()
4213 IXGBE_WRITE_REG(hw, IXGBE_VFTE(reg_offset), GENMASK(31, vf_shift)); in ixgbe_configure_virtualization()