Lines Matching refs:vf_number
230 static s32 ixgbe_check_for_msg_pf(struct ixgbe_hw *hw, u16 vf_number) in ixgbe_check_for_msg_pf() argument
232 s32 index = IXGBE_MBVFICR_INDEX(vf_number); in ixgbe_check_for_msg_pf()
233 u32 vf_bit = vf_number % 16; in ixgbe_check_for_msg_pf()
251 static s32 ixgbe_check_for_ack_pf(struct ixgbe_hw *hw, u16 vf_number) in ixgbe_check_for_ack_pf() argument
253 s32 index = IXGBE_MBVFICR_INDEX(vf_number); in ixgbe_check_for_ack_pf()
254 u32 vf_bit = vf_number % 16; in ixgbe_check_for_ack_pf()
272 static s32 ixgbe_check_for_rst_pf(struct ixgbe_hw *hw, u16 vf_number) in ixgbe_check_for_rst_pf() argument
274 u32 reg_offset = (vf_number < 32) ? 0 : 1; in ixgbe_check_for_rst_pf()
275 u32 vf_shift = vf_number % 32; in ixgbe_check_for_rst_pf()
308 static s32 ixgbe_obtain_mbx_lock_pf(struct ixgbe_hw *hw, u16 vf_number) in ixgbe_obtain_mbx_lock_pf() argument
313 IXGBE_WRITE_REG(hw, IXGBE_PFMAILBOX(vf_number), IXGBE_PFMAILBOX_PFU); in ixgbe_obtain_mbx_lock_pf()
316 p2v_mailbox = IXGBE_READ_REG(hw, IXGBE_PFMAILBOX(vf_number)); in ixgbe_obtain_mbx_lock_pf()
333 u16 vf_number) in ixgbe_write_mbx_pf() argument
339 ret_val = ixgbe_obtain_mbx_lock_pf(hw, vf_number); in ixgbe_write_mbx_pf()
344 ixgbe_check_for_msg_pf(hw, vf_number); in ixgbe_write_mbx_pf()
345 ixgbe_check_for_ack_pf(hw, vf_number); in ixgbe_write_mbx_pf()
349 IXGBE_WRITE_REG_ARRAY(hw, IXGBE_PFMBMEM(vf_number), i, msg[i]); in ixgbe_write_mbx_pf()
352 IXGBE_WRITE_REG(hw, IXGBE_PFMAILBOX(vf_number), IXGBE_PFMAILBOX_STS); in ixgbe_write_mbx_pf()
372 u16 vf_number) in ixgbe_read_mbx_pf() argument
378 ret_val = ixgbe_obtain_mbx_lock_pf(hw, vf_number); in ixgbe_read_mbx_pf()
384 msg[i] = IXGBE_READ_REG_ARRAY(hw, IXGBE_PFMBMEM(vf_number), i); in ixgbe_read_mbx_pf()
387 IXGBE_WRITE_REG(hw, IXGBE_PFMAILBOX(vf_number), IXGBE_PFMAILBOX_ACK); in ixgbe_read_mbx_pf()