Home
last modified time | relevance | path

Searched refs:ioda (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.10/arch/powerpc/platforms/powernv/
Dpci-ioda.c122 phb->ioda.pe_array[pe_no].phb = phb; in pnv_ioda_init_pe()
123 phb->ioda.pe_array[pe_no].pe_number = pe_no; in pnv_ioda_init_pe()
124 phb->ioda.pe_array[pe_no].dma_setup_done = false; in pnv_ioda_init_pe()
137 return &phb->ioda.pe_array[pe_no]; in pnv_ioda_init_pe()
142 if (!(pe_no >= 0 && pe_no < phb->ioda.total_pe_num)) { in pnv_ioda_reserve_pe()
148 mutex_lock(&phb->ioda.pe_alloc_mutex); in pnv_ioda_reserve_pe()
149 if (test_and_set_bit(pe_no, phb->ioda.pe_alloc)) in pnv_ioda_reserve_pe()
152 mutex_unlock(&phb->ioda.pe_alloc_mutex); in pnv_ioda_reserve_pe()
162 mutex_lock(&phb->ioda.pe_alloc_mutex); in pnv_ioda_alloc_pe()
165 for (pe = phb->ioda.total_pe_num - 1; pe >= 0; pe--) { in pnv_ioda_alloc_pe()
[all …]
Dpci-sriov.c159 mul = phb->ioda.total_pe_num; in pnv_pci_ioda_fixup_iov_resources()
183 if (vf_bar_sz > (phb->ioda.m64_segsize >> 2)) { in pnv_pci_ioda_fixup_iov_resources()
287 return phb->ioda.total_pe_num * align; in pnv_pci_iov_resource_alignment()
305 clear_bit(window_id, &phb->ioda.m64_bar_alloc); in pnv_pci_vf_release_m64()
409 win = find_next_zero_bit(&phb->ioda.m64_bar_alloc, in pnv_pci_alloc_m64_bar()
410 phb->ioda.m64_bar_idx + 1, 0); 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()
492 list_for_each_entry_safe(pe, pe_n, &phb->ioda.pe_list, list) { in pnv_ioda_release_vf_PE()
499 mutex_lock(&phb->ioda.pe_list_mutex); in pnv_ioda_release_vf_PE()
[all …]
Dpci.h191 } ioda; member
210 return (r->start >= phb->ioda.m64_base && in pnv_pci_is_m64()
211 r->start < (phb->ioda.m64_base + phb->ioda.m64_size)); in pnv_pci_is_m64()
DMakefile13 obj-$(CONFIG_PCI) += pci.o pci-ioda.o npu-dma.o pci-ioda-tce.o
Dnpu-dma.c117 pe = &phb->ioda.pe_array[pdn->pe_number]; in get_gpu_pci_dev_and_pe()
559 list_for_each_entry(pe, &phb->ioda.pe_list, list) in pnv_pci_npu_setup_iommu_groups()
576 list_for_each_entry(pe, &phb->ioda.pe_list, list) { in pnv_pci_npu_setup_iommu_groups()
Deeh-powernv.c374 edev->pe_config_addr = phb->ioda.pe_rmap[config_addr]; in pnv_eeh_probe()
1352 pnv_pe = &phb->ioda.pe_array[pe_no]; in pnv_eeh_get_pe()
Dpci.c613 pe_no = phb->ioda.reserved_pe_idx; in pnv_pci_config_check_eeh()