/arch/powerpc/kvm/ |
D | book3s_64_vio_hv.c | 195 unsigned long ioba, unsigned long npages, bool clearing) in kvmppc_rm_ioba_validate() argument 198 unsigned long ret = kvmppc_ioba_validate(stt, ioba, npages); in kvmppc_rm_ioba_validate() 209 idx = (ioba >> stt->page_shift) - stt->offset; in kvmppc_rm_ioba_validate() 396 unsigned long ioba, unsigned long tce) in kvmppc_rm_h_put_tce() argument 415 ret = kvmppc_rm_ioba_validate(stt, ioba, 1, tce == 0); in kvmppc_rm_h_put_tce() 427 entry = ioba >> stt->page_shift; in kvmppc_rm_h_put_tce() 492 unsigned long liobn, unsigned long ioba, in kvmppc_rm_h_put_tce_indirect() argument 517 entry = ioba >> stt->page_shift; in kvmppc_rm_h_put_tce_indirect() 528 ret = kvmppc_rm_ioba_validate(stt, ioba, npages, false); in kvmppc_rm_h_put_tce_indirect() 605 unsigned long liobn, unsigned long ioba, in kvmppc_rm_h_stuff_tce() argument [all …]
|
D | book3s_64_vio.c | 562 unsigned long ioba, unsigned long tce) in kvmppc_h_put_tce() argument 577 ret = kvmppc_ioba_validate(stt, ioba, 1); in kvmppc_h_put_tce() 594 entry = ioba >> stt->page_shift; in kvmppc_h_put_tce() 621 unsigned long liobn, unsigned long ioba, in kvmppc_h_put_tce_indirect() argument 635 entry = ioba >> stt->page_shift; in kvmppc_h_put_tce_indirect() 646 ret = kvmppc_ioba_validate(stt, ioba, npages); in kvmppc_h_put_tce_indirect() 714 unsigned long liobn, unsigned long ioba, in kvmppc_h_stuff_tce() argument 725 ret = kvmppc_ioba_validate(stt, ioba, npages); in kvmppc_h_stuff_tce() 734 unsigned long entry = ioba >> stt->page_shift; in kvmppc_h_stuff_tce() 751 for (i = 0; i < npages; ++i, ioba += (1ULL << stt->page_shift)) in kvmppc_h_stuff_tce() [all …]
|
D | book3s_pr_papr.c | 288 unsigned long ioba = kvmppc_get_gpr(vcpu, 5); in kvmppc_h_pr_put_tce() local 292 rc = kvmppc_h_put_tce(vcpu, liobn, ioba, tce); in kvmppc_h_pr_put_tce() 302 unsigned long ioba = kvmppc_get_gpr(vcpu, 5); in kvmppc_h_pr_put_tce_indirect() local 307 rc = kvmppc_h_put_tce_indirect(vcpu, liobn, ioba, in kvmppc_h_pr_put_tce_indirect() 318 unsigned long ioba = kvmppc_get_gpr(vcpu, 5); in kvmppc_h_pr_stuff_tce() local 323 rc = kvmppc_h_stuff_tce(vcpu, liobn, ioba, tce_value, npages); in kvmppc_h_pr_stuff_tce()
|
/arch/powerpc/include/asm/ |
D | plpar_wrappers.h | 221 static inline long plpar_tce_get(unsigned long liobn, unsigned long ioba, in plpar_tce_get() argument 227 rc = plpar_hcall(H_GET_TCE, retbuf, liobn, ioba); in plpar_tce_get() 234 static inline long plpar_tce_put(unsigned long liobn, unsigned long ioba, in plpar_tce_put() argument 237 return plpar_hcall_norets(H_PUT_TCE, liobn, ioba, tceval); in plpar_tce_put() 241 unsigned long ioba, unsigned long page, unsigned long count) in plpar_tce_put_indirect() argument 243 return plpar_hcall_norets(H_PUT_TCE_INDIRECT, liobn, ioba, page, count); in plpar_tce_put_indirect() 246 static inline long plpar_tce_stuff(unsigned long liobn, unsigned long ioba, in plpar_tce_stuff() argument 249 return plpar_hcall_norets(H_STUFF_TCE, liobn, ioba, tceval, count); in plpar_tce_stuff()
|
D | iommu.h | 298 unsigned long ioba, unsigned long npages); 302 #define iommu_tce_clear_param_check(tbl, ioba, tce_value, npages) \ argument 305 (ioba), (npages)) || (tce_value)) 306 #define iommu_tce_put_param_check(tbl, ioba, gpa) \ argument 309 (ioba), 1) || \
|
D | kvm_ppc.h | 181 #define kvmppc_ioba_validate(stt, ioba, npages) \ argument 183 (stt)->size, (ioba), (npages)) ? \ 186 unsigned long ioba, unsigned long tce); 188 unsigned long liobn, unsigned long ioba, 191 unsigned long liobn, unsigned long ioba, 194 unsigned long ioba); 747 unsigned long ioba, unsigned long tce); 749 unsigned long liobn, unsigned long ioba, 752 unsigned long liobn, unsigned long ioba,
|
/arch/powerpc/kernel/ |
D | iommu.c | 991 unsigned long ioba, unsigned long npages) in iommu_tce_check_ioba() argument 995 if (ioba & mask) in iommu_tce_check_ioba() 998 ioba >>= page_shift; in iommu_tce_check_ioba() 999 if (ioba < offset) in iommu_tce_check_ioba() 1002 if ((ioba + 1) > (offset + size)) in iommu_tce_check_ioba()
|
/arch/mips/pci/ |
D | ops-tx3927.c | 169 tx3927_pcicptr->ioba = 0; in tx3927_pcic_setup()
|
/arch/mips/include/asm/txx9/ |
D | tx3927.h | 80 volatile unsigned long ioba; /* +10 */ member
|
/arch/powerpc/platforms/pseries/ |
D | iommu.c | 657 unsigned long ioba = (unsigned long) index << tbl->it_page_shift; in tce_exchange_pseries() local 664 rc = plpar_tce_get((u64)tbl->it_index, ioba, &oldtce); in tce_exchange_pseries() 666 rc = plpar_tce_put((u64)tbl->it_index, ioba, newtce); in tce_exchange_pseries()
|