Lines Matching refs:vfidx

29 static int bnx2x_vf_op_prep(struct bnx2x *bp, int vfidx,
2529 int vfidx; in bnx2x_pf_set_vfs_vlan() local
2533 for_each_vf(bp, vfidx) { in bnx2x_pf_set_vfs_vlan()
2534 bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_pf_set_vfs_vlan()
2536 bnx2x_set_vf_vlan(bp->dev, vfidx, bulletin->vlan, 0, in bnx2x_pf_set_vfs_vlan()
2552 static int bnx2x_vf_op_prep(struct bnx2x *bp, int vfidx, in bnx2x_vf_op_prep() argument
2567 if (vfidx >= BNX2X_NR_VIRTFN(bp)) { in bnx2x_vf_op_prep()
2569 vfidx, BNX2X_NR_VIRTFN(bp)); in bnx2x_vf_op_prep()
2574 *vf = BP_VF(bp, vfidx); in bnx2x_vf_op_prep()
2575 *bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_vf_op_prep()
2578 BNX2X_ERR("Unable to get VF structure for vfidx %d\n", vfidx); in bnx2x_vf_op_prep()
2584 vfidx); in bnx2x_vf_op_prep()
2590 vfidx); in bnx2x_vf_op_prep()
2597 int bnx2x_get_vf_config(struct net_device *dev, int vfidx, in bnx2x_get_vf_config() argument
2608 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_get_vf_config()
2619 ivi->vf = vfidx; in bnx2x_get_vf_config()
2675 int bnx2x_set_vf_mac(struct net_device *dev, int vfidx, u8 *mac) in bnx2x_set_vf_mac() argument
2688 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_set_vf_mac()
2701 rc = bnx2x_post_vf_bulletin(bp, vfidx); in bnx2x_set_vf_mac()
2707 BNX2X_ERR("failed to update VF[%d] bulletin\n", vfidx); in bnx2x_set_vf_mac()
2798 int bnx2x_set_vf_vlan(struct net_device *dev, int vfidx, u16 vlan, u8 qos, in bnx2x_set_vf_vlan() argument
2818 vfidx, vlan, 0); in bnx2x_set_vf_vlan()
2821 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_set_vf_vlan()
2840 rc = bnx2x_post_vf_bulletin(bp, vfidx); in bnx2x_set_vf_vlan()
2842 BNX2X_ERR("failed to update VF[%d] bulletin\n", vfidx); in bnx2x_set_vf_vlan()
2937 vfidx, vlan); in bnx2x_set_vf_vlan()