Lines Matching refs:tceshift
124 const unsigned long tceshift = tbl->it_page_shift;
136 rpn = __pa(uaddr) >> tceshift;
137 *tcep = cpu_to_be64(proto_tce | rpn << tceshift);
168 static int tce_build_pSeriesLP(unsigned long liobn, long tcenum, long tceshift,
179 rpn = __pa(uaddr) >> tceshift;
185 tce = proto_tce | rpn << tceshift;
186 rc = plpar_tce_put((u64)liobn, (u64)tcenum << tceshift, tce);
190 tce_free_pSeriesLP(liobn, tcenum_start, tceshift,
224 const unsigned long tceshift = tbl->it_page_shift;
228 tceshift, npages, uaddr,
245 tceshift,
251 rpn = __pa(uaddr) >> tceshift;
265 tcep[l] = cpu_to_be64(proto_tce | rpn << tceshift);
270 (u64)tcenum << tceshift,
297 static void tce_free_pSeriesLP(unsigned long liobn, long tcenum, long tceshift,
303 rc = plpar_tce_put((u64)liobn, (u64)tcenum << tceshift, 0);
450 unsigned long tceshift = be32_to_cpu(maprange->tce_shift);
453 unsigned long tcenum = dmastart >> tceshift;
454 unsigned long npages = num_pfn << PAGE_SHIFT >> tceshift;
458 tcenum, tceshift, npages, (unsigned long) uaddr,