Searched refs:nr_virtfn (Results 1 – 10 of 10) sorted by relevance
/kernel/linux/linux-5.10/drivers/pci/ |
D | iov.c | 41 static inline void pci_iov_set_numvfs(struct pci_dev *dev, int nr_virtfn) in pci_iov_set_numvfs() argument 45 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, nr_virtfn); in pci_iov_set_numvfs() 60 int nr_virtfn, busnr, rc = 0; in compute_max_vf_buses() local 62 for (nr_virtfn = iov->total_VFs; nr_virtfn; nr_virtfn--) { in compute_max_vf_buses() 63 pci_iov_set_numvfs(dev, nr_virtfn); in compute_max_vf_buses() 64 if (!iov->offset || (nr_virtfn > 1 && !iov->stride)) { in compute_max_vf_buses() 69 busnr = pci_iov_virtfn_bus(dev, nr_virtfn - 1); in compute_max_vf_buses() 460 static int sriov_enable(struct pci_dev *dev, int nr_virtfn) in sriov_enable() argument 472 if (!nr_virtfn) in sriov_enable() 483 if (nr_virtfn < 0 || nr_virtfn > iov->total_VFs || in sriov_enable() [all …]
|
/kernel/linux/linux-5.10/Documentation/PCI/ |
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' > \
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
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()
|
D | bnx2x_sriov.c | 1159 iov->initial, iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); in bnx2x_sriov_info() 1241 iov->nr_virtfn = min_t(u16, iov->total, num_vfs_param); in bnx2x_iov_init_one() 1244 num_vfs_param, iov->nr_virtfn); in bnx2x_iov_init_one() 1547 DP(BNX2X_MSG_IOV, "num of vfs: %d\n", (bp)->vfdb->sriov.nr_virtfn); in bnx2x_iov_nic_init()
|
D | bnx2x_main.c | 3417 ether_stat->vf_cnt = IS_SRIOV(bp) ? bp->vfdb->sriov.nr_virtfn : 0; in bnx2x_drv_info_ether_stat()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_sriov.h | 95 u16 nr_virtfn; /* number of VFs available */ member
|
D | qed_sriov.c | 383 iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); in qed_iov_pci_cfg_info()
|
/kernel/linux/linux-5.10/drivers/vfio/pci/ |
D | vfio_pci.c | 2149 static int vfio_pci_sriov_configure(struct pci_dev *pdev, int nr_virtfn) in vfio_pci_sriov_configure() argument 2170 if (nr_virtfn == 0) in vfio_pci_sriov_configure() 2173 ret = pci_enable_sriov(pdev, nr_virtfn); in vfio_pci_sriov_configure() 2177 return ret < 0 ? ret : nr_virtfn; in vfio_pci_sriov_configure()
|
/kernel/linux/linux-5.10/include/linux/ |
D | pci.h | 2084 int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); 2094 int pci_sriov_configure_simple(struct pci_dev *dev, int nr_virtfn); 2111 static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) in pci_enable_sriov() argument
|
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
D | lpfc_init.c | 6229 uint16_t nr_virtfn; in lpfc_sli_sriov_nr_virtfn_get() local 6236 pci_read_config_word(pdev, pos + PCI_SRIOV_TOTAL_VF, &nr_virtfn); in lpfc_sli_sriov_nr_virtfn_get() 6237 return nr_virtfn; in lpfc_sli_sriov_nr_virtfn_get()
|