Home
last modified time | relevance | path

Searched refs:sriov (Results 1 – 24 of 24) sorted by relevance

/drivers/infiniband/hw/mlx4/
Dalias_GUID.c81 guid_indexes = be64_to_cpu((__force __be64) dev->sriov.alias_guid. in mlx4_ib_update_cache_on_guid_change()
97 memcpy(&dev->sriov.demux[port_index].guid_cache[slave_id], in mlx4_ib_update_cache_on_guid_change()
112 return *(__be64 *)&dev->sriov.demux[port - 1].guid_cache[index]; in get_cached_alias_guid()
145 guid_indexes = be64_to_cpu((__force __be64) dev->sriov.alias_guid. in mlx4_ib_notify_slaves_on_guid_change()
215 rec = &dev->sriov.alias_guid.ports_guid[port_index]. in aliasguid_query_handler()
235 rec = &dev->sriov.alias_guid.ports_guid[port_index]. in aliasguid_query_handler()
298 spin_lock_irqsave(&dev->sriov.going_down_lock, flags); in aliasguid_query_handler()
299 spin_lock_irqsave(&dev->sriov.alias_guid.ag_work_lock, flags1); in aliasguid_query_handler()
300 if (!dev->sriov.is_going_down) in aliasguid_query_handler()
301 queue_delayed_work(dev->sriov.alias_guid.ports_guid[port_index].wq, in aliasguid_query_handler()
[all …]
Dcm.c146 struct rb_root *sl_id_map = &to_mdev(ibdev)->sriov.sl_id_map; in id_map_find_by_sl_id()
173 struct mlx4_ib_sriov *sriov = &dev->sriov; in id_map_ent_timeout() local
174 struct rb_root *sl_id_map = &sriov->sl_id_map; in id_map_ent_timeout()
177 spin_lock(&sriov->id_map_lock); in id_map_ent_timeout()
178 db_ent = (struct id_map_entry *)idr_find(&sriov->pv_id_table, pv_id); in id_map_ent_timeout()
184 idr_remove(&sriov->pv_id_table, pv_id); in id_map_ent_timeout()
188 spin_unlock(&sriov->id_map_lock); in id_map_ent_timeout()
194 struct mlx4_ib_sriov *sriov = &to_mdev(ibdev)->sriov; in id_map_find_del() local
195 struct rb_root *sl_id_map = &sriov->sl_id_map; in id_map_find_del()
198 spin_lock(&sriov->id_map_lock); in id_map_find_del()
[all …]
Dmad.c283 if (!dev->sriov.is_going_down) in smp_snoop()
296 !dev->sriov.is_going_down) { in smp_snoop()
413 if (dev->sriov.demux[port - 1].guid_cache[i] == guid) in mlx4_ib_find_real_gid()
483 tun_ctx = dev->sriov.demux[port-1].tun[slave]; in mlx4_ib_send_to_slave()
951 if (mlx4_is_master(dev->dev) && !dev->sriov.is_going_down) in handle_lid_change_event()
962 if (!dev->sriov.is_going_down) { in handle_client_rereg_event()
963 mlx4_ib_mcg_port_cleanup(&dev->sriov.demux[port_num - 1], 0); in handle_client_rereg_event()
1072 if (mlx4_is_master(dev->dev) && !dev->sriov.is_going_down) in handle_port_mgmt_change_event()
1080 else if (!dev->sriov.is_going_down) { in handle_port_mgmt_change_event()
1111 spin_lock_irqsave(&dev->sriov.going_down_lock, flags); in mlx4_ib_tunnel_comp_handler()
[all …]
Dsysfs.c60 be64_to_cpu(*(__be64 *)&mdev->sriov.alias_guid. in show_admin_alias_guid()
91 *(__be64 *)&mdev->sriov.alias_guid.ports_guid[port->num - 1]. in store_admin_alias_guid()
97 mdev->sriov.alias_guid.ports_guid[port->num - 1].all_rec_per_port[record_num].status in store_admin_alias_guid()
100 mdev->sriov.alias_guid.ports_guid[port->num - 1].all_rec_per_port[record_num].method in store_admin_alias_guid()
105 mdev->sriov.alias_guid.ports_guid[port->num - 1].all_rec_per_port[record_num].method in store_admin_alias_guid()
107 mdev->sriov.alias_guid.ports_guid[port->num - 1].all_rec_per_port[record_num].ownership in store_admin_alias_guid()
112 mdev->sriov.alias_guid.ports_guid[port->num - 1].all_rec_per_port[record_num].ownership in store_admin_alias_guid()
117 mdev->sriov.alias_guid.ports_guid[port->num - 1].all_rec_per_port[record_num].ownership in store_admin_alias_guid()
123 mdev->sriov.alias_guid.ports_guid[port->num - 1].all_rec_per_port[record_num].guid_indexes in store_admin_alias_guid()
Dmcg.c886 struct mlx4_ib_demux_ctx *ctx = &dev->sriov.demux[port - 1]; in mlx4_ib_mcg_demux_handler()
935 struct mlx4_ib_demux_ctx *ctx = &dev->sriov.demux[port - 1]; in mlx4_ib_mcg_multiplex_handler()
Dmain.c2529 spin_lock_irqsave(&ibdev->sriov.going_down_lock, flags); in do_slave_init()
2530 if (!ibdev->sriov.is_going_down) in do_slave_init()
2531 queue_work(ibdev->sriov.demux[i].ud_wq, &dm[i]->work); in do_slave_init()
2532 spin_unlock_irqrestore(&ibdev->sriov.going_down_lock, flags); in do_slave_init()
Dmlx4_ib.h510 struct mlx4_ib_sriov sriov; member
Dqp.c2178 to_mdev(ib_dev)->sriov.demux[sqp->qp.port - 1]. in build_mlx_header()
2181 to_mdev(ib_dev)->sriov.demux[sqp->qp.port - 1]. in build_mlx_header()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c137 struct qlcnic_sriov *sriov; in qlcnic_sriov_init() local
147 sriov = kzalloc(sizeof(struct qlcnic_sriov), GFP_KERNEL); in qlcnic_sriov_init()
148 if (!sriov) in qlcnic_sriov_init()
151 adapter->ahw->sriov = sriov; in qlcnic_sriov_init()
152 sriov->num_vfs = num_vfs; in qlcnic_sriov_init()
153 bc = &sriov->bc; in qlcnic_sriov_init()
154 sriov->vf_info = kzalloc(sizeof(struct qlcnic_vf_info) * in qlcnic_sriov_init()
156 if (!sriov->vf_info) { in qlcnic_sriov_init()
182 vf = &sriov->vf_info[i]; in qlcnic_sriov_init()
201 sriov->vf_info[i].vp = vp; in qlcnic_sriov_init()
[all …]
Dqlcnic_sriov_pf.c70 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 …]
Dqlcnic_sriov.h265 static inline void qlcnic_sriov_pf_handle_flr(struct qlcnic_sriov *sriov, in qlcnic_sriov_pf_handle_flr() argument
Dqlcnic.h532 struct qlcnic_sriov *sriov; member
Dqlcnic_main.c1951 qlcnic_sriov_cleanup_async_list(&adapter->ahw->sriov->bc); in __qlcnic_down()
/drivers/pci/
Diov.c24 return dev->bus->number + ((dev->devfn + dev->sriov->offset + in virtfn_bus()
25 dev->sriov->stride * id) >> 8); in virtfn_bus()
30 return (dev->devfn + dev->sriov->offset + in virtfn_devfn()
31 dev->sriov->stride * id) & 0xff; in virtfn_devfn()
68 struct pci_sriov *iov = dev->sriov; in virtfn_add()
71 mutex_lock(&iov->dev->sriov->lock); in virtfn_add()
107 mutex_unlock(&iov->dev->sriov->lock); in virtfn_add()
127 mutex_lock(&iov->dev->sriov->lock); in virtfn_add()
132 mutex_unlock(&iov->dev->sriov->lock); in virtfn_add()
141 struct pci_sriov *iov = dev->sriov; in virtfn_remove()
[all …]
Dats.c70 mutex_lock(&pdev->sriov->lock); in pci_enable_ats()
78 mutex_unlock(&pdev->sriov->lock); in pci_enable_ats()
119 mutex_lock(&pdev->sriov->lock); in pci_disable_ats()
123 mutex_unlock(&pdev->sriov->lock); in pci_disable_ats()
Dpci-sysfs.c445 return sprintf(buf, "%u\n", pdev->sriov->num_VFs); in sriov_numvfs_show()
470 if (num_vfs == pdev->sriov->num_VFs) in sriov_numvfs_store()
488 if (pdev->sriov->num_VFs) { in sriov_numvfs_store()
490 pdev->sriov->num_VFs, num_vfs); in sriov_numvfs_store()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.h210 #define BNX2X_NR_VIRTFN(bp) ((bp)->vfdb->sriov.nr_virtfn)
314 struct bnx2x_sriov sriov; member
522 return bp->vfdb->sriov.nr_virtfn * BNX2X_CIDS_PER_VF; in bnx2x_vf_headroom()
Dbnx2x_sriov.c1093 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_bus()
1102 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_devfn()
1111 struct bnx2x_sriov *iov = &bp->vfdb->sriov; in bnx2x_vf_set_bars()
1285 iov = &(bp->vfdb->sriov); in bnx2x_iov_init_one()
1358 for (vf_idx = 0; vf_idx < bp->vfdb->sriov.total; vf_idx++) { in bnx2x_iov_remove_one()
1361 bp->vfdb->sriov.first_vf_in_pf + in bnx2x_iov_remove_one()
1364 bp->vfdb->sriov.first_vf_in_pf + vf_idx); in bnx2x_iov_remove_one()
1408 tot_size = (BP_VFDB(bp)->sriov.first_vf_in_pf + BNX2X_NR_VIRTFN(bp)) * in bnx2x_iov_alloc_mem()
1594 DP(BNX2X_MSG_IOV, "num of vfs: %d\n", (bp)->vfdb->sriov.nr_virtfn); in bnx2x_iov_nic_init()
1603 int base_vf_cid = (BP_VFDB(bp)->sriov.first_vf_in_pf + vfid) * in bnx2x_iov_nic_init()
[all …]
Dbnx2x_vfpf.c1989 if (vfpf_event->vf_id - BP_VFDB(bp)->sriov.first_vf_in_pf > in bnx2x_vf_mbx_schedule()
Dbnx2x_main.c3404 ether_stat->vf_cnt = IS_SRIOV(bp) ? bp->vfdb->sriov.nr_virtfn : 0; in bnx2x_drv_info_ether_stat()
/drivers/net/ethernet/sfc/
Dsiena_sriov.c1218 unsigned index, devfn, sriov, buftbl_base; in efx_sriov_vfs_init() local
1223 sriov = pci_find_ext_capability(pci_dev, PCI_EXT_CAP_ID_SRIOV); in efx_sriov_vfs_init()
1224 if (!sriov) in efx_sriov_vfs_init()
1227 pci_read_config_word(pci_dev, sriov + PCI_SRIOV_VF_OFFSET, &offset); in efx_sriov_vfs_init()
1228 pci_read_config_word(pci_dev, sriov + PCI_SRIOV_VF_STRIDE, &stride); in efx_sriov_vfs_init()
/drivers/net/hyperv/
Dhyperv_net.h488 u64 sriov:1; member
/drivers/scsi/bfa/
Dbfa_defs.h776 u8 sriov; member
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c6576 goto sriov; in init_one()
6781 sriov: in init_one()