Lines Matching refs:pe_alloc
134 if (test_and_set_bit(pe_no, phb->ioda.pe_alloc)) { in pnv_ioda_reserve_pe()
149 pe = find_next_zero_bit(phb->ioda.pe_alloc, in pnv_ioda_alloc_pe()
153 } while(test_and_set_bit(pe, phb->ioda.pe_alloc)); in pnv_ioda_alloc_pe()
165 clear_bit(pe, phb->ioda.pe_alloc); in pnv_ioda_free_pe()
258 unsigned long size, *pe_alloc; in pnv_ioda2_pick_m64_pe() local
282 pe_alloc = kzalloc(size, GFP_KERNEL); in pnv_ioda2_pick_m64_pe()
283 if (!pe_alloc) { in pnv_ioda2_pick_m64_pe()
295 set_bit(start + i, pe_alloc); in pnv_ioda2_pick_m64_pe()
315 clear_bit(start + j, pe_alloc); in pnv_ioda2_pick_m64_pe()
324 if (bitmap_empty(pe_alloc, phb->ioda.total_pe)) { in pnv_ioda2_pick_m64_pe()
325 kfree(pe_alloc); in pnv_ioda2_pick_m64_pe()
336 while ((i = find_next_bit(pe_alloc, phb->ioda.total_pe, i + 1)) < in pnv_ioda2_pick_m64_pe()
351 kfree(pe_alloc); in pnv_ioda2_pick_m64_pe()
1409 bitmap_clear(phb->ioda.pe_alloc, pdn->offset, num_vfs); in pnv_pci_sriov_disable()
1524 phb->ioda.pe_alloc, phb->ioda.total_pe, in pnv_pci_sriov_enable()
1532 bitmap_set(phb->ioda.pe_alloc, pdn->offset, num_vfs); in pnv_pci_sriov_enable()
1561 bitmap_clear(phb->ioda.pe_alloc, pdn->offset, num_vfs); in pnv_pci_sriov_enable()
2750 phb->ioda.pe_alloc = aux; in pnv_pci_init_ioda_phb()
2755 set_bit(phb->ioda.reserved_pe, phb->ioda.pe_alloc); in pnv_pci_init_ioda_phb()