Searched refs:nr_virtfn (Results 1 – 12 of 12) sorted by relevance
/linux/drivers/pci/ |
A D | iov.c | 61 int nr_virtfn, busnr, rc = 0; in compute_max_vf_buses() local 63 for (nr_virtfn = iov->total_VFs; nr_virtfn; nr_virtfn--) { in compute_max_vf_buses() 64 pci_iov_set_numvfs(dev, nr_virtfn); in compute_max_vf_buses() 567 if (!nr_virtfn) in sriov_enable() 578 if (nr_virtfn < 0 || nr_virtfn > iov->total_VFs || in sriov_enable() 624 if (nr_virtfn < initial) in sriov_enable() 625 initial = nr_virtfn; in sriov_enable() 645 iov->num_VFs = nr_virtfn; in sriov_enable() 1175 if (nr_virtfn == 0) { in pci_sriov_configure_simple() 1180 rc = sriov_enable(dev, nr_virtfn); in pci_sriov_configure_simple() [all …]
|
/linux/drivers/vfio/pci/ |
A D | vfio_pci.c | 174 static int vfio_pci_sriov_configure(struct pci_dev *pdev, int nr_virtfn) in vfio_pci_sriov_configure() argument 179 return vfio_pci_core_sriov_configure(pdev, nr_virtfn); in vfio_pci_sriov_configure()
|
A D | vfio_pci_core.c | 1918 int vfio_pci_core_sriov_configure(struct pci_dev *pdev, int nr_virtfn) in vfio_pci_core_sriov_configure() argument 1927 if (nr_virtfn == 0) in vfio_pci_core_sriov_configure() 1930 ret = pci_enable_sriov(pdev, nr_virtfn); in vfio_pci_core_sriov_configure() 1934 return ret < 0 ? ret : nr_virtfn; in vfio_pci_core_sriov_configure()
|
/linux/Documentation/PCI/ |
A D | pci-iov-howto.rst | 70 int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); 72 'nr_virtfn' is number of VFs to be enabled. 76 echo 'nr_virtfn' > \
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
A D | bnx2x_sriov.h | 53 u16 nr_virtfn; /* number of VFs available */ member 219 #define BNX2X_NR_VIRTFN(bp) ((bp)->vfdb->sriov.nr_virtfn) 541 return bp->vfdb->sriov.nr_virtfn * BNX2X_CIDS_PER_VF; in bnx2x_vf_headroom()
|
A D | bnx2x_sriov.c | 1150 iov->initial, iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); in bnx2x_sriov_info() 1231 iov->nr_virtfn = min_t(u16, iov->total, num_vfs_param); in bnx2x_iov_init_one() 1234 num_vfs_param, iov->nr_virtfn); in bnx2x_iov_init_one() 1537 DP(BNX2X_MSG_IOV, "num of vfs: %d\n", (bp)->vfdb->sriov.nr_virtfn); in bnx2x_iov_nic_init()
|
A D | bnx2x_main.c | 3408 ether_stat->vf_cnt = IS_SRIOV(bp) ? bp->vfdb->sriov.nr_virtfn : 0; in bnx2x_drv_info_ether_stat()
|
/linux/include/linux/ |
A D | vfio_pci_core.h | 219 int vfio_pci_core_sriov_configure(struct pci_dev *pdev, int nr_virtfn);
|
A D | pci.h | 2155 int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); 2165 int pci_sriov_configure_simple(struct pci_dev *dev, int nr_virtfn); 2182 static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) in pci_enable_sriov() argument
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_sriov.h | 95 u16 nr_virtfn; /* number of VFs available */ member
|
A D | qed_sriov.c | 385 iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); in qed_iov_pci_cfg_info()
|
/linux/drivers/scsi/lpfc/ |
A D | lpfc_init.c | 7516 uint16_t nr_virtfn; in lpfc_sli_sriov_nr_virtfn_get() local 7523 pci_read_config_word(pdev, pos + PCI_SRIOV_TOTAL_VF, &nr_virtfn); in lpfc_sli_sriov_nr_virtfn_get() 7524 return nr_virtfn; in lpfc_sli_sriov_nr_virtfn_get()
|
Completed in 84 milliseconds