Lines Matching refs:res_info
242 static int nv3_iterate(nv3_fifo_info *res_info, nv3_sim_state * state, nv3_arb_info *ainfo) in nv3_iterate() argument
426 static char nv3_arb(nv3_fifo_info * res_info, nv3_sim_state * state, nv3_arb_info *ainfo) in nv3_arb() argument
458 nv3_iterate(res_info, state,ainfo); in nv3_arb()
470 nv3_iterate(res_info, state,ainfo); in nv3_arb()
482 nv3_iterate(res_info, state,ainfo); in nv3_arb()
494 nv3_iterate(res_info, state, ainfo); in nv3_arb()
498 res_info->graphics_lwm = (int)abs(ainfo->wcglwm) + 16; in nv3_arb()
499 res_info->video_lwm = (int)abs(ainfo->wcvlwm) + 32; in nv3_arb()
500 res_info->graphics_burst_size = ainfo->gburst_size; in nv3_arb()
501 res_info->video_burst_size = ainfo->vburst_size; in nv3_arb()
502 res_info->graphics_hi_priority = (ainfo->priority == GRAPHICS); in nv3_arb()
503 res_info->media_hi_priority = (ainfo->priority == MPORT); in nv3_arb()
504 if (res_info->video_lwm > 160) in nv3_arb()
506 res_info->graphics_lwm = 256; in nv3_arb()
507 res_info->video_lwm = 128; in nv3_arb()
508 res_info->graphics_burst_size = 64; in nv3_arb()
509 res_info->video_burst_size = 64; in nv3_arb()
510 res_info->graphics_hi_priority = 0; in nv3_arb()
511 res_info->media_hi_priority = 0; in nv3_arb()
515 if (res_info->video_lwm > 128) in nv3_arb()
517 res_info->video_lwm = 128; in nv3_arb()
523 res_info->graphics_lwm = 256; in nv3_arb()
524 res_info->video_lwm = 128; in nv3_arb()
525 res_info->graphics_burst_size = 64; in nv3_arb()
526 res_info->video_burst_size = 64; in nv3_arb()
527 res_info->graphics_hi_priority = 0; in nv3_arb()
528 res_info->media_hi_priority = 0; in nv3_arb()
532 static char nv3_get_param(nv3_fifo_info *res_info, nv3_sim_state * state, nv3_arb_info *ainfo) in nv3_get_param() argument
546 done = nv3_arb(res_info, state,ainfo); in nv3_get_param()
548 if ((res_info->graphics_lwm + g) > 256) in nv3_get_param()
561 nv3_fifo_info * res_info, in nv3CalcArbitration() argument
578 res_info->rtl_values = 0; in nv3CalcArbitration()
584 res_vid = nv3_get_param(res_info, state, &ainfo); in nv3CalcArbitration()
586 save_info.video_lwm = res_info->video_lwm; in nv3CalcArbitration()
587 save_info.video_burst_size = res_info->video_burst_size; in nv3CalcArbitration()
593 res_gr = nv3_get_param(res_info, state, &ainfo); in nv3CalcArbitration()
595 res_info->video_lwm = save_info.video_lwm; in nv3CalcArbitration()
596 res_info->video_burst_size = save_info.video_burst_size; in nv3CalcArbitration()
597 res_info->valid = res_gr & res_vid; in nv3CalcArbitration()
603 res_gr = nv3_get_param(res_info, state, &ainfo); in nv3CalcArbitration()
604 res_info->valid = ainfo.converged; in nv3CalcArbitration()