/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_sriov.c | 26 struct ice_vfs *vfs = &pf->vfs; in ice_free_vf_entries() local 35 lockdep_assert_held(&vfs->table_lock); in ice_free_vf_entries() 37 hash_for_each_safe(vfs->table, bkt, tmp, vf, entry) { in ice_free_vf_entries() 153 struct ice_vfs *vfs = &pf->vfs; in ice_free_vfs() local 173 mutex_lock(&vfs->table_lock); in ice_free_vfs() 205 vfs->num_qps_per = 0; in ice_free_vfs() 208 mutex_unlock(&vfs->table_lock); in ice_free_vfs() 437 lockdep_assert_held(&pf->vfs.table_lock); in ice_set_per_vf_res() 491 pf->vfs.num_qps_per = min_t(int, num_txq, num_rxq); in ice_set_per_vf_res() 492 pf->vfs.num_msix_per = num_msix_per_vf; in ice_set_per_vf_res() [all …]
|
H A D | ice_vf_lib.c | 30 hash_for_each_possible_rcu(pf->vfs.table, vf, entry, vf_id) { in ice_get_vf_by_id() 94 return !hash_empty(pf->vfs.table); in ice_has_vfs() 741 mutex_lock(&pf->vfs.table_lock); in ice_reset_all_vfs() 749 mutex_unlock(&pf->vfs.table_lock); in ice_reset_all_vfs() 800 mutex_unlock(&pf->vfs.table_lock); in ice_reset_all_vfs() 994 struct ice_vfs *vfs; in ice_initialize_vf_entry() local 996 vfs = &pf->vfs; in ice_initialize_vf_entry() 1004 vf->num_msix = vfs->num_msix_per; in ice_initialize_vf_entry() 1005 vf->num_vf_qs = vfs->num_qps_per; in ice_initialize_vf_entry()
|
H A D | ice_vf_lib.h | 198 hash_for_each((pf)->vfs.table, (bkt), (vf), entry) 215 hash_for_each_rcu((pf)->vfs.table, (bkt), (vf), entry)
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_gt_sriov_pf.c | 33 gt->sriov.pf.vfs = drmm_kcalloc(>_to_xe(gt)->drm, 1 + num_vfs, in pf_alloc_metadata() 34 sizeof(*gt->sriov.pf.vfs), GFP_KERNEL); in pf_alloc_metadata() 35 if (!gt->sriov.pf.vfs) in pf_alloc_metadata()
|
H A D | xe_gt_sriov_pf_monitor.c | 32 gt->sriov.pf.vfs[vfid].monitor.guc.events[e] = 0; in xe_gt_sriov_pf_monitor_flr() 41 gt->sriov.pf.vfs[vfid].monitor.guc.events[e]++; in pf_update_event_counter() 127 data = >->sriov.pf.vfs[n].monitor; in xe_gt_sriov_pf_monitor_print_events()
|
H A D | xe_gt_sriov_pf_service.c | 88 gt->sriov.pf.vfs[vfid].version.major = major; in pf_connect() 89 gt->sriov.pf.vfs[vfid].version.minor = minor; in pf_connect() 96 gt->sriov.pf.vfs[vfid].version.major = 0; in pf_disconnect() 97 gt->sriov.pf.vfs[vfid].version.minor = 0; in pf_disconnect() 104 return major == gt->sriov.pf.vfs[vfid].version.major && in pf_is_negotiated() 105 minor <= gt->sriov.pf.vfs[vfid].version.minor; in pf_is_negotiated() 538 version = >->sriov.pf.vfs[n].version; in xe_gt_sriov_pf_service_print_version()
|
H A D | xe_gt_sriov_pf_types.h | 47 struct xe_gt_sriov_metadata *vfs; member
|
/linux/tools/testing/selftests/powerpc/eeh/ |
H A D | eeh-functions.sh | 200 vfs=0 226 vfs="$((vfs + 1))" 230 test "$vfs" != 0
|
/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_bus_pci.c | 117 if (!ionic->vfs) in ionic_vf_dealloc_locked() 121 v = &ionic->vfs[i]; in ionic_vf_dealloc_locked() 132 kfree(ionic->vfs); in ionic_vf_dealloc_locked() 133 ionic->vfs = NULL; in ionic_vf_dealloc_locked() 153 ionic->vfs = kcalloc(num_vfs, sizeof(struct ionic_vf), GFP_KERNEL); in ionic_vf_alloc() 154 if (!ionic->vfs) { in ionic_vf_alloc() 160 v = &ionic->vfs[i]; in ionic_vf_alloc()
|
H A D | ionic.h | 65 struct ionic_vf *vfs; member
|
H A D | ionic_lif.c | 2363 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_config() 2366 struct ionic_vf *vfdata = &ionic->vfs[vf]; in ionic_get_vf_config() 2395 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_get_vf_stats() 2399 vs = &ionic->vfs[vf].stats; in ionic_get_vf_stats() 2434 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_mac() 2443 ether_addr_copy(ionic->vfs[vf].macaddr, mac); in ionic_set_vf_mac() 2473 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_vlan() 2482 ionic->vfs[vf].vlanid = cpu_to_le16(vlan); in ionic_set_vf_vlan() 2506 if (vf >= pci_num_vf(ionic->pdev) || !ionic->vfs) { in ionic_set_vf_rate() 2515 ionic->vfs[vf].maxrate = cpu_to_le32(tx_max); in ionic_set_vf_rate() [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu.c | 2624 int vfs = rvu->vfs; in rvu_mbox_intr_handler() local 2631 if (vfs > 64) { in rvu_mbox_intr_handler() 2635 rvu_queue_work(&rvu->afvf_wq_info, 64, vfs, intr); in rvu_mbox_intr_handler() 2636 vfs -= 64; in rvu_mbox_intr_handler() 2644 rvu_queue_work(&rvu->afvf_wq_info, 0, vfs, intr); in rvu_mbox_intr_handler() 2833 if (rvu->vfs > 64) in rvu_flr_intr_handler() 2834 rvu_afvf_queue_flr_work(rvu, 64, rvu->vfs - 64); in rvu_flr_intr_handler() 3173 int vfs = rvu->vfs; in rvu_disable_afvf_intr() local 3175 rvupf_write64(rvu, RVU_PF_VFPF_MBOX_INT_ENA_W1CX(0), INTR_MASK(vfs)); in rvu_disable_afvf_intr() 3176 rvupf_write64(rvu, RVU_PF_VFFLR_INT_ENA_W1CX(0), INTR_MASK(vfs)); in rvu_disable_afvf_intr() [all …]
|
/linux/drivers/net/ethernet/amd/pds_core/ |
H A D | main.c | 149 pdsc->vfs = kcalloc(num_vfs, sizeof(struct pdsc_vf), in pdsc_sriov_configure() 151 if (!pdsc->vfs) in pdsc_sriov_configure() 168 kfree(pdsc->vfs); in pdsc_sriov_configure() 169 pdsc->vfs = NULL; in pdsc_sriov_configure() 192 pf->vfs[vf->vf_id].vf = vf; in pdsc_init_vf() 421 pf->vfs[pdsc->vf_id].vf = NULL; in pdsc_remove()
|
H A D | auxbus.c | 188 padev = pf->vfs[cf->vf_id].padev; in pdsc_auxbus_dev_del() 195 pf->vfs[cf->vf_id].padev = NULL; in pdsc_auxbus_dev_del() 261 pf->vfs[cf->vf_id].padev = padev; in pdsc_auxbus_dev_add()
|
/linux/fs/fuse/ |
H A D | virtio_fs.c | 192 struct virtio_fs *vfs = container_of(kobj, struct virtio_fs, kobj); in virtio_fs_ktype_release() local 194 kfree(vfs->mq_map); in virtio_fs_ktype_release() 195 kfree(vfs->vqs); in virtio_fs_ktype_release() 196 kfree(vfs); in virtio_fs_ktype_release() 290 struct virtio_fs *vfs = fiq->priv; in virtio_fs_fiq_release() local 292 virtio_fs_put(vfs); in virtio_fs_fiq_release() 1606 struct virtio_fs *vfs = fc->iq.priv; in virtio_fs_conn_destroy() local 1607 struct virtio_fs_vq *fsvq = &vfs->vqs[VQ_HIPRIO]; in virtio_fs_conn_destroy() 1619 virtio_fs_drain_all_queues(vfs); in virtio_fs_conn_destroy() 1628 virtio_fs_stop_all_queues(vfs); in virtio_fs_conn_destroy() [all …]
|
/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_dev_mgr.c | 356 int vfs = 0; in adf_get_num_dettached_vfs() local 363 vfs++; in adf_get_num_dettached_vfs() 366 return vfs; in adf_get_num_dettached_vfs()
|
/linux/scripts/gdb/linux/ |
H A D | proc.py | 20 from linux import vfs 184 pathname = vfs.dentry_name(mntpoint) + pathname
|
/linux/scripts/gdb/ |
H A D | vmlinux-gdb.py | 43 import linux.vfs
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_sriov.h | 320 struct bnx2x_virtf *vfs; member 321 #define BP_VF(bp, idx) ((BP_VFDB(bp) && (bp)->vfdb->vfs) ? \ 322 &((bp)->vfdb->vfs[idx]) : NULL) 323 #define bnx2x_vf(bp, idx, var) ((bp)->vfdb->vfs[idx].var)
|
/linux/fs/nfsd/ |
H A D | Makefile | 13 nfsd-y += nfssvc.o nfsctl.o nfsfh.o vfs.o \
|
/linux/fs/smb/server/ |
H A D | Makefile | 7 ksmbd-y := unicode.o auth.o vfs.o vfs_cache.o server.o ndr.o \
|
/linux/tools/testing/ktest/examples/bootconfigs/ |
H A D | boottrace.bconf | 58 ftrace_filter = "vfs*"
|
/linux/samples/ |
H A D | Makefile | 33 subdir-$(CONFIG_SAMPLE_VFS) += vfs
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | port.c | 1094 int vfs; in mlx4_get_slave_num_gids() local 1122 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_slave_num_gids() 1123 if (slave_gid <= ((MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS) % vfs)) in mlx4_get_slave_num_gids() 1124 return ((MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS) / vfs) + 1; in mlx4_get_slave_num_gids() 1125 return (MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS) / vfs; in mlx4_get_slave_num_gids() 1133 int vfs; in mlx4_get_base_gid_ix() local 1160 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_base_gid_ix() 1161 if (slave_gid <= gids % vfs) in mlx4_get_base_gid_ix() 1162 return MLX4_ROCE_PF_GIDS + ((gids / vfs) + 1) * (slave_gid - 1); in mlx4_get_base_gid_ix() 1164 return MLX4_ROCE_PF_GIDS + (gids % vfs) + in mlx4_get_base_gid_ix() [all …]
|
/linux/Documentation/filesystems/ |
H A D | index.rst | 21 vfs
|