MCPcopy Create free account
hub / github.com/F-Stack/f-stack / txgbe_read_v2p_mailbox

Function txgbe_read_v2p_mailbox

dpdk/drivers/net/txgbe/base/txgbe_mbx.c:234–242  ·  view source on GitHub ↗

* txgbe_read_v2p_mailbox - read v2p mailbox * @hw: pointer to the HW structure * * This function is used to read the v2p mailbox without losing the read to * clear status bits. **/

Source from the content-addressed store, hash-verified

232 * clear status bits.
233 **/
234STATIC u32 txgbe_read_v2p_mailbox(struct txgbe_hw *hw)
235{
236 u32 v2p_mailbox = rd32(hw, TXGBE_VFMBCTL);
237
238 v2p_mailbox |= hw->mbx.v2p_mailbox;
239 hw->mbx.v2p_mailbox |= v2p_mailbox & TXGBE_VFMBCTL_R2C_BITS;
240
241 return v2p_mailbox;
242}
243
244/**
245 * txgbe_check_for_bit_vf - Determine if a status bit was set

Callers 2

txgbe_check_for_bit_vfFunction · 0.85
txgbe_obtain_mbx_lock_vfFunction · 0.85

Calls 1

rd32Function · 0.70

Tested by

no test coverage detected