Lines Matching full:vcc

65 	ATM_VF_SESSION,		/* VCC is p2mp session control descriptor */
95 unsigned long flags; /* VCC flags (ATM_VF_*) */
104 void (*release_cb)(struct atm_vcc *vcc); /* release_sock callback */
105 void (*push)(struct atm_vcc *vcc,struct sk_buff *skb);
106 void (*pop)(struct atm_vcc *vcc,struct sk_buff *skb); /* optional */
107 int (*push_oam)(struct atm_vcc *vcc,void *cell);
108 int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);
118 struct atm_vcc *session; /* session VCC descriptor */
135 static inline struct sock *sk_atm(struct atm_vcc *vcc) in sk_atm() argument
137 return (struct sock *)vcc; in sk_atm()
181 int (*open)(struct atm_vcc *vcc);
182 void (*close)(struct atm_vcc *vcc);
188 int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);
189 int (*send_bh)(struct atm_vcc *vcc, struct sk_buff *skb);
190 int (*send_oam)(struct atm_vcc *vcc,void *cell,int flags);
194 int (*change_qos)(struct atm_vcc *vcc,struct atm_qos *qos,int flags);
207 struct atm_vcc *vcc; /* ATM VCC */ member
209 unsigned int acct_truesize; /* truesize accounted to vcc */
237 static inline void atm_account_tx(struct atm_vcc *vcc, struct sk_buff *skb) in atm_account_tx() argument
247 refcount_add(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc); in atm_account_tx()
249 ATM_SKB(skb)->atm_options = vcc->atm_options; in atm_account_tx()
252 static inline void atm_force_charge(struct atm_vcc *vcc,int truesize) in atm_force_charge() argument
254 atomic_add(truesize, &sk_atm(vcc)->sk_rmem_alloc); in atm_force_charge()
258 static inline void atm_return(struct atm_vcc *vcc,int truesize) in atm_return() argument
260 atomic_sub(truesize, &sk_atm(vcc)->sk_rmem_alloc); in atm_return()
264 static inline int atm_may_send(struct atm_vcc *vcc,unsigned int size) in atm_may_send() argument
266 return (size + refcount_read(&sk_atm(vcc)->sk_wmem_alloc)) < in atm_may_send()
267 sk_atm(vcc)->sk_sndbuf; in atm_may_send()
288 int atm_charge(struct atm_vcc *vcc,int truesize);
289 struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size,
293 void vcc_release_async(struct atm_vcc *vcc, int reply);