Home
last modified time | relevance | path

Searched refs:txtp (Results 1 – 12 of 12) sorted by relevance

/drivers/atm/
Diphase.c244 if (vcc->qos.txtp.traffic_class == ATM_ABR) { in clear_lockup()
474 if (vcc->qos.txtp.max_pcr <= 0) { in ia_cbr_setup()
478 rate = vcc->qos.txtp.max_pcr; in ia_cbr_setup()
1398 (vcc->qos.txtp.traffic_class == ATM_ABR))
1724 if (vcc->qos.txtp.pcr >= iadev->rate_limit) {
1753 if (vcc->qos.txtp.traffic_class == ATM_NONE) return 0;
1757 if (vcc->qos.txtp.traffic_class == ATM_ABR) {
1761 if (vcc->qos.txtp.traffic_class == ATM_CBR) {
1768 if (vcc->qos.txtp.max_sdu >
1771 vcc->qos.txtp.max_sdu,iadev->tx_buf_sz);
[all …]
Dfore200e.c1383 if (qos->txtp.max_pcr < ATM_OC3_PCR) { in fore200e_rate_ctrl()
1386 rate->data_cells = qos->txtp.max_pcr * FORE200E_MAX_BACK2BACK_CELLS / ATM_OC3_PCR; in fore200e_rate_ctrl()
1435 fore200e_traffic_class[ vcc->qos.txtp.traffic_class ], in fore200e_open()
1436 vcc->qos.txtp.min_pcr, vcc->qos.txtp.max_pcr, vcc->qos.txtp.max_cdv, vcc->qos.txtp.max_sdu, in fore200e_open()
1441 if ((vcc->qos.txtp.traffic_class == ATM_CBR) && (vcc->qos.txtp.max_pcr > 0)) { in fore200e_open()
1444 if (fore200e->available_cell_rate < vcc->qos.txtp.max_pcr) { in fore200e_open()
1453 fore200e->available_cell_rate -= vcc->qos.txtp.max_pcr; in fore200e_open()
1473 fore200e->available_cell_rate += vcc->qos.txtp.max_pcr; in fore200e_open()
1480 if ((vcc->qos.txtp.traffic_class == ATM_CBR) && (vcc->qos.txtp.max_pcr > 0)) { in fore200e_open()
1487 vcc->qos.txtp.max_pcr, vcc->qos.rxtp.max_pcr, in fore200e_open()
[all …]
Dfirestream.c868 struct atm_trafprm * txtp; in fs_open() local
909 txtp = &atm_vcc->qos.txtp; in fs_open()
923 if (DO_DIRECTION(txtp) && test_bit (dev->channo, dev->tx_inuse)) in fs_open()
938 ( DO_DIRECTION(txtp) && test_bit (vcc->channo, dev->tx_inuse))) { in fs_open()
947 if (DO_DIRECTION (txtp)) { in fs_open()
988 int pcr = atm_pcr_goal (txtp); in fs_open()
1112 struct atm_trafprm * txtp; in fs_close() local
1133 txtp = &atm_vcc->qos.txtp; in fs_close()
1140 if (DO_DIRECTION (txtp)) { in fs_close()
Deni.c1287 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()
[all …]
Dhorizon.c1579 if (atm_vcc->qos.txtp.traffic_class == ATM_NONE) { in hrz_send()
1588 if (skb->len > atm_vcc->qos.txtp.max_sdu) { in hrz_send()
2113 struct atm_trafprm * txtp; in hrz_open() local
2200 txtp = &qos->txtp; in hrz_open()
2212 if (txtp->traffic_class != ATM_NONE) { in hrz_open()
2213 error = check_max_sdu (vcc.aal, txtp, max_tx_size); in hrz_open()
2219 switch (txtp->traffic_class) { in hrz_open()
2238 int pcr = atm_pcr_goal (txtp); in hrz_open()
2264 error = atm_pcr_check (txtp, vcc.tx_rate); in hrz_open()
2274 int pcr = atm_pcr_goal (txtp); in hrz_open()
[all …]
Dzatm.c906 zatm_dev->tx_bw += vcc->qos.txtp.min_pcr; in close_tx()
926 if (vcc->qos.txtp.traffic_class == ATM_NONE) return 0; in open_tx_first()
936 unlimited = vcc->qos.txtp.traffic_class == ATM_UBR && in open_tx_first()
937 (!vcc->qos.txtp.max_pcr || vcc->qos.txtp.max_pcr == ATM_MAX_PCR || in open_tx_first()
938 vcc->qos.txtp.max_pcr >= ATM_OC3_PCR); in open_tx_first()
943 if (unlimited) vcc->qos.txtp.max_sdu = ATM_MAX_AAL5_PDU; in open_tx_first()
945 vcc->qos.txtp.min_pcr,vcc->qos.txtp.max_pcr,unlimited)) in open_tx_first()
951 vcc->qos.txtp.min_pcr = vcc->qos.txtp.max_pcr = pcr; in open_tx_first()
Dambassador.c1018 struct atm_trafprm * txtp; in amb_open() local
1056 txtp = &qos->txtp; in amb_open()
1057 if (txtp->traffic_class != ATM_NONE) { in amb_open()
1058 switch (txtp->traffic_class) { in amb_open()
1061 int pcr = atm_pcr_goal (txtp); in amb_open()
1085 pcr = atm_pcr_goal (txtp); in amb_open()
1152 if (txtp->traffic_class != ATM_NONE) { in amb_open()
1239 if (atm_vcc->qos.txtp.traffic_class != ATM_NONE) { in amb_close()
1335 if (skb->len > (size_t) atm_vcc->qos.txtp.max_sdu) { in amb_send()
Dnicstar.c1258 if (vcc->qos.txtp.traffic_class != ATM_NONE && vc->tx) in ns_open()
1277 if (vcc->qos.txtp.traffic_class == ATM_CBR) { in ns_open()
1279 if (vcc->qos.txtp.max_pcr == 0 && vcc->qos.txtp.pcr == 0 in ns_open()
1280 && vcc->qos.txtp.min_pcr == 0) { in ns_open()
1289 tcr = atm_pcr_goal(&(vcc->qos.txtp)); in ns_open()
1293 card->index, vcc->qos.txtp.max_pcr); in ns_open()
1374 } else if (vcc->qos.txtp.traffic_class == ATM_UBR) { in ns_open()
1379 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in ns_open()
1461 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in ns_close()
1465 if (vcc->qos.txtp.traffic_class == ATM_CBR) { in ns_close()
[all …]
Dlanai.c731 (lvcc->tx.atmvcc->qos.txtp.traffic_class == ATM_CBR) ? in host_vcc_start_tx()
793 (lvcc->tx.atmvcc->qos.txtp.traffic_class != ATM_CBR || in lanai_shutdown_tx_vci()
1521 max_sdu = qos->txtp.max_sdu; in lanai_setup_tx_vci()
1979 if (qos->txtp.traffic_class == ATM_CBR || qos->aal == ATM_AAL0) in vci0_is_ok()
2004 if (qos->txtp.traffic_class != ATM_NONE && in vci_is_ok()
2007 if (qos->txtp.traffic_class == ATM_CBR && in vci_is_ok()
2077 int x, icg, pcr = atm_pcr_goal(&qos->txtp); in pcr_to_cbricg()
2361 if (atmvcc->qos.txtp.traffic_class != ATM_NONE) { in lanai_open()
2368 if (atmvcc->qos.txtp.traffic_class == ATM_CBR) { in lanai_open()
Didt77252.c2153 if ((qos->txtp.max_pcr == 0) && in idt77252_init_cbr()
2154 (qos->txtp.pcr == 0) && (qos->txtp.min_pcr == 0)) { in idt77252_init_cbr()
2166 tcr = atm_pcr_goal(&qos->txtp); in idt77252_init_cbr()
2230 tcr = atm_pcr_goal(&qos->txtp); in idt77252_init_ubr()
2256 switch (qos->txtp.traffic_class) { in idt77252_init_tx()
2288 card->name, qos->txtp.traffic_class); in idt77252_init_tx()
2451 vcc->qos.txtp.traffic_class != ATM_NONE ? "tx" : "--", in idt77252_open()
2455 if (vcc->qos.txtp.traffic_class != ATM_NONE && in idt77252_open()
2469 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in idt77252_open()
2534 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in idt77252_close()
[all …]
Dhe.c2153 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_open()
2156 pcr_goal = atm_pcr_goal(&vcc->qos.txtp); in he_open()
2188 switch (vcc->qos.txtp.traffic_class) { in he_open()
2383 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_close()
2416 switch (vcc->qos.txtp.traffic_class) { in he_close()
2467 if (vcc->qos.txtp.traffic_class == ATM_CBR) { in he_close()
Datmtcp.c198 if (vcc->qos.txtp.traffic_class == ATM_NONE) { in atmtcp_v_send()