Home
last modified time | relevance | path

Searched refs:vf_id (Results 1 - 25 of 228) sorted by relevance

12345678910

/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
H A Dhinic_sriov.c50 static void hinic_notify_vf_link_status(struct hinic_hwdev *hwdev, u16 vf_id, in hinic_notify_vf_link_status() argument
58 if (vf_infos[HW_VF_ID_TO_OS(vf_id)].registered) { in hinic_notify_vf_link_status()
60 link.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_notify_vf_link_status()
62 vf_id, HINIC_PORT_CMD_LINK_STATUS_REPORT, in hinic_notify_vf_link_status()
68 HW_VF_ID_TO_OS(vf_id), err, in hinic_notify_vf_link_status()
87 static u16 hinic_vf_info_vlanprio(struct hinic_hwdev *hwdev, int vf_id) in hinic_vf_info_vlanprio() argument
93 pf_vlan = nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].pf_vlan; in hinic_vf_info_vlanprio()
94 pf_qos = nic_io->vf_infos[HW_VF_ID_TO_OS(vf_id)].pf_qos; in hinic_vf_info_vlanprio()
101 u8 qos, int vf_id) in hinic_set_vf_vlan()
112 vf_vlan.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_set_vf_vlan()
100 hinic_set_vf_vlan(struct hinic_hwdev *hwdev, bool add, u16 vid, u8 qos, int vf_id) hinic_set_vf_vlan() argument
132 hinic_set_vf_tx_rate_max_min(struct hinic_hwdev *hwdev, u16 vf_id, u32 max_rate, u32 min_rate) hinic_set_vf_tx_rate_max_min() argument
162 hinic_set_vf_rate_limit(struct hinic_hwdev *hwdev, u16 vf_id, u32 tx_rate) hinic_set_vf_rate_limit() argument
191 hinic_set_vf_tx_rate(struct hinic_hwdev *hwdev, u16 vf_id, u32 max_rate, u32 min_rate) hinic_set_vf_tx_rate() argument
210 hinic_init_vf_config(struct hinic_hwdev *hwdev, u16 vf_id) hinic_init_vf_config() argument
255 hinic_register_vf_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_register_vf_msg_handler() argument
284 hinic_unregister_vf_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_unregister_vf_msg_handler() argument
301 hinic_change_vf_mtu_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_change_vf_mtu_msg_handler() argument
319 hinic_get_vf_mac_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_get_vf_mac_msg_handler() argument
338 hinic_set_vf_mac_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_set_vf_mac_msg_handler() argument
372 hinic_del_vf_mac_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_del_vf_mac_msg_handler() argument
404 hinic_get_vf_link_status_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_get_vf_link_status_msg_handler() argument
553 hinic_get_vf_config(struct hinic_hwdev *hwdev, u16 vf_id, struct ifla_vf_info *ivi) hinic_get_vf_config() argument
642 hinic_add_vf_vlan(struct hinic_hwdev *hwdev, int vf_id, u16 vlan, u8 qos) hinic_add_vf_vlan() argument
660 hinic_kill_vf_vlan(struct hinic_hwdev *hwdev, int vf_id) hinic_kill_vf_vlan() argument
682 hinic_update_mac_vlan(struct hinic_dev *nic_dev, u16 old_vlan, u16 new_vlan, int vf_id) hinic_update_mac_vlan() argument
790 hinic_set_vf_trust(struct hinic_hwdev *hwdev, u16 vf_id, bool trust) hinic_set_vf_trust() argument
900 hinic_set_vf_spoofchk(struct hinic_hwdev *hwdev, u16 vf_id, bool spoofchk) hinic_set_vf_spoofchk() argument
963 hinic_set_vf_link_state(struct hinic_hwdev *hwdev, u16 vf_id, int link) hinic_set_vf_link_state() argument
997 hinic_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link) hinic_ndo_set_vf_link_state() argument
1015 nic_pf_mbox_handler(void *hwdev, u16 vf_id, u8 cmd, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) nic_pf_mbox_handler() argument
1061 cfg_mbx_pf_proc_vf_msg(void *hwdev, u16 vf_id, u8 cmd, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) cfg_mbx_pf_proc_vf_msg() argument
1081 hinic_init_vf_infos(struct hinic_func_to_io *nic_io, u16 vf_id) hinic_init_vf_infos() argument
1112 hinic_clear_vf_infos(struct hinic_dev *nic_dev, u16 vf_id) hinic_clear_vf_infos() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/
H A Dhinic_sriov.c52 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()
114 vf_vlan.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_set_vf_vlan()
102 hinic_set_vf_vlan(struct hinic_hwdev *hwdev, bool add, u16 vid, u8 qos, int vf_id) hinic_set_vf_vlan() argument
134 hinic_set_vf_tx_rate_max_min(struct hinic_hwdev *hwdev, u16 vf_id, u32 max_rate, u32 min_rate) hinic_set_vf_tx_rate_max_min() argument
164 hinic_set_vf_rate_limit(struct hinic_hwdev *hwdev, u16 vf_id, u32 tx_rate) hinic_set_vf_rate_limit() argument
193 hinic_set_vf_tx_rate(struct hinic_hwdev *hwdev, u16 vf_id, u32 max_rate, u32 min_rate) hinic_set_vf_tx_rate() argument
212 hinic_init_vf_config(struct hinic_hwdev *hwdev, u16 vf_id) hinic_init_vf_config() argument
257 hinic_register_vf_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_register_vf_msg_handler() argument
286 hinic_unregister_vf_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_unregister_vf_msg_handler() argument
303 hinic_change_vf_mtu_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_change_vf_mtu_msg_handler() argument
321 hinic_get_vf_mac_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_get_vf_mac_msg_handler() argument
340 hinic_set_vf_mac_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_set_vf_mac_msg_handler() argument
374 hinic_del_vf_mac_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_del_vf_mac_msg_handler() argument
406 hinic_get_vf_link_status_msg_handler(void *hwdev, u16 vf_id, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) hinic_get_vf_link_status_msg_handler() argument
573 hinic_get_vf_config(struct hinic_hwdev *hwdev, u16 vf_id, struct ifla_vf_info *ivi) hinic_get_vf_config() argument
662 hinic_add_vf_vlan(struct hinic_hwdev *hwdev, int vf_id, u16 vlan, u8 qos) hinic_add_vf_vlan() argument
680 hinic_kill_vf_vlan(struct hinic_hwdev *hwdev, int vf_id) hinic_kill_vf_vlan() argument
702 hinic_update_mac_vlan(struct hinic_dev *nic_dev, u16 old_vlan, u16 new_vlan, int vf_id) hinic_update_mac_vlan() argument
810 hinic_set_vf_trust(struct hinic_hwdev *hwdev, u16 vf_id, bool trust) hinic_set_vf_trust() argument
916 hinic_set_vf_spoofchk(struct hinic_hwdev *hwdev, u16 vf_id, bool spoofchk) hinic_set_vf_spoofchk() argument
979 hinic_set_vf_link_state(struct hinic_hwdev *hwdev, u16 vf_id, int link) hinic_set_vf_link_state() argument
1013 hinic_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link) hinic_ndo_set_vf_link_state() argument
1031 nic_pf_mbox_handler(void *hwdev, u16 vf_id, u8 cmd, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) nic_pf_mbox_handler() argument
1077 cfg_mbx_pf_proc_vf_msg(void *hwdev, u16 vf_id, u8 cmd, void *buf_in, u16 in_size, void *buf_out, u16 *out_size) cfg_mbx_pf_proc_vf_msg() argument
1097 hinic_init_vf_infos(struct hinic_func_to_io *nic_io, u16 vf_id) hinic_init_vf_infos() argument
1128 hinic_clear_vf_infos(struct hinic_dev *nic_dev, u16 vf_id) hinic_clear_vf_infos() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/
H A Dice_sriov.h31 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);
39 ice_set_vf_port_vlan(struct net_device *netdev, int vf_id, u16 vlan_id, u8 qos,
43 ice_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate,
46 int ice_set_vf_trust(struct net_device *netdev, int vf_id, bool trusted);
48 int ice_set_vf_link_state(struct net_device *netdev, int vf_id, int link_state);
50 int ice_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool ena);
55 ice_get_vf_stats(struct net_device *netdev, int vf_id,
81 int __always_unused vf_id, u8 __always_unused *mac) in ice_set_vf_mac()
88 int __always_unused vf_id, in ice_get_vf_cfg()
80 ice_set_vf_mac(struct net_device __always_unused *netdev, int __always_unused vf_id, u8 __always_unused *mac) ice_set_vf_mac() argument
87 ice_get_vf_cfg(struct net_device __always_unused *netdev, int __always_unused vf_id, struct ifla_vf_info __always_unused *ivi) ice_get_vf_cfg() argument
95 ice_set_vf_trust(struct net_device __always_unused *netdev, int __always_unused vf_id, bool __always_unused trusted) ice_set_vf_trust() argument
102 ice_set_vf_port_vlan(struct net_device __always_unused *netdev, int __always_unused vf_id, u16 __always_unused vid, u8 __always_unused qos, __be16 __always_unused v_proto) ice_set_vf_port_vlan() argument
110 ice_set_vf_spoofchk(struct net_device __always_unused *netdev, int __always_unused vf_id, bool __always_unused ena) ice_set_vf_spoofchk() argument
117 ice_set_vf_link_state(struct net_device __always_unused *netdev, int __always_unused vf_id, int __always_unused link_state) ice_set_vf_link_state() argument
124 ice_set_vf_bw(struct net_device __always_unused *netdev, int __always_unused vf_id, int __always_unused min_tx_rate, int __always_unused max_tx_rate) ice_set_vf_bw() argument
139 ice_get_vf_stats(struct net_device __always_unused *netdev, int __always_unused vf_id, struct ifla_vf_stats __always_unused *vf_stats) ice_get_vf_stats() argument
[all...]
H A Dice_sriov.c101 wr32(hw, VPINT_ALLOC(vf->vf_id), 0); in ice_dis_vf_mappings()
102 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()
192 reg_idx = (hw->func_caps.vf_base_id + vf->vf_id) / 32; in ice_free_vfs()
193 bit_idx = (hw->func_caps.vf_base_id + vf->vf_id) % 32; in ice_free_vfs()
261 return pf->sriov_base_vector + vf->vf_id * pf->vfs.num_msix_per; in ice_calc_vf_first_vector_idx()
289 device_based_vf_id = vf->vf_id + hw->func_caps.vf_base_id; in ice_ena_vf_msix_mappings()
295 wr32(hw, VPINT_ALLOC(vf->vf_id), reg); in ice_ena_vf_msix_mappings()
301 wr32(hw, VPINT_ALLOC_PCI(vf->vf_id), re in ice_ena_vf_msix_mappings()
794 u16 vf_id; ice_create_vf_entries() local
1119 ice_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool ena) ice_set_vf_spoofchk() argument
1180 ice_get_vf_cfg(struct net_device *netdev, int vf_id, struct ifla_vf_info *ivi) ice_get_vf_cfg() argument
1227 ice_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac) ice_set_vf_mac() argument
1288 ice_set_vf_trust(struct net_device *netdev, int vf_id, bool trusted) ice_set_vf_trust() argument
1318 vf_id, trusted ? "" : "un"); ice_set_vf_trust() local
1335 ice_set_vf_link_state(struct net_device *netdev, int vf_id, int link_state) ice_set_vf_link_state() argument
1438 ice_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, int max_tx_rate) ice_set_vf_bw() argument
1507 ice_get_vf_stats(struct net_device *netdev, int vf_id, struct ifla_vf_stats *vf_stats) ice_get_vf_stats() argument
1589 ice_set_vf_port_vlan(struct net_device *netdev, int vf_id, u16 vlan_id, u8 qos, __be16 vlan_proto) ice_set_vf_port_vlan() argument
1719 u16 vf_id; ice_restore_all_vfs_msi_state() local
[all...]
H A Dice_vf_lib.c15 * @vf_id: the VF ID to locate
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()
268 vf->vf_id, err); in ice_vf_recreate_vsi()
294 vf->vf_id); in ice_vf_rebuild_vsi()
324 vf->vf_id, err); in ice_vf_rebuild_host_vlan_cfg()
336 ice_vf_get_port_vlan_id(vf) : 0, vf->vf_id, err); in ice_vf_rebuild_host_vlan_cfg()
343 vf->vf_id, vs in ice_vf_rebuild_host_vlan_cfg()
[all...]
H A Dice_virtchnl_fdir.c144 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()
669 vf->vf_id); in ice_vc_fdir_write_flow_prof()
676 vf->vf_id); in ice_vc_fdir_write_flow_prof()
691 flow, vf->vf_id); in ice_vc_fdir_write_flow_prof()
700 flow, vf->vf_id); in ice_vc_fdir_write_flow_prof()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
H A Dice_virtchnl_pf.h75 u16 vf_id; /* VF ID in the PF space */ member
110 int ice_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac);
112 ice_get_vf_cfg(struct net_device *netdev, int vf_id, struct ifla_vf_info *ivi);
123 ice_set_vf_port_vlan(struct net_device *netdev, int vf_id, u16 vlan_id, u8 qos,
126 int ice_set_vf_trust(struct net_device *netdev, int vf_id, bool trusted);
128 int ice_set_vf_link_state(struct net_device *netdev, int vf_id, int link_state);
130 int ice_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool ena);
136 ice_get_vf_stats(struct net_device *netdev, int vf_id,
177 int __always_unused vf_id, u8 __always_unused *mac) in ice_set_vf_mac()
184 int __always_unused vf_id, in ice_get_vf_cfg()
176 ice_set_vf_mac(struct net_device __always_unused *netdev, int __always_unused vf_id, u8 __always_unused *mac) ice_set_vf_mac() argument
183 ice_get_vf_cfg(struct net_device __always_unused *netdev, int __always_unused vf_id, struct ifla_vf_info __always_unused *ivi) ice_get_vf_cfg() argument
191 ice_set_vf_trust(struct net_device __always_unused *netdev, int __always_unused vf_id, bool __always_unused trusted) ice_set_vf_trust() argument
198 ice_set_vf_port_vlan(struct net_device __always_unused *netdev, int __always_unused vf_id, u16 __always_unused vid, u8 __always_unused qos, __be16 __always_unused v_proto) ice_set_vf_port_vlan() argument
206 ice_set_vf_spoofchk(struct net_device __always_unused *netdev, int __always_unused vf_id, bool __always_unused ena) ice_set_vf_spoofchk() argument
213 ice_set_vf_link_state(struct net_device __always_unused *netdev, int __always_unused vf_id, int __always_unused link_state) ice_set_vf_link_state() argument
227 ice_get_vf_stats(struct net_device __always_unused *netdev, int __always_unused vf_id, struct ifla_vf_stats __always_unused *vf_stats) ice_get_vf_stats() argument
[all...]
H A Dice_virtchnl_pf.c12 * @vf_id: the ID of the VF to check
14 static int ice_validate_vf_id(struct ice_pf *pf, u16 vf_id) in ice_validate_vf_id() argument
16 /* vf_id range is only valid for 0-255, and should always be unsigned */ in ice_validate_vf_id()
17 if (vf_id >= pf->num_alloc_vfs) { in ice_validate_vf_id()
18 dev_err(ice_pf_to_dev(pf), "Invalid VF ID: %u\n", vf_id); in ice_validate_vf_id() local
33 vf->vf_id); in ice_check_vf_init()
96 ice_aq_send_msg_to_vf(hw, vf->vf_id, v_opcode, v_retval, msg, in ice_vc_vf_broadcast()
179 ice_aq_send_msg_to_vf(hw, vf->vf_id, VIRTCHNL_OP_EVENT, in ice_vc_notify_vf_link_state()
256 wr32(hw, VPINT_ALLOC(vf->vf_id), 0); in ice_dis_vf_mappings()
257 wr32(hw, VPINT_ALLOC_PCI(vf->vf_id), in ice_dis_vf_mappings()
396 unsigned int vf_id; ice_free_vfs() local
1723 unsigned int vf_id; ice_process_vflr_event() local
1767 unsigned int vf_id; ice_get_vf_from_pfq() local
2238 ice_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool ena) ice_set_vf_spoofchk() argument
3312 ice_set_vf_port_vlan(struct net_device *netdev, int vf_id, u16 vlan_id, u8 qos, __be16 vlan_proto) ice_set_vf_port_vlan() argument
3687 s16 vf_id = le16_to_cpu(event->desc.retval); ice_vc_process_vf_msg() local
3824 ice_get_vf_cfg(struct net_device *netdev, int vf_id, struct ifla_vf_info *ivi) ice_get_vf_cfg() argument
3898 ice_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac) ice_set_vf_mac() argument
3958 ice_set_vf_trust(struct net_device *netdev, int vf_id, bool trusted) ice_set_vf_trust() argument
3981 vf_id, trusted ? "" : "un"); ice_set_vf_trust() local
3996 ice_set_vf_link_state(struct net_device *netdev, int vf_id, int link_state) ice_set_vf_link_state() argument
4037 ice_get_vf_stats(struct net_device *netdev, int vf_id, struct ifla_vf_stats *vf_stats) ice_get_vf_stats() argument
4149 u16 vf_id; ice_restore_all_vfs_msi_state() local
[all...]
/kernel/linux/linux-6.6/drivers/vfio/pci/pds/
H A Dcmds.c94 .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()
[all...]
H A Dvfio_dev.c146 int err, vf_id, pci_id; in pds_vfio_init_device() local
148 vf_id = pci_iov_vf_id(pdev); in pds_vfio_init_device()
149 if (vf_id < 0) in pds_vfio_init_device()
150 return vf_id; in pds_vfio_init_device()
156 pds_vfio->vf_id = vf_id; in pds_vfio_init_device()
167 "%s: PF %#04x VF %#04x vf_id %d domain %d pds_vfio %p\n", in pds_vfio_init_device()
168 __func__, pci_dev_id(pci_physfn(pdev)), pci_id, vf_id, in pds_vfio_init_device()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
H A Di40e_virtchnl_pf.h70 s16 vf_id; member
118 int i40e_vc_process_vf_msg(struct i40e_pf *pf, s16 vf_id, u32 v_opcode,
126 int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac);
127 int i40e_ndo_set_vf_port_vlan(struct net_device *netdev, int vf_id,
129 int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate,
131 int i40e_ndo_set_vf_trust(struct net_device *netdev, int vf_id, bool setting);
133 int vf_id, struct ifla_vf_info *ivi);
134 int i40e_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link);
135 int i40e_ndo_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool enable);
142 int i40e_get_vf_stats(struct net_device *netdev, int vf_id,
[all...]
H A Di40e_virtchnl_pf.c28 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_vf_broadcast()
54 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_notify_vf_link_state()
105 u16 vf_id; in i40e_restore_all_vfs_msi_state() local
119 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_DID, &vf_id); in i40e_restore_all_vfs_msi_state()
120 while ((vf_dev = pci_get_device(pdev->vendor, vf_id, vf_dev))) { in i40e_restore_all_vfs_msi_state()
140 if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) in i40e_vc_notify_vf_reset()
148 abs_vf_id = vf->vf_id + (int)vf->pf->hw.func_caps.vf_base_id; in i40e_vc_notify_vf_reset()
191 vf->vf_id); in i40e_vc_reset_vf()
195 vf->vf_id); in i40e_vc_reset_vf()
210 return (vsi && (vsi->vf_id in i40e_vc_isvalid_vsi_id()
1361 i40e_sync_vfr_reset(struct i40e_hw *hw, int vf_id) i40e_sync_vfr_reset() argument
1694 int i, tmp, vf_id; i40e_free_vfs() local
4010 i40e_vc_process_vf_msg(struct i40e_pf *pf, s16 vf_id, u32 v_opcode, u32 __always_unused v_retval, u8 *msg, u16 msglen) i40e_vc_process_vf_msg() argument
4151 int vf_id; i40e_vc_process_vflr_event() local
4190 i40e_validate_vf(struct i40e_pf *pf, int vf_id) i40e_validate_vf() argument
4218 i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac) i40e_ndo_set_vf_mac() argument
4323 i40e_ndo_set_vf_port_vlan(struct net_device *netdev, int vf_id, u16 vlan_id, u8 qos, __be16 vlan_proto) i40e_ndo_set_vf_port_vlan() argument
4480 i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, int max_tx_rate) i40e_ndo_set_vf_bw() argument
4533 i40e_ndo_get_vf_config(struct net_device *netdev, int vf_id, struct ifla_vf_info *ivi) i40e_ndo_get_vf_config() argument
4592 i40e_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link) i40e_ndo_set_vf_link_state() argument
4686 i40e_ndo_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool enable) i40e_ndo_set_vf_spoofchk() argument
4746 i40e_ndo_set_vf_trust(struct net_device *netdev, int vf_id, bool setting) i40e_ndo_set_vf_trust() argument
4801 i40e_get_vf_stats(struct net_device *netdev, int vf_id, struct ifla_vf_stats *vf_stats) i40e_get_vf_stats() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/
H A Di40e_virtchnl_pf.h70 s16 vf_id; member
118 int i40e_vc_process_vf_msg(struct i40e_pf *pf, s16 vf_id, u32 v_opcode,
126 int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac);
127 int i40e_ndo_set_vf_port_vlan(struct net_device *netdev, int vf_id,
129 int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate,
131 int i40e_ndo_set_vf_trust(struct net_device *netdev, int vf_id, bool setting);
133 int vf_id, struct ifla_vf_info *ivi);
134 int i40e_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link);
135 int i40e_ndo_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool enable);
142 int i40e_get_vf_stats(struct net_device *netdev, int vf_id,
[all...]
H A Di40e_virtchnl_pf.c28 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()
158 u16 vf_id; in i40e_restore_all_vfs_msi_state() local
172 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_DID, &vf_id); in i40e_restore_all_vfs_msi_state()
173 while ((vf_dev = pci_get_device(pdev->vendor, vf_id, vf_dev))) { in i40e_restore_all_vfs_msi_state()
193 if (!vf || vf->vf_id >= vf->pf->num_alloc_vfs) in i40e_vc_notify_vf_reset()
201 abs_vf_id = vf->vf_id + (int)vf->pf->hw.func_caps.vf_base_id; in i40e_vc_notify_vf_reset()
244 vf->vf_id); in i40e_vc_reset_vf()
248 vf->vf_id); in i40e_vc_reset_vf()
263 return (vsi && (vsi->vf_id in i40e_vc_isvalid_vsi_id()
1416 i40e_sync_vfr_reset(struct i40e_hw *hw, int vf_id) i40e_sync_vfr_reset() argument
1749 int i, tmp, vf_id; i40e_free_vfs() local
4172 i40e_vc_process_vf_msg(struct i40e_pf *pf, s16 vf_id, u32 v_opcode, u32 __always_unused v_retval, u8 *msg, u16 msglen) i40e_vc_process_vf_msg() argument
4308 int vf_id; i40e_vc_process_vflr_event() local
4347 i40e_validate_vf(struct i40e_pf *pf, int vf_id) i40e_validate_vf() argument
4407 i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac) i40e_ndo_set_vf_mac() argument
4497 i40e_ndo_set_vf_port_vlan(struct net_device *netdev, int vf_id, u16 vlan_id, u8 qos, __be16 vlan_proto) i40e_ndo_set_vf_port_vlan() argument
4654 i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, int max_tx_rate) i40e_ndo_set_vf_bw() argument
4705 i40e_ndo_get_vf_config(struct net_device *netdev, int vf_id, struct ifla_vf_info *ivi) i40e_ndo_get_vf_config() argument
4764 i40e_ndo_set_vf_link_state(struct net_device *netdev, int vf_id, int link) i40e_ndo_set_vf_link_state() argument
4853 i40e_ndo_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool enable) i40e_ndo_set_vf_spoofchk() argument
4911 i40e_ndo_set_vf_trust(struct net_device *netdev, int vf_id, bool setting) i40e_ndo_set_vf_trust() argument
4971 i40e_get_vf_stats(struct net_device *netdev, int vf_id, struct ifla_vf_stats *vf_stats) i40e_get_vf_stats() argument
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
H A Di40iw_virtchnl.c198 * @vf_id: Virtual function ID associated with the message
202 u32 vf_id, in vchnl_pf_send_get_ver_resp()
214 ret_code = dev->vchnl_if.vchnl_send(dev, vf_id, resp_buffer, sizeof(resp_buffer)); in vchnl_pf_send_get_ver_resp()
223 * @vf_id: Virtual function ID associated with the message
227 u32 vf_id, in vchnl_pf_send_get_hmc_fcn_resp()
240 ret_code = dev->vchnl_if.vchnl_send(dev, vf_id, resp_buffer, sizeof(resp_buffer)); in vchnl_pf_send_get_hmc_fcn_resp()
249 * @vf_id: Virtual function ID associated with the message
255 u32 vf_id, in vchnl_pf_send_get_pe_stats_resp()
268 ret_code = dev->vchnl_if.vchnl_send(dev, vf_id, resp_buffer, sizeof(resp_buffer)); in vchnl_pf_send_get_pe_stats_resp()
277 * @vf_id
201 vchnl_pf_send_get_ver_resp(struct i40iw_sc_dev *dev, u32 vf_id, struct i40iw_virtchnl_op_buf *vchnl_msg) vchnl_pf_send_get_ver_resp() argument
226 vchnl_pf_send_get_hmc_fcn_resp(struct i40iw_sc_dev *dev, u32 vf_id, struct i40iw_virtchnl_op_buf *vchnl_msg, u16 hmc_fcn) vchnl_pf_send_get_hmc_fcn_resp() argument
254 vchnl_pf_send_get_pe_stats_resp(struct i40iw_sc_dev *dev, u32 vf_id, struct i40iw_virtchnl_op_buf *vchnl_msg, struct i40iw_dev_hw_stats *hw_stats) vchnl_pf_send_get_pe_stats_resp() argument
280 vchnl_pf_send_error_resp(struct i40iw_sc_dev *dev, u32 vf_id, struct i40iw_virtchnl_op_buf *vchnl_msg, u16 op_ret_code) vchnl_pf_send_error_resp() argument
425 i40iw_vchnl_recv_pf(struct i40iw_sc_dev *dev, u32 vf_id, u8 *msg, u16 len) i40iw_vchnl_recv_pf() argument
561 i40iw_vchnl_recv_vf(struct i40iw_sc_dev *dev, u32 vf_id, u8 *msg, u16 len) i40iw_vchnl_recv_vf() argument
[all...]
/kernel/linux/linux-6.6/include/linux/pds/
H A Dpds_adminq.h626 * @vf_id: VF id
631 __le16 vf_id; member
638 * @vf_id: VF id
643 __le16 vf_id; member
670 * @vf_id: VF id
678 __le16 vf_id; member
687 * @vf_id: VF id
693 __le16 vf_id; member
711 * @vf_id: VF id
720 __le16 vf_id; member
746 __le16 vf_id; global() member
783 __le16 vf_id; global() member
816 __le16 vf_id; global() member
857 __le16 vf_id; global() member
870 __le16 vf_id; global() member
908 __le16 vf_id; global() member
922 __le16 vf_id; global() member
936 __le16 vf_id; global() member
964 __le16 vf_id; global() member
982 __le16 vf_id; global() member
1036 __le16 vf_id; global() member
1111 __le16 vf_id; global() member
1134 __le16 vf_id; global() member
1160 __le16 vf_id; global() member
1178 __le16 vf_id; global() member
[all...]
/kernel/linux/linux-6.6/drivers/vdpa/pds/
H A Dcmds.c23 .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()
[all...]
/kernel/linux/linux-5.10/drivers/scsi/bfa/
H A Dbfad_bsg.h176 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
376 u16 vf_id; global() member
384 u16 vf_id; global() member
392 u16 vf_id; global() member
399 u16 vf_id; global() member
438 u16 vf_id; global() member
447 u16 vf_id; global() member
456 u16 vf_id; global() member
744 u16 vf_id; global() member
751 u16 vf_id; global() member
763 u16 vf_id; global() member
772 u16 vf_id; global() member
808 u16 vf_id; global() member
[all...]
/kernel/linux/linux-6.6/drivers/scsi/bfa/
H A Dbfad_bsg.h176 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
376 u16 vf_id; global() member
384 u16 vf_id; global() member
392 u16 vf_id; global() member
399 u16 vf_id; global() member
438 u16 vf_id; global() member
447 u16 vf_id; global() member
456 u16 vf_id; global() member
744 u16 vf_id; global() member
751 u16 vf_id; global() member
763 u16 vf_id; global() member
772 u16 vf_id; global() member
808 u16 vf_id; global() member
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_sriov.c49 static int bnxt_vf_ndo_prep(struct bnxt *bp, int vf_id) in bnxt_vf_ndo_prep() argument
59 if (vf_id >= bp->pf.active_vfs) { in bnxt_vf_ndo_prep()
60 netdev_err(bp->dev, "Invalid VF id %d\n", vf_id); in bnxt_vf_ndo_prep()
66 int bnxt_set_vf_spoofchk(struct net_device *dev, int vf_id, bool setting) in bnxt_set_vf_spoofchk() argument
78 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_set_vf_spoofchk()
82 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_spoofchk()
152 int bnxt_set_vf_trust(struct net_device *dev, int vf_id, bool trusted) in bnxt_set_vf_trust() argument
157 if (bnxt_vf_ndo_prep(bp, vf_id)) in bnxt_set_vf_trust()
160 vf = &bp->pf.vf[vf_id]; in bnxt_set_vf_trust()
170 int bnxt_get_vf_config(struct net_device *dev, int vf_id, in bnxt_get_vf_config() argument
207 bnxt_set_vf_mac(struct net_device *dev, int vf_id, u8 *mac) bnxt_set_vf_mac() argument
234 bnxt_set_vf_vlan(struct net_device *dev, int vf_id, u16 vlan_id, u8 qos, __be16 vlan_proto) bnxt_set_vf_vlan() argument
274 bnxt_set_vf_bw(struct net_device *dev, int vf_id, int min_tx_rate, int max_tx_rate) bnxt_set_vf_bw() argument
316 bnxt_set_vf_link_state(struct net_device *dev, int vf_id, int link) bnxt_set_vf_link_state() argument
468 __bnxt_set_vf_params(struct bnxt *bp, int vf_id) __bnxt_set_vf_params() argument
1108 u32 i = 0, active_vfs = bp->pf.active_vfs, vf_id; bnxt_hwrm_exec_fwd_req() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_sriov.c56 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
216 bnxt_set_vf_mac(struct net_device *dev, int vf_id, u8 *mac) bnxt_set_vf_mac() argument
247 bnxt_set_vf_vlan(struct net_device *dev, int vf_id, u16 vlan_id, u8 qos, __be16 vlan_proto) bnxt_set_vf_vlan() argument
289 bnxt_set_vf_bw(struct net_device *dev, int vf_id, int min_tx_rate, int max_tx_rate) bnxt_set_vf_bw() argument
333 bnxt_set_vf_link_state(struct net_device *dev, int vf_id, int link) bnxt_set_vf_link_state() argument
488 __bnxt_set_vf_params(struct bnxt *bp, int vf_id) __bnxt_set_vf_params() argument
1156 u32 i = 0, active_vfs = bp->pf.active_vfs, vf_id; bnxt_hwrm_exec_fwd_req() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptpf_mbox.c57 "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()
293 otx2_reply_invalid_msg(&cptpf->vfpf_mbox, vf->vf_id, 0, req->id); in cptpf_handle_vf_req()
294 otx2_mbox_msg_send(&cptpf->vfpf_mbox, vf->vf_id); in cptpf_handle_vf_req()
344 mdev = &mbox->dev[vf->vf_id]; in otx2_cptpf_vfpf_mbox_handler()
354 ((vf->vf_id + 1) & RVU_PFVF_FUNC_MASK); in otx2_cptpf_vfpf_mbox_handler()
372 otx2_mbox_msg_send(mbox, vf->vf_id); in otx2_cptpf_vfpf_mbox_handler()
462 int vf_id, in in forward_to_vf()
461 forward_to_vf(struct otx2_cptpf_dev *cptpf, struct mbox_msghdr *msg, int vf_id, int size) forward_to_vf() argument
512 int offset, vf_id, i; otx2_cptpf_afpf_mbox_handler() local
[all...]
/kernel/linux/linux-5.10/include/linux/net/intel/
H A Di40e_client.h113 u32 vf_id, u8 *msg, u16 len);
126 bool is_vf, u32 vf_id,
149 struct i40e_client *client, u32 vf_id,
154 struct i40e_client *client, u32 vf_id);
162 struct i40e_client *client, u32 vf_id);
/kernel/linux/linux-6.6/include/linux/net/intel/
H A Di40e_client.h116 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);
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/thunder/
H A Dnic_main.c165 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] in nic_config_cpi()
[all...]

Completed in 36 milliseconds

12345678910