Searched refs:nr_virtfn (Results 1 - 6 of 6) sorted by relevance
/linux-4.1.27/drivers/pci/ |
H A D | iov.c | 44 static inline void pci_iov_set_numvfs(struct pci_dev *dev, int nr_virtfn) pci_iov_set_numvfs() argument 48 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, nr_virtfn); pci_iov_set_numvfs() 63 int nr_virtfn; virtfn_max_buses() local 67 for (nr_virtfn = 1; nr_virtfn <= iov->total_VFs; nr_virtfn++) { virtfn_max_buses() 68 pci_iov_set_numvfs(dev, nr_virtfn); virtfn_max_buses() 69 busnr = pci_iov_virtfn_bus(dev, nr_virtfn - 1); virtfn_max_buses() 228 static int sriov_enable(struct pci_dev *dev, int nr_virtfn) sriov_enable() argument 241 if (!nr_virtfn) sriov_enable() 252 if (nr_virtfn < 0 || nr_virtfn > iov->total_VFs || sriov_enable() 253 (!(iov->cap & PCI_SRIOV_CAP_VFM) && (nr_virtfn > initial))) sriov_enable() 258 if (!offset || (nr_virtfn > 1 && !stride)) sriov_enable() 276 bus = pci_iov_virtfn_bus(dev, nr_virtfn - 1); sriov_enable() 279 nr_virtfn, bus, &dev->bus->busn_res); sriov_enable() 305 pci_iov_set_numvfs(dev, nr_virtfn); sriov_enable() 313 if (nr_virtfn < initial) sriov_enable() 314 initial = nr_virtfn; sriov_enable() 329 iov->num_VFs = nr_virtfn; sriov_enable() 628 * @nr_virtfn: number of virtual functions to enable 632 int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) pci_enable_sriov() argument 639 return sriov_enable(dev, nr_virtfn); pci_enable_sriov()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_sriov.h | 51 u16 nr_virtfn; /* number of VFs available */ member in struct:bnx2x_sriov 212 #define BNX2X_NR_VIRTFN(bp) ((bp)->vfdb->sriov.nr_virtfn) 524 return bp->vfdb->sriov.nr_virtfn * BNX2X_CIDS_PER_VF; bnx2x_vf_headroom()
|
H A D | bnx2x_sriov.c | 1215 iov->initial, iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); bnx2x_sriov_info() 1295 iov->nr_virtfn = min_t(u16, iov->total, num_vfs_param); bnx2x_iov_init_one() 1297 DP(BNX2X_MSG_IOV, "num_vfs_param was %d, nr_virtfn was %d\n", bnx2x_iov_init_one() 1298 num_vfs_param, iov->nr_virtfn); bnx2x_iov_init_one() 1309 /* Initial VF init - index and abs_vfid - nr_virtfn must be set */ for_each_vf() 1595 DP(BNX2X_MSG_IOV, "num of vfs: %d\n", (bp)->vfdb->sriov.nr_virtfn); bnx2x_iov_nic_init()
|
H A D | bnx2x_main.c | 3407 ether_stat->vf_cnt = IS_SRIOV(bp) ? bp->vfdb->sriov.nr_virtfn : 0; bnx2x_drv_info_ether_stat()
|
/linux-4.1.27/include/linux/ |
H A D | pci.h | 1686 int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); pci_mmcfg_late_init() 1702 static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) pci_enable_sriov() argument
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_init.c | 4870 uint16_t nr_virtfn; lpfc_sli_sriov_nr_virtfn_get() local 4877 pci_read_config_word(pdev, pos + PCI_SRIOV_TOTAL_VF, &nr_virtfn); lpfc_sli_sriov_nr_virtfn_get() 4878 return nr_virtfn; lpfc_sli_sriov_nr_virtfn_get()
|
Completed in 340 milliseconds