/linux-6.3-rc2/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_sriov.c | 70 HW_VF_ID_TO_OS(vf_id), err, in hinic_notify_vf_link_status() 103 u8 qos, int vf_id) in hinic_set_vf_vlan() argument 228 HW_VF_ID_TO_OS(vf_id)); in hinic_init_vf_config() 235 vf_info->pf_qos, vf_id); in hinic_init_vf_config() 238 HW_VF_ID_TO_OS(vf_id)); in hinic_init_vf_config() 295 if (vf_id > nic_io->max_vfs) in hinic_unregister_vf_msg_handler() 314 vf_id); in hinic_change_vf_mtu_msg_handler() 356 HW_VF_ID_TO_OS(vf_id)); in hinic_set_vf_mac_msg_handler() 688 vf_id); in hinic_kill_vf_vlan() 694 HW_VF_ID_TO_OS(vf_id)); in hinic_kill_vf_vlan() [all …]
|
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-6.3-rc2/drivers/net/ethernet/intel/ice/ |
A D | ice_sriov.h | 31 int ice_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac); 47 ice_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, 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 111 int __always_unused vf_id, bool __always_unused trusted) in ice_set_vf_trust() argument 118 int __always_unused vf_id, u16 __always_unused vid, in ice_set_vf_port_vlan() argument 126 int __always_unused vf_id, bool __always_unused ena) in ice_set_vf_spoofchk() argument 133 int __always_unused vf_id, int __always_unused link_state) in ice_set_vf_link_state() argument 140 int __always_unused vf_id, int __always_unused min_tx_rate, in ice_set_vf_bw() argument [all …]
|
A D | ice_sriov.c | 210 vf->vf_id); in ice_free_vfs() 832 u16 vf_id; in ice_create_vf_entries() local 837 for (vf_id = 0; vf_id < num_vfs; vf_id++) { in ice_create_vf_entries() 846 vf->vf_id = vf_id; in ice_create_vf_entries() 1244 ivi->vf = vf_id; in ice_get_vf_cfg() 1314 vf->vf_id); in ice_set_vf_mac() 1319 mac, vf_id); in ice_set_vf_mac() 1528 vf->vf_id); in ice_set_vf_bw() 1539 vf->vf_id); in ice_set_vf_bw() 1769 u16 vf_id; in ice_restore_all_vfs_msi_state() local [all …]
|
A D | ice_vf_mbx.c | 183 ice_mbx_detect_malvf(struct ice_hw *hw, u16 vf_id, in ice_mbx_detect_malvf() argument 189 if (vf_id >= snap->mbx_vf.vfcntr_len) in ice_mbx_detect_malvf() 193 snap->mbx_vf.vf_cntr[vf_id]++; in ice_mbx_detect_malvf() 253 struct ice_mbx_data *mbx_data, u16 vf_id, in ice_mbx_vf_state_handler() argument 361 u16 bitmap_len, u16 vf_id, bool *report_malvf) in ice_mbx_report_malvf() argument 371 if (vf_id >= bitmap_len) in ice_mbx_report_malvf() 375 if (!test_and_set_bit(vf_id, all_malvfs)) in ice_mbx_report_malvf() 397 u16 bitmap_len, u16 vf_id) in ice_mbx_clear_malvf() argument 406 if (vf_id >= bitmap_len || vf_id >= snap->mbx_vf.vfcntr_len) in ice_mbx_clear_malvf() 410 clear_bit(vf_id, all_malvfs); in ice_mbx_clear_malvf() [all …]
|
A D | ice_vf_lib.c | 31 if (vf->vf_id == vf_id) { in ice_get_vf_by_id() 294 vf->vf_id); in ice_vf_rebuild_vsi() 502 vf->vf_id); in ice_reset_all_vfs() 616 vf->vf_id); in ice_reset_vf() 632 vf->vf_id); in ice_reset_vf() 692 vf->vf_id); in ice_reset_vf() 711 vf->vf_id); in ice_reset_vf() 820 vf->vf_id); in ice_check_vf_init() 1156 vf->vf_id); in ice_vf_rebuild_host_cfg() 1160 vf->vf_id); in ice_vf_rebuild_host_cfg() [all …]
|
A 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() 588 vf->vf_id); in ice_vc_fdir_write_flow_prof() 595 vf->vf_id); in ice_vc_fdir_write_flow_prof() 708 vf->vf_id); in ice_vc_fdir_config_input_set() 1007 vf->vf_id); in ice_vc_fdir_parse_action() 1358 vf->vf_id, in ice_vf_fdir_dump_info() 1395 vf->vf_id); in ice_vf_verify_rx_desc() 1404 vf->vf_id); in ice_vf_verify_rx_desc() 1669 vf->vf_id); in ice_vc_fdir_set_irq_ctx() [all …]
|
A 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);
|
A D | ice_virtchnl.c | 780 vf->vf_id); in ice_vc_handle_rss_cfg() 787 vf->vf_id); in ice_vc_handle_rss_cfg() 801 vf->vf_id); in ice_vc_handle_rss_cfg() 1028 vf->vf_id); in ice_vc_cfg_promiscuous_mode_msg() 1850 vf->vf_id); in ice_vc_add_mac_addr() 1943 vf->vf_id); in ice_vc_del_mac_addr() 2001 vf->vf_id); in ice_vc_handle_mac_addr_msg() 2092 vf->vf_id); in ice_vc_request_qs_msg() 2259 vf->vf_id); in ice_vc_process_vlan_msg() 3787 vf->vf_id); in ice_vc_repr_cfg_promiscuous_mode() [all …]
|
A D | ice_repr.c | 38 repr->vf->vf_id); in ice_repr_get_phys_port_name() 153 int vf_id = np->repr->vf->vf_id; in ice_repr_sp_stats64() local 158 tx_ring = np->vsi->tx_rings[vf_id]; in ice_repr_sp_stats64() 165 rx_ring = np->vsi->rx_rings[vf_id]; in ice_repr_sp_stats64()
|
A D | ice_vf_lib.h | 92 u16 vf_id; /* VF ID in the PF space */ member 211 struct ice_vf *ice_get_vf_by_id(struct ice_pf *pf, u16 vf_id); 230 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-6.3-rc2/drivers/net/ethernet/intel/i40e/ |
A D | i40e_virtchnl_pf.h | 70 s16 vf_id; member 117 int i40e_vc_process_vf_msg(struct i40e_pf *pf, s16 vf_id, u32 v_opcode, 125 int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac); 126 int i40e_ndo_set_vf_port_vlan(struct net_device *netdev, int vf_id, 128 int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, 130 int i40e_ndo_set_vf_trust(struct net_device *netdev, int vf_id, bool setting); 132 int vf_id, struct ifla_vf_info *ivi); 133 int i40e_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link); 134 int i40e_ndo_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool enable); 138 int i40e_get_vf_stats(struct net_device *netdev, int vf_id,
|
A D | i40e_virtchnl_pf.c | 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() 1778 for (vf_id = 0; vf_id < tmp; vf_id++) { in i40e_free_vfs() 4182 int vf_id; in i40e_vc_process_vflr_event() local 4198 for (vf_id = 0; vf_id < pf->num_alloc_vfs; vf_id++) { in i40e_vc_process_vflr_event() 4286 vf_id); in i40e_ndo_set_vf_mac() 4391 vf_id); in i40e_ndo_set_vf_port_vlan() 4541 vf_id); in i40e_ndo_set_vf_bw() 4713 vf_id); in i40e_ndo_set_vf_spoofchk() [all …]
|
A 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_RDMA, in i40e_client_virtchnl_send() [all …]
|
/linux-6.3-rc2/drivers/crypto/marvell/octeontx2/ |
A D | otx2_cptpf_mbox.c | 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 308 vf_id--; in forward_to_vf() 309 if (vf_id >= cptpf->enabled_vfs) { in forward_to_vf() 312 vf_id, cptpf->enabled_vfs); in forward_to_vf() 321 "Forwarding to VF%d failed.\n", vf_id); in forward_to_vf() 341 int offset, vf_id, i; in otx2_cptpf_afpf_mbox_handler() local 357 if (vf_id > 0) in otx2_cptpf_afpf_mbox_handler() [all …]
|
A D | otx2_cptvf_mbox.c | 92 cptvf->vf_id = ((msg->pcifunc >> RVU_PFVF_FUNC_SHIFT) in process_pfvf_mbox_mbox_msg() 183 req->hdr.pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0); in otx2_cptvf_send_eng_grp_num_msg() 204 req->pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0); in otx2_cptvf_send_kvf_limits_msg()
|
/linux-6.3-rc2/drivers/scsi/bfa/ |
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 376 u16 vf_id; member [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_sriov.c | 85 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_spoofchk() 169 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_trust() 190 ivi->vf = vf_id; in bnxt_get_vf_config() 191 vf = &bp->pf.vf[vf_id]; in bnxt_get_vf_config() 233 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_mac() 272 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_vlan() 302 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_bw() 306 max_tx_rate, vf_id); in bnxt_set_vf_bw() 343 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_link_state() 498 vf = &bp->pf.vf[vf_id]; in __bnxt_set_vf_params() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/cavium/thunder/ |
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 …]
|
A D | nic_main.c | 165 mbx.nic_cfg.vf_id = vf; in nic_mbx_send_ready() 240 mbx.bgx_stats.vf_id = bgx->vf_id; 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() 581 qset = cfg->vf_id; in nic_config_rss() 749 nic->pqs_vf[sqs_id] = sqs->vf_id; in nic_alloc_sqs() 755 mbx.sqs_alloc.vf_id = sqs->vf_id; in nic_alloc_sqs() 764 if (lbk->vf_id >= nic->num_vf_en) in nic_config_loopback() 1033 lmac = mbx.mac.vf_id; in nic_handle_mbx_intr() [all …]
|
A D | nicvf_main.c | 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() 1634 mbx.bgx_stats.vf_id = nic->vf_id; in nicvf_update_lmac_stats() 1768 mbx.lbk.vf_id = nic->vf_id; in nicvf_config_loopback() [all …]
|
/linux-6.3-rc2/include/linux/net/intel/ |
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-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | sriov.c | 316 int vf_id, in mlx5_sriov_blocking_notifier_unregister() argument 323 if (WARN_ON(vf_id < 0 || vf_id >= sriov->num_vfs)) in mlx5_sriov_blocking_notifier_unregister() 326 vfs_ctx = &sriov->vfs_ctx[vf_id]; in mlx5_sriov_blocking_notifier_unregister() 342 int vf_id, in mlx5_sriov_blocking_notifier_register() argument 349 if (vf_id < 0 || vf_id >= sriov->num_vfs) in mlx5_sriov_blocking_notifier_register() 352 vfs_ctx = &sriov->vfs_ctx[vf_id]; in mlx5_sriov_blocking_notifier_register()
|
/linux-6.3-rc2/include/linux/qed/ |
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-6.3-rc2/drivers/crypto/marvell/octeontx/ |
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()
|