181 v2p_mailbox |=
hw->dev_spec.vf.v2p_mailbox;
200 if (v2p_mailbox & mask)
203 hw->dev_spec.vf.v2p_mailbox &= ~mask;
223 hw->mbx.stats.reqs++;
244 hw->mbx.stats.acks++;
266 hw->mbx.stats.rsts++;
322 for (i = 0; i <
size; i++)
326 hw->mbx.stats.msgs_tx++;
358 for (i = 0; i <
size; i++)
365 hw->mbx.stats.msgs_rx++;
#define E1000_READ_REG_ARRAY(a, reg, offset)
s32(* read_posted)(struct e1000_hw *, u32 *, u16, u16)
#define E1000_V2PMAILBOX_RSTD
static s32 igbvf_poll_for_ack(struct e1000_hw *hw, u16 mbx_id)
igbvf_poll_for_ack - Wait for message acknowledgement @hw: pointer to the HW structure @mbx_id: id of...
static s32 igbvf_poll_for_msg(struct e1000_hw *hw, u16 mbx_id)
igbvf_poll_for_msg - Wait for message notification @hw: pointer to the HW structure @mbx_id: id of ma...
void msg(unsigned int row, const char *fmt,...)
Print message centred on specified row.
static u32 igbvf_read_v2p_mailbox(struct e1000_hw *hw)
igbvf_read_v2p_mailbox - read v2p mailbox @hw: pointer to the HW structure
static s32 igbvf_check_for_bit_vf(struct e1000_hw *hw, u32 mask)
igbvf_check_for_bit_vf - Determine if a status bit was set @hw: pointer to the HW structure @mask: bi...
#define E1000_V2PMAILBOX_R2C_BITS
#define E1000_V2PMAILBOX_PFACK
s32(* read)(struct e1000_hw *, u32 *, u16, u16)
struct e1000_mbx_operations ops
static s32 igbvf_read_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id)
igbvf_read_posted_mbx - Wait for message notification and receive message @hw: pointer to the HW stru...
struct e1000_mbx_stats stats
#define __unused
Declare a variable or data structure as unused.
#define E1000_WRITE_REG_ARRAY(a, reg, offset, value)
static s32 igbvf_read_mbx_vf(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id __unused)
igbvf_read_mbx_vf - Reads a message from the inbox intended for vf @hw: pointer to the HW structure @...
#define E1000_V2PMAILBOX_VFU
void igbvf_init_mbx_ops_generic(struct e1000_hw *hw)
igbvf_init_mbx_ops_generic - Initialize NVM function pointers @hw: pointer to the HW structure
#define E1000_V2PMAILBOX_PFSTS
static s32 igbvf_check_for_rst_vf(struct e1000_hw *hw, u16 mbx_id __unused)
igbvf_check_for_rst_vf - checks to see if the PF has reset @hw: pointer to the HW structure @mbx_id: ...
#define E1000_WRITE_REG(a, reg, value)
static s32 igbvf_check_for_msg_vf(struct e1000_hw *hw, u16 mbx_id __unused)
igbvf_check_for_msg_vf - checks to see if the PF has sent mail @hw: pointer to the HW structure @mbx_...
static s32 igbvf_obtain_mbx_lock_vf(struct e1000_hw *hw)
igbvf_obtain_mbx_lock_vf - obtain mailbox lock @hw: pointer to the HW structure
s32(* write)(struct e1000_hw *, u32 *, u16, u16)
#define E1000_V2PMAILBOX(_n)
#define E1000_VFMAILBOX_SIZE
#define E1000_V2PMAILBOX_REQ
s32 igbvf_init_mbx_params_vf(struct e1000_hw *hw)
igbvf_init_mbx_params_vf - set initial values for vf mailbox @hw: pointer to the HW structure
s32(* check_for_rst)(struct e1000_hw *, u16)
static s32 igbvf_check_for_ack_vf(struct e1000_hw *hw, u16 mbx_id __unused)
igbvf_check_for_ack_vf - checks to see if the PF has ACK'd @hw: pointer to the HW structure @mbx_id: ...
s32(* check_for_ack)(struct e1000_hw *, u16)
uint8_t size
Entry size (in 32-bit words)
static s32 igbvf_write_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id)
igbvf_write_posted_mbx - Write a message to the mailbox, wait for ack @hw: pointer to the HW structur...
static s32 igbvf_write_mbx_vf(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id __unused)
igbvf_write_mbx_vf - Write a message to the mailbox @hw: pointer to the HW structure @msg: The messag...
s32(* write_posted)(struct e1000_hw *, u32 *, u16, u16)
#define E1000_VF_MBX_INIT_DELAY
#define E1000_V2PMAILBOX_RSTI
s32(* check_for_msg)(struct e1000_hw *, u16)
#define E1000_V2PMAILBOX_ACK
#define E1000_READ_REG(a, reg)