Lines Matching refs:pcr
788 static int alloc_shaper(struct atm_dev *dev,int *pcr,int min,int max,int ubr) in alloc_shaper() argument
805 *pcr = 0; in alloc_shaper()
834 *pcr = i*ATM_OC3_PCR/m; in alloc_shaper()
836 if ((min && *pcr < min) || (max && *pcr > max)) return -EINVAL; in alloc_shaper()
837 if (zatm_dev->tx_bw < *pcr) return -EAGAIN; in alloc_shaper()
838 zatm_dev->tx_bw -= *pcr; in alloc_shaper()
841 DPRINTK("i = %d, m = %d, PCR = %d\n",i,m,*pcr); in alloc_shaper()
942 int uninitialized_var(pcr); in open_tx_first()
945 if ((zatm_vcc->shaper = alloc_shaper(vcc->dev,&pcr, in open_tx_first()
951 if (pcr > ATM_OC3_PCR) pcr = ATM_OC3_PCR; in open_tx_first()
952 vcc->qos.txtp.min_pcr = vcc->qos.txtp.max_pcr = pcr; in open_tx_first()