vf_idx           9982 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	int vf_idx;
vf_idx           9984 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 	for (vf_idx = 0; vf_idx < bp->requested_nr_virtfn; vf_idx++) {
vf_idx           9985 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 		struct bnx2x_virtf *vf = BP_VF(bp, vf_idx);
vf_idx           1312 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 	int vf_idx;
vf_idx           1321 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 	for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) {
vf_idx           1325 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 						vf_idx));
vf_idx           1327 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		   bp->vfdb->sriov.first_vf_in_pf + vf_idx);
vf_idx           2462 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 	int vf_idx, sb_idx, vfq_idx, qcount, first_vf;
vf_idx           2476 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 	for (vf_idx = 0; vf_idx < req_vfs; vf_idx++) {
vf_idx           2477 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		struct bnx2x_virtf *vf = BP_VF(bp, vf_idx);
vf_idx           2480 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		vf_sb_count(BP_VF(bp, vf_idx)) = 0;
vf_idx           2487 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 	for (vf_idx = first_vf; vf_idx < first_vf + req_vfs; vf_idx++) {
vf_idx           2489 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 			igu_entry = vf_idx << IGU_REG_MAPPING_MEMORY_FID_SHIFT |
vf_idx           2493 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 			   sb_idx, vf_idx);
vf_idx           2507 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 	for_each_vf(bp, vf_idx) {
vf_idx           2508 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		struct bnx2x_virtf *vf = BP_VF(bp, vf_idx);
vf_idx           2520 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 	for (vf_idx = first_vf; vf_idx < first_vf + req_vfs; vf_idx++) {
vf_idx           2521 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		bnx2x_pretend_func(bp, HW_VF_HANDLE(bp, vf_idx));
vf_idx           2525 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		   vf_idx, num_vf_queues - 1);
vf_idx           3173 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 	int vf_idx;
vf_idx           3179 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 	for_each_vf(bp, vf_idx) {
vf_idx           3183 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		bulletin = BP_VF_BULLETIN(bp, vf_idx);
vf_idx           3187 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		bnx2x_post_vf_bulletin(bp, vf_idx);
vf_idx           2193 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 	u8 vf_idx;
vf_idx           2208 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 	vf_idx = bnx2x_vf_idx_by_abs_fid(bp, vfpf_event->vf_id);
vf_idx           2212 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 	BP_VF_MBX(bp, vf_idx)->vf_addr_hi =
vf_idx           2214 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 	BP_VF_MBX(bp, vf_idx)->vf_addr_lo =
vf_idx           2216 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 	BP_VFDB(bp)->event_occur |= (1ULL << vf_idx);
vf_idx           2227 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 	u8 vf_idx;
vf_idx           2238 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 	for_each_vf(bp, vf_idx) {
vf_idx           2239 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 		struct bnx2x_vf_mbx *mbx = BP_VF_MBX(bp, vf_idx);
vf_idx           2240 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 		struct bnx2x_virtf *vf = BP_VF(bp, vf_idx);
vf_idx           2243 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 		if (!(events & (1ULL << vf_idx)))
vf_idx           2248 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 		   vf_idx, mbx->vf_addr_hi, mbx->vf_addr_lo,
vf_idx           1292 drivers/net/ethernet/broadcom/bnxt/bnxt.h 	u16				vf_idx;
vf_idx             27 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c static int hwrm_cfa_vfr_alloc(struct bnxt *bp, u16 vf_idx,
vf_idx             35 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 	req.vf_id = cpu_to_le16(vf_idx);
vf_idx             36 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 	sprintf(req.vfr_name, "vfr%d", vf_idx);
vf_idx             53 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c static int hwrm_cfa_vfr_free(struct bnxt *bp, u16 vf_idx)
vf_idx             59 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 	sprintf(req.vfr_name, "vfr%d", vf_idx);
vf_idx             76 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 	req.fid = cpu_to_le16(bp->pf.vf[vf_rep->vf_idx].fw_fid);
vf_idx            150 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 	int vf_fid = bp->pf.vf[vf_rep->vf_idx].fw_fid;
vf_idx            184 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 	u16 vf_idx;
vf_idx            187 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 		vf_idx = bp->cfa_code_map[cfa_code];
vf_idx            188 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 		if (vf_idx != VF_IDX_INVALID)
vf_idx            189 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 			return bp->vf_reps[vf_idx]->dev;
vf_idx            212 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 		      vf_rep->vf_idx);
vf_idx            304 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 				hwrm_cfa_vfr_free(bp, vf_rep->vf_idx);
vf_idx            357 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c static void bnxt_vf_rep_eth_addr_gen(u8 *src_mac, u16 vf_idx, u8 *mac)
vf_idx            363 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 	addr = jhash(src_mac, ETH_ALEN, 0) + vf_idx;
vf_idx            385 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 	bnxt_vf_rep_eth_addr_gen(bp->pf.mac_addr, vf_rep->vf_idx,
vf_idx            429 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 		vf_rep->vf_idx = i;
vf_idx            433 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 		rc = hwrm_cfa_vfr_alloc(bp, vf_rep->vf_idx,
vf_idx            440 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c 		cfa_code_map[vf_rep->rx_cfa_code] = vf_rep->vf_idx;
vf_idx             28 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h 	return bp->pf.vf[vf_rep->vf_idx].fw_fid;
vf_idx           4007 drivers/net/ethernet/cavium/liquidio/lio_main.c 	int i, notice, vf_idx;
vf_idx           4017 drivers/net/ethernet/cavium/liquidio/lio_main.c 	vf_idx = (int)vf_num - 1;
vf_idx           4022 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (!(oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx))) {
vf_idx           4023 drivers/net/ethernet/cavium/liquidio/lio_main.c 			oct->sriov_info.vf_drv_loaded_mask |= BIT_ULL(vf_idx);
vf_idx           4025 drivers/net/ethernet/cavium/liquidio/lio_main.c 				 "driver for VF%d was loaded\n", vf_idx);
vf_idx           4030 drivers/net/ethernet/cavium/liquidio/lio_main.c 		if (oct->sriov_info.vf_drv_loaded_mask & BIT_ULL(vf_idx)) {
vf_idx           4031 drivers/net/ethernet/cavium/liquidio/lio_main.c 			oct->sriov_info.vf_drv_loaded_mask &= ~BIT_ULL(vf_idx);
vf_idx           4033 drivers/net/ethernet/cavium/liquidio/lio_main.c 				 "driver for VF%d was removed\n", vf_idx);
vf_idx           4040 drivers/net/ethernet/cavium/liquidio/lio_main.c 		oct->sriov_info.vf_macaddr[vf_idx] = data[1];
vf_idx           4043 drivers/net/ethernet/cavium/liquidio/lio_main.c 			 vf_idx, b + 2);
vf_idx            538 drivers/net/ethernet/intel/fm10k/fm10k.h int fm10k_ndo_set_vf_mac(struct net_device *netdev, int vf_idx, u8 *mac);
vf_idx            540 drivers/net/ethernet/intel/fm10k/fm10k.h 			  int vf_idx, u16 vid, u8 qos, __be16 vlan_proto);
vf_idx            541 drivers/net/ethernet/intel/fm10k/fm10k.h int fm10k_ndo_set_vf_bw(struct net_device *netdev, int vf_idx,
vf_idx            544 drivers/net/ethernet/intel/fm10k/fm10k.h 			    int vf_idx, struct ifla_vf_info *ivi);
vf_idx             16 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 		**results & FM10K_TLV_ID_MASK, vf_info->vf_idx);
vf_idx            388 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	u16 vf_idx = (glort - hw->mac.dglort_map) & FM10K_DGLORTMAP_NONE;
vf_idx            395 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	if (vf_idx >= iov_data->num_vfs)
vf_idx            399 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	vf_info = &iov_data->vf_info[vf_idx];
vf_idx            459 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 		vf_info->vf_idx = i;
vf_idx            540 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	hw->iov.ops.set_lport(hw, vf_info, vf_info->vf_idx,
vf_idx            546 drivers/net/ethernet/intel/fm10k/fm10k_iov.c int fm10k_ndo_set_vf_mac(struct net_device *netdev, int vf_idx, u8 *mac)
vf_idx            553 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	if (!iov_data || vf_idx >= iov_data->num_vfs)
vf_idx            561 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	vf_info = &iov_data->vf_info[vf_idx];
vf_idx            569 drivers/net/ethernet/intel/fm10k/fm10k_iov.c int fm10k_ndo_set_vf_vlan(struct net_device *netdev, int vf_idx, u16 vid,
vf_idx            578 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	if (!iov_data || vf_idx >= iov_data->num_vfs)
vf_idx            589 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	vf_info = &iov_data->vf_info[vf_idx];
vf_idx            606 drivers/net/ethernet/intel/fm10k/fm10k_iov.c int fm10k_ndo_set_vf_bw(struct net_device *netdev, int vf_idx,
vf_idx            614 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	if (!iov_data || vf_idx >= iov_data->num_vfs)
vf_idx            623 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	iov_data->vf_info[vf_idx].rate = max_rate;
vf_idx            626 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	hw->iov.ops.configure_tc(hw, vf_idx, max_rate);
vf_idx            632 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 			    int vf_idx, struct ifla_vf_info *ivi)
vf_idx            639 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	if (!iov_data || vf_idx >= iov_data->num_vfs)
vf_idx            642 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	vf_info = &iov_data->vf_info[vf_idx];
vf_idx            644 drivers/net/ethernet/intel/fm10k/fm10k_iov.c 	ivi->vf = vf_idx;
vf_idx            583 drivers/net/ethernet/intel/fm10k/fm10k_pf.c u16 fm10k_vf_queue_index(struct fm10k_hw *hw, u16 vf_idx)
vf_idx            588 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	vf_q_idx -= fm10k_queues_per_pool(hw) * (num_vfs - vf_idx);
vf_idx            601 drivers/net/ethernet/intel/fm10k/fm10k_pf.c static u16 fm10k_vf_vector_index(struct fm10k_hw *hw, u16 vf_idx)
vf_idx            605 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	vf_v_idx += fm10k_vectors_per_pool(hw) * vf_idx;
vf_idx            734 drivers/net/ethernet/intel/fm10k/fm10k_pf.c static s32 fm10k_iov_configure_tc_pf(struct fm10k_hw *hw, u16 vf_idx, int rate)
vf_idx            741 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	if (vf_idx >= hw->iov.num_vfs)
vf_idx            779 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	fm10k_write_reg(hw, FM10K_TC_RATE(vf_idx), tc_rate | interval);
vf_idx            780 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	fm10k_write_reg(hw, FM10K_TC_MAXCREDIT(vf_idx), FM10K_TC_MAXCREDIT_64K);
vf_idx            781 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	fm10k_write_reg(hw, FM10K_TC_CREDIT(vf_idx), FM10K_TC_MAXCREDIT_64K);
vf_idx            794 drivers/net/ethernet/intel/fm10k/fm10k_pf.c static s32 fm10k_iov_assign_int_moderator_pf(struct fm10k_hw *hw, u16 vf_idx)
vf_idx            799 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	if (vf_idx >= hw->iov.num_vfs)
vf_idx            803 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	vf_v_idx = fm10k_vf_vector_index(hw, vf_idx);
vf_idx            813 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	if (vf_idx == (hw->iov.num_vfs - 1))
vf_idx            834 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	u16 vf_idx, vf_vid;
vf_idx            837 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	if (!vf_info || vf_info->vf_idx >= hw->iov.num_vfs)
vf_idx            845 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	vf_idx = vf_info->vf_idx;
vf_idx            846 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	vf_q_idx = fm10k_vf_queue_index(hw, vf_idx);
vf_idx            847 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	qmap_idx = qmap_stride * vf_idx;
vf_idx            870 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	txqctl |= (vf_idx << FM10K_TXQCTL_TC_SHIFT) |
vf_idx            871 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 		  FM10K_TXQCTL_VF | vf_idx;
vf_idx            949 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	u8 vf_idx = vf_info->vf_idx;
vf_idx            953 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	if (vf_idx >= hw->iov.num_vfs)
vf_idx            957 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	fm10k_write_reg(hw, FM10K_PFVFLREC(vf_idx / 32), BIT(vf_idx % 32));
vf_idx            965 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	vf_v_idx = fm10k_vf_vector_index(hw, vf_idx);
vf_idx            971 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	qmap_idx = qmap_stride * vf_idx;
vf_idx            980 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	vf_q_idx = fm10k_vf_queue_index(hw, vf_idx);
vf_idx            990 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 		 (vf_idx << FM10K_TXQCTL_TC_SHIFT) |
vf_idx            991 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 		 FM10K_TXQCTL_VF | vf_idx;
vf_idx            992 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	rxqctl = (vf_idx << FM10K_RXQCTL_VF_SHIFT) | FM10K_RXQCTL_VF;
vf_idx           1005 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	fm10k_write_reg(hw, FM10K_TC_MAXCREDIT(vf_idx), 0);
vf_idx           1006 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	fm10k_write_reg(hw, FM10K_TC_RATE(vf_idx), 0);
vf_idx           1007 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	fm10k_write_reg(hw, FM10K_TC_CREDIT(vf_idx),
vf_idx           1011 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	if (!vf_idx)
vf_idx           1014 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 		hw->iov.ops.assign_int_moderator(hw, vf_idx - 1);
vf_idx           1017 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	if (vf_idx == (hw->iov.num_vfs - 1))
vf_idx           1028 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 		fm10k_write_reg(hw, FM10K_MBMEM_VF(vf_idx, i), 0);
vf_idx           1135 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 				      u16 vf_idx)
vf_idx           1141 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	idx = fm10k_vf_queue_index(hw, vf_idx);
vf_idx           1159 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	u8 vf_idx = vf_info->vf_idx;
vf_idx           1161 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 	return hw->iov.ops.assign_int_moderator(hw, vf_idx);
vf_idx           1395 drivers/net/ethernet/intel/fm10k/fm10k_pf.c 		hw->iov.ops.configure_tc(hw, vf_info->vf_idx, vf_info->rate);
vf_idx             12 drivers/net/ethernet/intel/fm10k/fm10k_pf.h u16 fm10k_vf_queue_index(struct fm10k_hw *hw, u16 vf_idx);
vf_idx            590 drivers/net/ethernet/intel/fm10k/fm10k_type.h 	u8			vf_idx;		/* which VF this is */
vf_idx           3344 drivers/net/ethernet/mellanox/mlx4/cmd.c int mlx4_get_vf_stats(struct mlx4_dev *dev, int port, int vf_idx,
vf_idx           3357 drivers/net/ethernet/mellanox/mlx4/cmd.c 	slave = mlx4_get_slave_indx(dev, vf_idx);
vf_idx           1903 drivers/net/ethernet/qlogic/qed/qed_dev.c 	u16 vf_idx, num_vfs = qed_init_qm_get_num_vfs(p_hwfn);
vf_idx           1910 drivers/net/ethernet/qlogic/qed/qed_dev.c 	for (vf_idx = 0; vf_idx < num_vfs; vf_idx++)
vf_idx            308 include/linux/mlx4/cmd.h int mlx4_get_vf_stats(struct mlx4_dev *dev, int port, int vf_idx,