Lines Matching defs:vcc
252 (vcc->dev_data) structure and is "cached" on the card.
771 if (ATM_SKB(skb)->vcc->pop) {
772 ATM_SKB(skb)->vcc->pop (ATM_SKB(skb)->vcc, skb);
1005 struct atm_vcc * vcc = ATM_SKB(skb)->vcc;
1007 atomic_inc(&vcc->stats->rx);
1010 vcc->push (vcc, skb);
1159 atomic_inc(&ATM_SKB(skb)->vcc->stats->tx);
1282 // if no vcc is assigned to this channel, we should drop the frame
1300 ATM_SKB(skb)->vcc = atm_vcc;
1424 static short setup_idle_tx_channel (hrz_dev * dev, hrz_vcc * vcc) {
1469 u16 channel = vcc->channel;
1479 vcc->tx_xbr_bits);
1483 vcc->tx_pcr_bits);
1486 if (vcc->tx_xbr_bits == VBR_RATE_TYPE) {
1489 vcc->tx_scr_bits);
1493 vcc->tx_bucket_bits);
1497 vcc->tx_bucket_bits);
1514 switch (vcc->aal) {
1552 hrz_vcc * vcc = HRZ_VCC(atm_vcc);
1553 u16 channel = vcc->channel;
1572 ATM_SKB(skb)->vcc = atm_vcc;
1663 tx_channel = setup_idle_tx_channel (dev, vcc);
2103 hrz_vcc vcc;
2123 vcc.channel = channel;
2125 vcc.tx_rate = 0x0;
2134 vcc.aal = aal0;
2139 vcc.aal = aal34;
2143 vcc.aal = aal5;
2189 vcc.tx_rate = 0;
2191 vcc.tx_xbr_bits = IDLE_RATE_TYPE;
2192 vcc.tx_pcr_bits = CLOCK_DISABLE;
2194 vcc.tx_scr_bits = CLOCK_DISABLE;
2195 vcc.tx_bucket_bits = 0;
2199 error = check_max_sdu (vcc.aal, txtp, max_tx_size);
2209 vcc.tx_rate = 0;
2210 make_rate (dev, 1<<30, round_nearest, &vcc.tx_pcr_bits, NULL);
2211 vcc.tx_xbr_bits = ABR_RATE_TYPE;
2217 vcc.tx_rate = 0; // ?
2218 make_rate (dev, 1<<30, round_nearest, &vcc.tx_pcr_bits, 0);
2219 vcc.tx_xbr_bits = ABR_RATE_TYPE;
2244 &vcc.tx_pcr_bits, &vcc.tx_rate);
2250 error = atm_pcr_check (txtp, vcc.tx_rate);
2255 vcc.tx_xbr_bits = CBR_RATE_TYPE;
2277 &vcc.tx_pcr_bits, 0);
2292 &vcc.tx_scr_bits, &vcc.tx_rate);
2298 // error = atm_scr_check (txtp, vcc.tx_rate);
2314 vcc.tx_xbr_bits = VBR_RATE_TYPE;
2315 vcc.tx_bucket_bits = bucket;
2333 vcc.rx_rate = 0;
2336 error = check_max_sdu (vcc.aal, rxtp, max_rx_size);
2349 vcc.rx_rate = 0; // ?
2363 vcc.rx_rate = pcr;
2365 error = atm_pcr_check (rxtp, vcc.rx_rate);
2384 vcc.rx_rate = scr;
2386 // error = atm_scr_check (rxtp, vcc.rx_rate);
2403 if (vcc.aal != aal5) {
2408 // get space for our vcc stuff and copy parameters into it
2414 *vccp = vcc;
2420 if (vcc.tx_rate > dev->tx_avail) {
2425 if (vcc.rx_rate > dev->rx_avail) {
2432 dev->tx_avail -= vcc.tx_rate;
2433 dev->rx_avail -= vcc.rx_rate;
2435 vcc.tx_rate, vcc.rx_rate);
2480 hrz_vcc * vcc = HRZ_VCC(atm_vcc);
2481 u16 channel = vcc->channel;
2508 // forget the vcc - no more skbs will be pushed
2519 vcc->tx_rate, vcc->rx_rate);
2520 dev->tx_avail += vcc->tx_rate;
2521 dev->rx_avail += vcc->rx_rate;
2525 kfree (vcc);
2550 hrz_dev * dev = HRZ_DEV(vcc->dev);