Lines Matching refs:vf_idx
1305 int vf_idx; in bnx2x_iov_remove_one() local
1314 for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) { in bnx2x_iov_remove_one()
1318 vf_idx)); in bnx2x_iov_remove_one()
1320 bp->vfdb->sriov.first_vf_in_pf + vf_idx); in bnx2x_iov_remove_one()
2449 int vf_idx, sb_idx, vfq_idx, qcount, first_vf; in bnx2x_enable_sriov() local
2463 for (vf_idx = 0; vf_idx < req_vfs; vf_idx++) { in bnx2x_enable_sriov()
2464 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); in bnx2x_enable_sriov()
2467 vf_sb_count(BP_VF(bp, vf_idx)) = 0; in bnx2x_enable_sriov()
2474 for (vf_idx = first_vf; vf_idx < first_vf + req_vfs; vf_idx++) { in bnx2x_enable_sriov()
2476 igu_entry = vf_idx << IGU_REG_MAPPING_MEMORY_FID_SHIFT | in bnx2x_enable_sriov()
2480 sb_idx, vf_idx); in bnx2x_enable_sriov()
2494 for_each_vf(bp, vf_idx) { in bnx2x_enable_sriov()
2495 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); in bnx2x_enable_sriov()
2507 for (vf_idx = first_vf; vf_idx < first_vf + req_vfs; vf_idx++) { in bnx2x_enable_sriov()
2508 bnx2x_pretend_func(bp, HW_VF_HANDLE(bp, vf_idx)); in bnx2x_enable_sriov()
2512 vf_idx, num_vf_queues - 1); in bnx2x_enable_sriov()
3160 int vf_idx; in bnx2x_iov_channel_down() local
3166 for_each_vf(bp, vf_idx) { in bnx2x_iov_channel_down()
3170 bulletin = BP_VF_BULLETIN(bp, vf_idx); in bnx2x_iov_channel_down()
3174 bnx2x_post_vf_bulletin(bp, vf_idx); in bnx2x_iov_channel_down()