Home
last modified time | relevance | path

Searched refs:vcc (Results 1 – 23 of 23) 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 struct sk_buff *alloc_tx(struct atm_vcc *vcc, unsigned int size) in alloc_tx() argument
68 struct sock *sk = sk_atm(vcc); in alloc_tx()
70 if (sk_wmem_alloc_get(sk) && !atm_may_send(vcc, size)) { in alloc_tx()
106 struct atm_vcc *vcc = atm_sk(sk); in vcc_writable() local
108 return (vcc->qos.txtp.max_sdu + in vcc_writable()
131 struct atm_vcc *vcc = atm_sk(sk); in vcc_release_cb() local
133 if (vcc->release_cb) in vcc_release_cb()
[all …]
Dsignaling.c57 static void modify_qos(struct atm_vcc *vcc, struct atmsvc_msg *msg) in modify_qos() argument
61 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || in modify_qos()
62 !test_bit(ATM_VF_READY, &vcc->flags)) in modify_qos()
65 if (!vcc->dev->ops->change_qos) in modify_qos()
69 msg->reply = vcc->dev->ops->change_qos(vcc, &msg->qos, in modify_qos()
84 static int sigd_send(struct atm_vcc *vcc, struct sk_buff *skb) in sigd_send() argument
91 atomic_sub(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc); in sigd_send()
92 vcc = *(struct atm_vcc **) &msg->vcc; in sigd_send()
93 pr_debug("%d (0x%lx)\n", (int)msg->type, (unsigned long)vcc); in sigd_send()
94 sk = sk_atm(vcc); in sigd_send()
[all …]
Draw.c22 static void atm_push_raw(struct atm_vcc *vcc, struct sk_buff *skb) in atm_push_raw() argument
25 struct sock *sk = sk_atm(vcc); in atm_push_raw()
32 static void atm_pop_raw(struct atm_vcc *vcc, struct sk_buff *skb) in atm_pop_raw() argument
34 struct sock *sk = sk_atm(vcc); in atm_pop_raw()
37 vcc->vci, sk_wmem_alloc_get(sk), skb->truesize); in atm_pop_raw()
43 static int atm_send_aal0(struct atm_vcc *vcc, struct sk_buff *skb) in atm_send_aal0() argument
51 ((vcc->vpi << ATM_HDR_VPI_SHIFT) | in atm_send_aal0()
52 (vcc->vci << ATM_HDR_VCI_SHIFT))) { in atm_send_aal0()
56 return vcc->dev->ops->send(vcc, skb); in atm_send_aal0()
59 int atm_init_aal0(struct atm_vcc *vcc) in atm_init_aal0() argument
[all …]
Dsvc.c45 static void svc_disconnect(struct atm_vcc *vcc) in svc_disconnect() argument
49 struct sock *sk = sk_atm(vcc); in svc_disconnect()
51 pr_debug("%p\n", vcc); in svc_disconnect()
52 if (test_bit(ATM_VF_REGIS, &vcc->flags)) { in svc_disconnect()
54 sigd_enq(vcc, as_close, NULL, NULL, NULL); in svc_disconnect()
55 while (!test_bit(ATM_VF_RELEASED, &vcc->flags) && sigd) { in svc_disconnect()
65 atm_return(vcc, skb->truesize); in svc_disconnect()
67 sigd_enq2(NULL, as_reject, vcc, NULL, NULL, &vcc->qos, 0); in svc_disconnect()
70 clear_bit(ATM_VF_REGIS, &vcc->flags); in svc_disconnect()
77 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.c154 static void pvc_info(struct seq_file *seq, struct atm_vcc *vcc) in pvc_info() argument
165 vcc->dev->number, vcc->vpi, vcc->vci, in pvc_info()
166 vcc->qos.aal >= ARRAY_SIZE(aal_name) ? "err" : in pvc_info()
167 aal_name[vcc->qos.aal], vcc->qos.rxtp.min_pcr, in pvc_info()
168 class_name[vcc->qos.rxtp.traffic_class], in pvc_info()
169 vcc->qos.txtp.min_pcr, in pvc_info()
170 class_name[vcc->qos.txtp.traffic_class]); in pvc_info()
171 if (test_bit(ATM_VF_IS_CLIP, &vcc->flags)) { in pvc_info()
172 struct clip_vcc *clip_vcc = CLIP_VCC(vcc); in pvc_info()
183 static const char *vcc_state(struct atm_vcc *vcc) in vcc_state() argument
[all …]
Dlec.c78 struct atm_vcc *vcc, struct sk_buff *skb);
90 static int lec_mcast_make(struct lec_priv *priv, struct atm_vcc *vcc);
96 struct atm_vcc *vcc,
97 void (*old_push)(struct atm_vcc *vcc,
99 static void lec_vcc_close(struct lec_priv *priv, struct atm_vcc *vcc);
177 lec_send(struct atm_vcc *vcc, struct sk_buff *skb) in lec_send() argument
181 ATM_SKB(skb)->vcc = vcc; in lec_send()
182 ATM_SKB(skb)->atm_options = vcc->atm_options; in lec_send()
184 atomic_add(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc); in lec_send()
185 if (vcc->send(vcc, skb) < 0) { in lec_send()
[all …]
Datm_misc.c14 int atm_charge(struct atm_vcc *vcc, int truesize) in atm_charge() argument
16 atm_force_charge(vcc, truesize); in atm_charge()
17 if (atomic_read(&sk_atm(vcc)->sk_rmem_alloc) <= sk_atm(vcc)->sk_rcvbuf) in atm_charge()
19 atm_return(vcc, truesize); in atm_charge()
20 atomic_inc(&vcc->stats->rx_drop); in atm_charge()
25 struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc, int pdu_size, in atm_alloc_charge() argument
28 struct sock *sk = sk_atm(vcc); in atm_alloc_charge()
31 atm_force_charge(vcc, guess); in atm_alloc_charge()
41 atm_return(vcc, guess); in atm_alloc_charge()
42 atomic_inc(&vcc->stats->rx_drop); in atm_alloc_charge()
Dpvc.c31 struct atm_vcc *vcc; in pvc_bind() local
40 vcc = ATM_SD(sock); in pvc_bind()
41 if (!test_bit(ATM_VF_HASQOS, &vcc->flags)) { in pvc_bind()
45 if (test_bit(ATM_VF_PARTIAL, &vcc->flags)) { in pvc_bind()
46 if (vcc->vpi != ATM_VPI_UNSPEC) in pvc_bind()
47 addr->sap_addr.vpi = vcc->vpi; in pvc_bind()
48 if (vcc->vci != ATM_VCI_UNSPEC) in pvc_bind()
49 addr->sap_addr.vci = vcc->vci; in pvc_bind()
92 struct atm_vcc *vcc = ATM_SD(sock); in pvc_getname() local
94 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()
605 static int atm_mpoa_vcc_attach(struct atm_vcc *vcc, void __user *arg) in atm_mpoa_vcc_attach() argument
639 in_entry->shortcut = vcc; in atm_mpoa_vcc_attach()
645 vcc->proto_data = mpc->dev; in atm_mpoa_vcc_attach()
646 vcc->push = mpc_push; in atm_mpoa_vcc_attach()
[all …]
Dmpoa_caches.c76 static in_cache_entry *in_cache_get_by_vcc(struct atm_vcc *vcc, in in_cache_get_by_vcc() argument
84 if (entry->shortcut == vcc) { in in_cache_get_by_vcc()
193 struct atm_vcc *vcc; in in_cache_remove_entry() local
196 vcc = entry->shortcut; in in_cache_remove_entry()
213 if (vcc != NULL) { in in_cache_remove_entry()
214 eg_cache_entry *eg_entry = client->eg_ops->get_by_vcc(vcc, in in_cache_remove_entry()
220 vcc_release_async(vcc, -EPIPE); in in_cache_remove_entry()
375 static eg_cache_entry *eg_cache_get_by_vcc(struct atm_vcc *vcc, in eg_cache_get_by_vcc() argument
384 if (entry->shortcut == vcc) { in eg_cache_get_by_vcc()
430 struct atm_vcc *vcc; in eg_cache_remove_entry() local
[all …]
Dprotocols.h9 int atm_init_aal0(struct atm_vcc *vcc); /* "raw" AAL0 */
10 int atm_init_aal34(struct atm_vcc *vcc);/* "raw" AAL3/4 transport */
11 int atm_init_aal5(struct atm_vcc *vcc); /* "raw" AAL5 transport */
Dsignaling.h22 void sigd_enq2(struct atm_vcc *vcc,enum atmsvc_msg_type type,
25 void sigd_enq(struct atm_vcc *vcc,enum atmsvc_msg_type type,
28 int sigd_attach(struct atm_vcc *vcc);
Dlec_arpc.h18 struct atm_vcc *vcc; /* Vcc this entry is attached */ member
21 void (*old_push) (struct atm_vcc *vcc, struct sk_buff *skb);
24 void (*old_recv_push) (struct atm_vcc *vcc, struct sk_buff *skb);
Dlec.h148 void (*old_pop) (struct atm_vcc *vcc, struct sk_buff *skb);
152 #define LEC_VCC_PRIV(vcc) ((struct lec_vcc_priv *)((vcc)->user_back)) argument
Dcommon.h27 void vcc_process_recv_queue(struct atm_vcc *vcc);
52 int svc_change_qos(struct atm_vcc *vcc,struct atm_qos *qos);
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()
506 ATM_SKB(skb)->vcc = atmvcc; /* needed ? */ in br2684_push()
Dioctl.c54 struct atm_vcc *vcc; in do_vcc_ioctl() local
59 vcc = ATM_SD(sock); in do_vcc_ioctl()
63 !test_bit(ATM_VF_READY, &vcc->flags)) { in do_vcc_ioctl()
130 error = sigd_attach(vcc); in do_vcc_ioctl()
Dmpoa_caches.h38 in_cache_entry *(*get_by_vcc)(struct atm_vcc *vcc,
68 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/rfkill/
Drfkill-regulator.c27 struct regulator *vcc; member
38 regulator_disable(rfkill_data->vcc); in rfkill_regulator_set_block()
43 regulator_enable(rfkill_data->vcc); in rfkill_regulator_set_block()
49 regulator_is_enabled(rfkill_data->vcc)); in rfkill_regulator_set_block()
62 struct regulator *vcc; in rfkill_regulator_probe() local
76 vcc = regulator_get_exclusive(&pdev->dev, "vrfkill"); in rfkill_regulator_probe()
77 if (IS_ERR(vcc)) { in rfkill_regulator_probe()
79 ret = PTR_ERR(vcc); in rfkill_regulator_probe()
97 if (regulator_is_enabled(vcc)) { in rfkill_regulator_probe()
101 rfkill_data->vcc = vcc; in rfkill_regulator_probe()
[all …]
/net/sched/
Dsch_atm.c40 #define VCC2FLOW(vcc) ((struct atm_flow_data *) ((vcc)->user_back)) argument
45 struct atm_vcc *vcc; /* VCC; NULL if VCC is closed */ member
46 void (*old_pop)(struct atm_vcc *vcc,
149 flow->vcc->pop = flow->old_pop; in atm_tc_put()
162 static void sch_atm_pop(struct atm_vcc *vcc, struct sk_buff *skb) in sch_atm_pop() argument
164 struct atm_qdisc_data *p = VCC2FLOW(vcc)->parent; in sch_atm_pop()
166 pr_debug("sch_atm_pop(vcc %p,skb %p,[qdisc %p])\n", vcc, skb, p); in sch_atm_pop()
167 VCC2FLOW(vcc)->old_pop(vcc, skb); in sch_atm_pop()
282 flow->vcc = ATM_SD(sock); /* speedup */ in atm_tc_change()
283 flow->vcc->user_back = flow; in atm_tc_change()
[all …]