Lines Matching refs:pe_num_map
1398 pe_num = pdn->pe_num_map[j]; in pnv_pci_vf_assign_m64()
1513 pnv_pci_vf_resource_shift(pdev, -*pdn->pe_num_map); in pnv_pci_sriov_disable()
1521 if (pdn->pe_num_map[i] == IODA_INVALID_PE) in pnv_pci_sriov_disable()
1524 pe = &phb->ioda.pe_array[pdn->pe_num_map[i]]; in pnv_pci_sriov_disable()
1528 bitmap_clear(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); in pnv_pci_sriov_disable()
1530 kfree(pdn->pe_num_map); in pnv_pci_sriov_disable()
1566 pe_num = pdn->pe_num_map[vf_index]; in pnv_ioda_setup_vf_PE()
1568 pe_num = *pdn->pe_num_map + vf_index; in pnv_ioda_setup_vf_PE()
1646 pdn->pe_num_map = kmalloc_array(num_vfs, in pnv_pci_sriov_enable()
1647 sizeof(*pdn->pe_num_map), in pnv_pci_sriov_enable()
1650 pdn->pe_num_map = kmalloc(sizeof(*pdn->pe_num_map), GFP_KERNEL); in pnv_pci_sriov_enable()
1652 if (!pdn->pe_num_map) in pnv_pci_sriov_enable()
1657 pdn->pe_num_map[i] = IODA_INVALID_PE; in pnv_pci_sriov_enable()
1668 pdn->pe_num_map[i] = pe->pe_number; in pnv_pci_sriov_enable()
1672 *pdn->pe_num_map = bitmap_find_next_zero_area( in pnv_pci_sriov_enable()
1675 if (*pdn->pe_num_map >= phb->ioda.total_pe_num) { in pnv_pci_sriov_enable()
1678 kfree(pdn->pe_num_map); in pnv_pci_sriov_enable()
1681 bitmap_set(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); in pnv_pci_sriov_enable()
1699 ret = pnv_pci_vf_resource_shift(pdev, *pdn->pe_num_map); in pnv_pci_sriov_enable()
1713 if (pdn->pe_num_map[i] == IODA_INVALID_PE) in pnv_pci_sriov_enable()
1716 pe = &phb->ioda.pe_array[pdn->pe_num_map[i]]; in pnv_pci_sriov_enable()
1720 bitmap_clear(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); in pnv_pci_sriov_enable()
1723 kfree(pdn->pe_num_map); in pnv_pci_sriov_enable()