Lines Matching refs:pcr
786 static int alloc_shaper(struct atm_dev *dev,int *pcr,int min,int max,int ubr) in alloc_shaper() argument
803 *pcr = 0; in alloc_shaper()
832 *pcr = i*ATM_OC3_PCR/m; in alloc_shaper()
834 if ((min && *pcr < min) || (max && *pcr > max)) return -EINVAL; in alloc_shaper()
835 if (zatm_dev->tx_bw < *pcr) return -EAGAIN; in alloc_shaper()
836 zatm_dev->tx_bw -= *pcr; in alloc_shaper()
839 DPRINTK("i = %d, m = %d, PCR = %d\n",i,m,*pcr); in alloc_shaper()
940 int uninitialized_var(pcr); in open_tx_first()
943 if ((zatm_vcc->shaper = alloc_shaper(vcc->dev,&pcr, in open_tx_first()
949 if (pcr > ATM_OC3_PCR) pcr = ATM_OC3_PCR; in open_tx_first()
950 vcc->qos.txtp.min_pcr = vcc->qos.txtp.max_pcr = pcr; in open_tx_first()