Lines Matching refs:pcr
2078 static int atm_pcr_check (struct atm_trafprm * tp, unsigned int pcr) { in atm_pcr_check() argument
2084 else if (tp->min_pcr && tp->min_pcr > pcr) in atm_pcr_check()
2094 else if (tp->max_pcr && tp->max_pcr != ATM_MAX_PCR && tp->max_pcr < pcr) in atm_pcr_check()
2102 pcr, tp->min_pcr, tp->pcr, tp->max_pcr); in atm_pcr_check()
2239 int pcr = atm_pcr_goal (txtp); in hrz_open() local
2241 if (!pcr) { in hrz_open()
2251 pcr = dev->tx_avail; in hrz_open()
2252 } else if (pcr < 0) { in hrz_open()
2254 pcr = -pcr; in hrz_open()
2258 error = make_rate_with_tolerance (dev, pcr, r, 10, in hrz_open()
2275 int pcr = atm_pcr_goal (txtp); in hrz_open()
2277 int scr = pcr/2; // just for fun in hrz_open()
2282 if (!pcr) { in hrz_open()
2284 pcr = 1<<30; in hrz_open()
2285 } else if (pcr < 0) { in hrz_open()
2287 pcr = -pcr; in hrz_open()
2291 error = make_rate_with_tolerance (dev, pcr, pr, 10, in hrz_open()
2321 bucket = mbs*(pcr-scr)/pcr; in hrz_open()
2322 if (bucket*pcr != mbs*(pcr-scr)) in hrz_open()
2369 int pcr = atm_pcr_goal (rxtp); in hrz_open() local
2370 if (!pcr) { in hrz_open()
2374 pcr = dev->rx_avail; in hrz_open()
2375 } else if (pcr < 0) { in hrz_open()
2376 pcr = -pcr; in hrz_open()
2378 vcc.rx_rate = pcr; in hrz_open()