Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_sriov.c315 u32 reg_cur_tx, reg_cur_rx, reg_req_tx, reg_req_rx; in wx_set_vf_rx_tx() local
322 reg_req_rx = reg_cur_rx | BIT(vf_bit); in wx_set_vf_rx_tx()
326 if (reg_cur_rx != reg_req_rx) in wx_set_vf_rx_tx()
327 wr32(wx, WX_RDM_VF_RE(index), reg_req_rx); in wx_set_vf_rx_tx()
330 reg_req_rx = BIT(vf_bit); in wx_set_vf_rx_tx()
334 if (reg_cur_rx & reg_req_rx) in wx_set_vf_rx_tx()
335 wr32(wx, WX_RDM_VFRE_CLR(index), reg_req_rx); in wx_set_vf_rx_tx()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_sriov.c839 u32 reg_cur_tx, reg_cur_rx, reg_req_tx, reg_req_rx; in ixgbe_set_vf_rx_tx() local
851 reg_req_rx = reg_cur_rx | 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()
871 reg_req_rx = reg_cur_rx & ~(1 << vf_shift); in ixgbe_set_vf_rx_tx()
877 if (reg_cur_rx != reg_req_rx) in ixgbe_set_vf_rx_tx()
878 IXGBE_WRITE_REG(hw, IXGBE_VFRE(reg_offset), reg_req_rx); in ixgbe_set_vf_rx_tx()