Lines Matching refs:pcr
2063 static int atm_pcr_check (struct atm_trafprm * tp, unsigned int pcr) { in atm_pcr_check() argument
2069 else if (tp->min_pcr && tp->min_pcr > pcr) in atm_pcr_check()
2079 else if (tp->max_pcr && tp->max_pcr != ATM_MAX_PCR && tp->max_pcr < pcr) in atm_pcr_check()
2087 pcr, tp->min_pcr, tp->pcr, tp->max_pcr); in atm_pcr_check()
2224 int pcr = atm_pcr_goal (txtp); in hrz_open() local
2226 if (!pcr) { in hrz_open()
2236 pcr = dev->tx_avail; in hrz_open()
2237 } else if (pcr < 0) { in hrz_open()
2239 pcr = -pcr; in hrz_open()
2243 error = make_rate_with_tolerance (dev, pcr, r, 10, in hrz_open()
2260 int pcr = atm_pcr_goal (txtp); in hrz_open()
2262 int scr = pcr/2; // just for fun in hrz_open()
2267 if (!pcr) { in hrz_open()
2269 pcr = 1<<30; in hrz_open()
2270 } else if (pcr < 0) { in hrz_open()
2272 pcr = -pcr; in hrz_open()
2276 error = make_rate_with_tolerance (dev, pcr, pr, 10, in hrz_open()
2306 bucket = mbs*(pcr-scr)/pcr; in hrz_open()
2307 if (bucket*pcr != mbs*(pcr-scr)) in hrz_open()
2354 int pcr = atm_pcr_goal (rxtp); in hrz_open() local
2355 if (!pcr) { in hrz_open()
2359 pcr = dev->rx_avail; in hrz_open()
2360 } else if (pcr < 0) { in hrz_open()
2361 pcr = -pcr; in hrz_open()
2363 vcc.rx_rate = pcr; in hrz_open()