• Home
  • Raw
  • Download

Lines Matching refs:batch

18 	struct mmu_gather_batch *batch;  in tlb_next_batch()  local
20 batch = tlb->active; in tlb_next_batch()
21 if (batch->next) { in tlb_next_batch()
22 tlb->active = batch->next; in tlb_next_batch()
29 batch = (void *)__get_free_pages(GFP_NOWAIT | __GFP_NOWARN, 0); in tlb_next_batch()
30 if (!batch) in tlb_next_batch()
34 batch->next = NULL; in tlb_next_batch()
35 batch->nr = 0; in tlb_next_batch()
36 batch->max = MAX_GATHER_BATCH; in tlb_next_batch()
38 tlb->active->next = batch; in tlb_next_batch()
39 tlb->active = batch; in tlb_next_batch()
46 struct mmu_gather_batch *batch; in tlb_batch_pages_flush() local
48 for (batch = &tlb->local; batch && batch->nr; batch = batch->next) { in tlb_batch_pages_flush()
49 free_pages_and_swap_cache(batch->pages, batch->nr); in tlb_batch_pages_flush()
50 batch->nr = 0; in tlb_batch_pages_flush()
57 struct mmu_gather_batch *batch, *next; in tlb_batch_list_free() local
59 for (batch = tlb->local.next; batch; batch = next) { in tlb_batch_list_free()
60 next = batch->next; in tlb_batch_list_free()
61 free_pages((unsigned long)batch, 0); in tlb_batch_list_free()
68 struct mmu_gather_batch *batch; in __tlb_remove_page_size() local
76 batch = tlb->active; in __tlb_remove_page_size()
81 batch->pages[batch->nr++] = page; in __tlb_remove_page_size()
82 if (batch->nr == batch->max) { in __tlb_remove_page_size()
85 batch = tlb->active; in __tlb_remove_page_size()
87 VM_BUG_ON_PAGE(batch->nr > batch->max, page); in __tlb_remove_page_size()
96 static void __tlb_remove_table_free(struct mmu_table_batch *batch) in __tlb_remove_table_free() argument
100 for (i = 0; i < batch->nr; i++) in __tlb_remove_table_free()
101 __tlb_remove_table(batch->tables[i]); in __tlb_remove_table_free()
103 free_page((unsigned long)batch); in __tlb_remove_table_free()
159 static void tlb_remove_table_free(struct mmu_table_batch *batch) in tlb_remove_table_free() argument
161 call_rcu(&batch->rcu, tlb_remove_table_rcu); in tlb_remove_table_free()
166 static void tlb_remove_table_free(struct mmu_table_batch *batch) in tlb_remove_table_free() argument
168 __tlb_remove_table_free(batch); in tlb_remove_table_free()
196 struct mmu_table_batch **batch = &tlb->batch; in tlb_table_flush() local
198 if (*batch) { in tlb_table_flush()
200 tlb_remove_table_free(*batch); in tlb_table_flush()
201 *batch = NULL; in tlb_table_flush()
207 struct mmu_table_batch **batch = &tlb->batch; in tlb_remove_table() local
209 if (*batch == NULL) { in tlb_remove_table()
210 *batch = (struct mmu_table_batch *)__get_free_page(GFP_NOWAIT | __GFP_NOWARN); in tlb_remove_table()
211 if (*batch == NULL) { in tlb_remove_table()
216 (*batch)->nr = 0; in tlb_remove_table()
219 (*batch)->tables[(*batch)->nr++] = table; in tlb_remove_table()
220 if ((*batch)->nr == MAX_TABLE_BATCH) in tlb_remove_table()
226 tlb->batch = NULL; in tlb_table_init()