| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_vf_lib.c | 27 struct ice_vf *vf; in ice_get_vf_by_id() local 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() 34 if (kref_get_unless_zero(&vf->refcnt)) in ice_get_vf_by_id() 35 found = vf; in ice_get_vf_by_id() 57 struct ice_vf *vf = container_of(ref, struct ice_vf, refcnt); in ice_release_vf() local 59 pci_dev_put(vf->vfdev); in ice_release_vf() 61 vf->vf_ops->free(vf); in ice_release_vf() 75 void ice_put_vf(struct ice_vf *vf) in ice_put_vf() argument 77 kref_put(&vf->refcnt, ice_release_vf); in ice_put_vf() [all …]
|
| H A D | ice_sriov.c | 28 struct ice_vf *vf; in ice_free_vf_entries() local 37 hash_for_each_safe(vfs->table, bkt, tmp, vf, entry) { in ice_free_vf_entries() 38 hash_del_rcu(&vf->entry); in ice_free_vf_entries() 39 ice_deinitialize_vf_entry(vf); in ice_free_vf_entries() 40 ice_put_vf(vf); in ice_free_vf_entries() 46 * @vf: pointer to the VF info 48 static void ice_free_vf_res(struct ice_vf *vf) in ice_free_vf_res() argument 50 struct ice_pf *pf = vf->pf; in ice_free_vf_res() 56 clear_bit(ICE_VF_STATE_INIT, vf->vf_states); in ice_free_vf_res() 57 ice_vf_fdir_exit(vf); in ice_free_vf_res() 89 ice_dis_vf_mappings(struct ice_vf * vf) ice_dis_vf_mappings() argument 136 struct ice_vf *vf; ice_free_vfs() local 197 ice_vf_vsi_setup(struct ice_vf * vf) ice_vf_vsi_setup() argument 230 ice_ena_vf_msix_mappings(struct ice_vf * vf) ice_ena_vf_msix_mappings() argument 276 ice_ena_vf_q_mappings(struct ice_vf * vf,u16 max_txq,u16 max_rxq) ice_ena_vf_q_mappings() argument 323 ice_ena_vf_mappings(struct ice_vf * vf) ice_ena_vf_mappings() argument 339 ice_calc_vf_reg_idx(struct ice_vf * vf,struct ice_q_vector * q_vector) ice_calc_vf_reg_idx() argument 438 ice_init_vf_vsi_res(struct ice_vf * vf) ice_init_vf_vsi_res() argument 471 struct ice_vf *vf; ice_start_vfs() local 526 ice_sriov_free_vf(struct ice_vf * vf) ice_sriov_free_vf() argument 537 ice_sriov_clear_reset_state(struct ice_vf * vf) ice_sriov_clear_reset_state() argument 552 ice_sriov_clear_mbx_register(struct ice_vf * vf) ice_sriov_clear_mbx_register() argument 567 ice_sriov_trigger_reset_register(struct ice_vf * vf,bool is_vflr) ice_sriov_trigger_reset_register() argument 614 ice_sriov_poll_reset_status(struct ice_vf * vf) ice_sriov_poll_reset_status() argument 639 ice_sriov_clear_reset_trigger(struct ice_vf * vf) ice_sriov_clear_reset_trigger() argument 654 ice_sriov_post_vsi_rebuild(struct ice_vf * vf) ice_sriov_post_vsi_rebuild() argument 690 struct ice_vf *vf; ice_create_vf_entries() local 937 struct ice_vf *vf; ice_sriov_set_msix_vec_count() local 1078 struct ice_vf *vf; ice_process_vflr_event() local 1115 struct ice_vf *vf; ice_get_vf_from_pfq() local 1168 struct ice_vf *vf; ice_vf_lan_overflow_event() local 1198 struct ice_vf *vf; ice_set_vf_spoofchk() local 1256 struct ice_vf *vf; ice_get_vf_cfg() local 1304 struct ice_vf *vf; __ice_set_vf_mac() local 1378 ice_setup_vf_trust(struct ice_vf * vf,bool setting) ice_setup_vf_trust() argument 1394 struct ice_vf *vf; ice_set_vf_trust() local 1452 struct ice_vf *vf; ice_set_vf_link_state() local 1493 struct ice_vf *vf; ice_calc_all_vfs_min_tx_rate() local 1518 ice_min_tx_rate_oversubscribed(struct ice_vf * vf,int min_tx_rate) ice_min_tx_rate_oversubscribed() argument 1558 struct ice_vf *vf; ice_set_vf_bw() local 1627 struct ice_vf *vf; ice_get_vf_stats() local 1709 struct ice_vf *vf; ice_set_vf_port_vlan() local 1765 ice_print_vf_rx_mdd_event(struct ice_vf * vf) ice_print_vf_rx_mdd_event() argument 1783 ice_print_vf_tx_mdd_event(struct ice_vf * vf) ice_print_vf_tx_mdd_event() argument 1805 struct ice_vf *vf; ice_print_vfs_mdd_events() local 1846 struct ice_vf *vf; ice_restore_all_vfs_msi_state() local [all...] |
| H A D | ice_vf_lib.h | 118 void (*free)(struct ice_vf *vf); 119 void (*clear_reset_state)(struct ice_vf *vf); 120 void (*clear_mbx_register)(struct ice_vf *vf); 121 void (*trigger_reset_register)(struct ice_vf *vf, bool is_vflr); 122 bool (*poll_reset_status)(struct ice_vf *vf); 123 void (*clear_reset_trigger)(struct ice_vf *vf); 124 void (*irq_close)(struct ice_vf *vf); 125 void (*post_vsi_rebuild)(struct ice_vf *vf); 218 static inline u16 ice_vf_get_port_vlan_id(struct ice_vf *vf) in ice_vf_get_port_vlan_id() argument 220 return vf->port_vlan_info.vid; in ice_vf_get_port_vlan_id() [all …]
|
| H A D | ice_vf_lib_private.h | 26 void ice_initialize_vf_entry(struct ice_vf *vf); 27 void ice_deinitialize_vf_entry(struct ice_vf *vf); 28 void ice_dis_vf_qs(struct ice_vf *vf); 30 int ice_check_vf_init(struct ice_vf *vf); 32 struct ice_port_info *ice_vf_get_port_info(struct ice_vf *vf); 34 bool ice_is_vf_trusted(struct ice_vf *vf); 35 bool ice_vf_has_no_qs_ena(struct ice_vf *vf); 36 bool ice_is_vf_link_up(struct ice_vf *vf); 37 void ice_vf_ctrl_invalidate_vsi(struct ice_vf *vf); 38 void ice_vf_ctrl_vsi_release(struct ice_vf *vf); [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_vf.c | 39 static void otx2vf_process_vfaf_mbox_msg(struct otx2_nic *vf, in otx2vf_process_vfaf_mbox_msg() argument 43 dev_err(vf->dev, in otx2vf_process_vfaf_mbox_msg() 49 dev_err(vf->dev, in otx2vf_process_vfaf_mbox_msg() 56 dev_err(vf->dev, in otx2vf_process_vfaf_mbox_msg() 64 vf->pcifunc = msg->pcifunc; in otx2vf_process_vfaf_mbox_msg() 67 mbox_handler_msix_offset(vf, (struct msix_offset_rsp *)msg); in otx2vf_process_vfaf_mbox_msg() 70 mbox_handler_npa_lf_alloc(vf, (struct npa_lf_alloc_rsp *)msg); in otx2vf_process_vfaf_mbox_msg() 73 mbox_handler_nix_lf_alloc(vf, (struct nix_lf_alloc_rsp *)msg); in otx2vf_process_vfaf_mbox_msg() 76 mbox_handler_nix_bp_enable(vf, (struct nix_bp_cfg_rsp *)msg); in otx2vf_process_vfaf_mbox_msg() 80 dev_err(vf in otx2vf_process_vfaf_mbox_msg() 117 otx2vf_process_mbox_msg_up(struct otx2_nic * vf,struct mbox_msghdr * req) otx2vf_process_mbox_msg_up() argument 158 struct otx2_nic *vf; otx2vf_vfaf_mbox_up_handler() local 186 struct otx2_nic *vf = (struct otx2_nic *)vf_irq; otx2vf_vfaf_mbox_intr_handler() local 237 otx2vf_disable_mbox_intr(struct otx2_nic * vf) otx2vf_disable_mbox_intr() argument 250 otx2vf_register_mbox_intr(struct otx2_nic * vf,bool probe_pf) otx2vf_register_mbox_intr() argument 308 otx2vf_vfaf_mbox_destroy(struct otx2_nic * vf) otx2vf_vfaf_mbox_destroy() argument 324 otx2vf_vfaf_mbox_init(struct otx2_nic * vf) otx2vf_vfaf_mbox_init() argument 391 struct otx2_nic *vf; otx2vf_open() local 416 struct otx2_nic *vf = netdev_priv(netdev); otx2vf_xmit() local 451 struct otx2_nic *vf = netdev_priv(netdev); otx2vf_set_rx_mode() local 458 struct otx2_nic *vf = container_of(work, struct otx2_nic, rx_mode_work); otx2vf_do_set_rx_mode() local 505 struct otx2_nic *vf = container_of(work, struct otx2_nic, reset_task); otx2vf_reset_task() local 540 otx2_vf_wq_init(struct otx2_nic * vf) otx2_vf_wq_init() argument 551 otx2vf_realloc_msix_vectors(struct otx2_nic * vf) otx2vf_realloc_msix_vectors() argument 577 struct otx2_nic *vf; otx2vf_probe() local 820 struct otx2_nic *vf; otx2vf_remove() local [all...] |
| /linux/drivers/vdpa/ifcvf/ |
| H A D | ifcvf_main.c | 22 struct ifcvf_hw *vf = arg; in ifcvf_config_changed() local 24 if (vf->config_cb.callback) in ifcvf_config_changed() 25 return vf->config_cb.callback(vf->config_cb.private); in ifcvf_config_changed() 42 struct ifcvf_hw *vf = arg; in ifcvf_vqs_reused_intr_handler() local 46 for (i = 0; i < vf->nr_vring; i++) { in ifcvf_vqs_reused_intr_handler() 47 vring = &vf->vring[i]; in ifcvf_vqs_reused_intr_handler() 57 struct ifcvf_hw *vf = arg; in ifcvf_dev_intr_handler() local 60 isr = vp_ioread8(vf->isr); in ifcvf_dev_intr_handler() 72 static void ifcvf_free_per_vq_irq(struct ifcvf_hw *vf) in ifcvf_free_per_vq_irq() argument 74 struct pci_dev *pdev = vf->pdev; in ifcvf_free_per_vq_irq() [all …]
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | siena_sriov.c | 191 static unsigned abs_index(struct siena_vf *vf, unsigned index) in abs_index() argument 193 return EFX_VI_BASE + vf->index * efx_vf_size(vf->efx) + index; in abs_index() 302 static void efx_siena_sriov_reset_tx_filter(struct siena_vf *vf) in efx_siena_sriov_reset_tx_filter() argument 304 struct efx_nic *efx = vf->efx; in efx_siena_sriov_reset_tx_filter() 309 if (vf->tx_filter_id != -1) { in efx_siena_sriov_reset_tx_filter() 311 vf->tx_filter_id); in efx_siena_sriov_reset_tx_filter() 312 netif_dbg(efx, hw, efx->net_dev, "Removed vf %s tx filter %d\n", in efx_siena_sriov_reset_tx_filter() 313 vf->pci_name, vf in efx_siena_sriov_reset_tx_filter() 346 efx_siena_sriov_reset_rx_filter(struct siena_vf * vf) efx_siena_sriov_reset_rx_filter() argument 385 __efx_siena_sriov_update_vf_addr(struct siena_vf * vf) __efx_siena_sriov_update_vf_addr() argument 400 __efx_siena_sriov_push_vf_status(struct siena_vf * vf) __efx_siena_sriov_push_vf_status() argument 530 efx_vfdi_init_evq(struct siena_vf * vf) efx_vfdi_init_evq() argument 571 efx_vfdi_init_rxq(struct siena_vf * vf) efx_vfdi_init_rxq() argument 612 efx_vfdi_init_txq(struct siena_vf * vf) efx_vfdi_init_txq() argument 659 efx_vfdi_flush_wake(struct siena_vf * vf) efx_vfdi_flush_wake() argument 668 efx_vfdi_flush_clear(struct siena_vf * vf) efx_vfdi_flush_clear() argument 678 efx_vfdi_fini_all_queues(struct siena_vf * vf) efx_vfdi_fini_all_queues() argument 761 efx_vfdi_insert_filter(struct siena_vf * vf) efx_vfdi_insert_filter() argument 793 efx_vfdi_remove_all_filters(struct siena_vf * vf) efx_vfdi_remove_all_filters() argument 805 efx_vfdi_set_status_page(struct siena_vf * vf) efx_vfdi_set_status_page() argument 850 efx_vfdi_clear_status_page(struct siena_vf * vf) efx_vfdi_clear_status_page() argument 874 struct siena_vf *vf = container_of(work, struct siena_vf, req); efx_siena_sriov_vfdi() local 941 efx_siena_sriov_reset_vf(struct siena_vf * vf,struct efx_buffer * buffer) efx_siena_sriov_reset_vf() argument 1011 struct siena_vf *vf = container_of(work, struct siena_vf, req); efx_siena_sriov_reset_vf_work() local 1084 struct siena_vf *vf; efx_siena_sriov_peer_work() local 1197 struct siena_vf *vf; efx_siena_sriov_vf_alloc() local 1225 struct siena_vf *vf; efx_siena_sriov_vfs_fini() local 1246 struct siena_vf *vf; efx_siena_sriov_vfs_init() local 1370 struct siena_vf *vf; efx_siena_sriov_fini() local 1405 struct siena_vf *vf; efx_siena_sriov_event() local 1462 struct siena_vf *vf; efx_siena_sriov_flr() local 1493 struct siena_vf *vf; efx_siena_sriov_tx_flush_done() local 1512 struct siena_vf *vf; efx_siena_sriov_rx_flush_done() local 1537 struct siena_vf *vf; efx_siena_sriov_desc_fetch_err() local 1556 struct siena_vf *vf; efx_siena_sriov_reset() local 1597 struct siena_vf *vf; efx_siena_sriov_set_vf_mac() local 1615 struct siena_vf *vf; efx_siena_sriov_set_vf_vlan() local 1635 struct siena_vf *vf; efx_siena_sriov_set_vf_spoofchk() local 1659 struct siena_vf *vf; efx_siena_sriov_get_vf_config() local [all...] |
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_virtchnl_pf.c | 26 struct i40e_vf *vf = pf->vf; in i40e_vc_vf_broadcast() local 29 for (i = 0; i < pf->num_alloc_vfs; i++, vf++) { in i40e_vc_vf_broadcast() 30 int abs_vf_id = vf->vf_id + (int)hw->func_caps.vf_base_id; in i40e_vc_vf_broadcast() 32 if (!test_bit(I40E_VF_STATE_INIT, &vf->vf_states) && in i40e_vc_vf_broadcast() 33 !test_bit(I40E_VF_STATE_ACTIVE, &vf->vf_states)) in i40e_vc_vf_broadcast() 79 * @vf: pointer to the VF structure 83 * set a link state on a single vf 85 static void i40e_set_vf_link_state(struct i40e_vf *vf, in i40e_set_vf_link_state() argument 90 if (vf in i40e_set_vf_link_state() 110 i40e_vc_notify_vf_link_state(struct i40e_vf * vf) i40e_vc_notify_vf_link_state() argument 189 i40e_vc_notify_vf_reset(struct i40e_vf * vf) i40e_vc_notify_vf_reset() argument 219 i40e_vc_reset_vf(struct i40e_vf * vf,bool notify_vf) i40e_vc_reset_vf() argument 260 i40e_vc_isvalid_vsi_id(struct i40e_vf * vf,u16 vsi_id) i40e_vc_isvalid_vsi_id() argument 276 i40e_vc_isvalid_queue_id(struct i40e_vf * vf,u16 vsi_id,u16 qid) i40e_vc_isvalid_queue_id() argument 292 i40e_vc_isvalid_vector_id(struct i40e_vf * vf,u32 vector_id) i40e_vc_isvalid_vector_id() argument 309 i40e_vc_get_pf_queue_id(struct i40e_vf * vf,u16 vsi_id,u8 vsi_queue_id) i40e_vc_get_pf_queue_id() argument 338 i40e_get_real_pf_qid(struct i40e_vf * vf,u16 vsi_id,u16 queue_id) i40e_get_real_pf_qid() argument 370 i40e_config_irq_link_list(struct i40e_vf * vf,u16 vsi_id,struct virtchnl_vector_map * vecmap) i40e_config_irq_link_list() argument 476 i40e_release_rdma_qvlist(struct i40e_vf * vf) i40e_release_rdma_qvlist() argument 527 i40e_config_rdma_qvlist(struct i40e_vf * vf,struct virtchnl_rdma_qvlist_info * qvlist_info) i40e_config_rdma_qvlist() argument 628 i40e_config_vsi_tx_queue(struct i40e_vf * vf,u16 vsi_id,u16 vsi_queue_id,struct virtchnl_txq_info * info) i40e_config_vsi_tx_queue() argument 710 i40e_config_vsi_rx_queue(struct i40e_vf * vf,u16 vsi_id,u16 vsi_queue_id,struct virtchnl_rxq_info * info) i40e_config_vsi_rx_queue() argument 809 i40e_alloc_vsi_res(struct i40e_vf * vf,u8 idx) i40e_alloc_vsi_res() argument 900 i40e_map_pf_queues_to_vsi(struct i40e_vf * vf) i40e_map_pf_queues_to_vsi() argument 947 i40e_map_pf_to_vf_queues(struct i40e_vf * vf) i40e_map_pf_to_vf_queues() argument 985 i40e_enable_vf_mappings(struct i40e_vf * vf) i40e_enable_vf_mappings() argument 1014 i40e_disable_vf_mappings(struct i40e_vf * vf) i40e_disable_vf_mappings() argument 1034 i40e_free_vf_res(struct i40e_vf * vf) i40e_free_vf_res() argument 1115 i40e_alloc_vf_res(struct i40e_vf * vf) i40e_alloc_vf_res() argument 1190 i40e_quiesce_vf_pci(struct i40e_vf * vf) i40e_quiesce_vf_pci() argument 1289 i40e_set_vsi_promisc(struct i40e_vf * vf,u16 seid,bool multi_enable,bool unicast_enable,s16 * vl,u16 num_vlans) i40e_set_vsi_promisc() argument 1377 i40e_config_vf_promiscuous_mode(struct i40e_vf * vf,u16 vsi_id,bool allmulti,bool alluni) i40e_config_vf_promiscuous_mode() argument 1449 i40e_trigger_vf_reset(struct i40e_vf * vf,bool flr) i40e_trigger_vf_reset() argument 1510 i40e_cleanup_reset_vf(struct i40e_vf * vf) i40e_cleanup_reset_vf() argument 1564 i40e_reset_vf(struct i40e_vf * vf,bool flr) i40e_reset_vf() argument 1638 struct i40e_vf *vf; i40e_reset_all_vfs() local 1986 i40e_vc_send_msg_to_vf(struct i40e_vf * vf,u32 v_opcode,u32 v_retval,u8 * msg,u16 msglen) i40e_vc_send_msg_to_vf() argument 2022 i40e_vc_send_resp_to_vf(struct i40e_vf * vf,enum virtchnl_ops opcode,int retval) i40e_vc_send_resp_to_vf() argument 2037 i40e_sync_vf_state(struct i40e_vf * vf,enum i40e_vf_states state) i40e_sync_vf_state() argument 2062 i40e_vc_get_version_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_get_version_msg() argument 2081 i40e_del_qch(struct i40e_vf * vf) i40e_del_qch() argument 2107 i40e_vc_get_max_frame_size(struct i40e_vf * vf) i40e_vc_get_max_frame_size() argument 2124 i40e_vc_get_vf_resources_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_get_vf_resources_msg() argument 2259 i40e_vc_config_promiscuous_mode_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_config_promiscuous_mode_msg() argument 2344 i40e_vc_config_queues_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_config_queues_msg() argument 2468 i40e_validate_queue_map(struct i40e_vf * vf,u16 vsi_id,unsigned long queuemap) i40e_validate_queue_map() argument 2498 i40e_vc_config_irq_map_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_config_irq_map_msg() argument 2614 i40e_vc_enable_queues_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_enable_queues_msg() argument 2680 i40e_vc_disable_queues_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_disable_queues_msg() argument 2726 i40e_check_enough_queue(struct i40e_vf * vf,u16 needed) i40e_check_enough_queue() argument 2782 i40e_vc_request_queues_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_request_queues_msg() argument 2830 i40e_vc_get_stats_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_get_stats_msg() argument 2897 i40e_check_vf_permission(struct i40e_vf * vf,struct virtchnl_ether_addr_list * al) i40e_check_vf_permission() argument 3032 i40e_update_vf_mac_addr(struct i40e_vf * vf,struct virtchnl_ether_addr * vc_ether_addr) i40e_update_vf_mac_addr() argument 3059 i40e_vc_add_mac_addr_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_add_mac_addr_msg() argument 3127 i40e_vc_del_mac_addr_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_del_mac_addr_msg() argument 3215 i40e_vc_add_vlan_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_add_vlan_msg() argument 3286 i40e_vc_remove_vlan_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_remove_vlan_msg() argument 3344 i40e_vc_rdma_msg(struct i40e_vf * vf,u8 * msg,u16 msglen) i40e_vc_rdma_msg() argument 3375 i40e_vc_rdma_qvmap_msg(struct i40e_vf * vf,u8 * msg,bool config) i40e_vc_rdma_qvmap_msg() argument 3409 i40e_vc_config_rss_key(struct i40e_vf * vf,u8 * msg) i40e_vc_config_rss_key() argument 3439 i40e_vc_config_rss_lut(struct i40e_vf * vf,u8 * msg) i40e_vc_config_rss_lut() argument 3476 i40e_vc_get_rss_hashcfg(struct i40e_vf * vf,u8 * msg) i40e_vc_get_rss_hashcfg() argument 3511 i40e_vc_set_rss_hashcfg(struct i40e_vf * vf,u8 * msg) i40e_vc_set_rss_hashcfg() argument 3540 i40e_vc_enable_vlan_stripping(struct i40e_vf * vf,u8 * msg) i40e_vc_enable_vlan_stripping() argument 3566 i40e_vc_disable_vlan_stripping(struct i40e_vf * vf,u8 * msg) i40e_vc_disable_vlan_stripping() argument 3592 i40e_validate_cloud_filter(struct i40e_vf * vf,struct virtchnl_filter * tc_filter) i40e_validate_cloud_filter() argument 3723 i40e_find_vsi_from_seid(struct i40e_vf * vf,u16 seid) i40e_find_vsi_from_seid() argument 3743 i40e_del_all_cloud_filters(struct i40e_vf * vf) i40e_del_all_cloud_filters() argument 3785 i40e_vc_del_cloud_filter(struct i40e_vf * vf,u8 * msg) i40e_vc_del_cloud_filter() argument 3919 i40e_vc_add_cloud_filter(struct i40e_vf * vf,u8 * msg) i40e_vc_add_cloud_filter() argument 4039 i40e_vc_add_qch_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_add_qch_msg() argument 4155 i40e_vc_del_qch_msg(struct i40e_vf * vf,u8 * msg) i40e_vc_del_qch_msg() argument 4206 struct i40e_vf *vf; i40e_vc_process_vf_msg() local 4336 struct i40e_vf *vf; i40e_vc_process_vflr_event() local 4382 struct i40e_vf *vf; i40e_validate_vf() local 4408 i40e_check_vf_init_timeout(struct i40e_vf * vf) i40e_check_vf_init_timeout() argument 4445 struct i40e_vf *vf; i40e_ndo_set_vf_mac() local 4537 struct i40e_vf *vf; i40e_ndo_set_vf_port_vlan() local 4692 struct i40e_vf *vf; i40e_ndo_set_vf_bw() local 4743 struct i40e_vf *vf; i40e_ndo_get_vf_config() local 4804 struct i40e_vf *vf; i40e_ndo_set_vf_link_state() local 4903 struct i40e_vf *vf; i40e_ndo_set_vf_spoofchk() local 4955 i40e_setup_vf_trust(struct i40e_vf * vf,bool setting) i40e_setup_vf_trust() argument 4972 struct i40e_vf *vf; i40e_ndo_set_vf_trust() local 5036 struct i40e_vf *vf; i40e_get_vf_stats() local [all...] |
| /linux/drivers/net/ethernet/intel/ice/virt/ |
| H A D | virtchnl.c | 31 struct ice_vf *vf; in ice_vc_vf_broadcast() local 35 ice_for_each_vf(pf, bkt, vf) { in ice_vc_vf_broadcast() 37 if (!test_bit(ICE_VF_STATE_INIT, vf->vf_states) && in ice_vc_vf_broadcast() 38 !test_bit(ICE_VF_STATE_ACTIVE, vf->vf_states)) in ice_vc_vf_broadcast() 44 ice_aq_send_msg_to_vf(hw, vf->vf_id, v_opcode, v_retval, msg, in ice_vc_vf_broadcast() 58 ice_set_pfe_link(struct ice_vf *vf, struct virtchnl_pf_event *pfe, in ice_set_pfe_link() argument 61 if (vf->driver_caps & VIRTCHNL_VF_CAP_ADV_LINK_SPEED) { in ice_set_pfe_link() 81 void ice_vc_notify_vf_link_state(struct ice_vf *vf) in ice_vc_notify_vf_link_state() argument 84 struct ice_hw *hw = &vf->pf->hw; in ice_vc_notify_vf_link_state() 89 if (ice_is_vf_link_up(vf)) in ice_vc_notify_vf_link_state() [all …]
|
| H A D | virtchnl.h | 42 int (*get_ver_msg)(struct ice_vf *vf, u8 *msg); 43 int (*get_vf_res_msg)(struct ice_vf *vf, u8 *msg); 44 void (*reset_vf)(struct ice_vf *vf); 45 int (*add_mac_addr_msg)(struct ice_vf *vf, u8 *msg); 46 int (*del_mac_addr_msg)(struct ice_vf *vf, u8 *msg); 47 int (*cfg_qs_msg)(struct ice_vf *vf, u8 *msg); 48 int (*ena_qs_msg)(struct ice_vf *vf, u8 *msg); 49 int (*dis_qs_msg)(struct ice_vf *vf, u8 *msg); 50 int (*request_qs_msg)(struct ice_vf *vf, u8 *msg); 51 int (*cfg_irq_map_msg)(struct ice_vf *vf, u8 *msg); [all …]
|
| H A D | queues.c | 13 * @vf: VF used to determine max frame size 20 u16 ice_vc_get_max_frame_size(struct ice_vf *vf) in ice_vc_get_max_frame_size() argument 22 struct ice_port_info *pi = ice_vf_get_port_info(vf); in ice_vc_get_max_frame_size() 27 if (ice_vf_is_port_vlan_ena(vf)) in ice_vc_get_max_frame_size() 63 * @vf: pointer to the VF info 70 static int ice_vf_cfg_qs_bw(struct ice_vf *vf, u16 num_queues) in ice_vf_cfg_qs_bw() argument 72 struct ice_hw *hw = &vf->pf->hw; in ice_vf_cfg_qs_bw() 77 vsi = ice_get_vf_vsi(vf); in ice_vf_cfg_qs_bw() 85 p_rate = vf->qs_bw[i].peak; in ice_vf_cfg_qs_bw() 86 min_rate = vf in ice_vf_cfg_qs_bw() 129 ice_vf_cfg_q_quanta_profile(struct ice_vf * vf,u16 quanta_size,u16 * quanta_prof_idx) ice_vf_cfg_q_quanta_profile() argument 252 ice_vc_ena_qs_msg(struct ice_vf * vf,u8 * msg) ice_vc_ena_qs_msg() argument 343 ice_vf_vsi_dis_single_txq(struct ice_vf * vf,struct ice_vsi * vsi,u16 q_id) ice_vf_vsi_dis_single_txq() argument 379 ice_vc_dis_qs_msg(struct ice_vf * vf,u8 * msg) ice_vc_dis_qs_msg() argument 484 ice_cfg_interrupt(struct ice_vf * vf,struct ice_vsi * vsi,struct virtchnl_vector_map * map,struct ice_q_vector * q_vector) ice_cfg_interrupt() argument 534 ice_vc_cfg_irq_map_msg(struct ice_vf * vf,u8 * msg) ice_vc_cfg_irq_map_msg() argument 614 ice_vc_cfg_q_bw(struct ice_vf * vf,u8 * msg) ice_vc_cfg_q_bw() argument 698 ice_vc_cfg_q_quanta(struct ice_vf * vf,u8 * msg) ice_vc_cfg_q_quanta() argument 770 ice_vc_cfg_qs_msg(struct ice_vf * vf,u8 * msg) ice_vc_cfg_qs_msg() argument 947 ice_vc_request_qs_msg(struct ice_vf * vf,u8 * msg) ice_vc_request_qs_msg() argument [all...] |
| H A D | fdir.c | 90 * @vf: pointer to the VF structure 98 ice_vc_fdir_param_check(struct ice_vf *vf, u16 vsi_id) in ice_vc_fdir_param_check() argument 100 struct ice_pf *pf = vf->pf; in ice_vc_fdir_param_check() 105 if (!test_bit(ICE_VF_STATE_ACTIVE, vf->vf_states)) in ice_vc_fdir_param_check() 108 if (!(vf->driver_caps & VIRTCHNL_VF_OFFLOAD_FDIR_PF)) in ice_vc_fdir_param_check() 111 if (!ice_vc_isvalid_vsi_id(vf, vsi_id)) in ice_vc_fdir_param_check() 114 if (!ice_get_vf_vsi(vf)) in ice_vc_fdir_param_check() 122 * @vf: pointer to the VF structure 128 static int ice_vf_start_ctrl_vsi(struct ice_vf *vf) in ice_vf_start_ctrl_vsi() argument 130 struct ice_pf *pf = vf in ice_vf_start_ctrl_vsi() 172 ice_vc_fdir_alloc_prof(struct ice_vf * vf,enum ice_fltr_ptype flow) ice_vc_fdir_alloc_prof() argument 202 ice_vc_fdir_free_prof(struct ice_vf * vf,enum ice_fltr_ptype flow) ice_vc_fdir_free_prof() argument 220 ice_vc_fdir_free_prof_all(struct ice_vf * vf) ice_vc_fdir_free_prof_all() argument 288 ice_vc_fdir_set_flow_fld(struct ice_vf * vf,struct virtchnl_fdir_add * fltr,struct virtchnl_fdir_fltr_conf * conf,struct ice_flow_seg_info * seg) ice_vc_fdir_set_flow_fld() argument 332 ice_vc_fdir_set_flow_hdr(struct ice_vf * vf,struct virtchnl_fdir_fltr_conf * conf,struct ice_flow_seg_info * seg) ice_vc_fdir_set_flow_hdr() argument 477 ice_vc_fdir_rem_prof(struct ice_vf * vf,enum ice_fltr_ptype flow,int tun) ice_vc_fdir_rem_prof() argument 529 ice_vc_fdir_rem_prof_all(struct ice_vf * vf) ice_vc_fdir_rem_prof_all() argument 567 ice_vc_fdir_has_prof_conflict(struct ice_vf * vf,struct virtchnl_fdir_fltr_conf * conf) ice_vc_fdir_has_prof_conflict() argument 635 ice_vc_fdir_write_flow_prof(struct ice_vf * vf,enum ice_fltr_ptype flow,struct ice_flow_seg_info * seg,int tun) ice_vc_fdir_write_flow_prof() argument 748 ice_vc_fdir_config_input_set(struct ice_vf * vf,struct virtchnl_fdir_add * fltr,struct virtchnl_fdir_fltr_conf * conf,int tun) ice_vc_fdir_config_input_set() argument 831 ice_vc_fdir_parse_raw(struct ice_vf * vf,struct virtchnl_proto_hdrs * proto,struct virtchnl_fdir_fltr_conf * conf) ice_vc_fdir_parse_raw() argument 921 ice_vc_fdir_parse_pattern(struct ice_vf * vf,struct virtchnl_fdir_add * fltr,struct virtchnl_fdir_fltr_conf * conf) ice_vc_fdir_parse_pattern() argument 1149 ice_vc_fdir_parse_action(struct ice_vf * vf,struct virtchnl_fdir_add * fltr,struct virtchnl_fdir_fltr_conf * conf) ice_vc_fdir_parse_action() argument 1223 ice_vc_validate_fdir_fltr(struct ice_vf * vf,struct virtchnl_fdir_add * fltr,struct virtchnl_fdir_fltr_conf * conf) ice_vc_validate_fdir_fltr() argument 1289 ice_vc_fdir_is_dup_fltr(struct ice_vf * vf,struct virtchnl_fdir_fltr_conf * conf) ice_vc_fdir_is_dup_fltr() argument 1317 ice_vc_fdir_insert_entry(struct ice_vf * vf,struct virtchnl_fdir_fltr_conf * conf,u32 * id) ice_vc_fdir_insert_entry() argument 1341 ice_vc_fdir_remove_entry(struct ice_vf * vf,struct virtchnl_fdir_fltr_conf * conf,u32 id) ice_vc_fdir_remove_entry() argument 1358 ice_vc_fdir_lookup_entry(struct ice_vf * vf,u32 id) ice_vc_fdir_lookup_entry() argument 1367 ice_vc_fdir_flush_entry(struct ice_vf * vf) ice_vc_fdir_flush_entry() argument 1389 ice_vc_fdir_write_fltr(struct ice_vf * vf,struct virtchnl_fdir_fltr_conf * conf,bool add,bool is_tun) ice_vc_fdir_write_fltr() argument 1458 struct ice_vf *vf; ice_vf_fdir_timer() local 1494 struct ice_vf *vf = ctrl_vsi->vf; ice_vc_fdir_irq_handler() local 1537 ice_vf_fdir_dump_info(struct ice_vf * vf) ice_vf_fdir_dump_info() argument 1589 ice_vf_verify_rx_desc(struct ice_vf * vf,struct ice_vf_fdir_ctx * ctx,enum virtchnl_fdir_prgm_status * status) ice_vf_verify_rx_desc() argument 1680 ice_vc_add_fdir_fltr_post(struct ice_vf * vf,struct ice_vf_fdir_ctx * ctx,enum virtchnl_fdir_prgm_status status,bool success) ice_vc_add_fdir_fltr_post() argument 1745 ice_vc_del_fdir_fltr_post(struct ice_vf * vf,struct ice_vf_fdir_ctx * ctx,enum virtchnl_fdir_prgm_status status,bool success) ice_vc_del_fdir_fltr_post() argument 1805 struct ice_vf *vf; ice_flush_fdir_ctx() local 1880 ice_vc_fdir_set_irq_ctx(struct ice_vf * vf,struct virtchnl_fdir_fltr_conf * conf,enum virtchnl_ops v_opcode) ice_vc_fdir_set_irq_ctx() argument 1915 ice_vc_fdir_clear_irq_ctx(struct ice_vf * vf) ice_vc_fdir_clear_irq_ctx() argument 1974 ice_vc_add_fdir_raw(struct ice_vf * vf,struct virtchnl_fdir_fltr_conf * conf,enum virtchnl_status_code * v_ret,struct virtchnl_fdir_add * stat,int len) ice_vc_add_fdir_raw() argument 2085 ice_vc_add_fdir_fltr(struct ice_vf * vf,u8 * msg) ice_vc_add_fdir_fltr() argument 2243 ice_vc_del_fdir_raw(struct ice_vf * vf,struct virtchnl_fdir_fltr_conf * conf,enum virtchnl_status_code * v_ret,struct virtchnl_fdir_del * stat,int len) ice_vc_del_fdir_raw() argument 2311 ice_vc_del_fdir_fltr(struct ice_vf * vf,u8 * msg) ice_vc_del_fdir_fltr() argument 2411 ice_vf_fdir_init(struct ice_vf * vf) ice_vf_fdir_init() argument 2428 ice_vf_fdir_exit(struct ice_vf * vf) ice_vf_fdir_exit() argument [all...] |
| H A D | rss.c | 424 ice_vc_validate_pattern(struct ice_vf *vf, struct virtchnl_proto_hdrs *proto) in ice_vc_validate_pattern() argument 505 return ice_hw_ptype_ena(&vf->pf->hw, ptype); in ice_vc_validate_pattern() 738 ice_hash_moveout(struct ice_vf *vf, struct ice_rss_hash_cfg *cfg) in ice_hash_moveout() argument 740 struct device *dev = ice_pf_to_dev(vf->pf); in ice_hash_moveout() 741 struct ice_vsi *vsi = ice_get_vf_vsi(vf); in ice_hash_moveout() 742 struct ice_hw *hw = &vf->pf->hw; in ice_hash_moveout() 751 vf->vf_id, vf->lan_vsi_idx, ret); in ice_hash_moveout() 771 ice_hash_moveback(struct ice_vf *vf, struct ice_rss_hash_cfg *cfg) in ice_hash_moveback() argument 773 struct device *dev = ice_pf_to_dev(vf->pf); in ice_hash_moveback() 774 struct ice_vsi *vsi = ice_get_vf_vsi(vf); in ice_hash_moveback() [all …]
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_sriov.c | 43 mv_list[i].vf = -1; in ixgbe_alloc_vf_macvlans() 128 int vf = 0; in ixgbe_get_vfs() local 143 if (vf >= adapter->num_vfs) in ixgbe_get_vfs() 146 adapter->vfinfo[vf].vfdev = vfdev; in ixgbe_get_vfs() 147 ++vf; in ixgbe_get_vfs() 207 unsigned int num_vfs = adapter->num_vfs, vf; in ixgbe_disable_sriov() local 218 for (vf = 0; vf < num_vfs; ++vf) { in ixgbe_disable_sriov() 219 struct pci_dev *vfdev = adapter->vfinfo[vf].vfdev; in ixgbe_disable_sriov() 223 adapter->vfinfo[vf].vfdev = NULL; in ixgbe_disable_sriov() 367 u32 *msgbuf, u32 vf) in ixgbe_set_vf_multicasts() argument [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_sriov.c | 30 struct bnx2x_virtf **vf, 78 static void bnx2x_vf_igu_ack_sb(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vf_igu_ack_sb() argument 86 u32 func_encode = vf->abs_vfid; in bnx2x_vf_igu_ack_sb() 112 struct bnx2x_virtf *vf, in bnx2x_validate_vf_sp_objs() argument 115 if (!bnx2x_leading_vfq(vf, sp_initialized)) { in bnx2x_validate_vf_sp_objs() 126 void bnx2x_vfop_qctor_dump_tx(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vfop_qctor_dump_tx() argument 133 vf->abs_vfid, in bnx2x_vfop_qctor_dump_tx() 142 void bnx2x_vfop_qctor_dump_rx(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vfop_qctor_dump_rx() argument 151 vf->abs_vfid, in bnx2x_vfop_qctor_dump_rx() 167 struct bnx2x_virtf *vf, in bnx2x_vfop_qctor_prep() argument 235 bnx2x_vf_queue_create(struct bnx2x * bp,struct bnx2x_virtf * vf,int qid,struct bnx2x_vf_queue_construct_params * qctor) bnx2x_vf_queue_create() argument 274 bnx2x_vf_queue_destroy(struct bnx2x * bp,struct bnx2x_virtf * vf,int qid) bnx2x_vf_queue_destroy() argument 318 struct bnx2x_virtf *vf = bnx2x_vf_by_abs_fid(bp, abs_vfid); bnx2x_vf_set_igu_info() local 334 bnx2x_vf_vlan_mac_clear(struct bnx2x * bp,struct bnx2x_virtf * vf,int qid,bool drv_only,int type) bnx2x_vf_vlan_mac_clear() argument 379 bnx2x_vf_mac_vlan_config(struct bnx2x * bp,struct bnx2x_virtf * vf,int qid,struct bnx2x_vf_mac_vlan_filter * filter,bool drv_only) bnx2x_vf_mac_vlan_config() argument 434 bnx2x_vf_mac_vlan_config_list(struct bnx2x * bp,struct bnx2x_virtf * vf,struct bnx2x_vf_mac_vlan_filters * filters,int qid,bool drv_only) bnx2x_vf_mac_vlan_config_list() argument 473 bnx2x_vf_queue_setup(struct bnx2x * bp,struct bnx2x_virtf * vf,int qid,struct bnx2x_vf_queue_construct_params * qctor) bnx2x_vf_queue_setup() argument 493 bnx2x_vf_queue_flr(struct bnx2x * bp,struct bnx2x_virtf * vf,int qid) bnx2x_vf_queue_flr() argument 537 bnx2x_vf_mcast(struct bnx2x * bp,struct bnx2x_virtf * vf,bnx2x_mac_addr_t * mcasts,int mc_num,bool drv_only) bnx2x_vf_mcast() argument 588 bnx2x_vf_prep_rx_mode(struct bnx2x * bp,u8 qid,struct bnx2x_rx_mode_ramrod_params * ramrod,struct bnx2x_virtf * vf,unsigned long accept_flags) bnx2x_vf_prep_rx_mode() argument 611 bnx2x_vf_rxmode(struct bnx2x * bp,struct bnx2x_virtf * vf,int qid,unsigned long accept_flags) bnx2x_vf_rxmode() argument 624 bnx2x_vf_queue_teardown(struct bnx2x * bp,struct bnx2x_virtf * vf,int qid) bnx2x_vf_queue_teardown() argument 714 bnx2x_vf_igu_reset(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_igu_reset() argument 784 bnx2x_vf_enable_traffic(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_enable_traffic() argument 797 struct bnx2x_virtf *vf = bnx2x_vf_by_abs_fid(bp, abs_vfid); bnx2x_vf_is_pcie_pending() local 826 bnx2x_iov_static_resc(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_iov_static_resc() argument 845 bnx2x_vf_free_resc(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_free_resc() argument 852 bnx2x_vf_flr_clnup_hw(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_flr_clnup_hw() argument 872 bnx2x_vf_flr(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_flr() argument 908 struct bnx2x_virtf *vf; bnx2x_vf_flr_clnup() local 968 struct bnx2x_virtf *vf = BP_VF(bp, i); bnx2x_vf_handle_flr_event() local 1060 bnx2x_vf_set_bars(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_set_bars() argument 1410 bnx2x_vfq_init(struct bnx2x * bp,struct bnx2x_virtf * vf,struct bnx2x_vf_queue * q) bnx2x_vfq_init() argument 1450 struct bnx2x_virtf *vf; bnx2x_iov_link_update_vf() local 1512 struct bnx2x_virtf *vf = BP_VF(bp, idx); bnx2x_set_vf_link_state() local 1553 struct bnx2x_virtf *vf = BP_VF(bp, vfid); bnx2x_iov_nic_init() local 1606 struct bnx2x_virtf *vf = BP_VF(bp, vfid); bnx2x_iov_nic_init() local 1699 bnx2x_vf_handle_mcast_eqe(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_handle_mcast_eqe() argument 1718 bnx2x_vf_handle_filters_eqe(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_handle_filters_eqe() argument 1726 bnx2x_vf_handle_rss_update_eqe(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_handle_rss_update_eqe() argument 1733 struct bnx2x_virtf *vf; bnx2x_iov_eq_sp_event() local 1847 struct bnx2x_virtf *vf; bnx2x_iov_set_queue_sp_obj() local 1895 struct bnx2x_virtf *vf = BP_VF(bp, i); bnx2x_iov_adjust_stats_req() local 1960 bnx2x_vf_clr_qtbl(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_clr_qtbl() argument 1969 bnx2x_vf_igu_disable(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_igu_disable() argument 1982 bnx2x_vf_max_queue_cnt(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_max_queue_cnt() argument 1989 bnx2x_vf_chk_avail_resc(struct bnx2x * bp,struct bnx2x_virtf * vf,struct vf_pf_resc_request * req_resc) bnx2x_vf_chk_avail_resc() argument 2003 bnx2x_vf_acquire(struct bnx2x * bp,struct bnx2x_virtf * vf,struct vf_pf_resc_request * resc) bnx2x_vf_acquire() argument 2088 bnx2x_vf_init(struct bnx2x * bp,struct bnx2x_virtf * vf,dma_addr_t * sb_map) bnx2x_vf_init() argument 2140 struct bnx2x_virtf *vf; global() member 2151 bnx2x_vf_close(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_close() argument 2198 bnx2x_vf_free(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_free() argument 2231 bnx2x_vf_rss_update(struct bnx2x * bp,struct bnx2x_virtf * vf,struct bnx2x_config_rss_params * rss) bnx2x_vf_rss_update() argument 2239 bnx2x_vf_tpa_update(struct bnx2x * bp,struct bnx2x_virtf * vf,struct vfpf_tpa_tlv * tlv,struct bnx2x_queue_update_tpa_params * params) bnx2x_vf_tpa_update() argument 2278 bnx2x_vf_release(struct bnx2x * bp,struct bnx2x_virtf * vf) bnx2x_vf_release() argument 2294 bnx2x_lock_vf_pf_channel(struct bnx2x * bp,struct bnx2x_virtf * vf,enum channel_tlvs tlv) bnx2x_lock_vf_pf_channel() argument 2314 bnx2x_unlock_vf_pf_channel(struct bnx2x * bp,struct bnx2x_virtf * vf,enum channel_tlvs expected_tlv) bnx2x_unlock_vf_pf_channel() argument 2460 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); bnx2x_enable_sriov() local 2491 struct bnx2x_virtf *vf = BP_VF(bp, vf_idx); bnx2x_enable_sriov() local 2557 bnx2x_vf_op_prep(struct bnx2x * bp,int vfidx,struct bnx2x_virtf ** vf,struct pf_vf_bulletin_content ** bulletin,bool test_queue) bnx2x_vf_op_prep() argument 2605 struct bnx2x_virtf *vf = NULL; bnx2x_get_vf_config() local 2683 struct bnx2x_virtf *vf = NULL; bnx2x_set_vf_mac() local 2760 bnx2x_set_vf_vlan_acceptance(struct bnx2x * bp,struct bnx2x_virtf * vf,bool accept) bnx2x_set_vf_vlan_acceptance() argument 2778 bnx2x_set_vf_vlan_filter(struct bnx2x * bp,struct bnx2x_virtf * vf,u16 vlan,bool add) bnx2x_set_vf_vlan_filter() argument 2810 struct bnx2x_virtf *vf = NULL; bnx2x_set_vf_vlan() local 2949 struct bnx2x_virtf *vf; bnx2x_set_vf_spoofchk() local [all...] |
| H A D | bnx2x_sriov.h | 166 #define vf_rxq_count(vf) ((vf)->alloc_resc.num_rxqs) argument 167 #define vf_txq_count(vf) ((vf)->alloc_resc.num_txqs) argument 168 #define vf_sb_count(vf) ((vf)->alloc_resc.num_sbs) argument 169 #define vf_mac_rules_cnt(vf) ((vf)->alloc_resc.num_mac_filters) argument 170 #define vf_vlan_rules_cnt(vf) ((vf)->alloc_resc.num_vlan_filters) argument 171 #define vf_mc_rules_cnt(vf) ((vf)->alloc_resc.num_mc_filters) argument 179 #define bnx2x_vfq(vf, nr, var) ((vf)->vfqs[(nr)].var) argument 180 #define bnx2x_leading_vfq(vf, var) ((vf)->vfqs[LEADING_IDX].var) argument 224 #define for_each_vfq(vf, var) \ argument 225 for ((var) = 0; (var) < vf_rxq_count(vf); (var)++) [all …]
|
| H A D | bnx2x_vfpf.c | 544 static void bnx2x_leading_vfq_init(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_leading_vfq_init() argument 547 u8 cl_id = vfq_cl_id(vf, q); in bnx2x_leading_vfq_init() 548 u8 func_id = FW_VF_HANDLE(vf->abs_vfid); in bnx2x_leading_vfq_init() 553 bnx2x_vf_sp(bp, vf, mac_rdata), in bnx2x_leading_vfq_init() 554 bnx2x_vf_sp_map(bp, vf, mac_rdata), in bnx2x_leading_vfq_init() 556 &vf->filter_state, in bnx2x_leading_vfq_init() 558 &vf->vf_macs_pool); in bnx2x_leading_vfq_init() 562 bnx2x_vf_sp(bp, vf, vlan_rdata), in bnx2x_leading_vfq_init() 563 bnx2x_vf_sp_map(bp, vf, vlan_rdata), in bnx2x_leading_vfq_init() 565 &vf->filter_state, in bnx2x_leading_vfq_init() [all …]
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | ef10_sriov.c | 118 if (!nic_data->vf) in efx_ef10_sriov_free_vf_vports() 122 struct ef10_vf *vf = nic_data->vf + i; in efx_ef10_sriov_free_vf_vports() local 125 if (vf->pci_dev && pci_is_dev_assigned(vf->pci_dev)) in efx_ef10_sriov_free_vf_vports() 128 if (vf->vport_assigned) { in efx_ef10_sriov_free_vf_vports() 130 vf->vport_assigned = 0; in efx_ef10_sriov_free_vf_vports() 133 if (!is_zero_ether_addr(vf->mac)) { in efx_ef10_sriov_free_vf_vports() 134 efx_ef10_vport_del_mac(efx, vf->vport_id, vf->mac); in efx_ef10_sriov_free_vf_vports() 135 eth_zero_addr(vf->mac); in efx_ef10_sriov_free_vf_vports() 138 if (vf->vport_id) { in efx_ef10_sriov_free_vf_vports() 139 efx_ef10_vport_free(efx, vf->vport_id); in efx_ef10_sriov_free_vf_vports() [all …]
|
| /linux/drivers/crypto/cavium/cpt/ |
| H A D | cptpf_mbox.c | 8 static void cpt_send_msg_to_vf(struct cpt_device *cpt, int vf, in cpt_send_msg_to_vf() argument 12 cpt_write_csr64(cpt->reg_base, CPTX_PF_VFX_MBOXX(0, vf, 1), in cpt_send_msg_to_vf() 14 cpt_write_csr64(cpt->reg_base, CPTX_PF_VFX_MBOXX(0, vf, 0), mbx->msg); in cpt_send_msg_to_vf() 20 static void cpt_mbox_send_ack(struct cpt_device *cpt, int vf, in cpt_mbox_send_ack() argument 25 cpt_send_msg_to_vf(cpt, vf, mbx); in cpt_mbox_send_ack() 28 static void cpt_clear_mbox_intr(struct cpt_device *cpt, u32 vf) in cpt_clear_mbox_intr() argument 31 cpt_write_csr64(cpt->reg_base, CPTX_PF_MBOX_INTX(0, 0), (1 << vf)); in cpt_clear_mbox_intr() 37 static void cpt_cfg_qlen_for_vf(struct cpt_device *cpt, int vf, u32 size) in cpt_cfg_qlen_for_vf() argument 41 pf_qx_ctl.u = cpt_read_csr64(cpt->reg_base, CPTX_PF_QX_CTL(0, vf)); in cpt_cfg_qlen_for_vf() 44 cpt_write_csr64(cpt->reg_base, CPTX_PF_QX_CTL(0, vf), pf_qx_ctl.u); in cpt_cfg_qlen_for_vf() [all …]
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_sriov_pf.c | 743 struct qlcnic_vf_info *vf = trans->vf; in qlcnic_sriov_pf_channel_cfg_cmd() local 744 struct qlcnic_vport *vp = vf->vp; in qlcnic_sriov_pf_channel_cfg_cmd() 747 u16 func = vf->pci_func; in qlcnic_sriov_pf_channel_cfg_cmd() 751 adapter = vf->adapter; in qlcnic_sriov_pf_channel_cfg_cmd() 763 size = sizeof(*vf->sriov_vlans); in qlcnic_sriov_pf_channel_cfg_cmd() 765 memset(vf->sriov_vlans, 0, size); in qlcnic_sriov_pf_channel_cfg_cmd() 776 assign_bit(QLC_BC_VF_STATE, &vf->state, in qlcnic_sriov_pf_channel_cfg_cmd() 787 struct qlcnic_vf_info *vf, 798 vp = vf in qlcnic_sriov_cfg_vf_def_mac() 789 qlcnic_sriov_cfg_vf_def_mac(struct qlcnic_adapter * adapter,struct qlcnic_vf_info * vf,u16 vlan,u8 op) qlcnic_sriov_cfg_vf_def_mac() argument 856 qlcnic_83xx_cfg_default_mac_vlan(struct qlcnic_adapter * adapter,struct qlcnic_vf_info * vf,int opcode) qlcnic_83xx_cfg_default_mac_vlan() argument 887 struct qlcnic_vf_info *vf = tran->vf; qlcnic_sriov_pf_create_rx_ctx_cmd() local 915 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_mac_address_cmd() local 947 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_create_tx_ctx_cmd() local 970 qlcnic_sriov_validate_del_rx_ctx(struct qlcnic_vf_info * vf,struct qlcnic_cmd_args * cmd) qlcnic_sriov_validate_del_rx_ctx() argument 985 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_del_rx_ctx_cmd() local 1005 qlcnic_sriov_validate_del_tx_ctx(struct qlcnic_vf_info * vf,struct qlcnic_cmd_args * cmd) qlcnic_sriov_validate_del_tx_ctx() argument 1020 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_del_tx_ctx_cmd() local 1039 qlcnic_sriov_validate_cfg_lro(struct qlcnic_vf_info * vf,struct qlcnic_cmd_args * cmd) qlcnic_sriov_validate_cfg_lro() argument 1051 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_cfg_lro_cmd() local 1068 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_cfg_ip_cmd() local 1079 qlcnic_sriov_validate_cfg_intrpt(struct qlcnic_vf_info * vf,struct qlcnic_cmd_args * cmd) qlcnic_sriov_validate_cfg_intrpt() argument 1097 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_cfg_intrpt_cmd() local 1111 qlcnic_sriov_validate_mtu(struct qlcnic_adapter * adapter,struct qlcnic_vf_info * vf,struct qlcnic_cmd_args * cmd) qlcnic_sriov_validate_mtu() argument 1126 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_set_mtu_cmd() local 1139 qlcnic_sriov_validate_get_nic_info(struct qlcnic_vf_info * vf,struct qlcnic_cmd_args * cmd) qlcnic_sriov_validate_get_nic_info() argument 1155 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_get_nic_info_cmd() local 1169 qlcnic_sriov_validate_cfg_rss(struct qlcnic_vf_info * vf,struct qlcnic_cmd_args * cmd) qlcnic_sriov_validate_cfg_rss() argument 1181 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_cfg_rss_cmd() local 1195 qlcnic_sriov_validate_cfg_intrcoal(struct qlcnic_adapter * adapter,struct qlcnic_vf_info * vf,struct qlcnic_cmd_args * cmd) qlcnic_sriov_validate_cfg_intrcoal() argument 1240 struct qlcnic_vf_info *vf = tran->vf; qlcnic_sriov_pf_cfg_intrcoal_cmd() local 1255 qlcnic_sriov_validate_cfg_macvlan(struct qlcnic_adapter * adapter,struct qlcnic_vf_info * vf,struct qlcnic_cmd_args * cmd) qlcnic_sriov_validate_cfg_macvlan() argument 1282 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_cfg_macvlan_cmd() local 1296 qlcnic_sriov_validate_linkevent(struct qlcnic_vf_info * vf,struct qlcnic_cmd_args * cmd) qlcnic_sriov_validate_linkevent() argument 1308 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_linkevent_cmd() local 1325 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_cfg_promisc_cmd() local 1338 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_pf_get_acl_cmd() local 1369 qlcnic_sriov_pf_del_guest_vlan(struct qlcnic_adapter * adapter,struct qlcnic_vf_info * vf,struct qlcnic_cmd_args * cmd) qlcnic_sriov_pf_del_guest_vlan() argument 1394 qlcnic_sriov_pf_add_guest_vlan(struct qlcnic_adapter * adapter,struct qlcnic_vf_info * vf,struct qlcnic_cmd_args * cmd) qlcnic_sriov_pf_add_guest_vlan() argument 1434 struct qlcnic_vf_info *vf = tran->vf; qlcnic_sriov_pf_cfg_guest_vlan_cmd() local 1596 qlcnic_sriov_del_rx_ctx(struct qlcnic_adapter * adapter,struct qlcnic_vf_info * vf) qlcnic_sriov_del_rx_ctx() argument 1622 qlcnic_sriov_del_tx_ctx(struct qlcnic_adapter * adapter,struct qlcnic_vf_info * vf) qlcnic_sriov_del_tx_ctx() argument 1648 qlcnic_sriov_add_act_list_irqsave(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf,struct qlcnic_bc_trans * trans) qlcnic_sriov_add_act_list_irqsave() argument 1662 __qlcnic_sriov_process_flr(struct qlcnic_vf_info * vf) __qlcnic_sriov_process_flr() argument 1688 struct qlcnic_vf_info *vf; qlcnic_sriov_pf_process_flr() local 1696 qlcnic_sriov_schedule_flr(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf,work_func_t func) qlcnic_sriov_schedule_flr() argument 1708 qlcnic_sriov_handle_soft_flr(struct qlcnic_adapter * adapter,struct qlcnic_bc_trans * trans,struct qlcnic_vf_info * vf) qlcnic_sriov_handle_soft_flr() argument 1723 qlcnic_sriov_soft_flr_check(struct qlcnic_adapter * adapter,struct qlcnic_bc_trans * trans,struct qlcnic_vf_info * vf) qlcnic_sriov_soft_flr_check() argument 1738 qlcnic_sriov_pf_handle_flr(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf) qlcnic_sriov_pf_handle_flr() argument 1766 struct qlcnic_vf_info *vf; qlcnic_sriov_pf_reset() local 1802 qlcnic_sriov_set_vf_mac(struct net_device * netdev,int vf,u8 * mac) qlcnic_sriov_set_vf_mac() argument 1849 qlcnic_sriov_set_vf_tx_rate(struct net_device * netdev,int vf,int min_tx_rate,int max_tx_rate) qlcnic_sriov_set_vf_tx_rate() argument 1912 qlcnic_sriov_set_vf_vlan(struct net_device * netdev,int vf,u16 vlan,u8 qos,__be16 vlan_proto) qlcnic_sriov_set_vf_vlan() argument 1969 qlcnic_sriov_get_vf_vlan(struct qlcnic_adapter * adapter,struct qlcnic_vport * vp,int vf) qlcnic_sriov_get_vf_vlan() argument 1992 qlcnic_sriov_get_vf_config(struct net_device * netdev,int vf,struct ifla_vf_info * ivi) qlcnic_sriov_get_vf_config() argument 2022 qlcnic_sriov_set_vf_spoofchk(struct net_device * netdev,int vf,bool chk) qlcnic_sriov_set_vf_spoofchk() argument [all...] |
| H A D | qlcnic_sriov_common.c | 146 struct qlcnic_vf_info *vf; in qlcnic_sriov_init() local 189 vf = &sriov->vf_info[i]; in qlcnic_sriov_init() 190 vf->adapter = adapter; in qlcnic_sriov_init() 191 vf->pci_func = qlcnic_sriov_virtid_fn(adapter, i); in qlcnic_sriov_init() 192 mutex_init(&vf->send_cmd_lock); in qlcnic_sriov_init() 193 spin_lock_init(&vf->vlan_list_lock); in qlcnic_sriov_init() 194 INIT_LIST_HEAD(&vf->rcv_act.wait_list); in qlcnic_sriov_init() 195 INIT_LIST_HEAD(&vf->rcv_pend.wait_list); in qlcnic_sriov_init() 196 spin_lock_init(&vf->rcv_act.lock); in qlcnic_sriov_init() 197 spin_lock_init(&vf in qlcnic_sriov_init() 264 struct qlcnic_vf_info *vf; __qlcnic_sriov_cleanup() local 825 qlcnic_sriov_clear_trans(struct qlcnic_vf_info * vf,struct qlcnic_bc_trans * trans,u8 type) qlcnic_sriov_clear_trans() argument 851 qlcnic_sriov_schedule_bc_cmd(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf,work_func_t func) qlcnic_sriov_schedule_bc_cmd() argument 894 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_wait_for_channel_free() local 921 __qlcnic_sriov_issue_bc_post(struct qlcnic_vf_info * vf) __qlcnic_sriov_issue_bc_post() argument 939 struct qlcnic_vf_info *vf = trans->vf; qlcnic_sriov_issue_bc_post() local 968 __qlcnic_sriov_send_bc_msg(struct qlcnic_bc_trans * trans,struct qlcnic_vf_info * vf,u8 type) __qlcnic_sriov_send_bc_msg() argument 1010 struct qlcnic_vf_info *vf; qlcnic_sriov_send_bc_cmd() local 1052 struct qlcnic_vf_info *vf = container_of(work, struct qlcnic_vf_info, qlcnic_sriov_process_bc_cmd() local 1088 qlcnic_sriov_handle_bc_resp(struct qlcnic_bc_hdr * hdr,struct qlcnic_vf_info * vf) qlcnic_sriov_handle_bc_resp() argument 1120 __qlcnic_sriov_add_act_list(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf,struct qlcnic_bc_trans * trans) __qlcnic_sriov_add_act_list() argument 1134 qlcnic_sriov_add_act_list(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf,struct qlcnic_bc_trans * trans) qlcnic_sriov_add_act_list() argument 1148 qlcnic_sriov_handle_pending_trans(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf,struct qlcnic_bc_hdr * hdr) qlcnic_sriov_handle_pending_trans() argument 1193 qlcnic_sriov_handle_bc_cmd(struct qlcnic_sriov * sriov,struct qlcnic_bc_hdr * hdr,struct qlcnic_vf_info * vf) qlcnic_sriov_handle_bc_cmd() argument 1266 qlcnic_sriov_handle_msg_event(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf) qlcnic_sriov_handle_msg_event() argument 1287 qlcnic_sriov_handle_flr_event(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf) qlcnic_sriov_handle_flr_event() argument 1300 struct qlcnic_vf_info *vf; qlcnic_sriov_handle_bc_event() local 1470 struct qlcnic_vf_info *vf = &adapter->ahw->sriov->vf_info[0]; qlcnic_sriov_channel_cfg_cmd() local 1506 struct qlcnic_vf_info *vf; qlcnic_vf_add_mc_list() local 1954 qlcnic_sriov_check_vlan_id(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf,u16 vlan_id) qlcnic_sriov_check_vlan_id() argument 1975 qlcnic_sriov_validate_num_vlans(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf) qlcnic_sriov_validate_num_vlans() argument 1992 struct qlcnic_vf_info *vf; qlcnic_sriov_validate_vlan_cfg() local 2026 qlcnic_sriov_vlan_operation(struct qlcnic_vf_info * vf,u16 vlan_id,enum qlcnic_vlan_operations opcode) qlcnic_sriov_vlan_operation() argument 2059 struct qlcnic_vf_info *vf; qlcnic_sriov_cfg_vf_guest_vlan() local 2167 struct qlcnic_vf_info *vf; qlcnic_sriov_alloc_vlans() local 2186 struct qlcnic_vf_info *vf; qlcnic_sriov_free_vlans() local 2197 qlcnic_sriov_add_vlan_id(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf,u16 vlan_id) qlcnic_sriov_add_vlan_id() argument 2211 qlcnic_sriov_del_vlan_id(struct qlcnic_sriov * sriov,struct qlcnic_vf_info * vf,u16 vlan_id) qlcnic_sriov_del_vlan_id() argument 2224 qlcnic_sriov_check_any_vlan(struct qlcnic_vf_info * vf) qlcnic_sriov_check_any_vlan() argument [all...] |
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptpf_mbox.c | 74 static void otx_cpt_send_msg_to_vf(struct otx_cpt_device *cpt, int vf, in otx_cpt_send_msg_to_vf() argument 78 writeq(mbx->data, cpt->reg_base + OTX_CPT_PF_VFX_MBOXX(vf, 1)); in otx_cpt_send_msg_to_vf() 79 writeq(mbx->msg, cpt->reg_base + OTX_CPT_PF_VFX_MBOXX(vf, 0)); in otx_cpt_send_msg_to_vf() 86 static void otx_cpt_mbox_send_ack(struct otx_cpt_device *cpt, int vf, in otx_cpt_mbox_send_ack() argument 91 otx_cpt_send_msg_to_vf(cpt, vf, mbx); in otx_cpt_mbox_send_ack() 95 static void otx_cptpf_mbox_send_nack(struct otx_cpt_device *cpt, int vf, in otx_cptpf_mbox_send_nack() argument 100 otx_cpt_send_msg_to_vf(cpt, vf, mbx); in otx_cptpf_mbox_send_nack() 103 static void otx_cpt_clear_mbox_intr(struct otx_cpt_device *cpt, u32 vf) in otx_cpt_clear_mbox_intr() argument 106 writeq(1ull << vf, cpt->reg_base + OTX_CPT_PF_MBOX_INTX(0)); in otx_cpt_clear_mbox_intr() 112 static void otx_cpt_cfg_qlen_for_vf(struct otx_cpt_device *cpt, int vf, in otx_cpt_cfg_qlen_for_vf() argument [all …]
|
| /linux/drivers/net/ethernet/cisco/enic/ |
| H A D | enic_pp.c | 23 int enic_is_valid_pp_vf(struct enic *enic, int vf, int *err) in enic_is_valid_pp_vf() argument 25 if (vf != PORT_SELF_VF) { in enic_is_valid_pp_vf() 33 if (vf < 0 || vf >= enic->num_vfs) { in enic_is_valid_pp_vf() 47 if (vf == PORT_SELF_VF && !enic_is_dynamic(enic)) { in enic_is_valid_pp_vf() 59 static int enic_set_port_profile(struct enic *enic, int vf) in enic_set_port_profile() argument 71 ENIC_PP_BY_INDEX(enic, vf, pp, &err); in enic_set_port_profile() 89 } else if (vf == PORT_SELF_VF) { in enic_set_port_profile() 93 "for VF %d\n", vf); in enic_set_port_profile() 125 ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_init_prov2, (u8 *)vp, in enic_set_port_profile() 135 static int enic_unset_port_profile(struct enic *enic, int vf) in enic_unset_port_profile() argument [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_sriov.c | 18 nfp_net_sriov_check(struct nfp_app *app, int vf, u16 cap, const char *msg, bool warn) in nfp_net_sriov_check() argument 32 if (vf < 0 || vf >= app->pf->num_vfs) { in nfp_net_sriov_check() 34 nfp_warn(app->pf->cpp, "invalid VF id %d\n", vf); in nfp_net_sriov_check() 42 nfp_net_sriov_update(struct nfp_app *app, int vf, u16 update, const char *msg) in nfp_net_sriov_update() argument 48 writeb(vf, app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_VF_NUM); in nfp_net_sriov_update() 64 int nfp_app_set_vf_mac(struct net_device *netdev, int vf, u8 *mac) in nfp_app_set_vf_mac() argument 70 err = nfp_net_sriov_check(app, vf, NFP_NET_VF_CFG_MB_CAP_MAC, "mac", true); in nfp_app_set_vf_mac() 77 mac, vf); in nfp_app_set_vf_mac() 82 vf_offset = NFP_NET_VF_CFG_MB_SZ + vf * NFP_NET_VF_CFG_SZ; in nfp_app_set_vf_mac() 87 err = nfp_net_sriov_update(app, vf, NFP_NET_VF_CFG_MB_UPD_MAC, "MAC"); in nfp_app_set_vf_mac() [all …]
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_pfvf_pf_msg.c | 15 struct adf_accel_vf_info *vf; in adf_pf2vf_notify_restarting() local 20 for (i = 0, vf = accel_dev->pf.vf_info; i < num_vfs; i++, vf++) { in adf_pf2vf_notify_restarting() 21 if (vf->init && vf->vf_compat_ver >= ADF_PFVF_COMPAT_FALLBACK) in adf_pf2vf_notify_restarting() 22 vf->restarting = true; in adf_pf2vf_notify_restarting() 24 vf->restarting = false; in adf_pf2vf_notify_restarting() 26 if (!vf->init) in adf_pf2vf_notify_restarting() 39 struct adf_accel_vf_info *vf; in adf_pf2vf_wait_for_restarting_complete() local 45 for (i = 0, vf = accel_dev->pf.vf_info; i < num_vfs; i++, vf++) in adf_pf2vf_wait_for_restarting_complete() 46 if (vf->restarting) in adf_pf2vf_wait_for_restarting_complete() 61 struct adf_accel_vf_info *vf; in adf_pf2vf_notify_restarted() local [all …]
|