Lines Matching refs:vcc
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);
135 static inline struct sock *sk_atm(struct atm_vcc *vcc) in sk_atm() argument
137 return (struct sock *)vcc; in sk_atm()
186 int (*open)(struct atm_vcc *vcc);
187 void (*close)(struct atm_vcc *vcc);
193 int (*getsockopt)(struct atm_vcc *vcc,int level,int optname,
195 int (*setsockopt)(struct atm_vcc *vcc,int level,int optname,
197 int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);
198 int (*send_oam)(struct atm_vcc *vcc,void *cell,int flags);
202 int (*change_qos)(struct atm_vcc *vcc,struct atm_qos *qos,int flags);
215 struct atm_vcc *vcc; /* ATM VCC */ member
245 static inline void atm_account_tx(struct atm_vcc *vcc, struct sk_buff *skb) in atm_account_tx() argument
255 refcount_add(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc); in atm_account_tx()
257 ATM_SKB(skb)->atm_options = vcc->atm_options; in atm_account_tx()
260 static inline void atm_force_charge(struct atm_vcc *vcc,int truesize) in atm_force_charge() argument
262 atomic_add(truesize, &sk_atm(vcc)->sk_rmem_alloc); in atm_force_charge()
266 static inline void atm_return(struct atm_vcc *vcc,int truesize) in atm_return() argument
268 atomic_sub(truesize, &sk_atm(vcc)->sk_rmem_alloc); in atm_return()
272 static inline int atm_may_send(struct atm_vcc *vcc,unsigned int size) in atm_may_send() argument
274 return (size + refcount_read(&sk_atm(vcc)->sk_wmem_alloc)) < in atm_may_send()
275 sk_atm(vcc)->sk_sndbuf; in atm_may_send()
296 int atm_charge(struct atm_vcc *vcc,int truesize);
297 struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size,
301 void vcc_release_async(struct atm_vcc *vcc, int reply);