Lines Matching defs:vf_number
260 * @vf_number: the VF index
264 static s32 igb_check_for_msg_pf(struct e1000_hw *hw, u16 vf_number)
268 if (!igb_check_for_bit_pf(hw, E1000_MBVFICR_VFREQ_VF1 << vf_number)) {
279 * @vf_number: the VF index
283 static s32 igb_check_for_ack_pf(struct e1000_hw *hw, u16 vf_number)
287 if (!igb_check_for_bit_pf(hw, E1000_MBVFICR_VFACK_VF1 << vf_number)) {
298 * @vf_number: the VF index
302 static s32 igb_check_for_rst_pf(struct e1000_hw *hw, u16 vf_number)
307 if (vflre & (1 << vf_number)) {
309 wr32(E1000_VFLRE, (1 << vf_number));
319 * @vf_number: the VF index
323 static s32 igb_obtain_mbx_lock_pf(struct e1000_hw *hw, u16 vf_number)
330 wr32(E1000_P2VMAILBOX(vf_number), E1000_P2VMAILBOX_PFU);
333 p2v_mailbox = rd32(E1000_P2VMAILBOX(vf_number));
345 * @vf_number: the VF index
350 u16 vf_number)
356 ret_val = igb_obtain_mbx_lock_pf(hw, vf_number);
361 igb_check_for_msg_pf(hw, vf_number);
362 igb_check_for_ack_pf(hw, vf_number);
366 array_wr32(E1000_VMBMEM(vf_number), i, msg[i]);
369 wr32(E1000_P2VMAILBOX(vf_number), E1000_P2VMAILBOX_STS);
384 * @vf_number: the VF index
391 u16 vf_number)
397 ret_val = igb_obtain_mbx_lock_pf(hw, vf_number);
403 msg[i] = array_rd32(E1000_VMBMEM(vf_number), i);
406 wr32(E1000_P2VMAILBOX(vf_number), E1000_P2VMAILBOX_ACK);