/arch/powerpc/include/asm/ |
D | ultravisor.h | 50 u64 page_shift) in uv_page_in() argument 53 page_shift); in uv_page_in() 57 u64 page_shift) in uv_page_out() argument 60 page_shift); in uv_page_out() 75 static inline int uv_page_inval(u64 lpid, u64 gpa, u64 page_shift) in uv_page_inval() argument 77 return ucall_norets(UV_PAGE_INVAL, lpid, gpa, page_shift); in uv_page_inval()
|
D | kvm_book3s_uvmem.h | 15 unsigned long page_shift); 19 unsigned long page_shift); 54 unsigned long flags, unsigned long page_shift) in kvmppc_h_svm_page_in() argument 61 unsigned long flags, unsigned long page_shift) in kvmppc_h_svm_page_out() argument
|
D | iommu.h | 166 __u32 page_shift, 171 __u32 page_shift, 289 extern int iommu_tce_check_ioba(unsigned long page_shift, 292 extern int iommu_tce_check_gpa(unsigned long page_shift,
|
D | kvm_host.h | 195 u32 page_shift; member 387 u8 page_shift; member
|
D | kvm_ppc.h | 187 (iommu_tce_check_ioba((stt)->page_shift, (stt)->offset, \
|
/arch/powerpc/kvm/ |
D | book3s_64_vio.c | 149 if ((tbltmp->it_page_shift <= stt->page_shift) && in kvm_spapr_tce_attach_iommu_group() 151 stt->offset << stt->page_shift) && in kvm_spapr_tce_attach_iommu_group() 153 stt->size << stt->page_shift)) { in kvm_spapr_tce_attach_iommu_group() 308 if (!args->size || args->page_shift < 12 || args->page_shift > 34 || in kvm_vm_ioctl_create_spapr_tce() 309 (args->offset + args->size > (ULLONG_MAX >> args->page_shift))) in kvm_vm_ioctl_create_spapr_tce() 323 stt->page_shift = args->page_shift; in kvm_vm_ioctl_create_spapr_tce() 390 if (iommu_tce_check_gpa(stt->page_shift, gpa)) in kvmppc_tce_validate() 447 unsigned long subpages = 1ULL << (stt->page_shift - tbl->it_page_shift); in kvmppc_clear_tce() 448 unsigned long io_entry = entry << (stt->page_shift - tbl->it_page_shift); in kvmppc_clear_tce() 505 unsigned long subpages = 1ULL << (stt->page_shift - tbl->it_page_shift); in kvmppc_tce_iommu_unmap() [all …]
|
D | book3s_hv_uvmem.c | 515 unsigned long end, unsigned long page_shift, in __kvmppc_svm_page_out() argument 536 if (!kvmppc_gfn_is_uvmem_pfn(gpa >> page_shift, kvm, NULL)) in __kvmppc_svm_page_out() 568 ret = uv_page_out(kvm->arch.lpid, pfn << page_shift, in __kvmppc_svm_page_out() 569 gpa, 0, page_shift); in __kvmppc_svm_page_out() 588 unsigned long page_shift, in kvmppc_svm_page_out() argument 595 ret = __kvmppc_svm_page_out(vma, start, end, page_shift, kvm, gpa, in kvmppc_svm_page_out() 743 unsigned long page_shift, in kvmppc_svm_page_in() argument 780 ret = uv_page_in(kvm->arch.lpid, pfn << page_shift, in kvmppc_svm_page_in() 781 gpa, 0, page_shift); in kvmppc_svm_page_in() 878 unsigned long page_shift) in kvmppc_share_page() argument [all …]
|
D | book3s_pr.c | 1944 info->sps[0].page_shift = 12; in kvm_vm_ioctl_get_smmu_info_pr() 1946 info->sps[0].enc[0].page_shift = 12; in kvm_vm_ioctl_get_smmu_info_pr() 1962 info->sps[i].page_shift = 16; in kvm_vm_ioctl_get_smmu_info_pr() 1964 info->sps[i].enc[0].page_shift = 16; in kvm_vm_ioctl_get_smmu_info_pr() 1970 info->sps[i].page_shift = 24; in kvm_vm_ioctl_get_smmu_info_pr() 1972 info->sps[i].enc[0].page_shift = 24; in kvm_vm_ioctl_get_smmu_info_pr()
|
D | book3s_64_mmu_radix.c | 207 gpte->page_shift = offset; in kvmppc_mmu_walk_radix_tree() 1223 info->geometries[0].page_shift = 12; in kvmhv_get_rmmu_info() 1228 info->geometries[1].page_shift = 16; in kvmhv_get_rmmu_info()
|
D | book3s_hv_nested.c | 1547 l1_shift = gpte.page_shift; in __kvmhv_nested_page_fault()
|
D | book3s_hv.c | 4927 (*sps)->page_shift = shift; in kvmppc_add_seg_page_size() 4929 (*sps)->enc[0].page_shift = shift; in kvmppc_add_seg_page_size() 4937 (*sps)->enc[1].page_shift = 24; in kvmppc_add_seg_page_size()
|
D | powerpc.c | 2425 create_tce_64.page_shift = IOMMU_PAGE_SHIFT_4K; in kvm_arch_vm_ioctl()
|
/arch/powerpc/platforms/powernv/ |
D | pci-ioda-tce.c | 50 u64 dma_offset, unsigned int page_shift) in pnv_pci_setup_iommu_table() argument 54 tbl->it_page_shift = page_shift; in pnv_pci_setup_iommu_table() 291 __u32 page_shift, __u64 window_size, __u32 levels, in pnv_pci_ioda2_table_alloc_pages() argument 298 unsigned int entries_shift = window_shift - page_shift; in pnv_pci_ioda2_table_alloc_pages() 314 if ((level_shift - 3) * levels + page_shift >= 55) in pnv_pci_ioda2_table_alloc_pages() 348 page_shift); in pnv_pci_ioda2_table_alloc_pages()
|
D | pci.h | 286 extern unsigned long pnv_pci_ioda2_get_table_size(__u32 page_shift, 315 __u32 page_shift, __u64 window_size, __u32 levels, 326 u64 dma_offset, unsigned int page_shift);
|
D | pci-ioda.c | 1345 int num, __u32 page_shift, __u64 window_size, __u32 levels, in pnv_pci_ioda2_create_table() argument 1362 bus_offset, page_shift, window_size, in pnv_pci_ioda2_create_table() 1481 unsigned long pnv_pci_ioda2_get_table_size(__u32 page_shift, in pnv_pci_ioda2_get_table_size() argument 1486 unsigned entries_shift = window_shift - page_shift; in pnv_pci_ioda2_get_table_size() 1515 int num, __u32 page_shift, __u64 window_size, __u32 levels, in pnv_pci_ioda2_create_table_userspace() argument 1519 num, page_shift, window_size, levels, true, ptbl); in pnv_pci_ioda2_create_table_userspace() 1523 page_shift, window_size, levels); in pnv_pci_ioda2_create_table_userspace()
|
/arch/powerpc/platforms/pseries/ |
D | iommu.c | 526 unsigned long window_size, unsigned long page_shift, in iommu_table_setparms_common() argument 531 tbl->it_offset = win_addr >> page_shift; in iommu_table_setparms_common() 532 tbl->it_size = window_size >> page_shift; in iommu_table_setparms_common() 533 tbl->it_page_shift = page_shift; in iommu_table_setparms_common() 1141 struct ddw_create_response *create, int page_shift, in create_ddw() argument 1165 BUID_LO(buid), page_shift, window_shift); in create_ddw() 1171 BUID_LO(buid), page_shift, window_shift, ret, create->liobn, in create_ddw() 1261 u32 page_shift, u32 window_shift) in ddw_property_create() argument 1283 ddwprop->tce_shift = cpu_to_be32(page_shift); in ddw_property_create() 1306 int page_shift; in enable_ddw() local [all …]
|
/arch/powerpc/kernel/ |
D | iommu.c | 1046 int iommu_tce_check_ioba(unsigned long page_shift, in iommu_tce_check_ioba() argument 1050 unsigned long mask = (1UL << page_shift) - 1; in iommu_tce_check_ioba() 1055 ioba >>= page_shift; in iommu_tce_check_ioba() 1066 int iommu_tce_check_gpa(unsigned long page_shift, unsigned long gpa) in iommu_tce_check_gpa() argument 1068 unsigned long mask = (1UL << page_shift) - 1; in iommu_tce_check_gpa() 1194 static unsigned long spapr_tce_get_table_size(__u32 page_shift, in spapr_tce_get_table_size() argument 1201 size = window_size >> (page_shift - 3); in spapr_tce_get_table_size() 1206 __u32 page_shift, __u64 window_size, __u32 levels, in spapr_tce_create_table() argument 1214 if (tbl->it_page_shift != page_shift || in spapr_tce_create_table() 1215 tbl->it_size != (window_size >> page_shift) || in spapr_tce_create_table()
|
/arch/powerpc/mm/book3s64/ |
D | radix_tlb.c | 1022 unsigned int page_shift = mmu_psize_defs[mmu_virtual_psize].shift; in __radix__flush_tlb_range() local 1023 unsigned long page_size = 1UL << page_shift; in __radix__flush_tlb_range() 1024 unsigned long nr_pages = (end - start) >> page_shift; in __radix__flush_tlb_range() 1240 unsigned int page_shift = mmu_psize_defs[psize].shift; in __radix__flush_tlb_range_psize() local 1241 unsigned long page_size = 1UL << page_shift; in __radix__flush_tlb_range_psize() 1242 unsigned long nr_pages = (end - start) >> page_shift; in __radix__flush_tlb_range_psize()
|
D | iommu_api.c | 155 pageshift = page_shift(compound_head(page)); in mm_iommu_do_alloc()
|
/arch/powerpc/include/uapi/asm/ |
D | kvm.h | 349 __u32 page_shift; member 439 __u8 page_shift; member
|
/arch/powerpc/platforms/cell/ |
D | iommu.c | 320 unsigned long gap_size, unsigned long page_shift) in cell_iommu_alloc_ptab() argument 329 pages_per_segment = 1ull << IO_PAGENO_BITS(page_shift); in cell_iommu_alloc_ptab() 353 switch (page_shift) { in cell_iommu_alloc_ptab()
|