Lines Matching refs:ctxnum
266 "gid %d, gts %p, gms %p, ctxnum %d, asid 0x%x, asidmap 0x%lx\n",
285 gru_dbg(grudev, "gid %d, gts %p, gms %p, ctxnum 0x%d, asidmap 0x%lx\n",
491 static void gru_load_context_data(void *save, void *grubase, int ctxnum,
499 gseg = grubase + ctxnum * GRU_GSEG_STRIDE;
527 static void gru_unload_context_data(void *save, void *grubase, int ctxnum,
534 gseg = grubase + ctxnum * GRU_GSEG_STRIDE;
558 int ctxnum = gts->ts_ctxnum;
562 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum);
574 ctxnum, gts->ts_cbr_map,
594 int i, err, asid, ctxnum = gts->ts_ctxnum;
596 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum);
640 gru_load_context_data(gts->ts_gdata, gru->gs_gru_base_vaddr, ctxnum,
661 int i, ctxnum = gts->ts_ctxnum, ret = 0;
663 cch = get_cch(gru->gs_gru_base_vaddr, ctxnum);
787 int ctxnum, ctxnum0, flag = 0, cbr, dsr;
799 ctxnum = next_ctxnum(blade->bs_lru_ctxnum);
801 if (ctxnum == 0)
804 blade->bs_lru_ctxnum = ctxnum;
805 ctxnum0 = ctxnum;
812 for (; ctxnum < GRU_NUM_CCH; ctxnum++) {
813 if (flag && gru == gru0 && ctxnum == ctxnum0)
815 ngts = gru->gs_gts[ctxnum];
827 if (ngts || (flag && gru == gru0 && ctxnum == ctxnum0))
833 ctxnum = 0;
847 "stole gid %d, ctxnum %d from gts %p. Need cb %d, ds %d;"
849 gru->gs_gid, ctxnum, ngts, cbr, dsr, hweight64(gru->gs_cbr_map),
858 int ctxnum;
860 ctxnum = find_first_zero_bit(&gru->gs_context_map, GRU_NUM_CCH);
861 __set_bit(ctxnum, &gru->gs_context_map);
862 return ctxnum;