Lines Matching refs:vf_index
91 void pseries_set_pe_num(struct pci_dev *pdev, u16 vf_index, __be16 pe_num) in pseries_set_pe_num() argument
96 pdn->pe_num_map[vf_index] = be16_to_cpu(pe_num); in pseries_set_pe_num()
100 PCI_SLOT(pci_iov_virtfn_devfn(pdev, vf_index)), in pseries_set_pe_num()
101 PCI_FUNC(pci_iov_virtfn_devfn(pdev, vf_index)), in pseries_set_pe_num()
102 pdn->pe_num_map[vf_index]); in pseries_set_pe_num()
108 int i, rc, vf_index; in pseries_associate_pes() local
119 for (vf_index = 0; vf_index < num_vfs; vf_index++) { in pseries_associate_pes()
120 pdn->pe_num_map[vf_index] = IODA_INVALID_PE; in pseries_associate_pes()
127 vf_pe_array[vf_index].bar = in pseries_associate_pes()
128 cpu_to_be64(res->start + size * vf_index); in pseries_associate_pes()
129 vf_pe_array[vf_index].rid = in pseries_associate_pes()
130 cpu_to_be16((pci_iov_virtfn_bus(pdev, vf_index) in pseries_associate_pes()
132 vf_index)); in pseries_associate_pes()
133 vf_pe_array[vf_index].pe_num = in pseries_associate_pes()
141 for (vf_index = 0; vf_index < num_vfs; vf_index++) in pseries_associate_pes()
142 pseries_set_pe_num(pdev, vf_index, in pseries_associate_pes()
143 vf_pe_array[vf_index].pe_num); in pseries_associate_pes()