Lines Matching defs:batch
79 struct pte_freelist_batch *batch =
83 for (i = 0; i < batch->index; i++)
84 pgtable_free(batch->tables[i]);
86 free_page((unsigned long)batch);
89 static void pte_free_submit(struct pte_freelist_batch *batch)
91 INIT_RCU_HEAD(&batch->rcu);
92 call_rcu(&batch->rcu, pte_free_rcu_callback);
125 * immediately or will batch it up if the current CPU has an active
126 * batch on it.
133 struct ppc64_tlb_batch *batch = &__get_cpu_var(ppc64_tlb_batch);
139 i = batch->index;
173 * Check if we have an active batch on this CPU. If not, just
178 if (!batch->active) {
184 * This can happen when we are in the middle of a TLB batch and
187 * up scanning and resetting referenced bits then our batch context
191 * batch
193 if (i != 0 && (mm != batch->mm || batch->psize != psize)) {
194 __flush_tlb_pending(batch);
198 batch->mm = mm;
199 batch->psize = psize;
201 batch->pte[i] = rpte;
202 batch->vaddr[i] = vaddr;
203 batch->index = ++i;
205 __flush_tlb_pending(batch);
209 * This function is called when terminating an mmu batch or when a batch
211 * in a batch.
215 void __flush_tlb_pending(struct ppc64_tlb_batch *batch)
220 i = batch->index;
222 if (cpus_equal(batch->mm->cpu_vm_mask, tmp))
225 flush_hash_page(batch->vaddr[0], batch->pte[0],
226 batch->psize, local);
229 batch->index = 0;