Lines Matching refs:vf_index
90 static void pseries_set_pe_num(struct pci_dev *pdev, u16 vf_index, __be16 pe_num) in pseries_set_pe_num() argument
95 pdn->pe_num_map[vf_index] = be16_to_cpu(pe_num); in pseries_set_pe_num()
99 PCI_SLOT(pci_iov_virtfn_devfn(pdev, vf_index)), in pseries_set_pe_num()
100 PCI_FUNC(pci_iov_virtfn_devfn(pdev, vf_index)), in pseries_set_pe_num()
101 pdn->pe_num_map[vf_index]); in pseries_set_pe_num()
107 int i, rc, vf_index; in pseries_associate_pes() local
118 for (vf_index = 0; vf_index < num_vfs; vf_index++) { in pseries_associate_pes()
119 pdn->pe_num_map[vf_index] = IODA_INVALID_PE; in pseries_associate_pes()
126 vf_pe_array[vf_index].bar = in pseries_associate_pes()
127 cpu_to_be64(res->start + size * vf_index); in pseries_associate_pes()
128 vf_pe_array[vf_index].rid = in pseries_associate_pes()
129 cpu_to_be16((pci_iov_virtfn_bus(pdev, vf_index) in pseries_associate_pes()
131 vf_index)); in pseries_associate_pes()
132 vf_pe_array[vf_index].pe_num = in pseries_associate_pes()
140 for (vf_index = 0; vf_index < num_vfs; vf_index++) in pseries_associate_pes()
141 pseries_set_pe_num(pdev, vf_index, in pseries_associate_pes()
142 vf_pe_array[vf_index].pe_num); in pseries_associate_pes()