/drivers/infiniband/hw/mlx4/ |
D | alias_GUID.c | 86 guid_indexes = be64_to_cpu((__force __be64) dev->sriov.alias_guid. in mlx4_ib_update_cache_on_guid_change() 102 memcpy(&dev->sriov.demux[port_index].guid_cache[slave_id], in mlx4_ib_update_cache_on_guid_change() 117 return *(__be64 *)&dev->sriov.demux[port - 1].guid_cache[index]; in get_cached_alias_guid() 136 spin_lock_irqsave(&dev->sriov.alias_guid.ag_work_lock, flags); in mlx4_ib_slave_alias_guid_event() 137 if (dev->sriov.alias_guid.ports_guid[port_index].state_flags & in mlx4_ib_slave_alias_guid_event() 141 curr_guid = *(__be64 *)&dev->sriov. in mlx4_ib_slave_alias_guid_event() 154 *(__be64 *)&dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event() 157 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event() 160 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event() 164 dev->sriov.alias_guid.ports_guid[port_index]. in mlx4_ib_slave_alias_guid_event() [all …]
|
D | cm.c | 155 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; in id_map_find_by_sl_id() 182 struct mlx4_ib_sriov *sriov = &dev->sriov; in id_map_ent_timeout() local 183 struct rb_root *sl_id_map = &sriov->sl_id_map; in id_map_ent_timeout() 185 spin_lock(&sriov->id_map_lock); in id_map_ent_timeout() 186 if (!xa_erase(&sriov->pv_id_table, ent->pv_cm_id)) in id_map_ent_timeout() 194 spin_unlock(&sriov->id_map_lock); in id_map_ent_timeout() 200 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; in sl_id_map_add() 235 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in id_map_alloc() local 247 ret = xa_alloc_cyclic(&sriov->pv_id_table, &ent->pv_cm_id, ent, in id_map_alloc() 248 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() 438 if (dev->sriov.demux[port - 1].guid_cache[i] == guid) in mlx4_ib_find_real_gid() 535 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave() 757 atomic64_read(&dev->sriov.demux[port - 1].subnet_prefix))) { in mlx4_ib_demux_mad() 1080 if (mlx4_is_master(dev->dev) && !dev->sriov.is_going_down) in handle_lid_change_event() 1091 if (!dev->sriov.is_going_down) { in handle_client_rereg_event() 1092 mlx4_ib_mcg_port_cleanup(&dev->sriov.demux[port_num - 1], 0); in handle_client_rereg_event() 1218 (u64)atomic64_read(&dev->sriov.demux[port - 1].subnet_prefix), in handle_port_mgmt_change_event() 1220 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 | main.c | 3056 spin_lock_irqsave(&ibdev->sriov.going_down_lock, flags); in do_slave_init() 3057 if (!ibdev->sriov.is_going_down) { in do_slave_init() 3059 queue_work(ibdev->sriov.demux[i].ud_wq, &dm[i]->work); in do_slave_init() 3060 spin_unlock_irqrestore(&ibdev->sriov.going_down_lock, flags); in do_slave_init() 3062 spin_unlock_irqrestore(&ibdev->sriov.going_down_lock, flags); in do_slave_init()
|
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 | mlx4_ib.h | 623 struct mlx4_ib_sriov sriov; member
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | sriov.c | 41 struct mlx5_core_sriov *sriov = &dev->priv.sriov; in sriov_restore_guids() local 46 if (sriov->vfs_ctx[vf].node_guid || in sriov_restore_guids() 47 sriov->vfs_ctx[vf].port_guid || in sriov_restore_guids() 48 sriov->vfs_ctx[vf].policy != MLX5_POLICY_INVALID) { in sriov_restore_guids() 53 in->node_guid = sriov->vfs_ctx[vf].node_guid; in sriov_restore_guids() 54 in->port_guid = sriov->vfs_ctx[vf].port_guid; in sriov_restore_guids() 55 in->policy = sriov->vfs_ctx[vf].policy; in sriov_restore_guids() 73 struct mlx5_core_sriov *sriov = &dev->priv.sriov; in mlx5_device_enable_sriov() local 94 sriov->vfs_ctx[vf].enabled = 1; in mlx5_device_enable_sriov() 113 struct mlx5_core_sriov *sriov = &dev->priv.sriov; in mlx5_device_disable_sriov() local [all …]
|
D | Makefile | 16 transobj.o vport.o sriov.o fs_cmd.o fs_core.o pci_irq.o \
|
D | eswitch_offloads.c | 1744 esw->dev->priv.sriov.num_vfs); in esw_offloads_start() 2801 vport_num <= esw->dev->priv.sriov.max_vfs; in mlx5_eswitch_is_vf_vport()
|
/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
|
D | qlcnic.h | 529 struct qlcnic_sriov *sriov; member
|
/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() 43 struct pci_sriov *iov = dev->sriov; in pci_iov_set_numvfs() 59 struct pci_sriov *iov = dev->sriov; in compute_max_vf_buses() 110 return dev->sriov->barsz[resno - PCI_IOV_RESOURCES]; in pci_iov_resource_size() 127 &physfn->sriov->class); in pci_read_vf_config_common() 129 &physfn->sriov->hdr_type); in pci_read_vf_config_common() 131 &physfn->sriov->subsystem_vendor); in pci_read_vf_config_common() [all …]
|
D | probe.c | 1686 return dev->physfn->sriov->class; in pci_class() 1696 *vendor = dev->physfn->sriov->subsystem_vendor; in pci_subsystem_ids() 1697 *device = dev->physfn->sriov->subsystem_device; in pci_subsystem_ids() 1711 return dev->physfn->sriov->hdr_type; in pci_hdr_type()
|
D | pci-driver.c | 407 return (!pdev->is_virtfn || pdev->physfn->sriov->drivers_autoprobe || in pci_device_can_probe()
|
/drivers/infiniband/hw/mlx5/ |
D | ib_virt.c | 99 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() 180 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in set_vf_port_guid() 215 struct mlx5_vf_context *vfs_ctx = mdev->priv.sriov.vfs_ctx; in mlx5_ib_get_vf_guid()
|
/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() 1234 iov = &(bp->vfdb->sriov); in bnx2x_iov_init_one() 1315 for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) { in bnx2x_iov_remove_one() 1318 bp->vfdb->sriov.first_vf_in_pf + in bnx2x_iov_remove_one() 1321 bp->vfdb->sriov.first_vf_in_pf + vf_idx); in bnx2x_iov_remove_one() 1365 tot_size = (BP_VFDB(bp)->sriov.first_vf_in_pf + BNX2X_NR_VIRTFN(bp)) * in bnx2x_iov_alloc_mem() 1551 DP(BNX2X_MSG_IOV, "num of vfs: %d\n", (bp)->vfdb->sriov.nr_virtfn); in bnx2x_iov_nic_init() 1560 int base_vf_cid = (BP_VFDB(bp)->sriov.first_vf_in_pf + vfid) * in bnx2x_iov_nic_init() [all …]
|
/drivers/net/ethernet/sfc/ |
D | Makefile | 11 sfc-$(CONFIG_SFC_SRIOV) += sriov.o siena_sriov.o ef10_sriov.o
|
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()
|
/drivers/scsi/bfa/ |
D | bfa_defs.h | 769 u8 sriov; member
|
/drivers/net/hyperv/ |
D | hyperv_net.h | 529 u64 sriov:1; member
|
D | netvsc.c | 554 init_packet->msg.v2_msg.send_ndis_config.capability.sriov = 1; in negotiate_nvsp_ver()
|