Lines Matching refs:tsb
17 extern struct tsb swapper_tsb[KERNEL_TSB_NENTRIES];
42 struct tsb *ent = &swapper_tsb[hash]; in flush_tsb_kernel_range()
49 static void __flush_tsb_one_entry(unsigned long tsb, unsigned long v, in __flush_tsb_one_entry() argument
57 ent = tsb + (hash * sizeof(struct tsb)); in __flush_tsb_one_entry()
64 unsigned long tsb, unsigned long nentries) in __flush_tsb_one() argument
69 __flush_tsb_one_entry(tsb, tb->vaddrs[i], hash_shift, nentries); in __flush_tsb_one()
79 base = (unsigned long) mm->context.tsb_block[MM_TSB_BASE].tsb; in flush_tsb_user()
86 if (mm->context.tsb_block[MM_TSB_HUGE].tsb) { in flush_tsb_user()
87 base = (unsigned long) mm->context.tsb_block[MM_TSB_HUGE].tsb; in flush_tsb_user()
103 base = (unsigned long) mm->context.tsb_block[MM_TSB_BASE].tsb; in flush_tsb_user_page()
110 if (mm->context.tsb_block[MM_TSB_HUGE].tsb) { in flush_tsb_user_page()
111 base = (unsigned long) mm->context.tsb_block[MM_TSB_HUGE].tsb; in flush_tsb_user_page()
135 tsb_bytes / sizeof(struct tsb); in setup_tsb_params()
151 tsb_paddr = __pa(mm->context.tsb_block[tsb_idx].tsb); in setup_tsb_params()
307 unsigned long num_ents = (new_size / sizeof(struct tsb)); in tsb_size_to_rss_limit()
335 struct tsb *old_tsb, *new_tsb; in tsb_grow()
367 if (mm->context.tsb_block[tsb_index].tsb == NULL && in tsb_grow()
378 if (mm->context.tsb_block[tsb_index].tsb != NULL) in tsb_grow()
410 old_tsb = mm->context.tsb_block[tsb_index].tsb; in tsb_grow()
414 sizeof(struct tsb)); in tsb_grow()
446 mm->context.tsb_block[tsb_index].tsb = new_tsb; in tsb_grow()
493 mm->context.tsb_block[i].tsb = NULL; in init_new_context()
505 if (unlikely(!mm->context.tsb_block[MM_TSB_BASE].tsb)) in init_new_context()
515 if (!tp->tsb) in tsb_destroy_one()
518 kmem_cache_free(tsb_caches[cache_index], tp->tsb); in tsb_destroy_one()
519 tp->tsb = NULL; in tsb_destroy_one()