Searched refs:nr_virtfn (Results 1 – 7 of 7) sorted by relevance
/drivers/pci/ |
D | iov.c | 42 static inline void pci_iov_set_numvfs(struct pci_dev *dev, int nr_virtfn) in pci_iov_set_numvfs() argument 46 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, nr_virtfn); in pci_iov_set_numvfs() 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() 65 if (!iov->offset || (nr_virtfn > 1 && !iov->stride)) { in compute_max_vf_buses() 70 busnr = pci_iov_virtfn_bus(dev, nr_virtfn - 1); in compute_max_vf_buses() 441 static int sriov_enable(struct pci_dev *dev, int nr_virtfn) in sriov_enable() argument 453 if (!nr_virtfn) in sriov_enable() 464 if (nr_virtfn < 0 || nr_virtfn > iov->total_VFs || in sriov_enable() [all …]
|
/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 | 1171 iov->initial, iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); in bnx2x_sriov_info() 1251 iov->nr_virtfn = min_t(u16, iov->total, num_vfs_param); in bnx2x_iov_init_one() 1254 num_vfs_param, iov->nr_virtfn); in bnx2x_iov_init_one() 1557 DP(BNX2X_MSG_IOV, "num of vfs: %d\n", (bp)->vfdb->sriov.nr_virtfn); in bnx2x_iov_nic_init()
|
D | bnx2x_main.c | 3398 ether_stat->vf_cnt = IS_SRIOV(bp) ? bp->vfdb->sriov.nr_virtfn : 0; in bnx2x_drv_info_ether_stat()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_sriov.h | 121 u16 nr_virtfn; /* number of VFs available */ member
|
D | qed_sriov.c | 407 iov->nr_virtfn, iov->offset, iov->stride, iov->pgsz); in qed_iov_pci_cfg_info()
|
/drivers/scsi/lpfc/ |
D | lpfc_init.c | 6089 uint16_t nr_virtfn; in lpfc_sli_sriov_nr_virtfn_get() local 6096 pci_read_config_word(pdev, pos + PCI_SRIOV_TOTAL_VF, &nr_virtfn); in lpfc_sli_sriov_nr_virtfn_get() 6097 return nr_virtfn; in lpfc_sli_sriov_nr_virtfn_get()
|