Lines Matching refs:atm_vcc
784 struct atm_vcc *atm_vcc; in process_incoming() local
805 atm_vcc = dev->atm_vccs[channo]; in process_incoming()
807 atm_vcc = NULL; in process_incoming()
814 if (atm_vcc) { in process_incoming()
822 ATM_SKB(skb)->vcc = atm_vcc; in process_incoming()
823 atomic_inc(&atm_vcc->stats->rx); in process_incoming()
826 atm_vcc->push (atm_vcc, skb); in process_incoming()
843 if (atm_vcc) in process_incoming()
844 atomic_inc(&atm_vcc->stats->rx_drop); in process_incoming()
848 if (atm_vcc) in process_incoming()
849 atomic_inc(&atm_vcc->stats->rx_drop); in process_incoming()
863 static int fs_open(struct atm_vcc *atm_vcc) in fs_open() argument
876 short vpi = atm_vcc->vpi; in fs_open()
877 int vci = atm_vcc->vci; in fs_open()
881 dev = FS_DEV(atm_vcc->dev); in fs_open()
883 dev, atm_vcc); in fs_open()
886 set_bit(ATM_VF_ADDR, &atm_vcc->flags); in fs_open()
888 if ((atm_vcc->qos.aal != ATM_AAL5) && in fs_open()
889 (atm_vcc->qos.aal != ATM_AAL2)) in fs_open()
893 atm_vcc->dev->number, atm_vcc->vpi, atm_vcc->vci); in fs_open()
900 clear_bit(ATM_VF_ADDR, &atm_vcc->flags); in fs_open()
904 atm_vcc->dev_data = vcc; in fs_open()
909 txtp = &atm_vcc->qos.txtp; in fs_open()
910 rxtp = &atm_vcc->qos.rxtp; in fs_open()
912 if (!test_bit(ATM_VF_PARTIAL, &atm_vcc->flags)) { in fs_open()
962 switch (atm_vcc->qos.aal) { in fs_open()
980 printk ("Unknown aal: %d\n", atm_vcc->qos.aal); in fs_open()
1057 dev->atm_vccs[vcc->channo] = atm_vcc; in fs_open()
1060 if (atm_vcc->qos.rxtp.max_sdu <= dev->rx_fp[bfp].bufsize) break; in fs_open()
1063 atm_vcc->qos.rxtp.max_sdu); in fs_open()
1072 switch (atm_vcc->qos.aal) { in fs_open()
1101 set_bit(ATM_VF_READY, &atm_vcc->flags); in fs_open()
1108 static void fs_close(struct atm_vcc *atm_vcc) in fs_close() argument
1110 struct fs_dev *dev = FS_DEV (atm_vcc->dev); in fs_close()
1111 struct fs_vcc *vcc = FS_VCC (atm_vcc); in fs_close()
1117 clear_bit(ATM_VF_READY, &atm_vcc->flags); in fs_close()
1133 txtp = &atm_vcc->qos.txtp; in fs_close()
1134 rxtp = &atm_vcc->qos.rxtp; in fs_close()
1169 static int fs_send (struct atm_vcc *atm_vcc, struct sk_buff *skb) in fs_send() argument
1171 struct fs_dev *dev = FS_DEV (atm_vcc->dev); in fs_send()
1172 struct fs_vcc *vcc = FS_VCC (atm_vcc); in fs_send()
1179 atm_vcc, skb, vcc, dev); in fs_send()
1183 ATM_SKB(skb)->vcc = atm_vcc; in fs_send()
1242 static int fs_getsockopt(struct atm_vcc *vcc,int level,int optname,
1251 static int fs_setsockopt(struct atm_vcc *vcc,int level,int optname,
1276 static int fs_change_qos(struct atm_vcc *vcc,struct atm_qos *qos,int flags)
1804 dev->atm_vccs = kcalloc (dev->nchannels, sizeof (struct atm_vcc *), in fs_init()
1807 dev->atm_vccs, dev->nchannels * sizeof (struct atm_vcc *)); in fs_init()