Home
last modified time | relevance | path

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

/Linux-v5.4/net/atm/
Dcommon.c104 return (vcc->qos.txtp.max_sdu + in vcc_writable()
159 vcc->qos.txtp.max_sdu = 1 << 16; /* for meta VCs */ in vcc_create()
324 walk->vci == vci && ((walk->qos.txtp.traffic_class != in check_ci()
325 ATM_NONE && vcc->qos.txtp.traffic_class != ATM_NONE) || in check_ci()
429 error = adjust_tp(&vcc->qos.txtp, vcc->qos.aal); in __vcc_connect()
436 vcc->qos.txtp.traffic_class, in __vcc_connect()
437 vcc->qos.txtp.min_pcr, in __vcc_connect()
438 vcc->qos.txtp.max_pcr, in __vcc_connect()
439 vcc->qos.txtp.max_sdu); in __vcc_connect()
483 vcc->qos.txtp.traffic_class, vcc->qos.txtp.min_pcr, in vcc_connect()
[all …]
Dmpoa_proc.c271 qos.txtp.traffic_class = ATM_CBR; in parse_qos()
272 qos.txtp.max_pcr = tx_pcr; in parse_qos()
273 qos.txtp.max_sdu = tx_sdu; in parse_qos()
279 qos.txtp.max_pcr, qos.txtp.max_sdu, in parse_qos()
Dmpc.c256 qos->qos.txtp.max_pcr, in atm_mpoa_disp_qos()
257 qos->qos.txtp.pcr, in atm_mpoa_disp_qos()
258 qos->qos.txtp.min_pcr, in atm_mpoa_disp_qos()
259 qos->qos.txtp.max_cdv, in atm_mpoa_disp_qos()
260 qos->qos.txtp.max_sdu, in atm_mpoa_disp_qos()
1125 if (eg_entry->shortcut->qos.txtp.traffic_class & in check_qos_and_open_shortcut()
1126 msg->qos.txtp.traffic_class & in check_qos_and_open_shortcut()
1127 (qos ? qos->qos.txtp.traffic_class : ATM_UBR | ATM_CBR)) { in check_qos_and_open_shortcut()
1128 if (eg_entry->shortcut->qos.txtp.traffic_class == ATM_UBR) in check_qos_and_open_shortcut()
1130 else if (eg_entry->shortcut->qos.txtp.max_pcr > 0) in check_qos_and_open_shortcut()
[all …]
Dsvc.c195 if (vcc->qos.txtp.traffic_class == ATM_ANYCLASS || in svc_connect()
200 if (!vcc->qos.txtp.traffic_class && in svc_connect()
268 vcc->qos.txtp.max_pcr = SELECT_TOP_PCR(vcc->qos.txtp); in svc_connect()
269 vcc->qos.txtp.pcr = 0; in svc_connect()
270 vcc->qos.txtp.min_pcr = 0; in svc_connect()
Dproc.c157 vcc->qos.txtp.min_pcr, in pvc_info()
158 class_name[vcc->qos.txtp.traffic_class]); in pvc_info()
Dpppoatm.c416 pvcc->chan.mtu = atmvcc->qos.txtp.max_sdu - PPP_HDRLEN - in pppoatm_assign_vcc()
/Linux-v5.4/drivers/atm/
Diphase.c245 if (vcc->qos.txtp.traffic_class == ATM_ABR) { in clear_lockup()
475 if (vcc->qos.txtp.max_pcr <= 0) { in ia_cbr_setup()
479 rate = vcc->qos.txtp.max_pcr; in ia_cbr_setup()
1399 (vcc->qos.txtp.traffic_class == ATM_ABR))
1725 if (vcc->qos.txtp.pcr >= iadev->rate_limit) {
1754 if (vcc->qos.txtp.traffic_class == ATM_NONE) return 0;
1758 if (vcc->qos.txtp.traffic_class == ATM_ABR) {
1762 if (vcc->qos.txtp.traffic_class == ATM_CBR) {
1769 if (vcc->qos.txtp.max_sdu >
1772 vcc->qos.txtp.max_sdu,iadev->tx_buf_sz);
[all …]
Dfore200e.c1292 if (qos->txtp.max_pcr < ATM_OC3_PCR) { in fore200e_rate_ctrl()
1295 rate->data_cells = qos->txtp.max_pcr * FORE200E_MAX_BACK2BACK_CELLS / ATM_OC3_PCR; in fore200e_rate_ctrl()
1344 fore200e_traffic_class[ vcc->qos.txtp.traffic_class ], in fore200e_open()
1345 vcc->qos.txtp.min_pcr, vcc->qos.txtp.max_pcr, vcc->qos.txtp.max_cdv, vcc->qos.txtp.max_sdu, in fore200e_open()
1350 if ((vcc->qos.txtp.traffic_class == ATM_CBR) && (vcc->qos.txtp.max_pcr > 0)) { in fore200e_open()
1353 if (fore200e->available_cell_rate < vcc->qos.txtp.max_pcr) { in fore200e_open()
1362 fore200e->available_cell_rate -= vcc->qos.txtp.max_pcr; in fore200e_open()
1382 fore200e->available_cell_rate += vcc->qos.txtp.max_pcr; in fore200e_open()
1389 if ((vcc->qos.txtp.traffic_class == ATM_CBR) && (vcc->qos.txtp.max_pcr > 0)) { in fore200e_open()
1396 vcc->qos.txtp.max_pcr, vcc->qos.rxtp.max_pcr, in fore200e_open()
[all …]
Dfirestream.c853 struct atm_trafprm * txtp; in fs_open() local
894 txtp = &atm_vcc->qos.txtp; in fs_open()
908 if (DO_DIRECTION(txtp) && test_bit (dev->channo, dev->tx_inuse)) in fs_open()
923 ( DO_DIRECTION(txtp) && test_bit (vcc->channo, dev->tx_inuse))) { in fs_open()
932 if (DO_DIRECTION (txtp)) { in fs_open()
973 int pcr = atm_pcr_goal (txtp); in fs_open()
1097 struct atm_trafprm * txtp; in fs_close() local
1118 txtp = &atm_vcc->qos.txtp; in fs_close()
1125 if (DO_DIRECTION (txtp)) { in fs_close()
Deni.c1289 static int reserve_or_set_tx(struct atm_vcc *vcc,struct atm_trafprm *txtp, in reserve_or_set_tx() argument
1301 rate = atm_pcr_goal(txtp); in reserve_or_set_tx()
1302 ubr = txtp->traffic_class == ATM_UBR; in reserve_or_set_tx()
1306 size = txtp->max_sdu*eni_dev->tx_mult/100; in reserve_or_set_tx()
1307 if (size > MID_MAX_BUF_SIZE && txtp->max_sdu <= in reserve_or_set_tx()
1314 txtp->pcr = ATM_OC3_PCR; in reserve_or_set_tx()
1343 if (!error && txtp->min_pcr > rate) error = -EINVAL; in reserve_or_set_tx()
1344 if (!error && txtp->max_pcr && txtp->max_pcr != ATM_MAX_PCR && in reserve_or_set_tx()
1345 txtp->max_pcr < rate) error = -EINVAL; in reserve_or_set_tx()
1359 txtp->pcr = rate; in reserve_or_set_tx()
[all …]
Dhorizon.c1565 if (atm_vcc->qos.txtp.traffic_class == ATM_NONE) { in hrz_send()
1574 if (skb->len > atm_vcc->qos.txtp.max_sdu) { in hrz_send()
2099 struct atm_trafprm * txtp; in hrz_open() local
2186 txtp = &qos->txtp; in hrz_open()
2198 if (txtp->traffic_class != ATM_NONE) { in hrz_open()
2199 error = check_max_sdu (vcc.aal, txtp, max_tx_size); in hrz_open()
2205 switch (txtp->traffic_class) { in hrz_open()
2224 int pcr = atm_pcr_goal (txtp); in hrz_open()
2250 error = atm_pcr_check (txtp, vcc.tx_rate); in hrz_open()
2260 int pcr = atm_pcr_goal (txtp); in hrz_open()
[all …]
Dzatm.c908 zatm_dev->tx_bw += vcc->qos.txtp.min_pcr; in close_tx()
928 if (vcc->qos.txtp.traffic_class == ATM_NONE) return 0; in open_tx_first()
938 unlimited = vcc->qos.txtp.traffic_class == ATM_UBR && in open_tx_first()
939 (!vcc->qos.txtp.max_pcr || vcc->qos.txtp.max_pcr == ATM_MAX_PCR || in open_tx_first()
940 vcc->qos.txtp.max_pcr >= ATM_OC3_PCR); in open_tx_first()
945 if (unlimited) vcc->qos.txtp.max_sdu = ATM_MAX_AAL5_PDU; in open_tx_first()
947 vcc->qos.txtp.min_pcr,vcc->qos.txtp.max_pcr,unlimited)) in open_tx_first()
953 vcc->qos.txtp.min_pcr = vcc->qos.txtp.max_pcr = pcr; in open_tx_first()
Dambassador.c1003 struct atm_trafprm * txtp; in amb_open() local
1041 txtp = &qos->txtp; in amb_open()
1042 if (txtp->traffic_class != ATM_NONE) { in amb_open()
1043 switch (txtp->traffic_class) { in amb_open()
1046 int pcr = atm_pcr_goal (txtp); in amb_open()
1070 pcr = atm_pcr_goal (txtp); in amb_open()
1137 if (txtp->traffic_class != ATM_NONE) { in amb_open()
1224 if (atm_vcc->qos.txtp.traffic_class != ATM_NONE) { in amb_close()
1320 if (skb->len > (size_t) atm_vcc->qos.txtp.max_sdu) { in amb_send()
Dnicstar.c1257 if (vcc->qos.txtp.traffic_class != ATM_NONE && vc->tx) in ns_open()
1276 if (vcc->qos.txtp.traffic_class == ATM_CBR) { in ns_open()
1278 if (vcc->qos.txtp.max_pcr == 0 && vcc->qos.txtp.pcr == 0 in ns_open()
1279 && vcc->qos.txtp.min_pcr == 0) { in ns_open()
1288 tcr = atm_pcr_goal(&(vcc->qos.txtp)); in ns_open()
1292 card->index, vcc->qos.txtp.max_pcr); in ns_open()
1373 } else if (vcc->qos.txtp.traffic_class == ATM_UBR) { in ns_open()
1378 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in ns_open()
1460 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in ns_close()
1464 if (vcc->qos.txtp.traffic_class == ATM_CBR) { in ns_close()
[all …]
Dlanai.c727 (lvcc->tx.atmvcc->qos.txtp.traffic_class == ATM_CBR) ? in host_vcc_start_tx()
789 (lvcc->tx.atmvcc->qos.txtp.traffic_class != ATM_CBR || in lanai_shutdown_tx_vci()
1517 max_sdu = qos->txtp.max_sdu; in lanai_setup_tx_vci()
1973 if (qos->txtp.traffic_class == ATM_CBR || qos->aal == ATM_AAL0) in vci0_is_ok()
1998 if (qos->txtp.traffic_class != ATM_NONE && in vci_is_ok()
2001 if (qos->txtp.traffic_class == ATM_CBR && in vci_is_ok()
2071 int x, icg, pcr = atm_pcr_goal(&qos->txtp); in pcr_to_cbricg()
2355 if (atmvcc->qos.txtp.traffic_class != ATM_NONE) { in lanai_open()
2362 if (atmvcc->qos.txtp.traffic_class == ATM_CBR) { in lanai_open()
Didt77252.c2144 if ((qos->txtp.max_pcr == 0) && in idt77252_init_cbr()
2145 (qos->txtp.pcr == 0) && (qos->txtp.min_pcr == 0)) { in idt77252_init_cbr()
2157 tcr = atm_pcr_goal(&qos->txtp); in idt77252_init_cbr()
2225 tcr = atm_pcr_goal(&qos->txtp); in idt77252_init_ubr()
2251 switch (qos->txtp.traffic_class) { in idt77252_init_tx()
2283 card->name, qos->txtp.traffic_class); in idt77252_init_tx()
2446 vcc->qos.txtp.traffic_class != ATM_NONE ? "tx" : "--", in idt77252_open()
2450 if (vcc->qos.txtp.traffic_class != ATM_NONE && in idt77252_open()
2464 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in idt77252_open()
2529 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in idt77252_close()
[all …]
Dhe.c2152 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_open()
2155 pcr_goal = atm_pcr_goal(&vcc->qos.txtp); in he_open()
2187 switch (vcc->qos.txtp.traffic_class) { in he_open()
2382 if (vcc->qos.txtp.traffic_class != ATM_NONE) { in he_close()
2415 switch (vcc->qos.txtp.traffic_class) { in he_close()
2466 if (vcc->qos.txtp.traffic_class == ATM_CBR) { in he_close()
Datmtcp.c199 if (vcc->qos.txtp.traffic_class == ATM_NONE) { in atmtcp_v_send()
/Linux-v5.4/include/uapi/linux/
Datm.h161 struct atm_trafprm txtp; /* parameters in TX direction */ member