Lines Matching refs:pe_alloc
143 if (test_and_set_bit(pe_no, phb->ioda.pe_alloc)) in pnv_ioda_reserve_pe()
156 pe = find_next_zero_bit(phb->ioda.pe_alloc, in pnv_ioda_alloc_pe()
160 } while(test_and_set_bit(pe, phb->ioda.pe_alloc)); in pnv_ioda_alloc_pe()
172 clear_bit(pe, phb->ioda.pe_alloc); in pnv_ioda_free_pe()
279 unsigned long size, *pe_alloc; in pnv_ioda2_pick_m64_pe() local
288 pe_alloc = kzalloc(size, GFP_KERNEL); in pnv_ioda2_pick_m64_pe()
289 if (!pe_alloc) { in pnv_ioda2_pick_m64_pe()
296 pnv_ioda2_reserve_m64_pe(bus, pe_alloc, all); in pnv_ioda2_pick_m64_pe()
303 if (bitmap_empty(pe_alloc, phb->ioda.total_pe)) { in pnv_ioda2_pick_m64_pe()
304 kfree(pe_alloc); in pnv_ioda2_pick_m64_pe()
314 while ((i = find_next_bit(pe_alloc, phb->ioda.total_pe, i + 1)) < in pnv_ioda2_pick_m64_pe()
329 kfree(pe_alloc); in pnv_ioda2_pick_m64_pe()
1375 bitmap_clear(phb->ioda.pe_alloc, pdn->offset, num_vfs); in pnv_pci_sriov_disable()
1486 phb->ioda.pe_alloc, phb->ioda.total_pe, in pnv_pci_sriov_enable()
1494 bitmap_set(phb->ioda.pe_alloc, pdn->offset, num_vfs); in pnv_pci_sriov_enable()
1523 bitmap_clear(phb->ioda.pe_alloc, pdn->offset, num_vfs); in pnv_pci_sriov_enable()
3149 phb->ioda.pe_alloc = aux; in pnv_pci_init_ioda_phb()
3154 set_bit(phb->ioda.reserved_pe, phb->ioda.pe_alloc); in pnv_pci_init_ioda_phb()