Lines Matching refs:vcc
102 void (*release_cb)(struct atm_vcc *vcc); /* release_sock callback */
103 void (*push)(struct atm_vcc *vcc,struct sk_buff *skb);
104 void (*pop)(struct atm_vcc *vcc,struct sk_buff *skb); /* optional */
105 int (*push_oam)(struct atm_vcc *vcc,void *cell);
106 int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);
133 static inline struct sock *sk_atm(struct atm_vcc *vcc) in sk_atm() argument
135 return (struct sock *)vcc; in sk_atm()
184 int (*open)(struct atm_vcc *vcc);
185 void (*close)(struct atm_vcc *vcc);
191 int (*getsockopt)(struct atm_vcc *vcc,int level,int optname,
193 int (*setsockopt)(struct atm_vcc *vcc,int level,int optname,
195 int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);
196 int (*send_oam)(struct atm_vcc *vcc,void *cell,int flags);
200 int (*change_qos)(struct atm_vcc *vcc,struct atm_qos *qos,int flags);
213 struct atm_vcc *vcc; /* ATM VCC */ member
243 static inline void atm_force_charge(struct atm_vcc *vcc,int truesize) in atm_force_charge() argument
245 atomic_add(truesize, &sk_atm(vcc)->sk_rmem_alloc); in atm_force_charge()
249 static inline void atm_return(struct atm_vcc *vcc,int truesize) in atm_return() argument
251 atomic_sub(truesize, &sk_atm(vcc)->sk_rmem_alloc); in atm_return()
255 static inline int atm_may_send(struct atm_vcc *vcc,unsigned int size) in atm_may_send() argument
257 return (size + atomic_read(&sk_atm(vcc)->sk_wmem_alloc)) < in atm_may_send()
258 sk_atm(vcc)->sk_sndbuf; in atm_may_send()
279 int atm_charge(struct atm_vcc *vcc,int truesize);
280 struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size,
284 void vcc_release_async(struct atm_vcc *vcc, int reply);