| /linux/drivers/net/ethernet/marvell/octeon_ep/ |
| H A D | octep_pfvf_mbox.c | 34 static void octep_pfvf_validate_version(struct octep_device *oct, u32 vf_id, in octep_pfvf_validate_version() argument 41 vf_id, vf_version, OCTEP_PFVF_MBOX_VERSION_CURRENT); in octep_pfvf_validate_version() 47 oct->vf_info[vf_id].mbox_version = rsp->s_version.version; in octep_pfvf_validate_version() 49 vf_id, oct->vf_info[vf_id].mbox_version); in octep_pfvf_validate_version() 54 static void octep_pfvf_get_link_status(struct octep_device *oct, u32 vf_id, in octep_pfvf_get_link_status() argument 60 status = octep_ctrl_net_get_link_status(oct, vf_id); in octep_pfvf_get_link_status() 70 static void octep_pfvf_set_link_status(struct octep_device *oct, u32 vf_id, in octep_pfvf_set_link_status() argument 76 err = octep_ctrl_net_set_link_status(oct, vf_id, cmd.s_link_status.status, true); in octep_pfvf_set_link_status() 85 static void octep_pfvf_set_rx_state(struct octep_device *oct, u32 vf_id, in octep_pfvf_set_rx_state() argument 91 err = octep_ctrl_net_set_rx_state(oct, vf_id, cmd.s_link_state.state, true); in octep_pfvf_set_rx_state() [all …]
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_sriov.c | 52 static void hinic_notify_vf_link_status(struct hinic_hwdev *hwdev, u16 vf_id, in hinic_notify_vf_link_status() argument 60 if (vf_infos[HW_VF_ID_TO_OS(vf_id)].registered) { in hinic_notify_vf_link_status() 62 link.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_notify_vf_link_status() 64 vf_id, HINIC_PORT_CMD_LINK_STATUS_REPORT, in hinic_notify_vf_link_status() 70 HW_VF_ID_TO_OS(vf_id), err, in hinic_notify_vf_link_status() 89 static u16 hinic_vf_info_vlanprio(struct hinic_hwdev *hwdev, int vf_id) in hinic_vf_info_vlanprio() argument 95 pf_vlan = nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].pf_vlan; in hinic_vf_info_vlanprio() 96 pf_qos = nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].pf_qos; in hinic_vf_info_vlanprio() 103 u8 qos, int vf_id) in hinic_set_vf_vlan() argument 114 vf_vlan.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_set_vf_vlan() [all …]
|
| H A D | hinic_hw_mbox.h | 67 typedef int (*hinic_pf_mbox_cb)(void *handle, u16 vf_id, u8 cmd, void *buf_in, 126 int (*cmd_msg_handler)(void *hwdev, u16 vf_id, 136 u16 vf_id, u8 cmd, void *buf_in, 167 enum hinic_mod_type mod, u16 vf_id, u8 cmd, void *buf_in,
|
| /linux/drivers/vfio/pci/pds/ |
| H A D | cmds.c | 94 .vf_id = cpu_to_le16(pds_vfio->vf_id), in pds_vfio_suspend_wait_device_cmd() 117 pds_vfio->vf_id, jiffies_to_msecs(time_done - time_start)); in pds_vfio_suspend_wait_device_cmd() 122 pds_vfio->vf_id); in pds_vfio_suspend_wait_device_cmd() 134 .vf_id = cpu_to_le16(pds_vfio->vf_id), in pds_vfio_suspend_device_cmd() 142 dev_dbg(dev, "vf%u: Suspend device\n", pds_vfio->vf_id); in pds_vfio_suspend_device_cmd() 151 dev_err(dev, "vf%u: Suspend failed: %pe\n", pds_vfio->vf_id, in pds_vfio_suspend_device_cmd() 168 .vf_id = cpu_to_le16(pds_vfio->vf_id), in pds_vfio_resume_device_cmd() 175 dev_dbg(dev, "vf%u: Resume device\n", pds_vfio->vf_id); in pds_vfio_resume_device_cmd() 185 .vf_id = cpu_to_le16(pds_vfio->vf_id), in pds_vfio_get_lm_state_size_cmd() 192 dev_dbg(dev, "vf%u: Get migration status\n", pds_vfio->vf_id); in pds_vfio_get_lm_state_size_cmd() [all …]
|
| H A D | vfio_dev.c | 122 int err, vf_id, pci_id; in pds_vfio_init_device() local 124 vf_id = pci_iov_vf_id(pdev); in pds_vfio_init_device() 125 if (vf_id < 0) in pds_vfio_init_device() 126 return vf_id; in pds_vfio_init_device() 132 pds_vfio->vf_id = vf_id; in pds_vfio_init_device() 143 __func__, pci_dev_id(pci_physfn(pdev)), pci_id, vf_id, in pds_vfio_init_device()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_sriov.c | 103 wr32(hw, VPINT_ALLOC(vf->vf_id), 0); in ice_dis_vf_mappings() 104 wr32(hw, VPINT_ALLOC_PCI(vf->vf_id), 0); in ice_dis_vf_mappings() 117 wr32(hw, VPLAN_TX_QBASE(vf->vf_id), 0); in ice_dis_vf_mappings() 122 wr32(hw, VPLAN_RX_QBASE(vf->vf_id), 0); in ice_dis_vf_mappings() 173 reg_idx = (hw->func_caps.vf_base_id + vf->vf_id) / 32; in ice_free_vfs() 174 bit_idx = (hw->func_caps.vf_base_id + vf->vf_id) % 32; in ice_free_vfs() 247 device_based_vf_id = vf->vf_id + hw->func_caps.vf_base_id; in ice_ena_vf_msix_mappings() 252 wr32(hw, VPINT_ALLOC(vf->vf_id), reg); in ice_ena_vf_msix_mappings() 257 wr32(hw, VPINT_ALLOC_PCI(vf->vf_id), reg); in ice_ena_vf_msix_mappings() 287 wr32(hw, VPLAN_TXQ_MAPENA(vf->vf_id), VPLAN_TXQ_MAPENA_TX_ENA_M); in ice_ena_vf_q_mappings() [all …]
|
| H A D | ice_vf_lib.c | 25 struct ice_vf *ice_get_vf_by_id(struct ice_pf *pf, u16 vf_id) in ice_get_vf_by_id() argument 30 hash_for_each_possible_rcu(pf->vfs.table, vf, entry, vf_id) { in ice_get_vf_by_id() 31 if (vf->vf_id == vf_id) { in ice_get_vf_by_id() 278 vf->vf_id, err); in ice_vf_reconfig_vsi() 304 vf->vf_id); in ice_vf_rebuild_vsi() 333 vf->vf_id, err); in ice_vf_rebuild_host_vlan_cfg() 343 vf->vf_id, err); in ice_vf_rebuild_host_vlan_cfg() 352 ice_vf_get_port_vlan_id(vf) : 0, vf->vf_id, err); in ice_vf_rebuild_host_vlan_cfg() 359 vf->vf_id, vsi->idx, err); in ice_vf_rebuild_host_vlan_cfg() 384 vf->min_tx_rate, vf->vf_id, err); in ice_vf_rebuild_host_tx_rate_cfg() [all …]
|
| /linux/drivers/virtio/ |
| H A D | virtio_pci_admin_legacy_io.c | 43 int vf_id; in virtio_pci_admin_legacy_io_write() local 49 vf_id = pci_iov_vf_id(pdev); in virtio_pci_admin_legacy_io_write() 50 if (vf_id < 0) in virtio_pci_admin_legacy_io_write() 51 return vf_id; in virtio_pci_admin_legacy_io_write() 62 cmd.group_member_id = cpu_to_le64(vf_id + 1); in virtio_pci_admin_legacy_io_write() 117 int vf_id; in virtio_pci_admin_legacy_io_read() local 123 vf_id = pci_iov_vf_id(pdev); in virtio_pci_admin_legacy_io_read() 124 if (vf_id < 0) in virtio_pci_admin_legacy_io_read() 125 return vf_id; in virtio_pci_admin_legacy_io_read() 136 cmd.group_member_id = cpu_to_le64(vf_id + 1); in virtio_pci_admin_legacy_io_read() [all …]
|
| H A D | virtio_pci_modern.c | 922 int vf_id; in virtio_pci_admin_mode_set() local 928 vf_id = pci_iov_vf_id(pdev); in virtio_pci_admin_mode_set() 929 if (vf_id < 0) in virtio_pci_admin_mode_set() 930 return vf_id; in virtio_pci_admin_mode_set() 940 cmd.group_member_id = cpu_to_le64(vf_id + 1); in virtio_pci_admin_mode_set() 972 int vf_id; in virtio_pci_admin_obj_create() local 978 vf_id = pci_iov_vf_id(pdev); in virtio_pci_admin_obj_create() 979 if (vf_id < 0) in virtio_pci_admin_obj_create() 980 return vf_id; in virtio_pci_admin_obj_create() 1015 cmd.group_member_id = cpu_to_le64(vf_id + 1); in virtio_pci_admin_obj_create() [all …]
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_virtchnl_pf.c | 30 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_vf_broadcast() 116 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_notify_vf_link_state() 160 u16 vf_id; in i40e_restore_all_vfs_msi_state() local 174 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_DID, &vf_id); in i40e_restore_all_vfs_msi_state() 175 while ((vf_dev = pci_get_device(pdev->vendor, vf_id, vf_dev))) { in i40e_restore_all_vfs_msi_state() 195 if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) in i40e_vc_notify_vf_reset() 203 abs_vf_id = vf->vf_id + (int)vf->pf->hw.func_caps.vf_base_id; in i40e_vc_notify_vf_reset() 246 vf->vf_id); in i40e_vc_reset_vf() 250 vf->vf_id); in i40e_vc_reset_vf() 265 return (vsi && (vsi->vf_id == vf->vf_id)); in i40e_vc_isvalid_vsi_id() [all …]
|
| H A D | i40e_virtchnl_pf.h | 79 s16 vf_id; member 129 int i40e_vc_process_vf_msg(struct i40e_pf *pf, s16 vf_id, u32 v_opcode, 138 int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac); 139 int i40e_ndo_set_vf_port_vlan(struct net_device *netdev, int vf_id, 141 int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, 143 int i40e_ndo_set_vf_trust(struct net_device *netdev, int vf_id, bool setting); 145 int vf_id, struct ifla_vf_info *ivi); 146 int i40e_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link); 147 int i40e_ndo_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool enable); 154 int i40e_get_vf_stats(struct net_device *netdev, int vf_id,
|
| H A D | i40e_client.c | 16 u32 vf_id, u8 *msg, u16 len); 28 bool is_vf, u32 vf_id, 82 i40e_notify_client_of_vf_msg(struct i40e_vsi *vsi, u32 vf_id, u8 *msg, u16 len) in i40e_notify_client_of_vf_msg() argument 99 vf_id, msg, len); in i40e_notify_client_of_vf_msg() 193 void i40e_notify_client_of_vf_reset(struct i40e_pf *pf, u32 vf_id) in i40e_notify_client_of_vf_reset() argument 208 cdev->client->ops->vf_reset(&cdev->lan_info, cdev->client, vf_id); in i40e_notify_client_of_vf_reset() 245 int i40e_vf_client_capable(struct i40e_pf *pf, u32 vf_id) in i40e_vf_client_capable() argument 262 vf_id); in i40e_vf_client_capable() 537 u32 vf_id, u8 *msg, u16 len) in i40e_client_virtchnl_send() argument 543 err = i40e_aq_send_msg_to_vf(hw, vf_id, VIRTCHNL_OP_RDMA, in i40e_client_virtchnl_send() [all …]
|
| /linux/drivers/vdpa/pds/ |
| H A D | cmds.c | 23 .vdpa_init.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_init_hw() 45 .vdpa.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_reset() 65 .vdpa_status.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_set_status() 86 .vdpa_setattr.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_set_mac() 109 .vdpa_setattr.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_set_max_vq_pairs() 133 .vdpa_vq_init.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_init_vq() 167 .vdpa_vq_reset.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_reset_vq()
|
| /linux/drivers/net/ethernet/intel/ice/virt/ |
| H A D | fdir.c | 142 vf->vf_id); in ice_vf_start_ctrl_vsi() 149 vf->vf_id); in ice_vf_start_ctrl_vsi() 310 dev_dbg(dev, "Empty input set for VF %d\n", vf->vf_id); in ice_vc_fdir_set_flow_fld() 403 flow, vf->vf_id); in ice_vc_fdir_set_flow_hdr() 463 flow, vf->vf_id); in ice_vc_fdir_set_flow_hdr() 498 dev_dbg(dev, "NULL vf %d vsi pointer\n", vf->vf_id); in ice_vc_fdir_rem_prof() 666 vf->vf_id); in ice_vc_fdir_write_flow_prof() 673 vf->vf_id); in ice_vc_fdir_write_flow_prof() 685 flow, vf->vf_id); in ice_vc_fdir_write_flow_prof() 694 flow, vf->vf_id); in ice_vc_fdir_write_flow_prof() [all …]
|
| H A D | virtchnl.c | 44 ice_aq_send_msg_to_vf(hw, vf->vf_id, v_opcode, v_retval, msg, in ice_vc_vf_broadcast() 95 ice_aq_send_msg_to_vf(hw, vf->vf_id, VIRTCHNL_OP_EVENT, in ice_vc_notify_vf_link_state() 155 aq_ret = ice_aq_send_msg_to_vf(&pf->hw, vf->vf_id, v_opcode, v_retval, in ice_vc_send_msg_to_vf() 159 vf->vf_id, aq_ret, in ice_vc_send_msg_to_vf() 510 vf->vf_id); in ice_vc_cfg_promiscuous_mode_msg() 556 vf->vf_id, ret); in ice_vc_cfg_promiscuous_mode_msg() 579 vf->vf_id); in ice_vc_cfg_promiscuous_mode_msg() 584 vf->vf_id); in ice_vc_cfg_promiscuous_mode_msg() 587 vf->vf_id, mcast_err); in ice_vc_cfg_promiscuous_mode_msg() 594 vf->vf_id); in ice_vc_cfg_promiscuous_mode_msg() [all …]
|
| /linux/drivers/scsi/bfa/ |
| H A D | bfad_bsg.h | 176 u16 vf_id; member 292 u16 vf_id; member 300 u16 vf_id; member 308 u16 vf_id; member 316 u16 vf_id; member 326 u16 vf_id; member 337 u16 vf_id; member 346 u16 vf_id; member 358 u16 vf_id; member 366 u16 vf_id; member [all …]
|
| /linux/drivers/crypto/marvell/octeontx2/ |
| H A D | otx2_cptpf_mbox.c | 57 "AF not responding to VF%d messages\n", vf->vf_id); in forward_to_af() 72 otx2_mbox_alloc_msg(&cptpf->vfpf_mbox, vf->vf_id, in handle_msg_get_caps() 96 otx2_mbox_alloc_msg(&cptpf->vfpf_mbox, vf->vf_id, sizeof(*rsp)); in handle_msg_get_eng_grp_num() 117 otx2_mbox_alloc_msg(&cptpf->vfpf_mbox, vf->vf_id, sizeof(*rsp)); in handle_msg_kvf_limits() 336 otx2_reply_invalid_msg(&cptpf->vfpf_mbox, vf->vf_id, 0, req->id); in cptpf_handle_vf_req() 337 otx2_mbox_msg_send(&cptpf->vfpf_mbox, vf->vf_id); in cptpf_handle_vf_req() 387 mdev = &mbox->dev[vf->vf_id]; in otx2_cptpf_vfpf_mbox_handler() 397 (vf->vf_id + 1)); in otx2_cptpf_vfpf_mbox_handler() 414 otx2_mbox_msg_send(mbox, vf->vf_id); in otx2_cptpf_vfpf_mbox_handler() 515 int vf_id, int size) in forward_to_vf() argument [all …]
|
| /linux/drivers/net/ethernet/cavium/thunder/ |
| H A D | nic.h | 285 u8 vf_id; member 427 u8 vf_id; member 463 u8 vf_id; member 470 u8 vf_id; member 477 u8 vf_id; member 485 u8 vf_id; member 492 u8 vf_id; member 502 u8 vf_id; member 520 u8 vf_id; member 526 u8 vf_id; member [all …]
|
| H A D | nic_main.c | 165 mbx.nic_cfg.vf_id = vf; in nic_mbx_send_ready() 236 bgx_idx = NIC_GET_BGX_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats() 237 lmac = NIC_GET_LMAC_FROM_VF_LMAC_MAP(nic->vf_lmac_map[bgx->vf_id]); in nic_get_bgx_stats() 240 mbx.bgx_stats.vf_id = bgx->vf_id; in nic_get_bgx_stats() 249 nic_send_msg_to_vf(nic, bgx->vf_id, &mbx); in nic_get_bgx_stats() 480 vnic = cfg->vf_id; in nic_config_cpi() 504 qset = cfg->vf_id; in nic_config_cpi() 545 nic->cpi_base[cfg->vf_id] = cpi_base; in nic_config_cpi() 546 nic->rssi_base[cfg->vf_id] = rssi_base; in nic_config_cpi() 571 rssi_base = nic->rssi_base[cfg->vf_id] + cfg->tbl_offset; in nic_config_rss() [all …]
|
| /linux/include/linux/net/intel/ |
| H A D | i40e_client.h | 116 u32 vf_id, u8 *msg, u16 len); 129 bool is_vf, u32 vf_id, 152 struct i40e_client *client, u32 vf_id, 157 struct i40e_client *client, u32 vf_id); 165 struct i40e_client *client, u32 vf_id);
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | sriov.c | 339 int vf_id, in mlx5_sriov_blocking_notifier_unregister() argument 346 if (WARN_ON(vf_id < 0 || vf_id >= sriov->num_vfs)) in mlx5_sriov_blocking_notifier_unregister() 349 vfs_ctx = &sriov->vfs_ctx[vf_id]; in mlx5_sriov_blocking_notifier_unregister() 365 int vf_id, in mlx5_sriov_blocking_notifier_register() argument 372 if (vf_id < 0 || vf_id >= sriov->num_vfs) in mlx5_sriov_blocking_notifier_register() 375 vfs_ctx = &sriov->vfs_ctx[vf_id]; in mlx5_sriov_blocking_notifier_register()
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | qat_mig_dev.c | 11 struct qat_mig_dev *qat_vfmig_create(struct pci_dev *pdev, int vf_id) in qat_vfmig_create() argument 31 mdev->vf_id = vf_id; in qat_vfmig_create()
|
| /linux/include/linux/qed/ |
| H A D | qed_iov_if.h | 20 int (*get_config) (struct qed_dev *cdev, int vf_id, 23 int (*set_link_state) (struct qed_dev *cdev, int vf_id,
|
| /linux/include/linux/qat/ |
| H A D | qat_mig_dev.h | 14 s32 vf_id; member 17 struct qat_mig_dev *qat_vfmig_create(struct pci_dev *pdev, int vf_id);
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_mbox.c | 60 static void dump_mbox_msg(struct otx_cpt_mbox *mbox_msg, int vf_id) in dump_mbox_msg() argument 66 if (vf_id >= 0) in dump_mbox_msg() 68 get_mbox_opcode_str(mbox_msg->msg), vf_id, in dump_mbox_msg()
|