/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | sriov.c | 42 struct mlx5_core_sriov *sriov = &dev->priv.sriov; in sriov_restore_guids() local 47 if (sriov->vfs_ctx[vf].node_guid || in sriov_restore_guids() 48 sriov->vfs_ctx[vf].port_guid || in sriov_restore_guids() 49 sriov->vfs_ctx[vf].policy != MLX5_POLICY_INVALID) { in sriov_restore_guids() 54 in->node_guid = sriov->vfs_ctx[vf].node_guid; in sriov_restore_guids() 55 in->port_guid = sriov->vfs_ctx[vf].port_guid; in sriov_restore_guids() 56 in->policy = sriov->vfs_ctx[vf].policy; in sriov_restore_guids() 74 struct mlx5_core_sriov *sriov = &dev->priv.sriov; in mlx5_device_enable_sriov() local 93 blocking_notifier_call_chain(&sriov->vfs_ctx[vf].notifier, in mlx5_device_enable_sriov() 109 sriov->vfs_ctx[vf].enabled = 1; in mlx5_device_enable_sriov() [all …]
|
D | Makefile | 16 transobj.o vport.o sriov.o fs_cmd.o fs_core.o pci_irq.o \
|
/linux-6.1.9/drivers/infiniband/hw/mlx4/ |
D | alias_GUID.c | 85 guid_indexes = be64_to_cpu((__force __be64) dev->sriov.alias_guid. in mlx4_ib_update_cache_on_guid_change() 101 memcpy(&dev->sriov.demux[port_index].guid_cache[slave_id], in mlx4_ib_update_cache_on_guid_change() 116 return *(__be64 *)&dev->sriov.demux[port - 1].guid_cache[index]; in get_cached_alias_guid() 135 spin_lock_irqsave(&dev->sriov.alias_guid.ag_work_lock, flags); in mlx4_ib_slave_alias_guid_event() 136 if (dev->sriov.alias_guid.ports_guid[port_index].state_flags & in mlx4_ib_slave_alias_guid_event() 140 curr_guid = *(__be64 *)&dev->sriov. in mlx4_ib_slave_alias_guid_event() 153 *(__be64 *)&dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event() 156 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event() 159 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event() 163 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event() [all …]
|
D | cm.c | 156 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; in id_map_find_by_sl_id() 183 struct mlx4_ib_sriov *sriov = &dev->sriov; in id_map_ent_timeout() local 184 struct rb_root *sl_id_map = &sriov->sl_id_map; in id_map_ent_timeout() 186 spin_lock(&sriov->id_map_lock); in id_map_ent_timeout() 187 if (!xa_erase(&sriov->pv_id_table, ent->pv_cm_id)) in id_map_ent_timeout() 195 spin_unlock(&sriov->id_map_lock); in id_map_ent_timeout() 201 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; in sl_id_map_add() 236 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in id_map_alloc() local 248 ret = xa_alloc_cyclic(&sriov->pv_id_table, &ent->pv_cm_id, ent, in id_map_alloc() 249 xa_limit_32b, &sriov->pv_id_next, GFP_KERNEL); in id_map_alloc() [all …]
|
D | mad.c | 284 if (!dev->sriov.is_going_down) in smp_snoop() 299 !dev->sriov.is_going_down) { in smp_snoop() 439 if (dev->sriov.demux[port - 1].guid_cache[i] == guid) in mlx4_ib_find_real_gid() 536 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave() 758 atomic64_read(&dev->sriov.demux[port - 1].subnet_prefix))) { in mlx4_ib_demux_mad() 1082 if (mlx4_is_master(dev->dev) && !dev->sriov.is_going_down) in handle_lid_change_event() 1093 if (!dev->sriov.is_going_down) { in handle_client_rereg_event() 1094 mlx4_ib_mcg_port_cleanup(&dev->sriov.demux[port_num - 1], 0); in handle_client_rereg_event() 1220 (u64)atomic64_read(&dev->sriov.demux[port - 1].subnet_prefix), in handle_port_mgmt_change_event() 1222 atomic64_set(&dev->sriov.demux[port - 1].subnet_prefix, in handle_port_mgmt_change_event() [all …]
|
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()
|
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()
|
D | main.c | 3032 spin_lock_irqsave(&ibdev->sriov.going_down_lock, flags); in do_slave_init() 3033 if (!ibdev->sriov.is_going_down) { in do_slave_init() 3035 queue_work(ibdev->sriov.demux[i].ud_wq, &dm[i]->work); in do_slave_init() 3036 spin_unlock_irqrestore(&ibdev->sriov.going_down_lock, flags); in do_slave_init() 3038 spin_unlock_irqrestore(&ibdev->sriov.going_down_lock, flags); in do_slave_init()
|
D | mlx4_ib.h | 623 struct mlx4_ib_sriov sriov; member
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_common.c | 142 struct qlcnic_sriov *sriov; in qlcnic_sriov_init() local 152 sriov = kzalloc(sizeof(struct qlcnic_sriov), GFP_KERNEL); in qlcnic_sriov_init() 153 if (!sriov) in qlcnic_sriov_init() 156 adapter->ahw->sriov = sriov; in qlcnic_sriov_init() 157 sriov->num_vfs = num_vfs; in qlcnic_sriov_init() 158 bc = &sriov->bc; in qlcnic_sriov_init() 159 sriov->vf_info = kcalloc(num_vfs, sizeof(struct qlcnic_vf_info), in qlcnic_sriov_init() 161 if (!sriov->vf_info) { in qlcnic_sriov_init() 190 vf = &sriov->vf_info[i]; in qlcnic_sriov_init() 209 sriov->vf_info[i].vp = vp; in qlcnic_sriov_init() [all …]
|
D | qlcnic_sriov_pf.c | 70 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_pf_cal_res_limit() local 71 struct qlcnic_resources *res = &sriov->ff_max; in qlcnic_sriov_pf_cal_res_limit() 72 u16 num_macs = sriov->num_allowed_vlans + 1; in qlcnic_sriov_pf_cal_res_limit() 81 num_vfs = sriov->num_vfs; in qlcnic_sriov_pf_cal_res_limit() 103 info->max_tx_ques = res->num_tx_queues - sriov->num_vfs; in qlcnic_sriov_pf_cal_res_limit() 108 vp = sriov->vf_info[id].vp; in qlcnic_sriov_pf_cal_res_limit() 139 struct qlcnic_resources *ff_max = &adapter->ahw->sriov->ff_max; in qlcnic_sriov_pf_set_ff_max_res() 158 struct qlcnic_sriov *sriov = adapter->ahw->sriov; in qlcnic_sriov_set_vf_max_vlan() local 162 total_fn = sriov->num_vfs + 1; in qlcnic_sriov_set_vf_max_vlan() 165 sriov->num_allowed_vlans = temp - 1; in qlcnic_sriov_set_vf_max_vlan() [all …]
|
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-6.1.9/drivers/pci/ |
D | iov.c | 23 return dev->bus->number + ((dev->devfn + dev->sriov->offset + in pci_iov_virtfn_bus() 24 dev->sriov->stride * vf_id) >> 8); in pci_iov_virtfn_bus() 31 return (dev->devfn + dev->sriov->offset + in pci_iov_virtfn_devfn() 32 dev->sriov->stride * vf_id) & 0xff; in pci_iov_virtfn_devfn() 45 ((pf->bus->number << 8) + pf->devfn + pf->sriov->offset)) / in pci_iov_vf_id() 46 pf->sriov->stride; in pci_iov_vf_id() 87 struct pci_sriov *iov = dev->sriov; in pci_iov_set_numvfs() 103 struct pci_sriov *iov = dev->sriov; in compute_max_vf_buses() 154 return dev->sriov->barsz[resno - PCI_IOV_RESOURCES]; in pci_iov_resource_size() 171 &physfn->sriov->class); in pci_read_vf_config_common() [all …]
|
D | probe.c | 1733 return dev->physfn->sriov->class; in pci_class() 1743 *vendor = dev->physfn->sriov->subsystem_vendor; in pci_subsystem_ids() 1744 *device = dev->physfn->sriov->subsystem_device; in pci_subsystem_ids() 1758 return dev->physfn->sriov->hdr_type; in pci_hdr_type()
|
D | pci-driver.c | 434 return (!pdev->is_virtfn || pdev->physfn->sriov->drivers_autoprobe || in pci_device_can_probe()
|
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | ib_virt.c | 98 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in mlx5_ib_set_vf_link_state() 157 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in set_vf_node_guid() 181 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in set_vf_port_guid() 216 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in mlx5_ib_get_vf_guid()
|
/linux-6.1.9/tools/testing/selftests/powerpc/eeh/ |
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-6.1.9/drivers/net/ethernet/sfc/ |
D | Makefile | 11 sfc-$(CONFIG_SFC_SRIOV) += sriov.o ef10_sriov.o ef100_sriov.o ef100_rep.o \
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/ |
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()
|
D | bnx2x_sriov.c | 1047 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_bus() 1056 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_devfn() 1065 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_set_bars() 1233 iov = &(bp->vfdb->sriov); in bnx2x_iov_init_one() 1314 for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) { in bnx2x_iov_remove_one() 1317 bp->vfdb->sriov.first_vf_in_pf + in bnx2x_iov_remove_one() 1320 bp->vfdb->sriov.first_vf_in_pf + vf_idx); in bnx2x_iov_remove_one() 1364 tot_size = (BP_VFDB(bp)->sriov.first_vf_in_pf + BNX2X_NR_VIRTFN(bp)) * in bnx2x_iov_alloc_mem() 1550 DP(BNX2X_MSG_IOV, "num of vfs: %d\n", (bp)->vfdb->sriov.nr_virtfn); in bnx2x_iov_nic_init() 1559 int base_vf_cid = (BP_VFDB(bp)->sriov.first_vf_in_pf + vfid) * in bnx2x_iov_nic_init() [all …]
|
/linux-6.1.9/arch/powerpc/platforms/powernv/ |
D | Makefile | 23 obj-$(CONFIG_PCI_IOV) += pci-sriov.o
|
/linux-6.1.9/drivers/net/ethernet/sfc/siena/ |
D | siena_sriov.c | 1245 unsigned index, devfn, sriov, buftbl_base; in efx_siena_sriov_vfs_init() local 1250 sriov = pci_find_ext_capability(pci_dev, PCI_EXT_CAP_ID_SRIOV); in efx_siena_sriov_vfs_init() 1251 if (!sriov) in efx_siena_sriov_vfs_init() 1254 pci_read_config_word(pci_dev, sriov + PCI_SRIOV_VF_OFFSET, &offset); in efx_siena_sriov_vfs_init() 1255 pci_read_config_word(pci_dev, sriov + PCI_SRIOV_VF_STRIDE, &stride); in efx_siena_sriov_vfs_init()
|
/linux-6.1.9/include/linux/mlx5/ |
D | driver.h | 619 struct mlx5_core_sriov sriov; member 1223 return dev->priv.sriov.max_vfs; in mlx5_core_max_vfs()
|
/linux-6.1.9/drivers/scsi/bfa/ |
D | bfa_defs.h | 769 u8 sriov; member
|
/linux-6.1.9/drivers/net/hyperv/ |
D | hyperv_net.h | 569 u64 sriov:1; member
|