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()
80 base = (unsigned long) mm->context.tsb_block[MM_TSB_BASE].tsb; in flush_tsb_user()
87 if (tb->huge && mm->context.tsb_block[MM_TSB_HUGE].tsb) { in flush_tsb_user()
88 base = (unsigned long) mm->context.tsb_block[MM_TSB_HUGE].tsb; in flush_tsb_user()
105 base = (unsigned long) mm->context.tsb_block[MM_TSB_BASE].tsb; in flush_tsb_user_page()
112 if (huge && mm->context.tsb_block[MM_TSB_HUGE].tsb) { in flush_tsb_user_page()
113 base = (unsigned long) mm->context.tsb_block[MM_TSB_HUGE].tsb; in flush_tsb_user_page()
137 tsb_bytes / sizeof(struct tsb); in setup_tsb_params()
153 tsb_paddr = __pa(mm->context.tsb_block[tsb_idx].tsb); in setup_tsb_params()
309 unsigned long num_ents = (new_size / sizeof(struct tsb)); in tsb_size_to_rss_limit()
337 struct tsb *old_tsb, *new_tsb; in tsb_grow()
369 if (mm->context.tsb_block[tsb_index].tsb == NULL && in tsb_grow()
380 if (mm->context.tsb_block[tsb_index].tsb != NULL) in tsb_grow()
412 old_tsb = mm->context.tsb_block[tsb_index].tsb; in tsb_grow()
416 sizeof(struct tsb)); in tsb_grow()
448 mm->context.tsb_block[tsb_index].tsb = new_tsb; in tsb_grow()
495 mm->context.tsb_block[i].tsb = NULL; in init_new_context()
507 if (unlikely(!mm->context.tsb_block[MM_TSB_BASE].tsb)) in init_new_context()
517 if (!tp->tsb) in tsb_destroy_one()
520 kmem_cache_free(tsb_caches[cache_index], tp->tsb); in tsb_destroy_one()
521 tp->tsb = NULL; in tsb_destroy_one()