Lines Matching refs:pe_alloc
169 if (test_and_set_bit(pe_no, phb->ioda.pe_alloc)) in pnv_ioda_reserve_pe()
181 if (!test_and_set_bit(pe, phb->ioda.pe_alloc)) in pnv_ioda_alloc_pe()
196 clear_bit(pe_num, phb->ioda.pe_alloc); in pnv_ioda_free_pe()
358 unsigned long size, *pe_alloc; in pnv_ioda_pick_m64_pe() local
367 pe_alloc = kzalloc(size, GFP_KERNEL); in pnv_ioda_pick_m64_pe()
368 if (!pe_alloc) { in pnv_ioda_pick_m64_pe()
375 pnv_ioda_reserve_m64_pe(bus, pe_alloc, all); in pnv_ioda_pick_m64_pe()
382 if (bitmap_empty(pe_alloc, phb->ioda.total_pe_num)) { in pnv_ioda_pick_m64_pe()
383 kfree(pe_alloc); in pnv_ioda_pick_m64_pe()
393 while ((i = find_next_bit(pe_alloc, phb->ioda.total_pe_num, i + 1)) < in pnv_ioda_pick_m64_pe()
429 kfree(pe_alloc); in pnv_ioda_pick_m64_pe()
1527 bitmap_clear(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); in pnv_pci_sriov_disable()
1651 phb->ioda.pe_alloc, phb->ioda.total_pe_num, in pnv_pci_sriov_enable()
1659 bitmap_set(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); in pnv_pci_sriov_enable()
1698 bitmap_clear(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); in pnv_pci_sriov_enable()
3879 phb->ioda.pe_alloc = aux; in pnv_pci_init_ioda_phb()