| /f-stack/dpdk/drivers/net/enic/ |
| H A D | enic_vf_representor.c | 59 pf = vf->pf; in enic_vf_dev_tx_queue_setup() 99 pf = vf->pf; in enic_vf_dev_rx_queue_setup() 167 pf = vf->pf; in enic_vf_dev_start() 500 1 /* bcast */, vf->promisc, vf->allmulti); in set_vf_packet_filter() 640 vf->pf_wq_idx = vf_wq_idx(vf); in enic_vf_representor_init() 641 vf->pf_wq_cq_idx = vf_wq_cq_idx(vf); in enic_vf_representor_init() 642 vf->pf_rq_sop_idx = vf_rq_sop_idx(vf); in enic_vf_representor_init() 643 vf->pf_rq_data_idx = vf_rq_data_idx(vf); in enic_vf_representor_init() 656 vf->vf_id, vf->pf_wq_idx, vf->pf_rq_sop_idx, vf->pf_rq_data_idx, in enic_vf_representor_init() 691 vf->enic.vdev = vnic_vf_rep_register(&vf->enic, pf->vdev, vf->vf_id); in enic_vf_representor_init() [all …]
|
| H A D | enic.h | 346 static inline unsigned int vf_wq_cq_idx(struct enic_vf_representor *vf) in vf_wq_cq_idx() argument 349 return vf->pf->conf_rq_count - (vf->pf->max_vf_id + vf->vf_id + 2); in vf_wq_cq_idx() 352 static inline unsigned int vf_wq_idx(struct enic_vf_representor *vf) in vf_wq_idx() argument 354 return vf->pf->conf_wq_count - vf->vf_id - 1; in vf_wq_idx() 357 static inline unsigned int vf_rq_sop_idx(struct enic_vf_representor *vf) in vf_rq_sop_idx() argument 359 return vf->pf->conf_rq_count - vf->vf_id - 1; in vf_rq_sop_idx() 362 static inline unsigned int vf_rq_data_idx(struct enic_vf_representor *vf) in vf_rq_data_idx() argument 364 return vf->pf->conf_rq_count - (vf->pf->max_vf_id + vf->vf_id + 2); in vf_rq_data_idx() 464 int enic_fm_add_rep2vf_flow(struct enic_vf_representor *vf); 465 int enic_fm_add_vf2rep_flow(struct enic_vf_representor *vf);
|
| /f-stack/dpdk/drivers/net/i40e/ |
| H A D | i40e_pf.c | 205 vf->pf->main_vsi, vf->vf_idx); in i40e_pf_host_vf_reset() 655 vf, in i40e_pf_host_process_cmd_config_irq_map() 676 vf->vsi->nb_used_qps = vf->vsi->nb_qps; in i40e_pf_host_process_cmd_config_irq_map() 795 vf, in i40e_pf_host_process_cmd_disable_queues() 830 vf, in i40e_pf_host_process_cmd_add_ether_address() 876 vf, in i40e_pf_host_process_cmd_del_ether_address() 917 vf, in i40e_pf_host_process_cmd_add_vlan() 958 vf, in i40e_pf_host_process_cmd_del_vlan() 999 vf, in i40e_pf_host_process_cmd_config_promisc_mode() 1055 vf, in i40e_pf_host_process_cmd_enable_vlan_strip() [all …]
|
| H A D | i40e_ethdev_vf.c | 252 vf->link_up = in i40evf_read_pfmsg() 337 _clear_cmd(vf); in _i40evf_execute_vf_cmd() 361 _clear_cmd(vf); in _i40evf_execute_vf_cmd() 383 _clear_cmd(vf); in _i40evf_execute_vf_cmd() 400 _clear_cmd(vf); in _i40evf_execute_vf_cmd() 455 vf->version_major, vf->version_minor, in i40evf_check_api_version() 1323 vf->vsi_res = &vf->vf_res->vsi_res[i]; in i40evf_init_vf() 1333 vf->vsi.vsi_id = vf->vsi_res->vsi_id; in i40evf_init_vf() 1343 vf->vsi.nb_qps = vf->vsi_res->num_queue_pairs; in i40evf_init_vf() 1402 vf->link_up = in i40evf_handle_pf_event() [all …]
|
| /f-stack/dpdk/drivers/regex/octeontx2/ |
| H A D | otx2_regexdev_mbox.c | 15 struct otx2_ree_vf *vf = &data->vf; in otx2_ree_available_queues_get() local 38 struct otx2_ree_vf *vf = &data->vf; in otx2_ree_queues_attach() local 63 struct otx2_ree_vf *vf = &data->vf; in otx2_ree_queues_detach() local 75 vf->nb_queues = 0; in otx2_ree_queues_detach() 84 struct otx2_ree_vf *vf = &data->vf; in otx2_ree_msix_offsets_get() local 130 struct otx2_ree_vf *vf = &data->vf; in otx2_ree_config_lf() local 156 struct otx2_ree_vf *vf = &data->vf; in otx2_ree_af_reg_read() local 197 struct otx2_ree_vf *vf = &data->vf; in otx2_ree_af_reg_write() local 228 struct otx2_ree_vf *vf = &data->vf; in otx2_ree_rule_db_get() local 302 struct otx2_ree_vf *vf = &data->vf; in otx2_ree_rule_db_len_get() local [all …]
|
| H A D | otx2_regexdev_hw_access.c | 47 struct otx2_ree_vf *vf = &data->vf; in otx2_ree_err_intr_unregister() local 51 for (i = 0; i < vf->nb_queues; i++) { in otx2_ree_err_intr_unregister() 52 base = OTX2_REE_LF_BAR2(vf, i); in otx2_ree_err_intr_unregister() 56 vf->err_intr_registered = 0; in otx2_ree_err_intr_unregister() 86 struct otx2_ree_vf *vf = &data->vf; in otx2_ree_err_intr_register() local 90 for (i = 0; i < vf->nb_queues; i++) { in otx2_ree_err_intr_register() 93 vf->lf_msixoff[i]); in otx2_ree_err_intr_register() 98 for (i = 0; i < vf->nb_queues; i++) { in otx2_ree_err_intr_register() 99 base = OTX2_REE_LF_BAR2(vf, i); in otx2_ree_err_intr_register() 105 vf->err_intr_registered = 1; in otx2_ree_err_intr_register() [all …]
|
| /f-stack/dpdk/drivers/net/iavf/ |
| H A D | iavf_vchnl.c | 105 vf->link_up = in iavf_read_msg_from_pf() 109 vf->link_speed = in iavf_read_msg_from_pf() 155 if (vf->vf_reset) in iavf_execute_vf_cmd() 165 _clear_cmd(vf); in iavf_execute_vf_cmd() 172 _clear_cmd(vf); in iavf_execute_vf_cmd() 191 _clear_cmd(vf); in iavf_execute_vf_cmd() 218 _clear_cmd(vf); in iavf_execute_vf_cmd() 236 _clear_cmd(vf); in iavf_execute_vf_cmd() 483 vf->vsi_res = &vf->vf_res->vsi_res[i]; in iavf_get_vf_resource() 491 vf->vsi.vsi_id = vf->vsi_res->vsi_id; in iavf_get_vf_resource() [all …]
|
| H A D | iavf_ethdev.c | 288 vf->rss_lut[i] = j; in iavf_init_rss() 515 vf->nb_msix = 1; in iavf_config_rx_queues_irqs() 558 vf->nb_msix = 1; in iavf_config_rx_queues_irqs() 573 vf->nb_msix = RTE_MIN(vf->vf_res->max_vectors, in iavf_config_rx_queues_irqs() 704 iavf_add_del_mc_addr_list(adapter, vf->mc_addrs, vf->mc_addrs_num, in iavf_dev_start() 747 iavf_add_del_mc_addr_list(adapter, vf->mc_addrs, vf->mc_addrs_num, in iavf_dev_stop() 961 vf->mac_num++; in iavf_dev_add_mac_addr() 981 vf->mac_num--; in iavf_dev_del_mac_addr() 1830 if (!vf->vf_res) { in iavf_init_vf() 2059 if (vf->promisc_unicast_enabled || vf->promisc_multicast_enabled) in iavf_dev_close() [all …]
|
| /f-stack/dpdk/drivers/net/txgbe/ |
| H A D | txgbe_pf.c | 380 vf_shift = vf & VFRE_MASK; in txgbe_vf_reset_msg() 390 for (i = vf * nb_q_per_pool; i < (vf + 1) * nb_q_per_pool; i++) { in txgbe_vf_reset_msg() 529 vfinfo[vf].vlan_count++; in txgbe_vf_set_vlan() 531 vfinfo[vf].vlan_count--; in txgbe_vf_set_vlan() 575 api_version, vf); in txgbe_negotiate_vf_api() 749 vf_info[vf].mac_count++; in txgbe_set_vf_macvlan_msg() 752 new_mac, vf, true); in txgbe_set_vf_macvlan_msg() 756 vf_info[vf].mac_count = 0; in txgbe_set_vf_macvlan_msg() 791 ret_param.vfid = vf; in txgbe_rcv_msg_from_vf() 884 uint16_t vf; in txgbe_pf_mbx_process() local [all …]
|
| /f-stack/dpdk/drivers/net/ixgbe/ |
| H A D | ixgbe_pf.c | 390 vf_shift = vf & VFRE_MASK; in ixgbe_vf_reset_msg() 400 for (i = vf * nb_q_per_pool; i < (vf + 1) * nb_q_per_pool; i++) { in ixgbe_vf_reset_msg() 447 ixgbe_vf_reset_msg(dev, vf); in ixgbe_vf_reset() 548 vfinfo[vf].vlan_count++; in ixgbe_vf_set_vlan() 550 vfinfo[vf].vlan_count--; in ixgbe_vf_set_vlan() 615 api_version, vf); in ixgbe_negotiate_vf_api() 794 vf_info[vf].mac_count++; in ixgbe_set_vf_macvlan_msg() 801 vf_info[vf].mac_count = 0; in ixgbe_set_vf_macvlan_msg() 837 ret_param.vfid = vf; in ixgbe_rcv_msg_from_vf() 931 uint16_t vf; in ixgbe_pf_mbx_process() local [all …]
|
| H A D | rte_pmd_ixgbe.h | 30 int rte_pmd_ixgbe_ping_vf(uint16_t port, uint16_t vf); 46 int rte_pmd_ixgbe_set_vf_mac_addr(uint16_t port, uint16_t vf, 64 int rte_pmd_ixgbe_set_vf_vlan_anti_spoof(uint16_t port, uint16_t vf, 82 int rte_pmd_ixgbe_set_vf_mac_anti_spoof(uint16_t port, uint16_t vf, uint8_t on); 100 int rte_pmd_ixgbe_set_vf_vlan_insert(uint16_t port, uint16_t vf, 152 int rte_pmd_ixgbe_set_vf_split_drop_en(uint16_t port, uint16_t vf, uint8_t on); 172 rte_pmd_ixgbe_set_vf_vlan_stripq(uint16_t port, uint16_t vf, uint8_t on); 301 rte_pmd_ixgbe_set_vf_rxmode(uint16_t port, uint16_t vf, uint16_t rx_mask, 321 rte_pmd_ixgbe_set_vf_rx(uint16_t port, uint16_t vf, uint8_t on); 340 rte_pmd_ixgbe_set_vf_tx(uint16_t port, uint16_t vf, uint8_t on); [all …]
|
| H A D | rte_pmd_ixgbe.c | 31 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_set_vf_mac_addr() 65 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_ping_vf() 96 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_set_vf_vlan_anti_spoof() 126 if (vf >= pci_dev->max_vfs) in rte_pmd_ixgbe_set_vf_mac_anti_spoof() 252 if ((vf >= pci_dev->max_vfs) || (vf > 63)) in rte_pmd_ixgbe_set_vf_split_drop_en() 394 if (vf >= 32) { in rte_pmd_ixgbe_set_vf_rx() 396 val = bit1 << (vf - 32); in rte_pmd_ixgbe_set_vf_rx() 399 val = bit1 << vf; in rte_pmd_ixgbe_set_vf_rx() 444 if (vf >= 32) { in rte_pmd_ixgbe_set_vf_tx() 446 val = bit1 << (vf - 32); in rte_pmd_ixgbe_set_vf_tx() [all …]
|
| /f-stack/dpdk/drivers/crypto/octeontx2/ |
| H A D | otx2_cryptodev_mbox.c | 22 struct otx2_dev *otx2_dev = &vf->otx2_dev; in otx2_cpt_hardware_caps_get() 50 struct otx2_dev *otx2_dev = &vf->otx2_dev; in otx2_cpt_available_queues_get() 68 struct otx2_mbox *mbox = vf->otx2_dev.mbox; in otx2_cpt_queues_attach() 82 vf->nb_queues = nb_queues; in otx2_cpt_queues_attach() 91 struct otx2_mbox *mbox = vf->otx2_dev.mbox; in otx2_cpt_queues_detach() 101 vf->nb_queues = 0; in otx2_cpt_queues_detach() 122 for (i = 0; i < vf->nb_queues; i++) in otx2_cpt_msix_offsets_get() 165 msg->hdr.pcifunc = vf->otx2_dev.pf_func; in otx2_cpt_af_reg_read() 170 ret = otx2_cpt_send_mbox_msg(vf); in otx2_cpt_af_reg_read() 201 msg->hdr.pcifunc = vf->otx2_dev.pf_func; in otx2_cpt_af_reg_write() [all …]
|
| H A D | otx2_cryptodev_hw_access.c | 51 struct otx2_cpt_vf *vf = dev->data->dev_private; in otx2_cpt_err_intr_unregister() local 55 for (i = 0; i < vf->nb_queues; i++) { in otx2_cpt_err_intr_unregister() 56 base = OTX2_CPT_LF_BAR2(vf, i); in otx2_cpt_err_intr_unregister() 60 vf->err_intr_registered = 0; in otx2_cpt_err_intr_unregister() 89 struct otx2_cpt_vf *vf = dev->data->dev_private; in otx2_cpt_err_intr_register() local 93 for (i = 0; i < vf->nb_queues; i++) { in otx2_cpt_err_intr_register() 96 vf->lf_msixoff[i]); in otx2_cpt_err_intr_register() 101 for (i = 0; i < vf->nb_queues; i++) { in otx2_cpt_err_intr_register() 102 base = OTX2_CPT_LF_BAR2(vf, i); in otx2_cpt_err_intr_register() 109 vf->err_intr_registered = 1; in otx2_cpt_err_intr_register() [all …]
|
| H A D | otx2_cryptodev.c | 52 struct otx2_cpt_vf *vf; in otx2_cpt_pci_probe() local 69 vf = dev->data->dev_private; in otx2_cpt_pci_probe() 71 otx2_dev = &vf->otx2_dev; in otx2_cpt_pci_probe() 96 vf->max_queues = nb_queues; in otx2_cpt_pci_probe() 99 vf->max_queues); in otx2_cpt_pci_probe() 101 ret = otx2_cpt_hardware_caps_get(dev, vf->hw_caps); in otx2_cpt_pci_probe() 108 otx2_crypto_capabilities_init(vf->hw_caps); in otx2_cpt_pci_probe() 109 otx2_crypto_sec_capabilities_init(vf->hw_caps); in otx2_cpt_pci_probe()
|
| /f-stack/dpdk/drivers/net/e1000/ |
| H A D | igb_pf.c | 249 vfinfo[vf].num_vf_mc_hashes = 0; in igb_vf_reset_event() 263 reg |= (reg | (1 << vf)); in igb_vf_reset_msg() 267 reg |= (reg | (1 << vf)); in igb_vf_reset_msg() 270 igb_vf_reset_event(dev, vf); in igb_vf_reset_msg() 284 igb_vf_reset_msg(dev, vf); in igb_vf_reset() 379 vfinfo[vf].vlan_count++; in igb_vf_set_vlan() 380 else if (vfinfo[vf].vlan_count) in igb_vf_set_vlan() 381 vfinfo[vf].vlan_count--; in igb_vf_set_vlan() 491 e1000_write_mbx(hw, &msg, 1, vf); in igb_rcv_ack_from_vf() 496 uint16_t vf; in igb_pf_mbx_process() local [all …]
|
| /f-stack/dpdk/drivers/net/qede/base/ |
| H A D | ecore_sriov.c | 248 return vf; in ecore_iov_get_vf_info() 768 if (!vf) in ecore_iov_set_vf_to_disable() 920 vf->abs_vf_id, vf->num_sbs); in ecore_iov_enable_vf_access() 1222 vf->relative_vf_id, i, vf->igu_sbs[i], in ecore_iov_init_hw_for_vf() 1304 OSAL_MEMSET(&vf->acquire, 0, sizeof(vf->acquire)); in ecore_iov_release_hw_for_vf() 1584 if (!vf) in ecore_iov_get_public_vf_info() 1800 vf->abs_vf_id, vf->state); in ecore_iov_vf_mbx_acquire() 2252 vf->vport_id, vf->opaque_fid); in ecore_iov_vf_mbx_start_vport() 4754 if (!vf) in ecore_iov_spoofchk_set() 4897 if (!vf) in ecore_iov_configure_tx_rate() [all …]
|
| /f-stack/dpdk/drivers/net/bnxt/ |
| H A D | rte_pmd_bnxt.c | 165 vf, port); in rte_pmd_bnxt_set_vf_mac_addr() 203 if (vf >= bp->pf->max_vfs) in rte_pmd_bnxt_set_vf_rate_limit() 264 if (vf >= dev_info.max_vfs) in rte_pmd_bnxt_set_vf_mac_anti_spoof() 323 if (vf >= dev_info.max_vfs) in rte_pmd_bnxt_set_vf_vlan_anti_spoof() 331 bp->pf->first_vf_id + vf, in rte_pmd_bnxt_set_vf_vlan_anti_spoof() 374 if (vf >= dev_info.max_vfs) in rte_pmd_bnxt_set_vf_vlan_stripq() 380 vf, port); in rte_pmd_bnxt_set_vf_vlan_stripq() 421 if (vf >= bp->pdev->max_vfs) in rte_pmd_bnxt_set_vf_rxmode() 465 if (vf >= bp->pdev->max_vfs) in bnxt_set_vf_table() 836 if (vf >= dev_info.max_vfs) in rte_pmd_bnxt_set_vf_vlan_insert() [all …]
|
| H A D | rte_pmd_bnxt.h | 57 int rte_pmd_bnxt_set_vf_mac_anti_spoof(uint16_t port, uint16_t vf, uint8_t on); 73 int rte_pmd_bnxt_set_vf_mac_addr(uint16_t port, uint16_t vf, 94 rte_pmd_bnxt_set_vf_vlan_stripq(uint16_t port, uint16_t vf, uint8_t on); 113 rte_pmd_bnxt_set_vf_vlan_insert(uint16_t port, uint16_t vf, 186 int rte_pmd_bnxt_set_vf_rate_limit(uint16_t port, uint16_t vf, 240 int rte_pmd_bnxt_set_vf_vlan_anti_spoof(uint16_t port, uint16_t vf, uint8_t on); 259 int rte_pmd_bnxt_set_vf_rxmode(uint16_t port, uint16_t vf, 329 int rte_pmd_bnxt_set_vf_persist_stats(uint16_t port, uint16_t vf, uint8_t on);
|
| /f-stack/dpdk/drivers/net/thunderx/ |
| H A D | nicvf_svf.c | 16 nicvf_svf_push(struct nicvf *vf) in nicvf_svf_push() argument 20 assert(vf != NULL); in nicvf_svf_push() 26 entry->vf = vf; in nicvf_svf_push() 34 struct nicvf *vf; in nicvf_svf_pop() local 39 vf = entry->vf; in nicvf_svf_pop() 43 return vf; in nicvf_svf_pop()
|
| /f-stack/dpdk/drivers/common/octeontx2/ |
| H A D | otx2_dev.c | 203 BIT_ULL(vf % max_bits); in vf_pf_process_msgs() 290 otx2_mbox_reset(mbox, vf); in vf_pf_process_up_msgs() 306 for (vf = 0; vf < max_vf; vf++) { in otx2_vf_pf_mbox_handle_msg() 307 if (dev->intr.bits[vf/max_bits] & BIT_ULL(vf%max_bits)) { in otx2_vf_pf_mbox_handle_msg() 309 vf, dev->pf, dev->vf); in otx2_vf_pf_mbox_handle_msg() 313 dev->intr.bits[vf/max_bits] &= ~(BIT_ULL(vf%max_bits)); in otx2_vf_pf_mbox_handle_msg() 403 uint16_t vf; in pf_vf_mbox_send_up_msg() local 408 for (vf = 0; vf < vf_mbox->ndevs; vf++) { in pf_vf_mbox_send_up_msg() 410 if (!(dev->active_vfs[vf / max_bits] & (BIT_ULL(vf)))) in pf_vf_mbox_send_up_msg() 774 uint16_t max_vf = 64, vf; in otx2_pf_vf_flr_irq() local [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/ |
| H A D | vdev_file.c | 91 vdev_file_t *vf; in vdev_file_open() local 128 vf = vd->vdev_tsd; in vdev_file_open() 149 vf->vf_file = fp; in vdev_file_open() 182 vdev_file_t *vf = vd->vdev_tsd; in vdev_file_close() local 184 if (vd->vdev_reopening || vf == NULL) in vdev_file_close() 187 if (vf->vf_file != NULL) { in vdev_file_close() 188 (void) zfs_file_close(vf->vf_file); in vdev_file_close() 192 kmem_free(vf, sizeof (vdev_file_t)); in vdev_file_close() 201 vdev_file_t *vf = vd->vdev_tsd; in vdev_file_io_strategy() local 232 vdev_file_t *vf = zio->io_vd->vdev_tsd; in vdev_file_io_fsync() local [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | vdev_file.c | 91 vdev_file_t *vf; in vdev_file_open() local 128 vf = vd->vdev_tsd; in vdev_file_open() 149 vf->vf_file = fp; in vdev_file_open() 182 vdev_file_t *vf = vd->vdev_tsd; in vdev_file_close() local 184 if (vd->vdev_reopening || vf == NULL) in vdev_file_close() 187 if (vf->vf_file != NULL) { in vdev_file_close() 188 zfs_file_close(vf->vf_file); in vdev_file_close() 192 kmem_free(vf, sizeof (vdev_file_t)); in vdev_file_close() 213 vdev_file_t *vf; in vdev_file_io_strategy() local 224 vf = vd->vdev_tsd; in vdev_file_io_strategy() [all …]
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_vlan.c | 279 if (vf->vid == 0 && vf->vid != vf->vlan) { in ng_vlan_rcvmsg() 280 vf->vid = vf->vlan; in ng_vlan_rcvmsg() 281 } else if (vf->vid != 0 && vf->vlan != 0 && in ng_vlan_rcvmsg() 282 vf->vid != vf->vlan) { in ng_vlan_rcvmsg() 288 vf->pcp & ~7 || in ng_vlan_rcvmsg() 289 vf->cfi & ~1) { in ng_vlan_rcvmsg() 318 EVL_MAKETAG(vf->vid, vf->pcp, vf->cfi))); in ng_vlan_rcvmsg() 401 vf = &t->filter[0]; in ng_vlan_rcvmsg() 417 vf->vlan = i; in ng_vlan_rcvmsg() 419 vf->vid = i; in ng_vlan_rcvmsg() [all …]
|
| /f-stack/dpdk/drivers/compress/octeontx/ |
| H A D | otx_zip.c | 30 zip_reg_write64(qp->vf->vbar0, ZIP_VQ_ENA, que_ena.u); in zip_q_enable() 44 struct zip_vf *vf = qp->vf; in zipvf_q_init() local 62 zip_reg_write64(vf->vbar0, ZIP_VQ_SBUF_ADDR, que_sbuf_addr.u); in zipvf_q_init() 77 struct zip_vf *vf = qp->vf; in zipvf_q_term() local 86 zip_reg_write64(vf->vbar0, ZIP_VQ_ENA, que_ena.u); in zipvf_q_term() 98 void *reg_base = qp->vf->vbar0; in zipvf_push_command() 174 struct zip_vf *vf = (struct zip_vf *)(compressdev->data->dev_private); in zipvf_destroy() local 177 zip_reg_write64(vf->vbar0, ZIP_VF_PF_MBOXX(0), vf->dom_sdom); in zipvf_destroy()
|