Lines Matching refs:batch
52 struct ppc64_tlb_batch *batch = &__get_cpu_var(ppc64_tlb_batch); in hpte_need_flush() local
59 i = batch->index; in hpte_need_flush()
101 if (!batch->active) { in hpte_need_flush()
116 if (i != 0 && (mm != batch->mm || batch->psize != psize || in hpte_need_flush()
117 batch->ssize != ssize)) { in hpte_need_flush()
118 __flush_tlb_pending(batch); in hpte_need_flush()
122 batch->mm = mm; in hpte_need_flush()
123 batch->psize = psize; in hpte_need_flush()
124 batch->ssize = ssize; in hpte_need_flush()
126 batch->pte[i] = rpte; in hpte_need_flush()
127 batch->vaddr[i] = vaddr; in hpte_need_flush()
128 batch->index = ++i; in hpte_need_flush()
130 __flush_tlb_pending(batch); in hpte_need_flush()
140 void __flush_tlb_pending(struct ppc64_tlb_batch *batch) in __flush_tlb_pending() argument
145 i = batch->index; in __flush_tlb_pending()
147 if (cpus_equal(batch->mm->cpu_vm_mask, tmp)) in __flush_tlb_pending()
150 flush_hash_page(batch->vaddr[0], batch->pte[0], in __flush_tlb_pending()
151 batch->psize, batch->ssize, local); in __flush_tlb_pending()
154 batch->index = 0; in __flush_tlb_pending()