/linux-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_vfr.c | 82 req->fid = cpu_to_le16(bp->pf.vf[vf_rep->vf_idx].fw_fid); 154 int vf_fid = bp->pf.vf[vf_rep->vf_idx].fw_fid; 505 /* storage for cfa_code to vf-idx mapping */
|
H A D | bnxt_ethtool.c | 1244 u8 vf = ethtool_get_flow_spec_ring_vf(fs->ring_cookie); local 1269 if (vf) { 1272 vf--; 1283 fltr->base.vf_idx = vf; 1325 u8 vf; local 1330 vf = ethtool_get_flow_spec_ring_vf(fs->ring_cookie); 1332 if ((fs->flow_type & (FLOW_MAC_EXT | FLOW_EXT)) || vf) 1480 u8 vf; local 1502 vf = ethtool_get_flow_spec_ring_vf(fs->ring_cookie); 1503 if (BNXT_VF(bp) && vf) [all...] |
/linux-master/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_dev.c | 476 int ionic_set_vf_config(struct ionic *ionic, int vf, argument 482 .vf_setattr.vf_index = cpu_to_le16(vf),
|
H A D | ionic_dev.h | 350 int ionic_set_vf_config(struct ionic *ionic, int vf,
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_amdkfd.c | 72 bool vf = amdgpu_sriov_vf(adev); local 77 adev->kfd.dev = kgd2kfd_probe(adev, vf);
|
/linux-master/drivers/media/test-drivers/vivid/ |
H A D | vivid-core.c | 296 static int vidioc_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) argument 304 &dev->radio_rx_freq : &dev->radio_tx_freq, vf); 306 return vivid_sdr_g_frequency(file, fh, vf); 307 return vivid_video_g_frequency(file, fh, vf); 310 static int vidioc_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf) argument 318 &dev->radio_rx_freq : &dev->radio_tx_freq, vf); 320 return vivid_sdr_s_frequency(file, fh, vf); 321 return vivid_video_s_frequency(file, fh, vf);
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | mcs.h | 148 struct mcs_pfvf *vf; member in struct:mcs
|
H A D | rvu_nix.c | 334 int pkind, pf, vf, lbkid, vfid; local 366 vf = (pcifunc & RVU_PFVF_FUNC_MASK) - 1; 376 lbkid = vf & 0x1 ? 0 : 1; 401 pfvf->rx_chan_base = rvu_nix_chan_lbk(rvu, lbkid, vf); 402 pfvf->tx_chan_base = vf & 0x1 ? 403 rvu_nix_chan_lbk(rvu, lbkid, vf - 1) : 404 rvu_nix_chan_lbk(rvu, lbkid, vf + 1); 426 vf = (pcifunc & RVU_PFVF_FUNC_MASK) - 1; 427 for (vfid = 0; vfid < vf; vfid++) 429 req_chan_cnt = sdp_info->vf_rings[vf]; 4462 int vf; local [all...] |
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_memirq.c | 30 return container_of(memirq, struct xe_tile, sriov.vf.memirq);
|
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_netdev.c | 2578 static int mlx4_en_set_vf_vlan(struct net_device *dev, int vf, u16 vlan, u8 qos, argument 2584 return mlx4_set_vf_vlan(mdev->dev, en_priv->port, vf, vlan, qos, 2588 static int mlx4_en_set_vf_rate(struct net_device *dev, int vf, int min_tx_rate, argument 2594 return mlx4_set_vf_rate(mdev->dev, en_priv->port, vf, min_tx_rate, 2598 static int mlx4_en_set_vf_spoofchk(struct net_device *dev, int vf, bool setting) argument 2603 return mlx4_set_vf_spoofchk(mdev->dev, en_priv->port, vf, setting); 2606 static int mlx4_en_get_vf_config(struct net_device *dev, int vf, struct ifla_vf_info *ivf) argument 2611 return mlx4_get_vf_config(mdev->dev, en_priv->port, vf, ivf); 2614 static int mlx4_en_set_vf_link_state(struct net_device *dev, int vf, int link_state) argument 2619 return mlx4_set_vf_link_state(mdev->dev, en_priv->port, vf, link_stat 2622 mlx4_en_get_vf_stats(struct net_device *dev, int vf, struct ifla_vf_stats *vf_stats) argument [all...] |
H A D | resource_tracker.c | 426 int vf, int num_instances) 428 res_alloc->guaranteed[vf] = num_instances / 430 res_alloc->quota[vf] = (num_instances / 2) + res_alloc->guaranteed[vf]; 431 if (vf == mlx4_master_func_num(dev)) { 436 res_alloc->guaranteed[vf] += dev->caps.reserved_mtts; 437 res_alloc->quota[vf] += dev->caps.reserved_mtts; 477 int vf) 483 if (vf == mlx4_master_func_num(dev)) 487 actv_ports = mlx4_get_active_ports(dev, vf); 423 initialize_res_quotas(struct mlx4_dev *dev, struct resource_allocator *res_alloc, enum mlx4_resource res_type, int vf, int num_instances) argument 475 mlx4_calc_res_counter_guaranteed(struct mlx4_dev *dev, struct resource_allocator *res_alloc, int vf) argument [all...] |
/linux-master/drivers/staging/media/atomisp/ |
H A D | Makefile | 104 pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.o \ 263 -I$(atomisp)/pci/isp/kernels/vf/ \ 264 -I$(atomisp)/pci/isp/kernels/vf/vf_1.0/ \
|
/linux-master/drivers/net/hyperv/ |
H A D | netvsc.c | 35 int netvsc_switch_datapath(struct net_device *ndev, bool vf) argument 44 if (!vf) 45 net_device_ctx->data_path_is_vf = vf; 49 if (vf) 88 net_device_ctx->data_path_is_vf = vf;
|
/linux-master/include/linux/ |
H A D | netdevice.h | 1125 * int (*ndo_set_vf_mac)(struct net_device *dev, int vf, u8* mac); 1126 * int (*ndo_set_vf_vlan)(struct net_device *dev, int vf, u16 vlan, 1128 * int (*ndo_set_vf_rate)(struct net_device *dev, int vf, int min_tx_rate, 1130 * int (*ndo_set_vf_spoofchk)(struct net_device *dev, int vf, bool setting); 1131 * int (*ndo_set_vf_trust)(struct net_device *dev, int vf, bool setting); 1133 * int vf, struct ifla_vf_info *ivf); 1134 * int (*ndo_set_vf_link_state)(struct net_device *dev, int vf, int link_state); 1135 * int (*ndo_set_vf_port)(struct net_device *dev, int vf, 1141 * int (*ndo_set_vf_rss_query_en)(struct net_device *dev, int vf, bool setting); 1142 * int (*ndo_get_vf_port)(struct net_device *dev, int vf, struc [all...] |
/linux-master/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_debugfs.c | 713 struct i40e_vf *vf; local 719 vf = &pf->vf[vf_id]; 720 vsi = pf->vsi[vf->lan_vsi_idx]; 721 dev_info(&pf->pdev->dev, "vf %2d: VSI id=%d, seid=%d, qps=%d\n", 722 vf_id, vf->lan_vsi_id, vsi->seid, vf->num_queue_pairs); 724 vf->num_mdd_events); 973 } else if (strncmp(&cmd_buf[5], "vf", 2) == 0) { 1179 dev_info(&pf->pdev->dev, "dump vf [vf_i [all...] |
/linux-master/include/rdma/ |
H A D | ib_verbs.h | 2515 int (*set_vf_link_state)(struct ib_device *device, int vf, u32 port, 2517 int (*get_vf_config)(struct ib_device *device, int vf, u32 port, 2519 int (*get_vf_stats)(struct ib_device *device, int vf, u32 port, 2521 int (*get_vf_guid)(struct ib_device *device, int vf, u32 port, 2524 int (*set_vf_guid)(struct ib_device *device, int vf, u32 port, u64 guid, 3436 int ib_set_vf_link_state(struct ib_device *device, int vf, u32 port, 3438 int ib_get_vf_config(struct ib_device *device, int vf, u32 port, 3440 int ib_get_vf_stats(struct ib_device *device, int vf, u32 port, 3442 int ib_get_vf_guid(struct ib_device *device, int vf, u32 port, 3445 int ib_set_vf_guid(struct ib_device *device, int vf, u3 [all...] |
/linux-master/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_enet.c | 2701 static int hns3_ndo_set_vf_vlan(struct net_device *netdev, int vf, u16 vlan, argument 2708 "set vf vlan: vf=%d, vlan=%u, qos=%u, vlan_proto=0x%x\n", 2709 vf, vlan, qos, ntohs(vlan_proto)); 2712 ret = h->ae_algo->ops->set_vf_vlan_filter(h, vf, vlan, 2718 static int hns3_set_vf_spoofchk(struct net_device *netdev, int vf, bool enable) argument 2728 return handle->ae_algo->ops->set_vf_spoofchk(handle, vf, enable); 2731 static int hns3_set_vf_trust(struct net_device *netdev, int vf, bool enable) argument 2738 return handle->ae_algo->ops->set_vf_trust(handle, vf, enable); 2920 static int hns3_nic_get_vf_config(struct net_device *ndev, int vf, argument 2931 hns3_nic_set_vf_link_state(struct net_device *ndev, int vf, int link_state) argument 2942 hns3_nic_set_vf_rate(struct net_device *ndev, int vf, int min_tx_rate, int max_tx_rate) argument [all...] |
/linux-master/drivers/s390/cio/ |
H A D | chsc.c | 317 u8 vf; /* validity flags */ member in struct:chsc_sei_nt0_area 395 if ((sei_area->vf & SEI_VF_FLA) != 0) { 397 link->fla_mask = ((sei_area->vf & SEI_VF_FLA) == SEI_VF_FLA) ?
|
/linux-master/drivers/net/ethernet/cavium/thunder/ |
H A D | nic.h | 631 int nicvf_send_msg_to_pf(struct nicvf *vf, union nic_mbx *mbx);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_main.c | 4677 int mlx5e_set_vf_mac(struct net_device *dev, int vf, u8 *mac) argument 4682 return mlx5_eswitch_set_vport_mac(mdev->priv.eswitch, vf + 1, mac); 4685 static int mlx5e_set_vf_vlan(struct net_device *dev, int vf, u16 vlan, u8 qos, argument 4694 return mlx5_eswitch_set_vport_vlan(mdev->priv.eswitch, vf + 1, 4698 static int mlx5e_set_vf_spoofchk(struct net_device *dev, int vf, bool setting) argument 4703 return mlx5_eswitch_set_vport_spoofchk(mdev->priv.eswitch, vf + 1, setting); 4706 static int mlx5e_set_vf_trust(struct net_device *dev, int vf, bool setting) argument 4711 return mlx5_eswitch_set_vport_trust(mdev->priv.eswitch, vf + 1, setting); 4714 int mlx5e_set_vf_rate(struct net_device *dev, int vf, int min_tx_rate, argument 4720 return mlx5_eswitch_set_vport_rate(mdev->priv.eswitch, vf 4746 mlx5e_set_vf_link_state(struct net_device *dev, int vf, int link_state) argument 4759 mlx5e_get_vf_config(struct net_device *dev, int vf, struct ifla_vf_info *ivi) argument 4776 mlx5e_get_vf_stats(struct net_device *dev, int vf, struct ifla_vf_stats *vf_stats) argument [all...] |
H A D | mlx5_core.h | 224 int mlx5_core_sriov_set_msix_vec_count(struct pci_dev *vf, int msix_vec_count);
|
/linux-master/drivers/net/ethernet/sfc/ |
H A D | ef10.c | 928 struct ef10_vf *vf; local 935 vf = nic_data_pf->vf + nic_data->vf_index; 936 vf->efx = NULL; 1080 if (!nic_data_pf->vf) { 1103 nic_data_p->vf[nic_data->vf_index].efx = efx; 1104 nic_data_p->vf[nic_data->vf_index].pci_dev = 1405 if (nic_data->vf) 1407 nic_data->vf[i].vport_id = 0;
|
/linux-master/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_cmn.h | 494 int bnx2x_get_vf_config(struct net_device *dev, int vf, 497 int bnx2x_set_vf_vlan(struct net_device *netdev, int vf, u16 vlan, u8 qos,
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_debugfs.c | 2359 int vf, vfcount = adapter->params.arch.vfcount; local 2366 for (vf = 0; vf < vfcount; vf++) { 2367 t4_read_rss_vf_config(adapter, vf, &vfconf[vf].rss_vf_vfl, 2368 &vfconf[vf].rss_vf_vfh, true);
|
H A D | cudbg_lib.c | 1575 int vf, rc, vf_count; local 1585 for (vf = 0; vf < vf_count; vf++) 1586 t4_read_rss_vf_config(padap, vf, &vfconf[vf].rss_vf_vfl, 1587 &vfconf[vf].rss_vf_vfh, true);
|