Lines Matching refs:ctxnum

475 static void gru_load_context_data(void *save, void *grubase, int ctxnum,  in gru_load_context_data()  argument
483 gseg = grubase + ctxnum * GRU_GSEG_STRIDE; in gru_load_context_data()
511 static void gru_unload_context_data(void *save, void *grubase, int ctxnum, in gru_unload_context_data() argument
518 gseg = grubase + ctxnum * GRU_GSEG_STRIDE; in gru_unload_context_data()
542 int ctxnum = gts->ts_ctxnum; in gru_unload_context() local
546 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_unload_context()
558 ctxnum, gts->ts_cbr_map, in gru_unload_context()
578 int i, err, asid, ctxnum = gts->ts_ctxnum; in gru_load_context() local
580 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_load_context()
624 gru_load_context_data(gts->ts_gdata, gru->gs_gru_base_vaddr, ctxnum, in gru_load_context()
645 int i, ctxnum = gts->ts_ctxnum, ret = 0; in gru_update_cch() local
647 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum); in gru_update_cch()
780 int ctxnum, ctxnum0, flag = 0, cbr, dsr; in gru_steal_context() local
792 ctxnum = next_ctxnum(blade->bs_lru_ctxnum); in gru_steal_context()
794 if (ctxnum == 0) in gru_steal_context()
797 blade->bs_lru_ctxnum = ctxnum; in gru_steal_context()
798 ctxnum0 = ctxnum; in gru_steal_context()
805 for (; ctxnum < GRU_NUM_CCH; ctxnum++) { in gru_steal_context()
806 if (flag && gru == gru0 && ctxnum == ctxnum0) in gru_steal_context()
808 ngts = gru->gs_gts[ctxnum]; in gru_steal_context()
820 if (ngts || (flag && gru == gru0 && ctxnum == ctxnum0)) in gru_steal_context()
826 ctxnum = 0; in gru_steal_context()
842 gru->gs_gid, ctxnum, ngts, cbr, dsr, hweight64(gru->gs_cbr_map), in gru_steal_context()
851 int ctxnum; in gru_assign_context_number() local
853 ctxnum = find_first_zero_bit(&gru->gs_context_map, GRU_NUM_CCH); in gru_assign_context_number()
854 __set_bit(ctxnum, &gru->gs_context_map); in gru_assign_context_number()
855 return ctxnum; in gru_assign_context_number()