* txgbe_check_for_msg_pf - checks to see if the VF has sent mail * @hw: pointer to the HW structure * @vf_number: the VF index * * returns 0 if the VF has set the Status bit or else ERR_MBX **/
| 468 | * returns 0 if the VF has set the Status bit or else ERR_MBX |
| 469 | **/ |
| 470 | s32 txgbe_check_for_msg_pf(struct txgbe_hw *hw, u16 vf_number) |
| 471 | { |
| 472 | s32 ret_val = TXGBE_ERR_MBX; |
| 473 | s32 index = TXGBE_MBVFICR_INDEX(vf_number); |
| 474 | u32 vf_bit = vf_number % 16; |
| 475 | |
| 476 | if (!txgbe_check_for_bit_pf(hw, TXGBE_MBVFICR_VFREQ_VF1 << vf_bit, |
| 477 | index)) { |
| 478 | ret_val = 0; |
| 479 | hw->mbx.stats.reqs++; |
| 480 | } |
| 481 | |
| 482 | return ret_val; |
| 483 | } |
| 484 | |
| 485 | /** |
| 486 | * txgbe_check_for_ack_pf - checks to see if the VF has ACKed |
no test coverage detected