Lines Matching refs:txtp
243 if (vcc->qos.txtp.traffic_class == ATM_ABR) {
417 if (vcc->qos.txtp.max_pcr <= 0) {
421 rate = vcc->qos.txtp.max_pcr;
1248 (vcc->qos.txtp.traffic_class == ATM_ABR))
1574 if (vcc->qos.txtp.pcr >= iadev->rate_limit) {
1603 if (vcc->qos.txtp.traffic_class == ATM_NONE) return 0;
1607 if (vcc->qos.txtp.traffic_class == ATM_ABR) {
1611 if (vcc->qos.txtp.traffic_class == ATM_CBR) {
1618 if (vcc->qos.txtp.max_sdu >
1621 vcc->qos.txtp.max_sdu,iadev->tx_buf_sz);
1630 if (vcc->qos.txtp.max_pcr == ATM_MAX_PCR)
1631 vcc->qos.txtp.pcr = iadev->LineRate;
1632 else if ((vcc->qos.txtp.max_pcr == 0)&&( vcc->qos.txtp.pcr <= 0))
1633 vcc->qos.txtp.pcr = iadev->LineRate;
1634 else if ((vcc->qos.txtp.max_pcr > vcc->qos.txtp.pcr) && (vcc->qos.txtp.max_pcr> 0))
1635 vcc->qos.txtp.pcr = vcc->qos.txtp.max_pcr;
1636 if (vcc->qos.txtp.pcr > iadev->LineRate)
1637 vcc->qos.txtp.pcr = iadev->LineRate;
1638 ia_vcc->pcr = vcc->qos.txtp.pcr;
1649 if (vcc->qos.txtp.max_sdu != 0) {
1651 sk->sk_sndbuf = vcc->qos.txtp.max_sdu * 5;
1653 sk->sk_sndbuf = vcc->qos.txtp.max_sdu * 4;
1655 sk->sk_sndbuf = vcc->qos.txtp.max_sdu * 3;
1677 if (vcc->qos.txtp.traffic_class == ATM_UBR)
1682 if (vcc->qos.txtp.pcr > 0)
1683 vc->acr = cellrate_to_float(vcc->qos.txtp.pcr);
1684 IF_UBR(printk("UBR: txtp.pcr = 0x%x f_rate = 0x%x\n",
1685 vcc->qos.txtp.max_pcr,vc->acr);)
1687 else if (vcc->qos.txtp.traffic_class == ATM_ABR)
1691 if (vcc->qos.txtp.pcr > 0)
1692 srv_p.pcr = vcc->qos.txtp.pcr;
1693 if (vcc->qos.txtp.min_pcr > 0) {
1694 int tmpsum = iadev->sum_mcr+iadev->sum_cbr+vcc->qos.txtp.min_pcr;
1697 srv_p.mcr = vcc->qos.txtp.min_pcr;
1698 iadev->sum_mcr += vcc->qos.txtp.min_pcr;
1701 if (vcc->qos.txtp.icr)
1702 srv_p.icr = vcc->qos.txtp.icr;
1703 if (vcc->qos.txtp.tbe)
1704 srv_p.tbe = vcc->qos.txtp.tbe;
1705 if (vcc->qos.txtp.frtt)
1706 srv_p.frtt = vcc->qos.txtp.frtt;
1707 if (vcc->qos.txtp.rif)
1708 srv_p.rif = vcc->qos.txtp.rif;
1709 if (vcc->qos.txtp.rdf)
1710 srv_p.rdf = vcc->qos.txtp.rdf;
1711 if (vcc->qos.txtp.nrm_pres)
1712 srv_p.nrm = vcc->qos.txtp.nrm;
1713 if (vcc->qos.txtp.trm_pres)
1714 srv_p.trm = vcc->qos.txtp.trm;
1715 if (vcc->qos.txtp.adtf_pres)
1716 srv_p.adtf = vcc->qos.txtp.adtf;
1717 if (vcc->qos.txtp.cdf_pres)
1718 srv_p.cdf = vcc->qos.txtp.cdf;
1721 IF_ABR(printk("ABR:vcc->qos.txtp.max_pcr = %d mcr = %d\n",
1724 } else if (vcc->qos.txtp.traffic_class == ATM_CBR) {
1729 if (vcc->qos.txtp.max_pcr > iadev->LineRate) {
2461 if (vcc->qos.txtp.traffic_class != ATM_NONE) {
2488 if (vcc->qos.txtp.traffic_class == ATM_ABR) {
2489 if (vcc->qos.txtp.min_pcr > 0)
2490 iadev->sum_mcr -= vcc->qos.txtp.min_pcr;
2492 if (vcc->qos.txtp.traffic_class == ATM_CBR) {
2843 if (vcc->qos.txtp.traffic_class == ATM_ABR)