Lines Matching defs:tsbinfo
8686 struct tsb_info *tsbinfo;
8811 for (tsbinfo = sfmmup->sfmmu_tsb; tsbinfo != NULL;
8812 tsbinfo = tsbinfo->tsb_next) {
8813 if (tsbinfo->tsb_flags & TSB_SWAPPED)
8815 if (tsbinfo->tsb_flags & TSB_RELOC_FLAG) {
8816 tsbinfo->tsb_flags |=
8821 sfmmu_inv_tsb(tsbinfo->tsb_va,
8822 TSB_BYTES(tsbinfo->tsb_szc));
9816 * something to this tsbinfo/TSB
11570 * Loop over all tsbinfo's replacing them with ones that actually have
11603 * SWAPPED tsbinfo structures lying around.
12535 sfmmu_tsb_pre_relocator(caddr_t va, uint_t tsbsz, uint_t flags, void *tsbinfo)
12537 struct tsb_info *tsbinfop = (struct tsb_info *)tsbinfo;
12547 * be a shared hat, then set SCD's tsbinfo's flag.
12549 * its private tsbinfo's flag.
12627 void *tsbinfo, pfn_t newpfn)
12630 struct tsb_info *tsbinfop = (struct tsb_info *)tsbinfo;
12695 sfmmu_tsb_free(struct tsb_info *tsbinfo)
12697 caddr_t tsbva = tsbinfo->tsb_va;
12698 uint_t tsb_size = TSB_BYTES(tsbinfo->tsb_szc);
12699 struct kmem_cache *kmem_cachep = tsbinfo->tsb_cache;
12700 vmem_t *vmp = tsbinfo->tsb_vmp;
12706 if (tsbinfo->tsb_cache != sfmmu_tsb8k_cache) {
12721 hat_delete_callback(tsbva, (uint_t)tsb_size, (void *)tsbinfo,
12731 tsbinfo->tsb_va = (caddr_t)0xbad00bad;
12736 sfmmu_tsbinfo_free(struct tsb_info *tsbinfo)
12738 if ((tsbinfo->tsb_flags & TSB_SWAPPED) == 0) {
12739 sfmmu_tsb_free(tsbinfo);
12741 kmem_cache_free(sfmmu_tsbinfo_cache, tsbinfo);
12746 * Setup all the references to physical memory for this tsbinfo.
12750 sfmmu_tsbinfo_setup_phys(struct tsb_info *tsbinfo, pfn_t pfn)
12753 ASSERT(pfn == va_to_pfn(tsbinfo->tsb_va));
12756 if (tsbinfo->tsb_szc == 0) {
12757 sfmmu_memtte(&tsbinfo->tsb_tte, pfn,
12767 sfmmu_memtte(&tsbinfo->tsb_tte, pfn & ~tsb_slab_mask,
12770 tsbinfo->tsb_pa = ptob(pfn);
12772 TTE_SET_LOCKED(&tsbinfo->tsb_tte); /* lock the tte into dtlb */
12773 TTE_SET_MOD(&tsbinfo->tsb_tte); /* enable writes */
12775 ASSERT(TTE_IS_PRIVILEGED(&tsbinfo->tsb_tte));
12776 ASSERT(TTE_IS_LOCKED(&tsbinfo->tsb_tte));
12778 tsbinfo->tsb_pa = ptob(pfn);
12794 sfmmu_init_tsbinfo(struct tsb_info *tsbinfo, int tteszmask,
12821 tsbinfo->tsb_sfmmu = sfmmup;
12824 * If not allocating a TSB, set up the tsbinfo, set TSB_SWAPPED, and
12828 tsbinfo->tsb_szc = tsbcode;
12829 tsbinfo->tsb_ttesz_mask = tteszmask;
12830 tsbinfo->tsb_va = (caddr_t)0xbadbadbeef;
12831 tsbinfo->tsb_pa = -1;
12832 tsbinfo->tsb_tte.ll = 0;
12833 tsbinfo->tsb_next = NULL;
12834 tsbinfo->tsb_flags = TSB_SWAPPED;
12835 tsbinfo->tsb_cache = NULL;
12836 tsbinfo->tsb_vmp = NULL;
12915 tsbinfo->tsb_cache = kmem_cachep;
12916 tsbinfo->tsb_vmp = vmp;
12923 kmem_cachep = tsbinfo->tsb_cache;
12937 cbflags, (void *)tsbinfo, &pfn, NULL);
12962 tsbinfo->tsb_va = vaddr;
12963 tsbinfo->tsb_szc = tsbcode;
12964 tsbinfo->tsb_ttesz_mask = tteszmask;
12965 tsbinfo->tsb_next = NULL;
12966 tsbinfo->tsb_flags = 0;
12968 sfmmu_tsbinfo_setup_phys(tsbinfo, pfn);