Lines Matching refs:sno

722       SECno sno = sector_search_order[i];  in find_TTEntry_from_hcode()  local
723 if (UNLIKELY(sno == INV_SNO)) in find_TTEntry_from_hcode()
726 const Sector* sec = &sectors[sno]; in find_TTEntry_from_hcode()
756 *from_sNo = sno; in find_TTEntry_from_hcode()
770 SECno i, sno; in is_in_the_main_TC() local
772 sno = sector_search_order[i]; in is_in_the_main_TC()
773 if (sno == INV_SNO) in is_in_the_main_TC()
775 if ((const UChar*)hcode >= (const UChar*)sectors[sno].tc in is_in_the_main_TC()
776 && (const UChar*)hcode <= (const UChar*)sectors[sno].tc_next in is_in_the_main_TC()
1306 SECno sno; in sanity_check_all_sectors() local
1309 for (sno = 0; sno < n_sectors; sno++) { in sanity_check_all_sectors()
1313 sec = &sectors[sno]; in sanity_check_all_sectors()
1422 static void initialiseSector ( SECno sno ) in initialiseSector() argument
1427 vg_assert(isValidSector(sno)); in initialiseSector()
1432 sec = &sectors[sno]; in initialiseSector()
1449 VG_(dmsg)("transtab: " "allocate sector %d\n", sno); in initialiseSector()
1471 add_in_empty_tt_list(sno, ei); in initialiseSector()
1497 sector_search_order[i] = sno; in initialiseSector()
1500 VG_(message)(Vg_DebugMsg, "TT/TC: initialise sector %d\n", sno); in initialiseSector()
1506 VG_(dmsg)("transtab: " "recycle sector %d\n", sno); in initialiseSector()
1521 sno); in initialiseSector()
1535 endness_host, sno, ei); in initialiseSector()
1541 add_in_empty_tt_list(sno, ei); in initialiseSector()
1547 sno); in initialiseSector()
1572 if (sector_search_order[ix] == sno) in initialiseSector()
1578 VG_(message)(Vg_DebugMsg, "TT/TC: recycle sector %d\n", sno); in initialiseSector()
1774 SECno i, sno; in VG_() local
1789 sno = sector_search_order[i]; in VG_()
1790 if (UNLIKELY(sno == INV_SNO)) in VG_()
1796 tti = sectors[sno].htt[k]; in VG_()
1798 && sectors[sno].tt[tti].entry == guest_addr) { in VG_()
1802 guest_addr, sectors[sno].tt[tti].tcptr ); in VG_()
1804 *res_hcode = (Addr)sectors[sno].tt[tti].tcptr; in VG_()
1806 *res_sNo = sno; in VG_()
1820 if (sectors[sno].htt[k] == HTT_EMPTY) in VG_()
2011 SECno sno; in VG_() local
2070 for (sno = 0; sno < n_sectors; sno++) { in VG_()
2071 sec = &sectors[sno]; in VG_()
2075 sec, sno, guest_start, range, ec, in VG_()
2079 sec, sno, guest_start, range, ECLASS_MISC, in VG_()
2091 for (sno = 0; sno < n_sectors; sno++) { in VG_()
2092 sec = &sectors[sno]; in VG_()
2096 sec, sno, guest_start, range, in VG_()
2117 for (sno = 0; sno < n_sectors; sno++) { in VG_()
2118 sec = &sectors[sno]; in VG_()
2466 SECno sno; in VG_() local
2481 for (sno = 0; sno < n_sectors; sno++) { in VG_()
2482 if (sectors[sno].tc == NULL) in VG_()
2485 if (sectors[sno].tt[i].status != InUse) in VG_()
2487 score_total += score(&sectors[sno].tt[i]); in VG_()
2497 if ( score(&sectors[sno].tt[i]) > tops[r].score ) { in VG_()
2510 tops[r].addr = sectors[sno].tt[i].entry; in VG_()
2511 tops[r].score = score( &sectors[sno].tt[i] ); in VG_()
2519 for (sno = 0; sno < n_sectors; sno++) { in VG_()
2520 if (sectors[sno].tc == NULL) in VG_()
2523 if (sectors[sno].tt[i].status != InUse) in VG_()
2525 sectors[sno].tt[i].usage.prof.count = 0; in VG_()