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