Lines Matching refs:clwm
249 int vpm_us, us_video, vlwm, video_fill_us, cpm_us, us_crt, clwm; in nv4CalcArbitration() local
261 clwm = 0; in nv4CalcArbitration()
329 clwm = us_crt * crtc_drain_rate / (1000 * 1000); in nv4CalcArbitration()
330 clwm++; in nv4CalcArbitration()
338 clwm = us_crt * crtc_drain_rate / (1000 * 1000); in nv4CalcArbitration()
339 clwm++; in nv4CalcArbitration()
341 m1 = clwm + cbs - 512; in nv4CalcArbitration()
351 if ((clwm > 511) || (vlwm > 255)) { in nv4CalcArbitration()
359 if (clwm > 519) { in nv4CalcArbitration()
367 if (clwm < 384) in nv4CalcArbitration()
368 clwm = 384; in nv4CalcArbitration()
371 data = (int)(clwm); in nv4CalcArbitration()
424 int vpm_us, us_video, cpm_us, us_crt, clwm; in nv10CalcArbitration() local
439 clwm = 0; in nv10CalcArbitration()
531 clwm = us_crt * crtc_drain_rate / (1000 * 1000); in nv10CalcArbitration()
533 clwm++; in nv10CalcArbitration()
545 clwm = us_crt * crtc_drain_rate / (1000 * 1000); in nv10CalcArbitration()
547 clwm++; in nv10CalcArbitration()
554 clwm = 0xfff; in nv10CalcArbitration()
558 clwm = 1024; in nv10CalcArbitration()
568 clwm_rnd_down = ((int)clwm / 8) * 8; in nv10CalcArbitration()
569 if (clwm_rnd_down < clwm) in nv10CalcArbitration()
570 clwm += 8; in nv10CalcArbitration()
572 m1 = clwm + cbs - 1024; /* Amount of overfill */ in nv10CalcArbitration()
594 if (clwm > 1023) { /* Have some margin */ in nv10CalcArbitration()
605 if (clwm < (1024 - cbs + 8)) in nv10CalcArbitration()
606 clwm = 1024 - cbs + 8; in nv10CalcArbitration()
607 data = (int)(clwm); in nv10CalcArbitration()