Lines Matching refs:qos

130 static int idt77252_change_qos(struct atm_vcc *vcc, struct atm_qos *qos,
878 aal = vcc->qos.aal;
1066 if ((vcc->qos.aal == ATM_AAL0) ||
1067 (vcc->qos.aal == ATM_AAL34)) {
1107 if (vcc->qos.aal != ATM_AAL5) {
1109 card->name, vcc->qos.aal);
1301 if (vcc->qos.aal != ATM_AAL0) {
1958 switch (vcc->qos.aal) {
1964 printk("%s: Unsupported AAL: %d\n", card->name, vcc->qos.aal);
2133 struct atm_vcc *vcc, struct atm_qos *qos)
2139 if ((qos->txtp.max_pcr == 0) &&
2140 (qos->txtp.pcr == 0) && (qos->txtp.min_pcr == 0)) {
2152 tcr = atm_pcr_goal(&qos->txtp);
2203 struct atm_vcc *vcc, struct atm_qos *qos)
2220 tcr = atm_pcr_goal(&qos->txtp);
2239 struct atm_vcc *vcc, struct atm_qos *qos)
2246 switch (qos->txtp.traffic_class) {
2278 card->name, qos->txtp.traffic_class);
2287 error = idt77252_init_cbr(card, vc, vcc, qos);
2299 error = idt77252_init_ubr(card, vc, vcc, qos);
2317 struct atm_vcc *vcc, struct atm_qos *qos)
2337 switch (qos->aal) {
2355 if (qos->aal != ATM_AAL5)
2357 else if (qos->rxtp.max_sdu > SAR_FB_SIZE_2)
2359 else if (qos->rxtp.max_sdu > SAR_FB_SIZE_1)
2361 else if (qos->rxtp.max_sdu > SAR_FB_SIZE_0)
2410 switch (vcc->qos.aal) {
2416 printk("%s: Unsupported AAL: %d\n", card->name, vcc->qos.aal);
2440 vcc->qos.rxtp.traffic_class != ATM_NONE ? "rx" : "--",
2441 vcc->qos.txtp.traffic_class != ATM_NONE ? "tx" : "--",
2442 vcc->qos.rxtp.max_sdu);
2445 if (vcc->qos.txtp.traffic_class != ATM_NONE &&
2448 if (vcc->qos.rxtp.traffic_class != ATM_NONE &&
2459 if (vcc->qos.txtp.traffic_class != ATM_NONE) {
2460 error = idt77252_init_tx(card, vc, vcc, &vcc->qos);
2467 if (vcc->qos.rxtp.traffic_class != ATM_NONE) {
2468 error = idt77252_init_rx(card, vc, vcc, &vcc->qos);
2498 if (vcc->qos.rxtp.traffic_class != ATM_NONE) {
2524 if (vcc->qos.txtp.traffic_class != ATM_NONE) {
2566 idt77252_change_qos(struct atm_vcc *vcc, struct atm_qos *qos, int flags)
2575 if (qos->txtp.traffic_class != ATM_NONE) {
2577 error = idt77252_init_tx(card, vc, vcc, qos);
2581 switch (qos->txtp.traffic_class) {
2583 error = idt77252_init_cbr(card, vc, vcc, qos);
2589 error = idt77252_init_ubr(card, vc, vcc, qos);
2607 if ((qos->rxtp.traffic_class != ATM_NONE) &&
2609 error = idt77252_init_rx(card, vc, vcc, qos);
2614 memcpy(&vcc->qos, qos, sizeof(struct atm_qos));