/linux-5.19.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_sriov.c | 51 static void hinic_notify_vf_link_status(struct hinic_hwdev *hwdev, u16 vf_id, in hinic_notify_vf_link_status() argument 59 if (vf_infos[HW_VF_ID_TO_OS(vf_id)].registered) { in hinic_notify_vf_link_status() 61 link.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_notify_vf_link_status() 63 vf_id, HINIC_PORT_CMD_LINK_STATUS_REPORT, in hinic_notify_vf_link_status() 69 HW_VF_ID_TO_OS(vf_id), err, in hinic_notify_vf_link_status() 88 static u16 hinic_vf_info_vlanprio(struct hinic_hwdev *hwdev, int vf_id) in hinic_vf_info_vlanprio() argument 94 pf_vlan = nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].pf_vlan; in hinic_vf_info_vlanprio() 95 pf_qos = nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].pf_qos; in hinic_vf_info_vlanprio() 102 u8 qos, int vf_id) in hinic_set_vf_vlan() argument 113 vf_vlan.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_set_vf_vlan() [all …]
|
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, 171 enum hinic_mod_type mod, u16 vf_id, u8 cmd, void *buf_in,
|
D | hinic_hw_mbox.c | 345 u16 vf_id = 0; in recv_pf_from_vf_mbox_handler() local 360 vf_id = src_func_idx - in recv_pf_from_vf_mbox_handler() 362 ret = cb(func_to_func->hwdev, vf_id, recv_mbox->cmd, in recv_pf_from_vf_mbox_handler() 1090 enum hinic_mod_type mod, u16 vf_id, u8 cmd, void *buf_in, in hinic_mbox_to_vf() argument 1111 if (!vf_id) { in hinic_mbox_to_vf() 1113 "VF id(%d) error!\n", vf_id); in hinic_mbox_to_vf() 1120 dst_func_idx = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_mbox_to_vf() 1240 u16 vf_id, u8 cmd, void *buf_in, in hinic_mbox_check_cmd_valid() argument 1243 u16 src_idx = vf_id + hinic_glb_pf_vf_offset(hwdev->hwif); in hinic_mbox_check_cmd_valid() 1258 vf_id + hinic_glb_pf_vf_offset(hwdev->hwif), cmd); in hinic_mbox_check_cmd_valid() [all …]
|
/linux-5.19.10/drivers/net/ethernet/intel/ice/ |
D | ice_sriov.h | 31 int ice_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac); 33 ice_get_vf_cfg(struct net_device *netdev, int vf_id, struct ifla_vf_info *ivi); 43 ice_set_vf_port_vlan(struct net_device *netdev, int vf_id, u16 vlan_id, u8 qos, 47 ice_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, 50 int ice_set_vf_trust(struct net_device *netdev, int vf_id, bool trusted); 52 int ice_set_vf_link_state(struct net_device *netdev, int vf_id, int link_state); 54 int ice_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool ena); 59 ice_get_vf_stats(struct net_device *netdev, int vf_id, 96 int __always_unused vf_id, u8 __always_unused *mac) in ice_set_vf_mac() argument 103 int __always_unused vf_id, in ice_get_vf_cfg() argument [all …]
|
D | ice_sriov.c | 116 wr32(hw, VPINT_ALLOC(vf->vf_id), 0); in ice_dis_vf_mappings() 117 wr32(hw, VPINT_ALLOC_PCI(vf->vf_id), 0); in ice_dis_vf_mappings() 132 wr32(hw, VPLAN_TX_QBASE(vf->vf_id), 0); in ice_dis_vf_mappings() 137 wr32(hw, VPLAN_RX_QBASE(vf->vf_id), 0); in ice_dis_vf_mappings() 216 reg_idx = (hw->func_caps.vf_base_id + vf->vf_id) / 32; in ice_free_vfs() 217 bit_idx = (hw->func_caps.vf_base_id + vf->vf_id) % 32; in ice_free_vfs() 223 ICE_MAX_SRIOV_VFS, vf->vf_id)) in ice_free_vfs() 225 vf->vf_id); in ice_free_vfs() 283 return pf->sriov_base_vector + vf->vf_id * pf->vfs.num_msix_per; in ice_calc_vf_first_vector_idx() 311 device_based_vf_id = vf->vf_id + hw->func_caps.vf_base_id; in ice_ena_vf_msix_mappings() [all …]
|
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() 261 vf->vf_id); in ice_vf_rebuild_vsi() 322 vf->vf_id, status); in ice_vf_set_vsi_promisc() 351 vf->vf_id, status); in ice_vf_clear_vsi_promisc() 385 ICE_MAX_SRIOV_VFS, vf->vf_id)) in ice_reset_all_vfs() 387 vf->vf_id); in ice_reset_all_vfs() 409 dev_warn(dev, "VF %u reset check timeout\n", vf->vf_id); in ice_reset_all_vfs() 465 ice_aq_send_msg_to_vf(hw, vf->vf_id, VIRTCHNL_OP_EVENT, in ice_notify_vf_reset() [all …]
|
D | ice_vf_mbx.c | 232 ice_mbx_detect_malvf(struct ice_hw *hw, u16 vf_id, in ice_mbx_detect_malvf() argument 238 if (vf_id >= snap->mbx_vf.vfcntr_len) in ice_mbx_detect_malvf() 242 snap->mbx_vf.vf_cntr[vf_id]++; in ice_mbx_detect_malvf() 244 if (snap->mbx_vf.vf_cntr[vf_id] >= ICE_ASYNC_VF_MSG_THRESHOLD) in ice_mbx_detect_malvf() 302 struct ice_mbx_data *mbx_data, u16 vf_id, in ice_mbx_vf_state_handler() argument 367 status = ice_mbx_detect_malvf(hw, vf_id, &new_state, is_malvf); in ice_mbx_vf_state_handler() 381 status = ice_mbx_detect_malvf(hw, vf_id, &new_state, is_malvf); in ice_mbx_vf_state_handler() 410 u16 bitmap_len, u16 vf_id, bool *report_malvf) in ice_mbx_report_malvf() argument 420 if (vf_id >= bitmap_len) in ice_mbx_report_malvf() 424 if (!test_and_set_bit(vf_id, all_malvfs)) in ice_mbx_report_malvf() [all …]
|
D | ice_virtchnl_fdir.c | 144 vf->vf_id); in ice_vf_start_ctrl_vsi() 151 vf->vf_id); in ice_vf_start_ctrl_vsi() 312 dev_dbg(dev, "Empty input set for VF %d\n", vf->vf_id); in ice_vc_fdir_set_flow_fld() 405 flow, vf->vf_id); in ice_vc_fdir_set_flow_hdr() 465 flow, vf->vf_id); in ice_vc_fdir_set_flow_hdr() 499 dev_dbg(dev, "NULL vf %d vsi pointer\n", vf->vf_id); in ice_vc_fdir_rem_prof() 588 vf->vf_id); in ice_vc_fdir_write_flow_prof() 595 vf->vf_id); in ice_vc_fdir_write_flow_prof() 610 flow, vf->vf_id); in ice_vc_fdir_write_flow_prof() 619 flow, vf->vf_id); in ice_vc_fdir_write_flow_prof() [all …]
|
D | ice_vf_mbx.h | 24 u16 vf_id, bool *is_mal_vf); 27 u16 bitmap_len, u16 vf_id); 32 u16 bitmap_len, u16 vf_id, bool *report_malvf);
|
D | ice_virtchnl.c | 194 ice_aq_send_msg_to_vf(hw, vf->vf_id, v_opcode, v_retval, msg, in ice_vc_vf_broadcast() 245 ice_aq_send_msg_to_vf(hw, vf->vf_id, VIRTCHNL_OP_EVENT, in ice_vc_notify_vf_link_state() 305 aq_ret = ice_aq_send_msg_to_vf(&pf->hw, vf->vf_id, v_opcode, v_retval, in ice_vc_send_msg_to_vf() 309 vf->vf_id, aq_ret, in ice_vc_send_msg_to_vf() 754 vf->vf_id); in ice_vc_handle_rss_cfg() 761 vf->vf_id); in ice_vc_handle_rss_cfg() 775 vf->vf_id); in ice_vc_handle_rss_cfg() 860 vf->vf_id, status); in ice_vc_handle_rss_cfg() 1001 vf->vf_id); in ice_vc_cfg_promiscuous_mode_msg() 1042 set_dflt_vsi ? "en" : "dis", vf->vf_id, ret); in ice_vc_cfg_promiscuous_mode_msg() [all …]
|
D | ice_repr.c | 37 repr->vf->vf_id); in ice_repr_get_phys_port_name() 160 int vf_id = np->repr->vf->vf_id; in ice_repr_sp_stats64() local 165 tx_ring = np->vsi->tx_rings[vf_id]; in ice_repr_sp_stats64() 171 rx_ring = np->vsi->rx_rings[vf_id]; in ice_repr_sp_stats64()
|
D | ice_vf_lib.h | 90 u16 vf_id; /* VF ID in the PF space */ member 209 struct ice_vf *ice_get_vf_by_id(struct ice_pf *pf, u16 vf_id); 225 static inline struct ice_vf *ice_get_vf_by_id(struct ice_pf *pf, u16 vf_id) in ice_get_vf_by_id() argument
|
/linux-5.19.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.h | 69 s16 vf_id; member 116 int i40e_vc_process_vf_msg(struct i40e_pf *pf, s16 vf_id, u32 v_opcode, 124 int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac); 125 int i40e_ndo_set_vf_port_vlan(struct net_device *netdev, int vf_id, 127 int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, 129 int i40e_ndo_set_vf_trust(struct net_device *netdev, int vf_id, bool setting); 131 int vf_id, struct ifla_vf_info *ivi); 132 int i40e_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link); 133 int i40e_ndo_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool enable); 137 int i40e_get_vf_stats(struct net_device *netdev, int vf_id,
|
D | i40e_virtchnl_pf.c | 28 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_vf_broadcast() 114 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_notify_vf_link_state() 167 if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) in i40e_vc_notify_vf_reset() 175 abs_vf_id = vf->vf_id + (int)vf->pf->hw.func_caps.vf_base_id; in i40e_vc_notify_vf_reset() 218 vf->vf_id); in i40e_vc_reset_vf() 222 vf->vf_id); in i40e_vc_reset_vf() 237 return (vsi && (vsi->vf_id == vf->vf_id)); in i40e_vc_isvalid_vsi_id() 357 reg_idx = I40E_VPINT_LNKLST0(vf->vf_id); in i40e_config_irq_link_list() 360 ((pf->hw.func_caps.num_msix_vectors_vf - 1) * vf->vf_id) + in i40e_config_irq_link_list() 473 reg_idx = (msix_vf - 1) * vf->vf_id + qv_info->ceq_idx; in i40e_release_iwarp_qvlist() [all …]
|
D | i40e_client.c | 17 u32 vf_id, u8 *msg, u16 len); 29 bool is_vf, u32 vf_id, 83 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 100 vf_id, msg, len); in i40e_notify_client_of_vf_msg() 196 void i40e_notify_client_of_vf_reset(struct i40e_pf *pf, u32 vf_id) in i40e_notify_client_of_vf_reset() argument 211 cdev->client->ops->vf_reset(&cdev->lan_info, cdev->client, vf_id); in i40e_notify_client_of_vf_reset() 248 int i40e_vf_client_capable(struct i40e_pf *pf, u32 vf_id) in i40e_vf_client_capable() argument 265 vf_id); in i40e_vf_client_capable() 540 u32 vf_id, u8 *msg, u16 len) in i40e_client_virtchnl_send() argument 546 err = i40e_aq_send_msg_to_vf(hw, vf_id, VIRTCHNL_OP_IWARP, in i40e_client_virtchnl_send() [all …]
|
/linux-5.19.10/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptpf_mbox.c | 43 "AF not responding to VF%d messages\n", vf->vf_id); in forward_to_af() 58 otx2_mbox_alloc_msg(&cptpf->vfpf_mbox, vf->vf_id, in handle_msg_get_caps() 82 otx2_mbox_alloc_msg(&cptpf->vfpf_mbox, vf->vf_id, sizeof(*rsp)); in handle_msg_get_eng_grp_num() 103 otx2_mbox_alloc_msg(&cptpf->vfpf_mbox, vf->vf_id, sizeof(*rsp)); in handle_msg_kvf_limits() 142 otx2_reply_invalid_msg(&cptpf->vfpf_mbox, vf->vf_id, 0, req->id); in cptpf_handle_vf_req() 143 otx2_mbox_msg_send(&cptpf->vfpf_mbox, vf->vf_id); in cptpf_handle_vf_req() 193 mdev = &mbox->dev[vf->vf_id]; in otx2_cptpf_vfpf_mbox_handler() 203 ((vf->vf_id + 1) & RVU_PFVF_FUNC_MASK); in otx2_cptpf_vfpf_mbox_handler() 221 otx2_mbox_msg_send(mbox, vf->vf_id); in otx2_cptpf_vfpf_mbox_handler() 291 int vf_id, int size) in forward_to_vf() argument [all …]
|
/linux-5.19.10/drivers/scsi/bfa/ |
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-5.19.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_sriov.c | 56 static int bnxt_vf_ndo_prep(struct bnxt *bp, int vf_id) in bnxt_vf_ndo_prep() argument 62 if (vf_id >= bp->pf.active_vfs) { in bnxt_vf_ndo_prep() 63 netdev_err(bp->dev, "Invalid VF id %d\n", vf_id); in bnxt_vf_ndo_prep() 69 int bnxt_set_vf_spoofchk(struct net_device *dev, int vf_id, bool setting) in bnxt_set_vf_spoofchk() argument 81 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_set_vf_spoofchk() 85 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_spoofchk() 161 int bnxt_set_vf_trust(struct net_device *dev, int vf_id, bool trusted) in bnxt_set_vf_trust() argument 166 if (bnxt_vf_ndo_prep(bp, vf_id)) in bnxt_set_vf_trust() 169 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_trust() 179 int bnxt_get_vf_config(struct net_device *dev, int vf_id, in bnxt_get_vf_config() argument [all …]
|
/linux-5.19.10/drivers/net/ethernet/cavium/thunder/ |
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 …]
|
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 …]
|
D | nicvf_main.c | 145 (mbx->msg.msg & 0xFF), nic->vf_id); in nicvf_send_msg_to_pf() 155 (mbx->msg.msg & 0xFF), nic->vf_id); in nicvf_send_msg_to_pf() 220 nic->vf_id = mbx.nic_cfg.vf_id & 0x7F; in nicvf_handle_mbx_intr() 306 mbx.mac.vf_id = nic->vf_id; in nicvf_hw_set_mac_addr() 317 mbx.cpi_cfg.vf_id = nic->vf_id; in nicvf_config_cpi() 329 mbx.rss_size.vf_id = nic->vf_id; in nicvf_get_rss_size() 340 mbx.rss_cfg.vf_id = nic->vf_id; in nicvf_config_rss() 413 mbx.sqs_alloc.vf_id = nic->vf_id; in nicvf_request_sqs() 435 mbx.nicvf.vf_id = nic->vf_id; in nicvf_request_sqs() 1432 mbx.frs.vf_id = nic->vf_id; in nicvf_update_hw_max_frs() [all …]
|
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | sriov.c | 307 int vf_id, in mlx5_sriov_blocking_notifier_unregister() argument 314 if (WARN_ON(vf_id < 0 || vf_id >= sriov->num_vfs)) in mlx5_sriov_blocking_notifier_unregister() 317 vfs_ctx = &sriov->vfs_ctx[vf_id]; in mlx5_sriov_blocking_notifier_unregister() 333 int vf_id, in mlx5_sriov_blocking_notifier_register() argument 340 if (vf_id < 0 || vf_id >= sriov->num_vfs) in mlx5_sriov_blocking_notifier_register() 343 vfs_ctx = &sriov->vfs_ctx[vf_id]; in mlx5_sriov_blocking_notifier_register()
|
/linux-5.19.10/include/linux/net/intel/ |
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-5.19.10/include/linux/qed/ |
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-5.19.10/drivers/crypto/marvell/octeontx/ |
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()
|