Home
last modified time | relevance | path

Searched refs:vcc (Results 1 – 22 of 22) sorted by relevance

/net/atm/
Dcommon.c44 struct atm_vcc *vcc = atm_sk(sk); in __vcc_insert_socket() local
45 struct hlist_head *head = &vcc_hash[vcc->vci & (VCC_HTABLE_SIZE - 1)]; in __vcc_insert_socket()
46 sk->sk_hash = vcc->vci & (VCC_HTABLE_SIZE - 1); in __vcc_insert_socket()
65 static bool vcc_tx_ready(struct atm_vcc *vcc, unsigned int size) in vcc_tx_ready() argument
67 struct sock *sk = sk_atm(vcc); in vcc_tx_ready()
69 if (sk_wmem_alloc_get(sk) && !atm_may_send(vcc, size)) { in vcc_tx_ready()
101 struct atm_vcc *vcc = atm_sk(sk); in vcc_writable() local
103 return (vcc->qos.txtp.max_sdu + in vcc_writable()
126 struct atm_vcc *vcc = atm_sk(sk); in vcc_release_cb() local
128 if (vcc->release_cb) in vcc_release_cb()
[all …]
Dsignaling.c37 static void modify_qos(struct atm_vcc *vcc, struct atmsvc_msg *msg) in modify_qos() argument
41 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || in modify_qos()
42 !test_bit(ATM_VF_READY, &vcc->flags)) in modify_qos()
45 if (!vcc->dev->ops->change_qos) in modify_qos()
49 msg->reply = vcc->dev->ops->change_qos(vcc, &msg->qos, in modify_qos()
64 static int sigd_send(struct atm_vcc *vcc, struct sk_buff *skb) in sigd_send() argument
71 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc)); in sigd_send()
72 vcc = *(struct atm_vcc **) &msg->vcc; in sigd_send()
73 pr_debug("%d (0x%lx)\n", (int)msg->type, (unsigned long)vcc); in sigd_send()
74 sk = sk_atm(vcc); in sigd_send()
[all …]
Draw.c23 static void atm_push_raw(struct atm_vcc *vcc, struct sk_buff *skb) in atm_push_raw() argument
26 struct sock *sk = sk_atm(vcc); in atm_push_raw()
33 static void atm_pop_raw(struct atm_vcc *vcc, struct sk_buff *skb) in atm_pop_raw() argument
35 struct sock *sk = sk_atm(vcc); in atm_pop_raw()
38 vcc->vci, sk_wmem_alloc_get(sk), ATM_SKB(skb)->acct_truesize); in atm_pop_raw()
44 static int atm_send_aal0(struct atm_vcc *vcc, struct sk_buff *skb) in atm_send_aal0() argument
52 ((vcc->vpi << ATM_HDR_VPI_SHIFT) | in atm_send_aal0()
53 (vcc->vci << ATM_HDR_VCI_SHIFT))) { in atm_send_aal0()
57 return vcc->dev->ops->send(vcc, skb); in atm_send_aal0()
60 int atm_init_aal0(struct atm_vcc *vcc) in atm_init_aal0() argument
[all …]
Dsvc.c46 static void svc_disconnect(struct atm_vcc *vcc) in svc_disconnect() argument
50 struct sock *sk = sk_atm(vcc); in svc_disconnect()
52 pr_debug("%p\n", vcc); in svc_disconnect()
53 if (test_bit(ATM_VF_REGIS, &vcc->flags)) { in svc_disconnect()
54 sigd_enq(vcc, as_close, NULL, NULL, NULL); in svc_disconnect()
57 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || !sigd) in svc_disconnect()
66 atm_return(vcc, skb->truesize); in svc_disconnect()
68 sigd_enq2(NULL, as_reject, vcc, NULL, NULL, &vcc->qos, 0); in svc_disconnect()
71 clear_bit(ATM_VF_REGIS, &vcc->flags); in svc_disconnect()
78 struct atm_vcc *vcc; in svc_release() local
[all …]
Dclip.c132 cv, cv->vcc, entry); in neigh_check_cb()
133 vcc_release_async(cv->vcc, -ETIMEDOUT); in neigh_check_cb()
166 struct atm_vcc *vcc; in clip_arp_rcv() local
169 vcc = ATM_SKB(skb)->vcc; in clip_arp_rcv()
170 if (!vcc || !atm_charge(vcc, skb->truesize)) { in clip_arp_rcv()
174 pr_debug("pushing to %p\n", vcc); in clip_arp_rcv()
175 pr_debug("using %p\n", CLIP_VCC(vcc)->old_push); in clip_arp_rcv()
176 CLIP_VCC(vcc)->old_push(vcc, skb); in clip_arp_rcv()
189 static void clip_push(struct atm_vcc *vcc, struct sk_buff *skb) in clip_push() argument
191 struct clip_vcc *clip_vcc = CLIP_VCC(vcc); in clip_push()
[all …]
Dproc.c155 static void pvc_info(struct seq_file *seq, struct atm_vcc *vcc) in pvc_info() argument
166 vcc->dev->number, vcc->vpi, vcc->vci, in pvc_info()
167 vcc->qos.aal >= ARRAY_SIZE(aal_name) ? "err" : in pvc_info()
168 aal_name[vcc->qos.aal], vcc->qos.rxtp.min_pcr, in pvc_info()
169 class_name[vcc->qos.rxtp.traffic_class], in pvc_info()
170 vcc->qos.txtp.min_pcr, in pvc_info()
171 class_name[vcc->qos.txtp.traffic_class]); in pvc_info()
172 if (test_bit(ATM_VF_IS_CLIP, &vcc->flags)) { in pvc_info()
173 struct clip_vcc *clip_vcc = CLIP_VCC(vcc); in pvc_info()
184 static const char *vcc_state(struct atm_vcc *vcc) in vcc_state() argument
[all …]
Dlec.c81 struct atm_vcc *vcc, struct sk_buff *skb);
93 static int lec_mcast_make(struct lec_priv *priv, struct atm_vcc *vcc);
99 struct atm_vcc *vcc,
100 void (*old_push)(struct atm_vcc *vcc,
102 static void lec_vcc_close(struct lec_priv *priv, struct atm_vcc *vcc);
180 lec_send(struct atm_vcc *vcc, struct sk_buff *skb) in lec_send() argument
184 ATM_SKB(skb)->vcc = vcc; in lec_send()
185 atm_account_tx(vcc, skb); in lec_send()
187 if (vcc->send(vcc, skb) < 0) { in lec_send()
209 struct atm_vcc *vcc; in lec_start_xmit() local
[all …]
Datm_misc.c15 int atm_charge(struct atm_vcc *vcc, int truesize) in atm_charge() argument
17 atm_force_charge(vcc, truesize); in atm_charge()
18 if (atomic_read(&sk_atm(vcc)->sk_rmem_alloc) <= sk_atm(vcc)->sk_rcvbuf) in atm_charge()
20 atm_return(vcc, truesize); in atm_charge()
21 atomic_inc(&vcc->stats->rx_drop); in atm_charge()
26 struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc, int pdu_size, in atm_alloc_charge() argument
29 struct sock *sk = sk_atm(vcc); in atm_alloc_charge()
32 atm_force_charge(vcc, guess); in atm_alloc_charge()
42 atm_return(vcc, guess); in atm_alloc_charge()
43 atomic_inc(&vcc->stats->rx_drop); in atm_alloc_charge()
Dpvc.c32 struct atm_vcc *vcc; in pvc_bind() local
41 vcc = ATM_SD(sock); in pvc_bind()
42 if (!test_bit(ATM_VF_HASQOS, &vcc->flags)) { in pvc_bind()
46 if (test_bit(ATM_VF_PARTIAL, &vcc->flags)) { in pvc_bind()
47 if (vcc->vpi != ATM_VPI_UNSPEC) in pvc_bind()
48 addr->sap_addr.vpi = vcc->vpi; in pvc_bind()
49 if (vcc->vci != ATM_VCI_UNSPEC) in pvc_bind()
50 addr->sap_addr.vci = vcc->vci; in pvc_bind()
93 struct atm_vcc *vcc = ATM_SD(sock); in pvc_getname() local
95 if (!vcc->dev || !test_bit(ATM_VF_ADDR, &vcc->flags)) in pvc_getname()
[all …]
Dpppoatm.c295 struct atm_vcc *vcc; in pppoatm_send() local
298 ATM_SKB(skb)->vcc = pvcc->atmvcc; in pppoatm_send()
303 vcc = ATM_SKB(skb)->vcc; in pppoatm_send()
304 bh_lock_sock(sk_atm(vcc)); in pppoatm_send()
305 if (sock_owned_by_user(sk_atm(vcc))) { in pppoatm_send()
314 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || in pppoatm_send()
315 test_bit(ATM_VF_CLOSE, &vcc->flags) || in pppoatm_send()
316 !test_bit(ATM_VF_READY, &vcc->flags)) { in pppoatm_send()
317 bh_unlock_sock(sk_atm(vcc)); in pppoatm_send()
335 bh_unlock_sock(sk_atm(vcc)); in pppoatm_send()
[all …]
Dmpc.c86 static void purge_egress_shortcut(struct atm_vcc *vcc, eg_cache_entry *entry);
89 static void mpoad_close(struct atm_vcc *vcc);
90 static int msg_from_mpoad(struct atm_vcc *vcc, struct sk_buff *skb);
92 static void mpc_push(struct atm_vcc *vcc, struct sk_buff *skb);
141 static struct mpoa_client *find_mpc_by_vcc(struct atm_vcc *vcc) in find_mpc_by_vcc() argument
147 if (mpc->mpoad_vcc == vcc) in find_mpc_by_vcc()
604 static int atm_mpoa_vcc_attach(struct atm_vcc *vcc, void __user *arg) in atm_mpoa_vcc_attach() argument
638 in_entry->shortcut = vcc; in atm_mpoa_vcc_attach()
644 vcc->proto_data = mpc->dev; in atm_mpoa_vcc_attach()
645 vcc->push = mpc_push; in atm_mpoa_vcc_attach()
[all …]
Dmpoa_caches.c77 static in_cache_entry *in_cache_get_by_vcc(struct atm_vcc *vcc, in in_cache_get_by_vcc() argument
85 if (entry->shortcut == vcc) { in in_cache_get_by_vcc()
194 struct atm_vcc *vcc; in in_cache_remove_entry() local
197 vcc = entry->shortcut; in in_cache_remove_entry()
214 if (vcc != NULL) { in in_cache_remove_entry()
215 eg_cache_entry *eg_entry = client->eg_ops->get_by_vcc(vcc, in in_cache_remove_entry()
221 vcc_release_async(vcc, -EPIPE); in in_cache_remove_entry()
376 static eg_cache_entry *eg_cache_get_by_vcc(struct atm_vcc *vcc, in eg_cache_get_by_vcc() argument
385 if (entry->shortcut == vcc) { in eg_cache_get_by_vcc()
431 struct atm_vcc *vcc; in eg_cache_remove_entry() local
[all …]
Dprotocols.h10 int atm_init_aal0(struct atm_vcc *vcc); /* "raw" AAL0 */
11 int atm_init_aal34(struct atm_vcc *vcc);/* "raw" AAL3/4 transport */
12 int atm_init_aal5(struct atm_vcc *vcc); /* "raw" AAL5 transport */
Dsignaling.h23 void sigd_enq2(struct atm_vcc *vcc,enum atmsvc_msg_type type,
26 void sigd_enq(struct atm_vcc *vcc,enum atmsvc_msg_type type,
29 int sigd_attach(struct atm_vcc *vcc);
Dlec_arpc.h19 struct atm_vcc *vcc; /* Vcc this entry is attached */ member
22 void (*old_push) (struct atm_vcc *vcc, struct sk_buff *skb);
25 void (*old_recv_push) (struct atm_vcc *vcc, struct sk_buff *skb);
Dlec.h149 void (*old_pop) (struct atm_vcc *vcc, struct sk_buff *skb);
153 #define LEC_VCC_PRIV(vcc) ((struct lec_vcc_priv *)((vcc)->user_back)) argument
Dbr2684.c69 void (*old_push)(struct atm_vcc *vcc, struct sk_buff *skb);
70 void (*old_pop)(struct atm_vcc *vcc, struct sk_buff *skb);
71 void (*old_release_cb)(struct atm_vcc *vcc);
184 static void br2684_pop(struct atm_vcc *vcc, struct sk_buff *skb) in br2684_pop() argument
186 struct br2684_vcc *brvcc = BR2684_VCC(vcc); in br2684_pop()
188 pr_debug("(vcc %p ; net_dev %p )\n", vcc, brvcc->device); in br2684_pop()
189 brvcc->old_pop(vcc, skb); in br2684_pop()
253 ATM_SKB(skb)->vcc = atmvcc = brvcc->atmvcc; in br2684_xmit_vcc()
505 ATM_SKB(skb)->vcc = atmvcc; /* needed ? */ in br2684_push()
Dcommon.h27 void vcc_process_recv_queue(struct atm_vcc *vcc);
52 int svc_change_qos(struct atm_vcc *vcc,struct atm_qos *qos);
Dioctl.c55 struct atm_vcc *vcc; in do_vcc_ioctl() local
60 vcc = ATM_SD(sock); in do_vcc_ioctl()
64 !test_bit(ATM_VF_READY, &vcc->flags)) { in do_vcc_ioctl()
131 error = sigd_attach(vcc); in do_vcc_ioctl()
Dmpoa_caches.h40 in_cache_entry *(*get_by_vcc)(struct atm_vcc *vcc,
70 eg_cache_entry *(*get_by_vcc)(struct atm_vcc *vcc, struct mpoa_client *client);
DKconfig72 large number of IP-only vcc's. Do not enable this unless you are sure
/net/sched/
Dsch_atm.c41 #define VCC2FLOW(vcc) ((struct atm_flow_data *) ((vcc)->user_back)) argument
48 struct atm_vcc *vcc; /* VCC; NULL if VCC is closed */ member
49 void (*old_pop)(struct atm_vcc *vcc,
157 flow->vcc->pop = flow->old_pop; in atm_tc_put()
170 static void sch_atm_pop(struct atm_vcc *vcc, struct sk_buff *skb) in sch_atm_pop() argument
172 struct atm_qdisc_data *p = VCC2FLOW(vcc)->parent; in sch_atm_pop()
174 pr_debug("sch_atm_pop(vcc %p,skb %p,[qdisc %p])\n", vcc, skb, p); in sch_atm_pop()
175 VCC2FLOW(vcc)->old_pop(vcc, skb); in sch_atm_pop()
295 flow->vcc = ATM_SD(sock); /* speedup */ in atm_tc_change()
296 flow->vcc->user_back = flow; in atm_tc_change()
[all …]