ioda 90 arch/powerpc/platforms/powernv/eeh-powernv.c if (phb->ioda.reserved_pe_idx != 0) ioda 409 arch/powerpc/platforms/powernv/eeh-powernv.c edev->pe_config_addr = phb->ioda.pe_rmap[config_addr]; ioda 1392 arch/powerpc/platforms/powernv/eeh-powernv.c pnv_pe = &phb->ioda.pe_array[pe_no]; ioda 116 arch/powerpc/platforms/powernv/npu-dma.c pe = &phb->ioda.pe_array[pdn->pe_number]; ioda 126 arch/powerpc/platforms/powernv/pci-ioda.c return (r->start >= phb->ioda.m64_base && ioda 127 arch/powerpc/platforms/powernv/pci-ioda.c r->start < (phb->ioda.m64_base + phb->ioda.m64_size)); ioda 141 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.pe_array[pe_no].phb = phb; ioda 142 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.pe_array[pe_no].pe_number = pe_no; ioda 155 arch/powerpc/platforms/powernv/pci-ioda.c return &phb->ioda.pe_array[pe_no]; ioda 160 arch/powerpc/platforms/powernv/pci-ioda.c if (!(pe_no >= 0 && pe_no < phb->ioda.total_pe_num)) { ioda 166 arch/powerpc/platforms/powernv/pci-ioda.c if (test_and_set_bit(pe_no, phb->ioda.pe_alloc)) ioda 177 arch/powerpc/platforms/powernv/pci-ioda.c for (pe = phb->ioda.total_pe_num - 1; pe >= 0; pe--) { ioda 178 arch/powerpc/platforms/powernv/pci-ioda.c if (!test_and_set_bit(pe, phb->ioda.pe_alloc)) ioda 194 arch/powerpc/platforms/powernv/pci-ioda.c clear_bit(pe_num, phb->ioda.pe_alloc); ioda 207 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_bar_idx, ioda 208 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_base, ioda 210 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_size); ioda 219 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_bar_idx, ioda 231 arch/powerpc/platforms/powernv/pci-ioda.c if (phb->ioda.reserved_pe_idx == 0) ioda 232 arch/powerpc/platforms/powernv/pci-ioda.c r->start += (2 * phb->ioda.m64_segsize); ioda 233 arch/powerpc/platforms/powernv/pci-ioda.c else if (phb->ioda.reserved_pe_idx == (phb->ioda.total_pe_num - 1)) ioda 234 arch/powerpc/platforms/powernv/pci-ioda.c r->end -= (2 * phb->ioda.m64_segsize); ioda 237 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.reserved_pe_idx); ioda 243 arch/powerpc/platforms/powernv/pci-ioda.c rc, desc, phb->ioda.m64_bar_idx); ioda 246 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_bar_idx, ioda 260 arch/powerpc/platforms/powernv/pci-ioda.c base = phb->ioda.m64_base; ioda 261 arch/powerpc/platforms/powernv/pci-ioda.c sgsz = phb->ioda.m64_segsize; ioda 289 arch/powerpc/platforms/powernv/pci-ioda.c unsigned long base, segsz = phb->ioda.m64_segsize; ioda 292 arch/powerpc/platforms/powernv/pci-ioda.c base = phb->ioda.m64_base + ioda 318 arch/powerpc/platforms/powernv/pci-ioda.c if (phb->ioda.reserved_pe_idx == 0) ioda 319 arch/powerpc/platforms/powernv/pci-ioda.c r->start += (2 * phb->ioda.m64_segsize); ioda 320 arch/powerpc/platforms/powernv/pci-ioda.c else if (phb->ioda.reserved_pe_idx == (phb->ioda.total_pe_num - 1)) ioda 321 arch/powerpc/platforms/powernv/pci-ioda.c r->end -= (2 * phb->ioda.m64_segsize); ioda 324 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.reserved_pe_idx, phb->hose->global_number); ioda 364 arch/powerpc/platforms/powernv/pci-ioda.c size = _ALIGN_UP(phb->ioda.total_pe_num / 8, sizeof(unsigned long)); ioda 380 arch/powerpc/platforms/powernv/pci-ioda.c if (bitmap_empty(pe_alloc, phb->ioda.total_pe_num)) { ioda 391 arch/powerpc/platforms/powernv/pci-ioda.c while ((i = find_next_bit(pe_alloc, phb->ioda.total_pe_num, i + 1)) < ioda 392 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.total_pe_num) { ioda 393 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[i]; ioda 395 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_segmap[pe->pe_number] = pe->pe_number; ioda 489 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_size = resource_size(res); ioda 490 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_segsize = phb->ioda.m64_size / phb->ioda.total_pe_num; ioda 491 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_base = pci_addr; ioda 499 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_bar_alloc = (unsigned long)-1; ioda 503 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_bar_idx = m64_range[0] + m64_range[1]; ioda 505 arch/powerpc/platforms/powernv/pci-ioda.c pr_info(" Using M64 #%d as default window\n", phb->ioda.m64_bar_idx); ioda 509 arch/powerpc/platforms/powernv/pci-ioda.c clear_bit(i, &phb->ioda.m64_bar_alloc); ioda 523 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_ioda_pe *pe = &phb->ioda.pe_array[pe_no]; ioda 567 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pe_no]; ioda 609 arch/powerpc/platforms/powernv/pci-ioda.c if (pe_no < 0 || pe_no >= phb->ioda.total_pe_num) ioda 616 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pe_no]; ioda 673 arch/powerpc/platforms/powernv/pci-ioda.c return &phb->ioda.pe_array[pdn->pe_number]; ioda 768 arch/powerpc/platforms/powernv/pci-ioda.c parent = &phb->ioda.pe_array[pdn->pe_number]; ioda 828 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.pe_rmap[rid] = IODA_INVALID_PE; ioda 930 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.pe_rmap[rid] = pe->pe_number; ioda 1092 arch/powerpc/platforms/powernv/pci-ioda.c list_add_tail(&pe->list, &phb->ioda.pe_list); ioda 1142 arch/powerpc/platforms/powernv/pci-ioda.c pe_num = phb->ioda.pe_rmap[bus->number << 8]; ioda 1144 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pe_num]; ioda 1151 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.root_pe_idx != IODA_INVALID_PE) ioda 1152 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[phb->ioda.root_pe_idx]; ioda 1193 arch/powerpc/platforms/powernv/pci-ioda.c list_add_tail(&pe->list, &phb->ioda.pe_list); ioda 1218 arch/powerpc/platforms/powernv/pci-ioda.c for (pe_num = 0; pe_num < phb->ioda.total_pe_num; pe_num++) { ioda 1219 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pe_num]; ioda 1235 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.pe_rmap[rid] = pe->pe_number; ioda 1295 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(pe, &phb->ioda.pe_list, list) ioda 1326 arch/powerpc/platforms/powernv/pci-ioda.c clear_bit(pdn->m64_map[j][i], &phb->ioda.m64_bar_alloc); ioda 1378 arch/powerpc/platforms/powernv/pci-ioda.c win = find_next_zero_bit(&phb->ioda.m64_bar_alloc, ioda 1379 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_bar_idx + 1, 0); ioda 1381 arch/powerpc/platforms/powernv/pci-ioda.c if (win >= phb->ioda.m64_bar_idx + 1) ioda 1383 arch/powerpc/platforms/powernv/pci-ioda.c } while (test_and_set_bit(win, &phb->ioda.m64_bar_alloc)); ioda 1476 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry_safe(pe, pe_n, &phb->ioda.pe_list, list) { ioda 1483 arch/powerpc/platforms/powernv/pci-ioda.c mutex_lock(&phb->ioda.pe_list_mutex); ioda 1485 arch/powerpc/platforms/powernv/pci-ioda.c mutex_unlock(&phb->ioda.pe_list_mutex); ioda 1524 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pdn->pe_num_map[i]]; ioda 1528 arch/powerpc/platforms/powernv/pci-ioda.c bitmap_clear(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); ioda 1570 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pe_num]; ioda 1591 arch/powerpc/platforms/powernv/pci-ioda.c mutex_lock(&phb->ioda.pe_list_mutex); ioda 1592 arch/powerpc/platforms/powernv/pci-ioda.c list_add_tail(&pe->list, &phb->ioda.pe_list); ioda 1593 arch/powerpc/platforms/powernv/pci-ioda.c mutex_unlock(&phb->ioda.pe_list_mutex); ioda 1639 arch/powerpc/platforms/powernv/pci-ioda.c if (pdn->m64_single_mode && num_vfs > phb->ioda.m64_bar_idx) { ioda 1671 arch/powerpc/platforms/powernv/pci-ioda.c mutex_lock(&phb->ioda.pe_alloc_mutex); ioda 1673 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.pe_alloc, phb->ioda.total_pe_num, ioda 1675 arch/powerpc/platforms/powernv/pci-ioda.c if (*pdn->pe_num_map >= phb->ioda.total_pe_num) { ioda 1676 arch/powerpc/platforms/powernv/pci-ioda.c mutex_unlock(&phb->ioda.pe_alloc_mutex); ioda 1681 arch/powerpc/platforms/powernv/pci-ioda.c bitmap_set(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); ioda 1682 arch/powerpc/platforms/powernv/pci-ioda.c mutex_unlock(&phb->ioda.pe_alloc_mutex); ioda 1716 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pdn->pe_num_map[i]]; ioda 1720 arch/powerpc/platforms/powernv/pci-ioda.c bitmap_clear(phb->ioda.pe_alloc, *pdn->pe_num_map, num_vfs); ioda 1759 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pdn->pe_number]; ioda 1851 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pdn->pe_number]; ioda 2191 arch/powerpc/platforms/powernv/pci-ioda.c segs = (weight * phb->ioda.dma32_count) / total_weight; ioda 2202 arch/powerpc/platforms/powernv/pci-ioda.c for (base = 0; base <= phb->ioda.dma32_count - segs; base++) { ioda 2204 arch/powerpc/platforms/powernv/pci-ioda.c if (phb->ioda.dma32_segmap[i] == ioda 2269 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.dma32_segmap[i] = pe->pe_number; ioda 2445 arch/powerpc/platforms/powernv/pci-ioda.c if (window_size > pe->phb->ioda.m32_pci_base) { ioda 2446 arch/powerpc/platforms/powernv/pci-ioda.c res_start = pe->phb->ioda.m32_pci_base >> tbl->it_page_shift; ioda 2637 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(pe, &phb->ioda.pe_list, list) { ioda 2668 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(pe, &phb->ioda.pe_list, list) { ioda 2724 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_pci_base); ioda 2728 arch/powerpc/platforms/powernv/pci-ioda.c pe->table_group.tce32_size = phb->ioda.m32_pci_base; ioda 2748 arch/powerpc/platforms/powernv/pci-ioda.c ioda.irq_chip); ioda 2775 arch/powerpc/platforms/powernv/pci-ioda.c if (!phb->ioda.irq_chip_init) { ioda 2782 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.irq_chip_init = 1; ioda 2783 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.irq_chip = *ichip; ioda 2784 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.irq_chip.irq_eoi = pnv_ioda2_msi_eoi; ioda 2786 arch/powerpc/platforms/powernv/pci-ioda.c irq_set_chip(virq, &phb->ioda.irq_chip); ioda 2896 arch/powerpc/platforms/powernv/pci-ioda.c const resource_size_t gate = phb->ioda.m64_segsize >> 2; ioda 2908 arch/powerpc/platforms/powernv/pci-ioda.c mul = phb->ioda.total_pe_num; ioda 3015 arch/powerpc/platforms/powernv/pci-ioda.c region.start = res->start - phb->ioda.io_pci_base; ioda 3016 arch/powerpc/platforms/powernv/pci-ioda.c region.end = res->end - phb->ioda.io_pci_base; ioda 3017 arch/powerpc/platforms/powernv/pci-ioda.c index = region.start / phb->ioda.io_segsize; ioda 3019 arch/powerpc/platforms/powernv/pci-ioda.c while (index < phb->ioda.total_pe_num && ioda 3021 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.io_segmap[index] = pe->pe_number; ioda 3030 arch/powerpc/platforms/powernv/pci-ioda.c region.start += phb->ioda.io_segsize; ioda 3037 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_pci_base; ioda 3040 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_pci_base; ioda 3041 arch/powerpc/platforms/powernv/pci-ioda.c index = region.start / phb->ioda.m32_segsize; ioda 3043 arch/powerpc/platforms/powernv/pci-ioda.c while (index < phb->ioda.total_pe_num && ioda 3045 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_segmap[index] = pe->pe_number; ioda 3054 arch/powerpc/platforms/powernv/pci-ioda.c region.start += phb->ioda.m32_segsize; ioda 3237 arch/powerpc/platforms/powernv/pci-ioda.c if (phb->ioda.m64_segsize && pnv_pci_is_m64_flags(type)) ioda 3238 arch/powerpc/platforms/powernv/pci-ioda.c return phb->ioda.m64_segsize; ioda 3240 arch/powerpc/platforms/powernv/pci-ioda.c return phb->ioda.m32_segsize; ioda 3242 arch/powerpc/platforms/powernv/pci-ioda.c return phb->ioda.io_segsize; ioda 3279 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_segsize) ioda 3315 arch/powerpc/platforms/powernv/pci-ioda.c if (!phb->ioda.root_pe_populated) { ioda 3318 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.root_pe_idx = pe->pe_number; ioda 3319 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.root_pe_populated = true; ioda 3388 arch/powerpc/platforms/powernv/pci-ioda.c return max(align, (resource_size_t)phb->ioda.m64_segsize); ioda 3428 arch/powerpc/platforms/powernv/pci-ioda.c for (idx = 0; idx < phb->ioda.dma32_count; idx++) { ioda 3429 arch/powerpc/platforms/powernv/pci-ioda.c if (phb->ioda.dma32_segmap[idx] != pe->pe_number) ioda 3440 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.dma32_segmap[idx] = IODA_INVALID_PE; ioda 3504 arch/powerpc/platforms/powernv/pci-ioda.c for (idx = 0; idx < phb->ioda.total_pe_num; idx++) { ioda 3510 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.reserved_pe_idx, win, ioda 3515 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.reserved_pe_idx, win, 0, idx); ioda 3531 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.io_segmap); ioda 3533 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_segmap); ioda 3535 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_segmap); ioda 3538 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_segmap); ioda 3576 arch/powerpc/platforms/powernv/pci-ioda.c if (phb->ioda.root_pe_populated && ioda 3577 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.root_pe_idx == pe->pe_number) ioda 3578 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.root_pe_populated = false; ioda 3604 arch/powerpc/platforms/powernv/pci-ioda.c pe = &phb->ioda.pe_array[pdn->pe_number]; ioda 3718 arch/powerpc/platforms/powernv/pci-ioda.c mutex_init(&phb->ioda.pe_alloc_mutex); ioda 3756 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.total_pe_num = 1; ioda 3759 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.total_pe_num = be32_to_cpup(prop32); ioda 3762 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.reserved_pe_idx = be32_to_cpup(prop32); ioda 3765 arch/powerpc/platforms/powernv/pci-ioda.c for (segno = 0; segno < ARRAY_SIZE(phb->ioda.pe_rmap); segno++) ioda 3766 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.pe_rmap[segno] = IODA_INVALID_PE; ioda 3771 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_size = resource_size(&hose->mem_resources[0]); ioda 3773 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_size += 0x10000; ioda 3775 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_segsize = phb->ioda.m32_size / phb->ioda.total_pe_num; ioda 3776 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_pci_base = hose->mem_resources[0].start - hose->mem_offset[0]; ioda 3777 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.io_size = hose->pci_io_size; ioda 3778 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.io_segsize = phb->ioda.io_size / phb->ioda.total_pe_num; ioda 3779 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.io_pci_base = 0; /* XXX calculate this ? */ ioda 3782 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.dma32_count = phb->ioda.m32_pci_base / ioda 3786 arch/powerpc/platforms/powernv/pci-ioda.c size = _ALIGN_UP(max_t(unsigned, phb->ioda.total_pe_num, 8) / 8, ioda 3789 arch/powerpc/platforms/powernv/pci-ioda.c size += phb->ioda.total_pe_num * sizeof(phb->ioda.m64_segmap[0]); ioda 3791 arch/powerpc/platforms/powernv/pci-ioda.c size += phb->ioda.total_pe_num * sizeof(phb->ioda.m32_segmap[0]); ioda 3794 arch/powerpc/platforms/powernv/pci-ioda.c size += phb->ioda.total_pe_num * sizeof(phb->ioda.io_segmap[0]); ioda 3796 arch/powerpc/platforms/powernv/pci-ioda.c size += phb->ioda.dma32_count * ioda 3797 arch/powerpc/platforms/powernv/pci-ioda.c sizeof(phb->ioda.dma32_segmap[0]); ioda 3800 arch/powerpc/platforms/powernv/pci-ioda.c size += phb->ioda.total_pe_num * sizeof(struct pnv_ioda_pe); ioda 3804 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.pe_alloc = aux; ioda 3805 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_segmap = aux + m64map_off; ioda 3806 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_segmap = aux + m32map_off; ioda 3807 arch/powerpc/platforms/powernv/pci-ioda.c for (segno = 0; segno < phb->ioda.total_pe_num; segno++) { ioda 3808 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_segmap[segno] = IODA_INVALID_PE; ioda 3809 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_segmap[segno] = IODA_INVALID_PE; ioda 3812 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.io_segmap = aux + iomap_off; ioda 3813 arch/powerpc/platforms/powernv/pci-ioda.c for (segno = 0; segno < phb->ioda.total_pe_num; segno++) ioda 3814 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.io_segmap[segno] = IODA_INVALID_PE; ioda 3816 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.dma32_segmap = aux + dma32map_off; ioda 3817 arch/powerpc/platforms/powernv/pci-ioda.c for (segno = 0; segno < phb->ioda.dma32_count; segno++) ioda 3818 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.dma32_segmap[segno] = IODA_INVALID_PE; ioda 3820 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.pe_array = aux + pemap_off; ioda 3827 arch/powerpc/platforms/powernv/pci-ioda.c pnv_ioda_reserve_pe(phb, phb->ioda.reserved_pe_idx); ioda 3828 arch/powerpc/platforms/powernv/pci-ioda.c if (phb->ioda.reserved_pe_idx == 0) { ioda 3829 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.root_pe_idx = 1; ioda 3830 arch/powerpc/platforms/powernv/pci-ioda.c pnv_ioda_reserve_pe(phb, phb->ioda.root_pe_idx); ioda 3831 arch/powerpc/platforms/powernv/pci-ioda.c } else if (phb->ioda.reserved_pe_idx == (phb->ioda.total_pe_num - 1)) { ioda 3832 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.root_pe_idx = phb->ioda.reserved_pe_idx - 1; ioda 3833 arch/powerpc/platforms/powernv/pci-ioda.c pnv_ioda_reserve_pe(phb, phb->ioda.root_pe_idx); ioda 3835 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.root_pe_idx = IODA_INVALID_PE; ioda 3838 arch/powerpc/platforms/powernv/pci-ioda.c INIT_LIST_HEAD(&phb->ioda.pe_list); ioda 3839 arch/powerpc/platforms/powernv/pci-ioda.c mutex_init(&phb->ioda.pe_list_mutex); ioda 3842 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.dma32_count = phb->ioda.m32_pci_base / ioda 3855 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.total_pe_num, phb->ioda.reserved_pe_idx, ioda 3856 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_size, phb->ioda.m32_segsize); ioda 3857 arch/powerpc/platforms/powernv/pci-ioda.c if (phb->ioda.m64_size) ioda 3859 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m64_size, phb->ioda.m64_segsize); ioda 3860 arch/powerpc/platforms/powernv/pci-ioda.c if (phb->ioda.io_size) ioda 3862 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.io_size, phb->ioda.io_segsize); ioda 611 arch/powerpc/platforms/powernv/pci.c pe_no = phb->ioda.reserved_pe_idx; ioda 828 arch/powerpc/platforms/powernv/pci.c list_for_each_entry(pe, &phb->ioda.pe_list, list) { ioda 1000 arch/powerpc/platforms/powernv/pci.c pe = &phb->ioda.pe_array[pdn->pe_number]; ioda 167 arch/powerpc/platforms/powernv/pci.h } ioda;