Lines Matching refs:batch
44 struct ppc64_tlb_batch *batch = &get_cpu_var(ppc64_tlb_batch); in hpte_need_flush() local
51 i = batch->index; in hpte_need_flush()
103 if (!batch->active) { in hpte_need_flush()
119 if (i != 0 && (mm != batch->mm || batch->psize != psize || in hpte_need_flush()
120 batch->ssize != ssize)) { in hpte_need_flush()
121 __flush_tlb_pending(batch); in hpte_need_flush()
125 batch->mm = mm; in hpte_need_flush()
126 batch->psize = psize; in hpte_need_flush()
127 batch->ssize = ssize; in hpte_need_flush()
129 batch->pte[i] = rpte; in hpte_need_flush()
130 batch->vpn[i] = vpn; in hpte_need_flush()
131 batch->index = ++i; in hpte_need_flush()
133 __flush_tlb_pending(batch); in hpte_need_flush()
144 void __flush_tlb_pending(struct ppc64_tlb_batch *batch) in __flush_tlb_pending() argument
148 i = batch->index; in __flush_tlb_pending()
149 local = mm_is_thread_local(batch->mm); in __flush_tlb_pending()
151 flush_hash_page(batch->vpn[0], batch->pte[0], in __flush_tlb_pending()
152 batch->psize, batch->ssize, local); in __flush_tlb_pending()
155 batch->index = 0; in __flush_tlb_pending()