Lines Matching refs:vfidx
29 static int bnx2x_vf_op_prep(struct bnx2x *bp, int vfidx,
2537 int vfidx; in bnx2x_pf_set_vfs_vlan() local
2541 for_each_vf(bp, vfidx) { in bnx2x_pf_set_vfs_vlan()
2542 bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_pf_set_vfs_vlan()
2544 bnx2x_set_vf_vlan(bp->dev, vfidx, bulletin->vlan, 0, in bnx2x_pf_set_vfs_vlan()
2560 static int bnx2x_vf_op_prep(struct bnx2x *bp, int vfidx, in bnx2x_vf_op_prep() argument
2575 if (vfidx >= BNX2X_NR_VIRTFN(bp)) { in bnx2x_vf_op_prep()
2577 vfidx, BNX2X_NR_VIRTFN(bp)); in bnx2x_vf_op_prep()
2582 *vf = BP_VF(bp, vfidx); in bnx2x_vf_op_prep()
2583 *bulletin = BP_VF_BULLETIN(bp, vfidx); in bnx2x_vf_op_prep()
2586 BNX2X_ERR("Unable to get VF structure for vfidx %d\n", vfidx); in bnx2x_vf_op_prep()
2592 vfidx); in bnx2x_vf_op_prep()
2598 vfidx); in bnx2x_vf_op_prep()
2605 int bnx2x_get_vf_config(struct net_device *dev, int vfidx, in bnx2x_get_vf_config() argument
2616 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_get_vf_config()
2627 ivi->vf = vfidx; in bnx2x_get_vf_config()
2683 int bnx2x_set_vf_mac(struct net_device *dev, int vfidx, u8 *mac) in bnx2x_set_vf_mac() argument
2696 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_set_vf_mac()
2709 rc = bnx2x_post_vf_bulletin(bp, vfidx); in bnx2x_set_vf_mac()
2715 BNX2X_ERR("failed to update VF[%d] bulletin\n", vfidx); in bnx2x_set_vf_mac()
2806 int bnx2x_set_vf_vlan(struct net_device *dev, int vfidx, u16 vlan, u8 qos, in bnx2x_set_vf_vlan() argument
2826 vfidx, vlan, 0); in bnx2x_set_vf_vlan()
2829 rc = bnx2x_vf_op_prep(bp, vfidx, &vf, &bulletin, true); in bnx2x_set_vf_vlan()
2848 rc = bnx2x_post_vf_bulletin(bp, vfidx); in bnx2x_set_vf_vlan()
2850 BNX2X_ERR("failed to update VF[%d] bulletin\n", vfidx); in bnx2x_set_vf_vlan()
2945 vfidx, vlan); in bnx2x_set_vf_vlan()