Searched refs:tcep (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/arch/powerpc/platforms/pseries/
H A Diommu.c89 __be64 *tcep, *tces; tce_build_pSeries() local
97 tces = tcep = ((__be64 *)tbl->it_base) + index; tce_build_pSeries()
102 *tcep = cpu_to_be64(proto_tce | (rpn & TCE_RPN_MASK) << TCE_RPN_SHIFT); tce_build_pSeries()
105 tcep++; tce_build_pSeries()
109 tce_invalidate_pSeries_sw(tbl, tces, tcep - 1); tce_build_pSeries()
116 __be64 *tcep, *tces; tce_free_pSeries() local
118 tces = tcep = ((__be64 *)tbl->it_base) + index; tce_free_pSeries()
121 *(tcep++) = 0; tce_free_pSeries()
124 tce_invalidate_pSeries_sw(tbl, tces, tcep - 1); tce_free_pSeries()
129 __be64 *tcep; tce_get_pseries() local
131 tcep = ((__be64 *)tbl->it_base) + index; tce_get_pseries()
133 return be64_to_cpu(*tcep); tce_get_pseries()
189 __be64 *tcep; tce_buildmulti_pSeriesLP() local
201 local_irq_save(flags); /* to protect tcep and the page behind it */ tce_buildmulti_pSeriesLP()
203 tcep = __this_cpu_read(tce_page); tce_buildmulti_pSeriesLP()
208 if (!tcep) { tce_buildmulti_pSeriesLP()
209 tcep = (__be64 *)__get_free_page(GFP_ATOMIC); tce_buildmulti_pSeriesLP()
211 if (!tcep) { tce_buildmulti_pSeriesLP()
216 __this_cpu_write(tce_page, tcep); tce_buildmulti_pSeriesLP()
233 tcep[l] = cpu_to_be64(proto_tce | (rpn & TCE_RPN_MASK) << TCE_RPN_SHIFT); tce_buildmulti_pSeriesLP()
239 (u64)__pa(tcep), tce_buildmulti_pSeriesLP()
259 printk("\ttce[0] val = 0x%llx\n", tcep[0]); tce_buildmulti_pSeriesLP()
396 __be64 *tcep; tce_setrange_multi_pSeriesLP() local
401 local_irq_disable(); /* to protect tcep and the page behind it */ tce_setrange_multi_pSeriesLP()
402 tcep = __this_cpu_read(tce_page); tce_setrange_multi_pSeriesLP()
404 if (!tcep) { tce_setrange_multi_pSeriesLP()
405 tcep = (__be64 *)__get_free_page(GFP_ATOMIC); tce_setrange_multi_pSeriesLP()
406 if (!tcep) { tce_setrange_multi_pSeriesLP()
410 __this_cpu_write(tce_page, tcep); tce_setrange_multi_pSeriesLP()
439 tcep[l] = cpu_to_be64(proto_tce | next); tce_setrange_multi_pSeriesLP()
445 (u64)__pa(tcep), tce_setrange_multi_pSeriesLP()
/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dpci.c581 __be64 *tcep, *tces; pnv_tce_build() local
589 tces = tcep = ((__be64 *)tbl->it_base) + index - tbl->it_offset; pnv_tce_build()
593 *(tcep++) = cpu_to_be64(proto_tce | pnv_tce_build()
601 pnv_pci_ioda_tce_invalidate(tbl, tces, tcep - 1, rm); pnv_tce_build()
618 __be64 *tcep, *tces; pnv_tce_free() local
620 tces = tcep = ((__be64 *)tbl->it_base) + index - tbl->it_offset; pnv_tce_free()
623 *(tcep++) = cpu_to_be64(0); pnv_tce_free()
626 pnv_pci_ioda_tce_invalidate(tbl, tces, tcep - 1, rm); pnv_tce_free()

Completed in 154 milliseconds