Lines Matching refs:batch
37 * immediately or will batch it up if the current CPU has an active
38 * batch on it.
44 struct ppc64_tlb_batch *batch = &get_cpu_var(ppc64_tlb_batch);
51 i = batch->index;
100 * Check if we have an active batch on this CPU. If not, just
103 if (!batch->active) {
110 * This can happen when we are in the middle of a TLB batch and
113 * up scanning and resetting referenced bits then our batch context
117 * batch
119 if (i != 0 && (mm != batch->mm || batch->psize != psize ||
120 batch->ssize != ssize)) {
121 __flush_tlb_pending(batch);
125 batch->mm = mm;
126 batch->psize = psize;
127 batch->ssize = ssize;
129 batch->pte[i] = rpte;
130 batch->vpn[i] = vpn;
131 batch->index = ++i;
133 __flush_tlb_pending(batch);
138 * This function is called when terminating an mmu batch or when a batch
140 * in a batch.
144 void __flush_tlb_pending(struct ppc64_tlb_batch *batch)
148 i = batch->index;
149 local = mm_is_thread_local(batch->mm);
151 flush_hash_page(batch->vpn[0], batch->pte[0],
152 batch->psize, batch->ssize, local);
155 batch->index = 0;
163 * If there's a TLB batch pending, then we must flush it because the
200 * Note: Normally, we should only ever use a batch within a
232 * Note: Normally, we should only ever use a batch within a