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

/linux-4.4.14/arch/powerpc/platforms/pseries/
H A Diommu.c158 __be64 *tcep, *tces; tce_build_pSeries() local
166 tces = tcep = ((__be64 *)tbl->it_base) + index; tce_build_pSeries()
171 *tcep = cpu_to_be64(proto_tce | (rpn & TCE_RPN_MASK) << TCE_RPN_SHIFT); tce_build_pSeries()
174 tcep++; tce_build_pSeries()
178 tce_invalidate_pSeries_sw(tbl, tces, tcep - 1); tce_build_pSeries()
185 __be64 *tcep, *tces; tce_free_pSeries() local
187 tces = tcep = ((__be64 *)tbl->it_base) + index; tce_free_pSeries()
190 *(tcep++) = 0; tce_free_pSeries()
193 tce_invalidate_pSeries_sw(tbl, tces, tcep - 1); tce_free_pSeries()
198 __be64 *tcep; tce_get_pseries() local
200 tcep = ((__be64 *)tbl->it_base) + index; tce_get_pseries()
202 return be64_to_cpu(*tcep); tce_get_pseries()
258 __be64 *tcep; tce_buildmulti_pSeriesLP() local
270 local_irq_save(flags); /* to protect tcep and the page behind it */ tce_buildmulti_pSeriesLP()
272 tcep = __this_cpu_read(tce_page); tce_buildmulti_pSeriesLP()
277 if (!tcep) { tce_buildmulti_pSeriesLP()
278 tcep = (__be64 *)__get_free_page(GFP_ATOMIC); tce_buildmulti_pSeriesLP()
280 if (!tcep) { tce_buildmulti_pSeriesLP()
285 __this_cpu_write(tce_page, tcep); tce_buildmulti_pSeriesLP()
302 tcep[l] = cpu_to_be64(proto_tce | (rpn & TCE_RPN_MASK) << TCE_RPN_SHIFT); tce_buildmulti_pSeriesLP()
308 (u64)__pa(tcep), tce_buildmulti_pSeriesLP()
328 printk("\ttce[0] val = 0x%llx\n", tcep[0]); tce_buildmulti_pSeriesLP()
468 __be64 *tcep; tce_setrange_multi_pSeriesLP() local
473 local_irq_disable(); /* to protect tcep and the page behind it */ tce_setrange_multi_pSeriesLP()
474 tcep = __this_cpu_read(tce_page); tce_setrange_multi_pSeriesLP()
476 if (!tcep) { tce_setrange_multi_pSeriesLP()
477 tcep = (__be64 *)__get_free_page(GFP_ATOMIC); tce_setrange_multi_pSeriesLP()
478 if (!tcep) { tce_setrange_multi_pSeriesLP()
482 __this_cpu_write(tce_page, tcep); tce_setrange_multi_pSeriesLP()
511 tcep[l] = cpu_to_be64(proto_tce | next); tce_setrange_multi_pSeriesLP()
517 (u64)__pa(tcep), tce_setrange_multi_pSeriesLP()

Completed in 43 milliseconds