Lines Matching refs:txtp
1284 static int reserve_or_set_tx(struct atm_vcc *vcc,struct atm_trafprm *txtp, in reserve_or_set_tx() argument
1296 rate = atm_pcr_goal(txtp); in reserve_or_set_tx()
1297 ubr = txtp->traffic_class == ATM_UBR; in reserve_or_set_tx()
1301 size = txtp->max_sdu*eni_dev->tx_mult/100; in reserve_or_set_tx()
1302 if (size > MID_MAX_BUF_SIZE && txtp->max_sdu <= in reserve_or_set_tx()
1309 txtp->pcr = ATM_OC3_PCR; in reserve_or_set_tx()
1338 if (!error && txtp->min_pcr > rate) error = -EINVAL; in reserve_or_set_tx()
1339 if (!error && txtp->max_pcr && txtp->max_pcr != ATM_MAX_PCR && in reserve_or_set_tx()
1340 txtp->max_pcr < rate) error = -EINVAL; in reserve_or_set_tx()
1354 txtp->pcr = rate; in reserve_or_set_tx()
1375 if (vcc->qos.txtp.traffic_class == ATM_NONE) return 0; in open_tx_first()
1377 return reserve_or_set_tx(vcc,&vcc->qos.txtp,1,1); in open_tx_first()
1954 if (qos->txtp.traffic_class == ATM_NONE) return 0; in eni_change_qos()
1956 rate = atm_pcr_goal(&qos->txtp); in eni_change_qos()
1964 error = reserve_or_set_tx(vcc,&qos->txtp,rsv,shp); in eni_change_qos()