Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_sriov.c301 u32 reg_cur_tx, reg_cur_rx, reg_req_tx, reg_req_rx; in wx_set_vf_rx_tx() local
303 reg_cur_tx = rd32(wx, WX_TDM_VF_TE(index)); in wx_set_vf_rx_tx()
307 reg_req_tx = reg_cur_tx | BIT(vf_bit); in wx_set_vf_rx_tx()
310 if (reg_cur_tx != reg_req_tx) in wx_set_vf_rx_tx()
318 if (reg_cur_tx & reg_req_tx) 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
846 reg_cur_tx = IXGBE_READ_REG(hw, IXGBE_VFTE(reg_offset)); in ixgbe_set_vf_rx_tx()
850 reg_req_tx = reg_cur_tx | 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()
875 if (reg_cur_tx != reg_req_tx) in ixgbe_set_vf_rx_tx()