/linux/drivers/infiniband/hw/mlx4/ |
A D | alias_GUID.c | 141 curr_guid = *(__be64 *)&dev->sriov. in mlx4_ib_slave_alias_guid_event() 248 spin_unlock_irqrestore(&dev->sriov. in mlx4_ib_notify_slaves_on_guid_change() 436 if (!dev->sriov.is_going_down) { in aliasguid_query_handler() 570 if (!dev->sriov.is_going_down) { in set_guid_rec() 783 if (!dev->sriov.is_going_down) { in mlx4_ib_init_alias_guid_work() 800 struct mlx4_ib_sriov *sriov = &dev->sriov; in mlx4_ib_destroy_alias_guid_service() local 828 kfree(dev->sriov.alias_guid.sa_client); in mlx4_ib_destroy_alias_guid_service() 840 dev->sriov.alias_guid.sa_client = in mlx4_ib_init_alias_guid_service() 842 if (!dev->sriov.alias_guid.sa_client) in mlx4_ib_init_alias_guid_service() 876 dev->sriov.alias_guid.ports_guid[i].parent = &dev->sriov.alias_guid; in mlx4_ib_init_alias_guid_service() [all …]
|
A D | cm.c | 182 struct mlx4_ib_sriov *sriov = &dev->sriov; in id_map_ent_timeout() local 185 spin_lock(&sriov->id_map_lock); in id_map_ent_timeout() 235 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in id_map_alloc() local 267 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in id_map_get() local 269 spin_lock(&sriov->id_map_lock); in id_map_get() 283 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in schedule_delayed() local 365 xa_lock(&sriov->xa_rej_tmout); in alloc_rej_tmout() 410 xa_lock(&sriov->xa_rej_tmout); in lookup_rej_tmout_slave() 428 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in mlx4_ib_demux_cm_handler() local 500 xa_lock(&sriov->xa_rej_tmout); in rej_tmout_xa_cleanup() [all …]
|
A D | mad.c | 284 if (!dev->sriov.is_going_down) in smp_snoop() 299 !dev->sriov.is_going_down) { in smp_snoop() 1093 if (!dev->sriov.is_going_down) { in handle_client_rereg_event() 1247 else if (!dev->sriov.is_going_down) { in handle_port_mgmt_change_event() 1374 sqp_ctx = dev->sriov.sqps[port-1]; in mlx4_ib_send_to_wire() 2142 dev->sriov.sqps[port - 1]); in mlx4_ib_tunnels_update() 2307 dev->sriov.is_going_down = 0; in mlx4_ib_init_sriov() 2347 &dev->sriov.sqps[i]); in mlx4_ib_init_sriov() 2384 dev->sriov.is_going_down = 1; in mlx4_ib_close_sriov() 2390 kfree(dev->sriov.sqps[i]); in mlx4_ib_close_sriov() [all …]
|
A D | sysfs.c | 87 spin_lock_irqsave(&mdev->sriov.alias_guid.ag_work_lock, flags); in store_admin_alias_guid() 89 *(__be64 *)&mdev->sriov.alias_guid.ports_guid[port->num - 1]. in store_admin_alias_guid() 95 mdev->sriov.alias_guid.ports_guid[port->num - 1].all_rec_per_port[record_num].status in store_admin_alias_guid() 102 mdev->sriov.alias_guid.ports_guid[port->num - 1].all_rec_per_port[record_num].guid_indexes in store_admin_alias_guid() 105 spin_unlock_irqrestore(&mdev->sriov.alias_guid.ag_work_lock, flags); in store_admin_alias_guid()
|
A D | main.c | 3042 spin_lock_irqsave(&ibdev->sriov.going_down_lock, flags); in do_slave_init() 3043 if (!ibdev->sriov.is_going_down) { in do_slave_init() 3045 queue_work(ibdev->sriov.demux[i].ud_wq, &dm[i]->work); in do_slave_init() 3046 spin_unlock_irqrestore(&ibdev->sriov.going_down_lock, flags); in do_slave_init() 3048 spin_unlock_irqrestore(&ibdev->sriov.going_down_lock, flags); in do_slave_init()
|
A D | mcg.c | 887 struct mlx4_ib_demux_ctx *ctx = &dev->sriov.demux[port - 1]; in mlx4_ib_mcg_demux_handler() 936 struct mlx4_ib_demux_ctx *ctx = &dev->sriov.demux[port - 1]; in mlx4_ib_mcg_multiplex_handler()
|
A D | mlx4_ib.h | 623 struct mlx4_ib_sriov sriov; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | sriov.c | 42 struct mlx5_core_sriov *sriov = &dev->priv.sriov; in sriov_restore_guids() local 74 struct mlx5_core_sriov *sriov = &dev->priv.sriov; in mlx5_device_enable_sriov() local 123 struct mlx5_core_sriov *sriov = &dev->priv.sriov; in mlx5_device_disable_sriov() local 176 struct mlx5_core_sriov *sriov = &dev->priv.sriov; in mlx5_core_sriov_configure() local 187 sriov->num_vfs = num_vfs; in mlx5_core_sriov_configure() 207 sriov = &dev->priv.sriov; in mlx5_core_sriov_set_msix_vec_count() 269 struct mlx5_core_sriov *sriov = &dev->priv.sriov; in mlx5_sriov_init() local 279 sriov->vfs_ctx = kcalloc(total_vfs, sizeof(*sriov->vfs_ctx), GFP_KERNEL); in mlx5_sriov_init() 280 if (!sriov->vfs_ctx) in mlx5_sriov_init() 288 struct mlx5_core_sriov *sriov = &dev->priv.sriov; in mlx5_sriov_cleanup() local [all …]
|
A D | Makefile | 16 transobj.o vport.o sriov.o fs_cmd.o fs_core.o pci_irq.o \
|
/linux/drivers/net/ethernet/qlogic/qlcnic/ |
A D | qlcnic_sriov_common.c | 153 if (!sriov) in qlcnic_sriov_init() 156 adapter->ahw->sriov = sriov; in qlcnic_sriov_init() 261 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in __qlcnic_sriov_cleanup() local 434 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_set_guest_vlan_mode() local 467 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_get_vf_acl() local 1303 sriov = adapter->ahw->sriov; in qlcnic_sriov_handle_bc_event() 1500 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_vf_add_mc_list() local 1986 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_validate_vlan_cfg() local 2027 sriov = adapter->ahw->sriov; in qlcnic_sriov_vlan_operation() 2052 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_cfg_vf_guest_vlan() local [all …]
|
A D | qlcnic_sriov_pf.c | 70 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_cal_res_limit() local 158 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_set_vf_max_vlan() local 235 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_reset_vport_handle() local 253 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_set_vport_handle() local 271 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_get_vport_handle() local 408 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_del_flr_queue() local 752 sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_channel_cfg_cmd() 863 sriov = adapter->ahw->sriov; in qlcnic_83xx_cfg_default_mac_vlan() 1345 sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_get_acl_cmd() 1372 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_del_guest_vlan() local [all …]
|
A D | qlcnic_sriov.h | 266 static inline void qlcnic_sriov_pf_handle_flr(struct qlcnic_sriov *sriov, in qlcnic_sriov_pf_handle_flr() argument
|
/linux/drivers/pci/ |
A D | iov.c | 32 dev->sriov->stride * vf_id) & 0xff; in pci_iov_virtfn_devfn() 44 struct pci_sriov *iov = dev->sriov; in pci_iov_set_numvfs() 128 &physfn->sriov->class); in pci_read_vf_config_common() 413 if (pdev->sriov->num_VFs) { in sriov_numvfs_store() 788 dev->sriov = iov; in sriov_init() 797 dev->sriov = NULL; in sriov_init() 811 BUG_ON(dev->sriov->num_VFs); in sriov_release() 813 if (dev != dev->sriov->dev) in sriov_release() 816 kfree(dev->sriov); in sriov_release() 817 dev->sriov = NULL; in sriov_release() [all …]
|
A D | probe.c | 1740 return dev->physfn->sriov->class; in pci_class() 1750 *vendor = dev->physfn->sriov->subsystem_vendor; in pci_subsystem_ids() 1751 *device = dev->physfn->sriov->subsystem_device; in pci_subsystem_ids() 1765 return dev->physfn->sriov->hdr_type; in pci_hdr_type()
|
A D | pci-driver.c | 422 return (!pdev->is_virtfn || pdev->physfn->sriov->drivers_autoprobe || in pci_device_can_probe()
|
/linux/drivers/infiniband/hw/mlx5/ |
A D | ib_virt.c | 99 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in mlx5_ib_set_vf_link_state() 158 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in set_vf_node_guid() 182 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in set_vf_port_guid() 217 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in mlx5_ib_get_vf_guid()
|
/linux/tools/testing/selftests/powerpc/eeh/ |
A D | eeh-functions.sh | 157 if [ ! -f /proc/device-tree/rtas/ibm,open-sriov-allow-unfreeze ] || 158 [ ! -f /proc/device-tree/rtas/ibm,open-sriov-map-pe-number ] ; then
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
A D | bnx2x_sriov.h | 219 #define BNX2X_NR_VIRTFN(bp) ((bp)->vfdb->sriov.nr_virtfn) 241 #define GET_NUM_VFS_PER_PF(bp) ((bp)->vfdb ? (bp)->vfdb->sriov.total \ 333 struct bnx2x_sriov sriov; member 541 return bp->vfdb->sriov.nr_virtfn * BNX2X_CIDS_PER_VF; in bnx2x_vf_headroom()
|
A D | bnx2x_sriov.c | 1034 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_bus() 1043 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_devfn() 1052 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_set_bars() 1220 iov = &(bp->vfdb->sriov); in bnx2x_iov_init_one() 1301 for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) { in bnx2x_iov_remove_one() 1304 bp->vfdb->sriov.first_vf_in_pf + in bnx2x_iov_remove_one() 1307 bp->vfdb->sriov.first_vf_in_pf + vf_idx); in bnx2x_iov_remove_one() 1537 DP(BNX2X_MSG_IOV, "num of vfs: %d\n", (bp)->vfdb->sriov.nr_virtfn); in bnx2x_iov_nic_init() 1546 int base_vf_cid = (BP_VFDB(bp)->sriov.first_vf_in_pf + vfid) * in bnx2x_iov_nic_init() 1997 int base_vf_cid = (BP_VFDB(bp)->sriov.first_vf_in_pf + vf->index) * in bnx2x_vf_acquire() [all …]
|
/linux/drivers/net/ethernet/sfc/ |
A D | Makefile | 11 sfc-$(CONFIG_SFC_SRIOV) += sriov.o siena_sriov.o ef10_sriov.o
|
A D | siena_sriov.c | 1244 unsigned index, devfn, sriov, buftbl_base; in efx_siena_sriov_vfs_init() local 1249 sriov = pci_find_ext_capability(pci_dev, PCI_EXT_CAP_ID_SRIOV); in efx_siena_sriov_vfs_init() 1250 if (!sriov) in efx_siena_sriov_vfs_init() 1253 pci_read_config_word(pci_dev, sriov + PCI_SRIOV_VF_OFFSET, &offset); in efx_siena_sriov_vfs_init() 1254 pci_read_config_word(pci_dev, sriov + PCI_SRIOV_VF_STRIDE, &stride); in efx_siena_sriov_vfs_init()
|
/linux/arch/powerpc/platforms/powernv/ |
A D | Makefile | 14 obj-$(CONFIG_PCI_IOV) += pci-sriov.o
|
/linux/include/linux/mlx5/ |
A D | driver.h | 587 struct mlx5_core_sriov sriov; member 1184 return dev->priv.sriov.max_vfs; in mlx5_core_max_vfs()
|
/linux/drivers/scsi/bfa/ |
A D | bfa_defs.h | 769 u8 sriov; member
|
/linux/drivers/net/hyperv/ |
A D | hyperv_net.h | 564 u64 sriov:1; member
|