Lines Matching defs:vf_idx
16 **results & FM10K_TLV_ID_MASK, vf_info->vf_idx);
388 u16 vf_idx = (glort - hw->mac.dglort_map) & FM10K_DGLORTMAP_NONE;
395 if (vf_idx >= iov_data->num_vfs)
399 vf_info = &iov_data->vf_info[vf_idx];
459 vf_info->vf_idx = i;
561 hw->iov.ops.set_lport(hw, vf_info, vf_info->vf_idx,
567 int fm10k_ndo_set_vf_mac(struct net_device *netdev, int vf_idx, u8 *mac)
574 if (!iov_data || vf_idx >= iov_data->num_vfs)
582 vf_info = &iov_data->vf_info[vf_idx];
590 int fm10k_ndo_set_vf_vlan(struct net_device *netdev, int vf_idx, u16 vid,
599 if (!iov_data || vf_idx >= iov_data->num_vfs)
610 vf_info = &iov_data->vf_info[vf_idx];
627 int fm10k_ndo_set_vf_bw(struct net_device *netdev, int vf_idx,
635 if (!iov_data || vf_idx >= iov_data->num_vfs)
644 iov_data->vf_info[vf_idx].rate = max_rate;
647 hw->iov.ops.configure_tc(hw, vf_idx, max_rate);
653 int vf_idx, struct ifla_vf_info *ivi)
660 if (!iov_data || vf_idx >= iov_data->num_vfs)
663 vf_info = &iov_data->vf_info[vf_idx];
665 ivi->vf = vf_idx;
676 int vf_idx, struct ifla_vf_stats *stats)
685 if (!iov_data || vf_idx >= iov_data->num_vfs)
689 hw_stats = iov_data->vf_info[vf_idx].stats;