Lines Matching refs:vf_idx
1303 int vf_idx; in bnx2x_iov_remove_one() local
1312 for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) { in bnx2x_iov_remove_one()
1316 vf_idx)); in bnx2x_iov_remove_one()
1318 bp->vfdb->sriov.first_vf_in_pf + vf_idx); in bnx2x_iov_remove_one()
2437 int vf_idx, sb_idx, vfq_idx, qcount, first_vf; in bnx2x_enable_sriov() local
2451 for (vf_idx = 0; vf_idx < req_vfs; vf_idx++) { in bnx2x_enable_sriov()
2452 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); in bnx2x_enable_sriov()
2455 vf_sb_count(BP_VF(bp, vf_idx)) = 0; in bnx2x_enable_sriov()
2462 for (vf_idx = first_vf; vf_idx < first_vf + req_vfs; vf_idx++) { in bnx2x_enable_sriov()
2464 igu_entry = vf_idx << IGU_REG_MAPPING_MEMORY_FID_SHIFT | in bnx2x_enable_sriov()
2468 sb_idx, vf_idx); in bnx2x_enable_sriov()
2482 for_each_vf(bp, vf_idx) { in bnx2x_enable_sriov()
2483 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); in bnx2x_enable_sriov()
2495 for (vf_idx = first_vf; vf_idx < first_vf + req_vfs; vf_idx++) { in bnx2x_enable_sriov()
2496 bnx2x_pretend_func(bp, HW_VF_HANDLE(bp, vf_idx)); in bnx2x_enable_sriov()
2500 vf_idx, num_vf_queues - 1); in bnx2x_enable_sriov()
3071 int vf_idx; in bnx2x_iov_channel_down() local
3077 for_each_vf(bp, vf_idx) { in bnx2x_iov_channel_down()
3081 bulletin = BP_VF_BULLETIN(bp, vf_idx); in bnx2x_iov_channel_down()
3085 bnx2x_post_vf_bulletin(bp, vf_idx); in bnx2x_iov_channel_down()