Lines Matching refs:win
406 int win; in pnv_pci_alloc_m64_bar() local
409 win = find_next_zero_bit(&phb->ioda.m64_bar_alloc, in pnv_pci_alloc_m64_bar()
412 if (win >= phb->ioda.m64_bar_idx + 1) in pnv_pci_alloc_m64_bar()
414 } while (test_and_set_bit(win, &phb->ioda.m64_bar_alloc)); in pnv_pci_alloc_m64_bar()
416 set_bit(win, iov->used_m64_bar_mask); in pnv_pci_alloc_m64_bar()
418 return win; in pnv_pci_alloc_m64_bar()
425 int win; in pnv_pci_vf_assign_m64() local
442 win = pnv_pci_alloc_m64_bar(phb, iov); in pnv_pci_vf_assign_m64()
443 if (win < 0) in pnv_pci_vf_assign_m64()
449 rc = pnv_ioda_map_m64_segmented(phb, win, start, size); in pnv_pci_vf_assign_m64()
461 win = pnv_pci_alloc_m64_bar(phb, iov); in pnv_pci_vf_assign_m64()
462 if (win < 0) in pnv_pci_vf_assign_m64()
466 rc = pnv_ioda_map_m64_single(phb, win, in pnv_pci_vf_assign_m64()