Lines Matching refs:vf_idx
1350 int vf_idx; in bnx2x_iov_remove_one() local
1359 for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) { in bnx2x_iov_remove_one()
1363 vf_idx)); in bnx2x_iov_remove_one()
1365 bp->vfdb->sriov.first_vf_in_pf + vf_idx); in bnx2x_iov_remove_one()
2499 int vf_idx, sb_idx, vfq_idx, qcount, first_vf; in bnx2x_enable_sriov() local
2513 for (vf_idx = 0; vf_idx < req_vfs; vf_idx++) { in bnx2x_enable_sriov()
2514 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); in bnx2x_enable_sriov()
2517 vf_sb_count(BP_VF(bp, vf_idx)) = 0; in bnx2x_enable_sriov()
2524 for (vf_idx = first_vf; vf_idx < first_vf + req_vfs; vf_idx++) { in bnx2x_enable_sriov()
2526 igu_entry = vf_idx << IGU_REG_MAPPING_MEMORY_FID_SHIFT | in bnx2x_enable_sriov()
2530 sb_idx, vf_idx); in bnx2x_enable_sriov()
2544 for_each_vf(bp, vf_idx) { in bnx2x_enable_sriov()
2545 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); in bnx2x_enable_sriov()
2557 for (vf_idx = first_vf; vf_idx < first_vf + req_vfs; vf_idx++) { in bnx2x_enable_sriov()
2558 bnx2x_pretend_func(bp, HW_VF_HANDLE(bp, vf_idx)); in bnx2x_enable_sriov()
2562 vf_idx, num_vf_queues - 1); in bnx2x_enable_sriov()
3099 int vf_idx; in bnx2x_iov_channel_down() local
3105 for_each_vf(bp, vf_idx) { in bnx2x_iov_channel_down()
3109 bulletin = BP_VF_BULLETIN(bp, vf_idx); in bnx2x_iov_channel_down()
3113 bnx2x_post_vf_bulletin(bp, vf_idx); in bnx2x_iov_channel_down()