Home
last modified time | relevance | path

Searched refs:page_shift (Results 1 – 23 of 23) sorted by relevance

/arch/powerpc/include/asm/
Dultravisor.h50 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()
Dkvm_book3s_uvmem.h15 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
Diommu.h164 __u32 page_shift,
169 __u32 page_shift,
296 extern int iommu_tce_check_ioba(unsigned long page_shift,
299 extern int iommu_tce_check_gpa(unsigned long page_shift,
Dkvm_host.h201 u32 page_shift; member
396 u8 page_shift; member
Dkvm_ppc.h182 (iommu_tce_check_ioba((stt)->page_shift, (stt)->offset, \
/arch/powerpc/kvm/
Dbook3s_hv_uvmem.c508 unsigned long end, unsigned long page_shift, in __kvmppc_svm_page_out() argument
528 if (!kvmppc_gfn_is_uvmem_pfn(gpa >> page_shift, kvm, NULL)) in __kvmppc_svm_page_out()
560 ret = uv_page_out(kvm->arch.lpid, pfn << page_shift, in __kvmppc_svm_page_out()
561 gpa, 0, page_shift); in __kvmppc_svm_page_out()
580 unsigned long page_shift, in kvmppc_svm_page_out() argument
586 ret = __kvmppc_svm_page_out(vma, start, end, page_shift, kvm, gpa); in kvmppc_svm_page_out()
734 unsigned long page_shift, in kvmppc_svm_page_in() argument
771 ret = uv_page_in(kvm->arch.lpid, pfn << page_shift, in kvmppc_svm_page_in()
772 gpa, 0, page_shift); in kvmppc_svm_page_in()
869 unsigned long page_shift) in kvmppc_share_page() argument
[all …]
Dbook3s_64_vio.c135 if ((tbltmp->it_page_shift <= stt->page_shift) && in kvm_spapr_tce_attach_iommu_group()
137 stt->offset << stt->page_shift) && in kvm_spapr_tce_attach_iommu_group()
139 stt->size << stt->page_shift)) { in kvm_spapr_tce_attach_iommu_group()
288 if (!args->size || args->page_shift < 12 || args->page_shift > 34 || in kvm_vm_ioctl_create_spapr_tce()
289 (args->offset + args->size > (ULLONG_MAX >> args->page_shift))) in kvm_vm_ioctl_create_spapr_tce()
304 stt->page_shift = args->page_shift; in kvm_vm_ioctl_create_spapr_tce()
371 if (iommu_tce_check_gpa(stt->page_shift, gpa)) in kvmppc_tce_validate()
428 unsigned long subpages = 1ULL << (stt->page_shift - tbl->it_page_shift); in kvmppc_clear_tce()
429 unsigned long io_entry = entry << (stt->page_shift - tbl->it_page_shift); in kvmppc_clear_tce()
486 unsigned long subpages = 1ULL << (stt->page_shift - tbl->it_page_shift); in kvmppc_tce_iommu_unmap()
[all …]
Dbook3s_64_vio_hv.c113 if (iommu_tce_check_gpa(stt->page_shift, gpa)) in kvmppc_rm_tce_validate()
209 idx = (ioba >> stt->page_shift) - stt->offset; in kvmppc_rm_ioba_validate()
254 unsigned long subpages = 1ULL << (stt->page_shift - tbl->it_page_shift); in kvmppc_rm_clear_tce()
255 unsigned long io_entry = entry << (stt->page_shift - tbl->it_page_shift); in kvmppc_rm_clear_tce()
316 unsigned long subpages = 1ULL << (stt->page_shift - tbl->it_page_shift); in kvmppc_rm_tce_iommu_unmap()
378 unsigned long subpages = 1ULL << (stt->page_shift - tbl->it_page_shift); in kvmppc_rm_tce_iommu_map()
427 entry = ioba >> stt->page_shift; in kvmppc_rm_h_put_tce()
517 entry = ioba >> stt->page_shift; in kvmppc_rm_h_put_tce_indirect()
629 unsigned long entry = ioba >> stt->page_shift; in kvmppc_rm_h_stuff_tce()
646 for (i = 0; i < npages; ++i, ioba += (1ULL << stt->page_shift)) in kvmppc_rm_h_stuff_tce()
[all …]
Dbook3s_pr.c1956 info->sps[0].page_shift = 12; in kvm_vm_ioctl_get_smmu_info_pr()
1958 info->sps[0].enc[0].page_shift = 12; in kvm_vm_ioctl_get_smmu_info_pr()
1974 info->sps[i].page_shift = 16; in kvm_vm_ioctl_get_smmu_info_pr()
1976 info->sps[i].enc[0].page_shift = 16; in kvm_vm_ioctl_get_smmu_info_pr()
1982 info->sps[i].page_shift = 24; in kvm_vm_ioctl_get_smmu_info_pr()
1984 info->sps[i].enc[0].page_shift = 24; in kvm_vm_ioctl_get_smmu_info_pr()
Dbook3s_64_mmu_radix.c199 gpte->page_shift = offset; in kvmppc_mmu_walk_radix_tree()
1194 info->geometries[0].page_shift = 12; in kvmhv_get_rmmu_info()
1199 info->geometries[1].page_shift = 16; in kvmhv_get_rmmu_info()
Dbook3s_hv_nested.c1363 l1_shift = gpte.page_shift; in __kvmhv_nested_page_fault()
Dbook3s_hv.c4458 (*sps)->page_shift = shift; in kvmppc_add_seg_page_size()
4460 (*sps)->enc[0].page_shift = shift; in kvmppc_add_seg_page_size()
4468 (*sps)->enc[1].page_shift = 24; in kvmppc_add_seg_page_size()
Dpowerpc.c2369 create_tce_64.page_shift = IOMMU_PAGE_SHIFT_4K; in kvm_arch_vm_ioctl()
/arch/powerpc/platforms/powernv/
Dpci-ioda-tce.c50 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()
292 __u32 page_shift, __u64 window_size, __u32 levels, in pnv_pci_ioda2_table_alloc_pages() argument
299 unsigned int entries_shift = window_shift - page_shift; in pnv_pci_ioda2_table_alloc_pages()
315 if ((level_shift - 3) * levels + page_shift >= 55) in pnv_pci_ioda2_table_alloc_pages()
349 page_shift); in pnv_pci_ioda2_table_alloc_pages()
Dpci.h304 extern unsigned long pnv_pci_ioda2_get_table_size(__u32 page_shift,
339 __u32 page_shift, __u64 window_size, __u32 levels,
350 u64 dma_offset, unsigned int page_shift);
Dnpu-dma.c277 int num, __u32 page_shift, __u64 window_size, __u32 levels, in pnv_npu_peers_create_table_userspace() argument
289 &npucomp->pe[0]->table_group, num, page_shift, in pnv_npu_peers_create_table_userspace()
Dpci-ioda.c1847 int num, __u32 page_shift, __u64 window_size, __u32 levels, in pnv_pci_ioda2_create_table() argument
1864 bus_offset, page_shift, window_size, in pnv_pci_ioda2_create_table()
1982 unsigned long pnv_pci_ioda2_get_table_size(__u32 page_shift, in pnv_pci_ioda2_get_table_size() argument
1987 unsigned entries_shift = window_shift - page_shift; in pnv_pci_ioda2_get_table_size()
2016 int num, __u32 page_shift, __u64 window_size, __u32 levels, in pnv_pci_ioda2_create_table_userspace() argument
2020 num, page_shift, window_size, levels, true, ptbl); in pnv_pci_ioda2_create_table_userspace()
2024 page_shift, window_size, levels); in pnv_pci_ioda2_create_table_userspace()
/arch/powerpc/platforms/pseries/
Diommu.c989 struct ddw_create_response *create, int page_shift, in create_ddw() argument
1013 BUID_LO(buid), page_shift, window_shift); in create_ddw()
1019 BUID_LO(buid), page_shift, window_shift, ret, create->liobn, in create_ddw()
1108 int page_shift; in enable_ddw() local
1194 page_shift = 24; /* 16MB */ in enable_ddw()
1196 page_shift = 16; /* 64kB */ in enable_ddw()
1198 page_shift = 12; /* 4kB */ in enable_ddw()
1207 if (query.largest_available_block < (max_addr >> page_shift)) { in enable_ddw()
1210 1ULL << page_shift); in enable_ddw()
1229 ret = create_ddw(dev, ddw_avail, &create, page_shift, len); in enable_ddw()
[all …]
/arch/powerpc/mm/book3s64/
Dradix_tlb.c892 unsigned int page_shift = mmu_psize_defs[mmu_virtual_psize].shift; in __radix__flush_tlb_range() local
893 unsigned long page_size = 1UL << page_shift; in __radix__flush_tlb_range()
894 unsigned long nr_pages = (end - start) >> page_shift; in __radix__flush_tlb_range()
1081 unsigned int page_shift = mmu_psize_defs[psize].shift; in __radix__flush_tlb_range_psize() local
1082 unsigned long page_size = 1UL << page_shift; in __radix__flush_tlb_range_psize()
1083 unsigned long nr_pages = (end - start) >> page_shift; in __radix__flush_tlb_range_psize()
Diommu_api.c154 pageshift = page_shift(compound_head(page)); in mm_iommu_do_alloc()
/arch/powerpc/kernel/
Diommu.c989 int iommu_tce_check_ioba(unsigned long page_shift, in iommu_tce_check_ioba() argument
993 unsigned long mask = (1UL << page_shift) - 1; in iommu_tce_check_ioba()
998 ioba >>= page_shift; in iommu_tce_check_ioba()
1009 int iommu_tce_check_gpa(unsigned long page_shift, unsigned long gpa) in iommu_tce_check_gpa() argument
1011 unsigned long mask = (1UL << page_shift) - 1; in iommu_tce_check_gpa()
/arch/powerpc/include/uapi/asm/
Dkvm.h349 __u32 page_shift; member
439 __u8 page_shift; member
/arch/powerpc/platforms/cell/
Diommu.c318 unsigned long gap_size, unsigned long page_shift) in cell_iommu_alloc_ptab() argument
327 pages_per_segment = 1ull << IO_PAGENO_BITS(page_shift); in cell_iommu_alloc_ptab()
351 switch (page_shift) { in cell_iommu_alloc_ptab()