Lines Matching refs:txtp
1287 static int reserve_or_set_tx(struct atm_vcc *vcc,struct atm_trafprm *txtp, in reserve_or_set_tx() argument
1299 rate = atm_pcr_goal(txtp); in reserve_or_set_tx()
1300 ubr = txtp->traffic_class == ATM_UBR; in reserve_or_set_tx()
1304 size = txtp->max_sdu*eni_dev->tx_mult/100; in reserve_or_set_tx()
1305 if (size > MID_MAX_BUF_SIZE && txtp->max_sdu <= in reserve_or_set_tx()
1312 txtp->pcr = ATM_OC3_PCR; in reserve_or_set_tx()
1341 if (!error && txtp->min_pcr > rate) error = -EINVAL; in reserve_or_set_tx()
1342 if (!error && txtp->max_pcr && txtp->max_pcr != ATM_MAX_PCR && in reserve_or_set_tx()
1343 txtp->max_pcr < rate) error = -EINVAL; in reserve_or_set_tx()
1357 txtp->pcr = rate; in reserve_or_set_tx()
1378 if (vcc->qos.txtp.traffic_class == ATM_NONE) return 0; in open_tx_first()
1380 return reserve_or_set_tx(vcc,&vcc->qos.txtp,1,1); in open_tx_first()
1963 if (qos->txtp.traffic_class == ATM_NONE) return 0; in eni_change_qos()
1965 rate = atm_pcr_goal(&qos->txtp); in eni_change_qos()
1973 error = reserve_or_set_tx(vcc,&qos->txtp,rsv,shp); in eni_change_qos()