Lines Matching refs:vcc
801 if (ATM_SKB(skb)->vcc->pop) { in hrz_kfree_skb()
802 ATM_SKB(skb)->vcc->pop (ATM_SKB(skb)->vcc, skb); in hrz_kfree_skb()
1035 struct atm_vcc * vcc = ATM_SKB(skb)->vcc; in rx_schedule() local
1037 atomic_inc(&vcc->stats->rx); in rx_schedule()
1040 vcc->push (vcc, skb); in rx_schedule()
1189 atomic_inc(&ATM_SKB(skb)->vcc->stats->tx); in tx_schedule()
1338 ATM_SKB(skb)->vcc = atm_vcc; in rx_data_av_handler()
1462 static short setup_idle_tx_channel (hrz_dev * dev, hrz_vcc * vcc) { in setup_idle_tx_channel() argument
1507 u16 channel = vcc->channel; in setup_idle_tx_channel()
1517 vcc->tx_xbr_bits); in setup_idle_tx_channel()
1521 vcc->tx_pcr_bits); in setup_idle_tx_channel()
1524 if (vcc->tx_xbr_bits == VBR_RATE_TYPE) { in setup_idle_tx_channel()
1527 vcc->tx_scr_bits); in setup_idle_tx_channel()
1531 vcc->tx_bucket_bits); in setup_idle_tx_channel()
1535 vcc->tx_bucket_bits); in setup_idle_tx_channel()
1552 switch (vcc->aal) { in setup_idle_tx_channel()
1590 hrz_vcc * vcc = HRZ_VCC(atm_vcc); in hrz_send() local
1591 u16 channel = vcc->channel; in hrz_send()
1610 ATM_SKB(skb)->vcc = atm_vcc; in hrz_send()
1701 tx_channel = setup_idle_tx_channel (dev, vcc); in hrz_send()
2141 hrz_vcc vcc; in hrz_open() local
2161 vcc.channel = channel; in hrz_open()
2163 vcc.tx_rate = 0x0; in hrz_open()
2172 vcc.aal = aal0; in hrz_open()
2177 vcc.aal = aal34; in hrz_open()
2181 vcc.aal = aal5; in hrz_open()
2227 vcc.tx_rate = 0; in hrz_open()
2229 vcc.tx_xbr_bits = IDLE_RATE_TYPE; in hrz_open()
2230 vcc.tx_pcr_bits = CLOCK_DISABLE; in hrz_open()
2232 vcc.tx_scr_bits = CLOCK_DISABLE; in hrz_open()
2233 vcc.tx_bucket_bits = 0; in hrz_open()
2237 error = check_max_sdu (vcc.aal, txtp, max_tx_size); in hrz_open()
2247 vcc.tx_rate = 0; in hrz_open()
2248 make_rate (dev, 1<<30, round_nearest, &vcc.tx_pcr_bits, NULL); in hrz_open()
2249 vcc.tx_xbr_bits = ABR_RATE_TYPE; in hrz_open()
2255 vcc.tx_rate = 0; // ? in hrz_open()
2256 make_rate (dev, 1<<30, round_nearest, &vcc.tx_pcr_bits, 0); in hrz_open()
2257 vcc.tx_xbr_bits = ABR_RATE_TYPE; in hrz_open()
2282 &vcc.tx_pcr_bits, &vcc.tx_rate); in hrz_open()
2288 error = atm_pcr_check (txtp, vcc.tx_rate); in hrz_open()
2293 vcc.tx_xbr_bits = CBR_RATE_TYPE; in hrz_open()
2315 &vcc.tx_pcr_bits, 0); in hrz_open()
2330 &vcc.tx_scr_bits, &vcc.tx_rate); in hrz_open()
2352 vcc.tx_xbr_bits = VBR_RATE_TYPE; in hrz_open()
2353 vcc.tx_bucket_bits = bucket; in hrz_open()
2371 vcc.rx_rate = 0; in hrz_open()
2374 error = check_max_sdu (vcc.aal, rxtp, max_rx_size); in hrz_open()
2387 vcc.rx_rate = 0; // ? in hrz_open()
2401 vcc.rx_rate = pcr; in hrz_open()
2403 error = atm_pcr_check (rxtp, vcc.rx_rate); in hrz_open()
2422 vcc.rx_rate = scr; in hrz_open()
2441 if (vcc.aal != aal5) { in hrz_open()
2452 *vccp = vcc; in hrz_open()
2458 if (vcc.tx_rate > dev->tx_avail) { in hrz_open()
2463 if (vcc.rx_rate > dev->rx_avail) { in hrz_open()
2470 dev->tx_avail -= vcc.tx_rate; in hrz_open()
2471 dev->rx_avail -= vcc.rx_rate; in hrz_open()
2473 vcc.tx_rate, vcc.rx_rate); in hrz_open()
2518 hrz_vcc * vcc = HRZ_VCC(atm_vcc); in hrz_close() local
2519 u16 channel = vcc->channel; in hrz_close()
2557 vcc->tx_rate, vcc->rx_rate); in hrz_close()
2558 dev->tx_avail += vcc->tx_rate; in hrz_close()
2559 dev->rx_avail += vcc->rx_rate; in hrz_close()
2563 kfree (vcc); in hrz_close()
2628 hrz_dev * dev = HRZ_DEV(vcc->dev);