Lines Matching refs:txtp
1260 static int reserve_or_set_tx(struct atm_vcc *vcc,struct atm_trafprm *txtp,
1272 rate = atm_pcr_goal(txtp);
1273 ubr = txtp->traffic_class == ATM_UBR;
1277 size = txtp->max_sdu*eni_dev->tx_mult/100;
1278 if (size > MID_MAX_BUF_SIZE && txtp->max_sdu <=
1285 txtp->pcr = ATM_OC3_PCR;
1314 if (!error && txtp->min_pcr > rate) error = -EINVAL;
1315 if (!error && txtp->max_pcr && txtp->max_pcr != ATM_MAX_PCR &&
1316 txtp->max_pcr < rate) error = -EINVAL;
1330 txtp->pcr = rate;
1351 if (vcc->qos.txtp.traffic_class == ATM_NONE) return 0;
1353 return reserve_or_set_tx(vcc,&vcc->qos.txtp,1,1);
1914 if (qos->txtp.traffic_class == ATM_NONE) return 0;
1916 rate = atm_pcr_goal(&qos->txtp);
1924 error = reserve_or_set_tx(vcc,&qos->txtp,rsv,shp);