Home
last modified time | relevance | path

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

/drivers/atm/
Diphase.c242 if (vcc->qos.txtp.traffic_class == ATM_ABR) { in clear_lockup()
472 if (vcc->qos.txtp.max_pcr <= 0) { in ia_cbr_setup()
476 rate = vcc->qos.txtp.max_pcr; in ia_cbr_setup()
1377 (vcc->qos.txtp.traffic_class == ATM_ABR))
1703 if (vcc->qos.txtp.pcr >= iadev->rate_limit) {
1732 if (vcc->qos.txtp.traffic_class == ATM_NONE) return 0;
1736 if (vcc->qos.txtp.traffic_class == ATM_ABR) {
1740 if (vcc->qos.txtp.traffic_class == ATM_CBR) {
1747 if (vcc->qos.txtp.max_sdu >
1750 vcc->qos.txtp.max_sdu,iadev->tx_buf_sz);
[all …]
Dfore200e.c1382 if (qos->txtp.max_pcr < ATM_OC3_PCR) { in fore200e_rate_ctrl()
1385 rate->data_cells = qos->txtp.max_pcr * FORE200E_MAX_BACK2BACK_CELLS / ATM_OC3_PCR; in fore200e_rate_ctrl()
1434 fore200e_traffic_class[ vcc->qos.txtp.traffic_class ], in fore200e_open()
1435 vcc->qos.txtp.min_pcr, vcc->qos.txtp.max_pcr, vcc->qos.txtp.max_cdv, vcc->qos.txtp.max_sdu, in fore200e_open()
1440 if ((vcc->qos.txtp.traffic_class == ATM_CBR) && (vcc->qos.txtp.max_pcr > 0)) { in fore200e_open()
1443 if (fore200e->available_cell_rate < vcc->qos.txtp.max_pcr) { in fore200e_open()
1452 fore200e->available_cell_rate -= vcc->qos.txtp.max_pcr; in fore200e_open()
1472 fore200e->available_cell_rate += vcc->qos.txtp.max_pcr; in fore200e_open()
1479 if ((vcc->qos.txtp.traffic_class == ATM_CBR) && (vcc->qos.txtp.max_pcr > 0)) { in fore200e_open()
1486 vcc->qos.txtp.max_pcr, vcc->qos.rxtp.max_pcr, in fore200e_open()
[all …]
Dfirestream.c863 struct atm_trafprm * txtp; in fs_open() local
904 txtp = &atm_vcc->qos.txtp; in fs_open()
918 if (DO_DIRECTION(txtp) && test_bit (dev->channo, dev->tx_inuse)) in fs_open()
933 ( DO_DIRECTION(txtp) && test_bit (vcc->channo, dev->tx_inuse))) { in fs_open()
942 if (DO_DIRECTION (txtp)) { in fs_open()
983 int pcr = atm_pcr_goal (txtp); in fs_open()
1107 struct atm_trafprm * txtp; in fs_close() local
1128 txtp = &atm_vcc->qos.txtp; in fs_close()
1135 if (DO_DIRECTION (txtp)) { in fs_close()
Deni.c1284 static int reserve_or_set_tx(struct atm_vcc *vcc,struct atm_trafprm *txtp, in reserve_or_set_tx() argument
1296 rate = atm_pcr_goal(txtp); in reserve_or_set_tx()
1297 ubr = txtp->traffic_class == ATM_UBR; in reserve_or_set_tx()
1301 size = txtp->max_sdu*eni_dev->tx_mult/100; in reserve_or_set_tx()
1302 if (size > MID_MAX_BUF_SIZE && txtp->max_sdu <= in reserve_or_set_tx()
1309 txtp->pcr = ATM_OC3_PCR; in reserve_or_set_tx()
1338 if (!error && txtp->min_pcr > rate) error = -EINVAL; in reserve_or_set_tx()
1339 if (!error && txtp->max_pcr && txtp->max_pcr != ATM_MAX_PCR && in reserve_or_set_tx()
1340 txtp->max_pcr < rate) error = -EINVAL; in reserve_or_set_tx()
1354 txtp->pcr = rate; in reserve_or_set_tx()
[all …]
Dhorizon.c1602 if (atm_vcc->qos.txtp.traffic_class == ATM_NONE) { in hrz_send()
1611 if (skb->len > atm_vcc->qos.txtp.max_sdu) { in hrz_send()
2137 struct atm_trafprm * txtp; in hrz_open() local
2225 txtp = &qos->txtp; in hrz_open()
2237 if (txtp->traffic_class != ATM_NONE) { in hrz_open()
2238 error = check_max_sdu (vcc.aal, txtp, max_tx_size); in hrz_open()
2244 switch (txtp->traffic_class) { in hrz_open()
2263 int pcr = atm_pcr_goal (txtp); in hrz_open()
2289 error = atm_pcr_check (txtp, vcc.tx_rate); in hrz_open()
2299 int pcr = atm_pcr_goal (txtp); in hrz_open()
[all …]
Dzatm.c904 zatm_dev->tx_bw += vcc->qos.txtp.min_pcr; in close_tx()
924 if (vcc->qos.txtp.traffic_class == ATM_NONE) return 0; in open_tx_first()
934 unlimited = vcc->qos.txtp.traffic_class == ATM_UBR && in open_tx_first()
935 (!vcc->qos.txtp.max_pcr || vcc->qos.txtp.max_pcr == ATM_MAX_PCR || in open_tx_first()
936 vcc->qos.txtp.max_pcr >= ATM_OC3_PCR); in open_tx_first()
941 if (unlimited) vcc->qos.txtp.max_sdu = ATM_MAX_AAL5_PDU; in open_tx_first()
943 vcc->qos.txtp.min_pcr,vcc->qos.txtp.max_pcr,unlimited)) in open_tx_first()
949 vcc->qos.txtp.min_pcr = vcc->qos.txtp.max_pcr = pcr; in open_tx_first()
Dambassador.c1021 struct atm_trafprm * txtp; in amb_open() local
1059 txtp = &qos->txtp; in amb_open()
1060 if (txtp->traffic_class != ATM_NONE) { in amb_open()
1061 switch (txtp->traffic_class) { in amb_open()
1064 int pcr = atm_pcr_goal (txtp); in amb_open()
1088 pcr = atm_pcr_goal (txtp); in amb_open()
1155 if (txtp->traffic_class != ATM_NONE) { in amb_open()
1242 if (atm_vcc->qos.txtp.traffic_class != ATM_NONE) { in amb_close()
1346 if (skb->len > (size_t) atm_vcc->qos.txtp.max_sdu) { in amb_send()
Dnicstar.c1333 if (vcc->qos.txtp.traffic_class != ATM_NONE && vc->tx) in ns_open()
1354 if (vcc->qos.txtp.traffic_class == ATM_CBR) in ns_open()
1357 if (vcc->qos.txtp.max_pcr == 0 && vcc->qos.txtp.pcr == 0 && in ns_open()
1358 vcc->qos.txtp.min_pcr == 0) in ns_open()
1367 tcr = atm_pcr_goal(&(vcc->qos.txtp)); in ns_open()
1371 vcc->qos.txtp.max_pcr); in ns_open()
1449 else if (vcc->qos.txtp.traffic_class == ATM_UBR) in ns_open()
1455 if (vcc->qos.txtp.traffic_class != ATM_NONE) in ns_open()
1538 if (vcc->qos.txtp.traffic_class != ATM_NONE) in ns_close()
1543 if (vcc->qos.txtp.traffic_class == ATM_CBR) in ns_close()
[all …]
Dlanai.c739 (lvcc->tx.atmvcc->qos.txtp.traffic_class == ATM_CBR) ? in host_vcc_start_tx()
801 (lvcc->tx.atmvcc->qos.txtp.traffic_class != ATM_CBR || in lanai_shutdown_tx_vci()
1532 max_sdu = qos->txtp.max_sdu; in lanai_setup_tx_vci()
2002 if (qos->txtp.traffic_class == ATM_CBR || qos->aal == ATM_AAL0) in vci0_is_ok()
2027 if (qos->txtp.traffic_class != ATM_NONE && in vci_is_ok()
2030 if (qos->txtp.traffic_class == ATM_CBR && in vci_is_ok()
2100 int x, icg, pcr = atm_pcr_goal(&qos->txtp); in pcr_to_cbricg()
2386 if (atmvcc->qos.txtp.traffic_class != ATM_NONE) { in lanai_open()
2393 if (atmvcc->qos.txtp.traffic_class == ATM_CBR) { in lanai_open()
Didt77252.c2154 if ((qos->txtp.max_pcr == 0) && in idt77252_init_cbr()
2155 (qos->txtp.pcr == 0) && (qos->txtp.min_pcr == 0)) { in idt77252_init_cbr()
2167 tcr = atm_pcr_goal(&qos->txtp); in idt77252_init_cbr()
2231 tcr = atm_pcr_goal(&qos->txtp); in idt77252_init_ubr()
2257 switch (qos->txtp.traffic_class) { in idt77252_init_tx()
2289 card->name, qos->txtp.traffic_class); in idt77252_init_tx()
2452 vcc->qos.txtp.traffic_class != ATM_NONE ? "tx" : "--", in idt77252_open()
2456 if (vcc->qos.txtp.traffic_class != ATM_NONE && in idt77252_open()
2470 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in idt77252_open()
2535 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in idt77252_close()
[all …]
Dhe.c2222 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_open()
2225 pcr_goal = atm_pcr_goal(&vcc->qos.txtp); in he_open()
2257 switch (vcc->qos.txtp.traffic_class) { in he_open()
2452 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_close()
2485 switch (vcc->qos.txtp.traffic_class) { in he_close()
2536 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()