Lines Matching refs:vcc

785   if (ATM_SKB(skb)->vcc->pop) {  in hrz_kfree_skb()
786 ATM_SKB(skb)->vcc->pop (ATM_SKB(skb)->vcc, skb); in hrz_kfree_skb()
1019 struct atm_vcc * vcc = ATM_SKB(skb)->vcc; in rx_schedule() local
1021 atomic_inc(&vcc->stats->rx); in rx_schedule()
1024 vcc->push (vcc, skb); in rx_schedule()
1173 atomic_inc(&ATM_SKB(skb)->vcc->stats->tx); in tx_schedule()
1314 ATM_SKB(skb)->vcc = atm_vcc; in rx_data_av_handler()
1438 static short setup_idle_tx_channel (hrz_dev * dev, hrz_vcc * vcc) { in setup_idle_tx_channel() argument
1483 u16 channel = vcc->channel; in setup_idle_tx_channel()
1493 vcc->tx_xbr_bits); in setup_idle_tx_channel()
1497 vcc->tx_pcr_bits); in setup_idle_tx_channel()
1500 if (vcc->tx_xbr_bits == VBR_RATE_TYPE) { in setup_idle_tx_channel()
1503 vcc->tx_scr_bits); in setup_idle_tx_channel()
1507 vcc->tx_bucket_bits); in setup_idle_tx_channel()
1511 vcc->tx_bucket_bits); in setup_idle_tx_channel()
1528 switch (vcc->aal) { in setup_idle_tx_channel()
1566 hrz_vcc * vcc = HRZ_VCC(atm_vcc); in hrz_send() local
1567 u16 channel = vcc->channel; in hrz_send()
1586 ATM_SKB(skb)->vcc = atm_vcc; in hrz_send()
1677 tx_channel = setup_idle_tx_channel (dev, vcc); in hrz_send()
2117 hrz_vcc vcc; in hrz_open() local
2137 vcc.channel = channel; in hrz_open()
2139 vcc.tx_rate = 0x0; in hrz_open()
2148 vcc.aal = aal0; in hrz_open()
2153 vcc.aal = aal34; in hrz_open()
2157 vcc.aal = aal5; in hrz_open()
2203 vcc.tx_rate = 0; in hrz_open()
2205 vcc.tx_xbr_bits = IDLE_RATE_TYPE; in hrz_open()
2206 vcc.tx_pcr_bits = CLOCK_DISABLE; in hrz_open()
2208 vcc.tx_scr_bits = CLOCK_DISABLE; in hrz_open()
2209 vcc.tx_bucket_bits = 0; in hrz_open()
2213 error = check_max_sdu (vcc.aal, txtp, max_tx_size); in hrz_open()
2223 vcc.tx_rate = 0; in hrz_open()
2224 make_rate (dev, 1<<30, round_nearest, &vcc.tx_pcr_bits, NULL); in hrz_open()
2225 vcc.tx_xbr_bits = ABR_RATE_TYPE; in hrz_open()
2231 vcc.tx_rate = 0; // ? in hrz_open()
2232 make_rate (dev, 1<<30, round_nearest, &vcc.tx_pcr_bits, 0); in hrz_open()
2233 vcc.tx_xbr_bits = ABR_RATE_TYPE; in hrz_open()
2258 &vcc.tx_pcr_bits, &vcc.tx_rate); in hrz_open()
2264 error = atm_pcr_check (txtp, vcc.tx_rate); in hrz_open()
2269 vcc.tx_xbr_bits = CBR_RATE_TYPE; in hrz_open()
2291 &vcc.tx_pcr_bits, 0); in hrz_open()
2306 &vcc.tx_scr_bits, &vcc.tx_rate); in hrz_open()
2328 vcc.tx_xbr_bits = VBR_RATE_TYPE; in hrz_open()
2329 vcc.tx_bucket_bits = bucket; in hrz_open()
2347 vcc.rx_rate = 0; in hrz_open()
2350 error = check_max_sdu (vcc.aal, rxtp, max_rx_size); in hrz_open()
2363 vcc.rx_rate = 0; // ? in hrz_open()
2377 vcc.rx_rate = pcr; in hrz_open()
2379 error = atm_pcr_check (rxtp, vcc.rx_rate); in hrz_open()
2398 vcc.rx_rate = scr; in hrz_open()
2417 if (vcc.aal != aal5) { in hrz_open()
2428 *vccp = vcc; in hrz_open()
2434 if (vcc.tx_rate > dev->tx_avail) { in hrz_open()
2439 if (vcc.rx_rate > dev->rx_avail) { in hrz_open()
2446 dev->tx_avail -= vcc.tx_rate; in hrz_open()
2447 dev->rx_avail -= vcc.rx_rate; in hrz_open()
2449 vcc.tx_rate, vcc.rx_rate); in hrz_open()
2494 hrz_vcc * vcc = HRZ_VCC(atm_vcc); in hrz_close() local
2495 u16 channel = vcc->channel; in hrz_close()
2533 vcc->tx_rate, vcc->rx_rate); in hrz_close()
2534 dev->tx_avail += vcc->tx_rate; in hrz_close()
2535 dev->rx_avail += vcc->rx_rate; in hrz_close()
2539 kfree (vcc); in hrz_close()
2604 hrz_dev * dev = HRZ_DEV(vcc->dev);