Lines Matching refs:pe_num_map
1397 pe_num = pdn->pe_num_map[j]; in pnv_pci_vf_assign_m64()
1512 pnv_pci_vf_resource_shift(pdev, -*pdn->pe_num_map); in pnv_pci_sriov_disable()
1520 if (pdn->pe_num_map[i] == IODA_INVALID_PE) in pnv_pci_sriov_disable()
1523 pe = &phb->ioda.pe_array[pdn->pe_num_map[i]]; in pnv_pci_sriov_disable()
1527 bitmap_clear(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); in pnv_pci_sriov_disable()
1529 kfree(pdn->pe_num_map); in pnv_pci_sriov_disable()
1556 pe_num = pdn->pe_num_map[vf_index]; in pnv_ioda_setup_vf_PE()
1558 pe_num = *pdn->pe_num_map + vf_index; in pnv_ioda_setup_vf_PE()
1624 pdn->pe_num_map = kmalloc_array(num_vfs, in pnv_pci_sriov_enable()
1625 sizeof(*pdn->pe_num_map), in pnv_pci_sriov_enable()
1628 pdn->pe_num_map = kmalloc(sizeof(*pdn->pe_num_map), GFP_KERNEL); in pnv_pci_sriov_enable()
1630 if (!pdn->pe_num_map) in pnv_pci_sriov_enable()
1635 pdn->pe_num_map[i] = IODA_INVALID_PE; in pnv_pci_sriov_enable()
1646 pdn->pe_num_map[i] = pe->pe_number; in pnv_pci_sriov_enable()
1650 *pdn->pe_num_map = bitmap_find_next_zero_area( in pnv_pci_sriov_enable()
1653 if (*pdn->pe_num_map >= phb->ioda.total_pe_num) { in pnv_pci_sriov_enable()
1656 kfree(pdn->pe_num_map); in pnv_pci_sriov_enable()
1659 bitmap_set(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); in pnv_pci_sriov_enable()
1677 ret = pnv_pci_vf_resource_shift(pdev, *pdn->pe_num_map); in pnv_pci_sriov_enable()
1691 if (pdn->pe_num_map[i] == IODA_INVALID_PE) in pnv_pci_sriov_enable()
1694 pe = &phb->ioda.pe_array[pdn->pe_num_map[i]]; in pnv_pci_sriov_enable()
1698 bitmap_clear(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); in pnv_pci_sriov_enable()
1701 kfree(pdn->pe_num_map); in pnv_pci_sriov_enable()