Home
last modified time | relevance | path

Searched +full:vcc +full:- +full:p (Results 1 – 25 of 135) sorted by relevance

123456

/kernel/linux/linux-5.10/net/atm/
Dclip.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* net/atm/clip.c - RFC1577 Classical IP over ATM */
4 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
60 return -EUNATCH; in to_atmarpd()
63 return -ENOMEM; in to_atmarpd()
65 ctrl->type = type; in to_atmarpd()
66 ctrl->itf_num = itf; in to_atmarpd()
67 ctrl->ip = ip; in to_atmarpd()
68 atm_force_charge(atmarpd, skb->truesize); in to_atmarpd()
71 skb_queue_tail(&sk->sk_receive_queue, skb); in to_atmarpd()
[all …]
Dcommon.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* net/atm/common.c - ATM sockets (common part for PVC and SVC) */
4 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
18 #include <linux/time64.h> /* 64-bit time for seconds */
45 struct atm_vcc *vcc = atm_sk(sk); in __vcc_insert_socket() local
46 struct hlist_head *head = &vcc_hash[vcc->vci & (VCC_HTABLE_SIZE - 1)]; in __vcc_insert_socket()
47 sk->sk_hash = vcc->vci & (VCC_HTABLE_SIZE - 1); in __vcc_insert_socket()
66 static bool vcc_tx_ready(struct atm_vcc *vcc, unsigned int size) in vcc_tx_ready() argument
68 struct sock *sk = sk_atm(vcc); in vcc_tx_ready()
70 if (sk_wmem_alloc_get(sk) && !atm_may_send(vcc, size)) { in vcc_tx_ready()
[all …]
Dsvc.c1 // SPDX-License-Identifier: GPL-2.0
2 /* net/atm/svc.c - ATM SVC sockets */
4 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
46 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()
63 /* beware - socket is still in use by atmsigd until the last in svc_disconnect()
[all …]
Dbr2684.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Eric Kinzie, 2006-2007, US Naval Research Laboratory
38 16, 1, skb->data, min(NUM2PRINT, skb->len), true); in skb_debug()
70 void (*old_push)(struct atm_vcc *vcc, struct sk_buff *skb);
71 void (*old_pop)(struct atm_vcc *vcc, struct sk_buff *skb);
72 void (*old_release_cb)(struct atm_vcc *vcc);
87 struct list_head brvccs; /* one device <=> one vcc (before xmas) */
94 * their attached vcc's could be altered. It should be held for reading
96 * do read-locking under interrupt context, so write locking must block
110 return list_entry(le, struct br2684_dev, br2684_devs)->net_dev; in list_entry_brdev()
[all …]
Dlec.c1 // SPDX-License-Identifier: GPL-2.0-only
45 /* Hardening for Spectre-v1 */
82 struct atm_vcc *vcc, struct sk_buff *skb);
94 static int lec_mcast_make(struct lec_priv *priv, struct atm_vcc *vcc);
100 struct atm_vcc *vcc,
101 void (*old_push)(struct atm_vcc *vcc,
103 static void lec_vcc_close(struct lec_priv *priv, struct atm_vcc *vcc);
108 refcount_inc(&entry->usage); in lec_arp_hold()
113 if (refcount_dec_and_test(&entry->usage)) in lec_arp_put()
139 buff = skb->data + skb->dev->hard_header_len; in lec_handle_bridge()
[all …]
Dsignaling.c1 // SPDX-License-Identifier: GPL-2.0
2 /* net/atm/signaling.c - ATM signaling */
4 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
32 atm_force_charge(sigd, skb->truesize); in sigd_put_skb()
33 skb_queue_tail(&sk_atm(sigd)->sk_receive_queue, skb); in sigd_put_skb()
34 sk_atm(sigd)->sk_data_ready(sk_atm(sigd)); in sigd_put_skb()
37 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()
44 msg->type = as_error; in modify_qos()
[all …]
Dpppoatm.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* net/atm/pppoatm.c - RFC2364 PPP over ATM/AAL5 */
4 /* Copyright 1999-2000 by Mitchell Blank Jr */
5 /* Based on clip.c; 1995-1999 by Werner Almesberger, EPFL LRC/ICA */
17 * section 8 of RFC2364 - we are supposed to detect a change
19 * to avoid a black-hole being created if our peer loses state
24 * 1. LLC-encapsulation was missing when it was enabled. In
27 * 2. LLC-encapsulation was present when it was disabled. Then
44 #include <linux/ppp-ioctl.h>
57 struct atm_vcc *atmvcc; /* VCC descriptor */
[all …]
/kernel/linux/linux-4.19/net/atm/
Dclip.c1 /* net/atm/clip.c - RFC1577 Classical IP over ATM */
3 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
59 return -EUNATCH; in to_atmarpd()
62 return -ENOMEM; in to_atmarpd()
64 ctrl->type = type; in to_atmarpd()
65 ctrl->itf_num = itf; in to_atmarpd()
66 ctrl->ip = ip; in to_atmarpd()
67 atm_force_charge(atmarpd, skb->truesize); in to_atmarpd()
70 skb_queue_tail(&sk->sk_receive_queue, skb); in to_atmarpd()
71 sk->sk_data_ready(sk); in to_atmarpd()
[all …]
Dcommon.c1 /* net/atm/common.c - ATM sockets (common part for PVC and SVC) */
3 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
17 #include <linux/time64.h> /* 64-bit time for seconds */
44 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()
71 sk_wmem_alloc_get(sk), size, sk->sk_sndbuf); in vcc_tx_ready()
[all …]
Dsvc.c1 // SPDX-License-Identifier: GPL-2.0
2 /* net/atm/svc.c - ATM SVC sockets */
4 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
46 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()
63 /* beware - socket is still in use by atmsigd until the last in svc_disconnect()
[all …]
Dbr2684.c6 * Eric Kinzie, 2006-2007, US Naval Research Laboratory
37 16, 1, skb->data, min(NUM2PRINT, skb->len), true); in skb_debug()
69 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);
86 struct list_head brvccs; /* one device <=> one vcc (before xmas) */
93 * their attached vcc's could be altered. It should be held for reading
95 * do read-locking under interrupt context, so write locking must block
109 return list_entry(le, struct br2684_dev, br2684_devs)->net_dev; in list_entry_brdev()
114 return (struct br2684_vcc *)(atmvcc->user_back); in BR2684_VCC()
[all …]
Dlec.c44 /* Hardening for Spectre-v1 */
81 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);
107 refcount_inc(&entry->usage); in lec_arp_hold()
112 if (refcount_dec_and_test(&entry->usage)) in lec_arp_put()
138 buff = skb->data + skb->dev->hard_header_len; in lec_handle_bridge()
147 skb2->len = sizeof(struct atmlec_msg); in lec_handle_bridge()
[all …]
Dsignaling.c1 // SPDX-License-Identifier: GPL-2.0
2 /* net/atm/signaling.c - ATM signaling */
4 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
32 atm_force_charge(sigd, skb->truesize); in sigd_put_skb()
33 skb_queue_tail(&sk_atm(sigd)->sk_receive_queue, skb); in sigd_put_skb()
34 sk_atm(sigd)->sk_data_ready(sk_atm(sigd)); in sigd_put_skb()
37 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()
44 msg->type = as_error; in modify_qos()
[all …]
Dpppoatm.c1 /* net/atm/pppoatm.c - RFC2364 PPP over ATM/AAL5 */
3 /* Copyright 1999-2000 by Mitchell Blank Jr */
4 /* Based on clip.c; 1995-1999 by Werner Almesberger, EPFL LRC/ICA */
20 * section 8 of RFC2364 - we are supposed to detect a change
22 * to avoid a black-hole being created if our peer loses state
27 * 1. LLC-encapsulation was missing when it was enabled. In
30 * 2. LLC-encapsulation was present when it was disabled. Then
47 #include <linux/ppp-ioctl.h>
60 struct atm_vcc *atmvcc; /* VCC descriptor */
69 int flags; /* SC_COMP_PROT - compress protocol */
[all …]
/kernel/linux/linux-5.10/net/sched/
Dsch_atm.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* net/sched/sch_atm.c - ATM VC selection "queueing discipline" */
4 /* Written 1998-2000 by Werner Almesberger, EPFL ICA */
36 * - sometimes messes up the IP stack
37 * - any manipulations besides the few operations described in the README, are
39 * - should lock the flow while there is data in the queue (?)
42 #define VCC2FLOW(vcc) ((struct atm_flow_data *) ((vcc)->user_back)) argument
49 struct atm_vcc *vcc; /* VCC; NULL if VCC is closed */ member
50 void (*old_pop)(struct atm_vcc *vcc,
71 /* ------------------------- Class/flow operations ------------------------- */
[all …]
/kernel/linux/linux-4.19/net/sched/
Dsch_atm.c1 /* net/sched/sch_atm.c - ATM VC selection "queueing discipline" */
3 /* Written 1998-2000 by Werner Almesberger, EPFL ICA */
35 * - sometimes messes up the IP stack
36 * - any manipulations besides the few operations described in the README, are
38 * - should lock the flow while there is data in the queue (?)
41 #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,
70 /* ------------------------- Class/flow operations ------------------------- */
74 struct atm_qdisc_data *p = qdisc_priv(sch); in lookup_flow() local
[all …]
/kernel/linux/linux-4.19/drivers/usb/atm/
Dusbatm.c1 // SPDX-License-Identifier: GPL-2.0+
3 * usbatm.c - Generic USB xDSL driver core
13 * 1.7+: - See the check-in logs
15 * 1.6: - No longer opens a connection if the firmware is not loaded
16 * - Added support for the speedtouch 330
17 * - Removed the limit on the number of devices
18 * - Module now autoloads on device plugin
19 * - Merged relevant parts of sarlib
20 * - Replaced the kernel thread with a tasklet
21 * - New packet transmission code
[all …]
/kernel/linux/linux-5.10/drivers/usb/atm/
Dusbatm.c1 // SPDX-License-Identifier: GPL-2.0+
3 * usbatm.c - Generic USB xDSL driver core
13 * 1.7+: - See the check-in logs
15 * 1.6: - No longer opens a connection if the firmware is not loaded
16 * - Added support for the speedtouch 330
17 * - Removed the limit on the number of devices
18 * - Module now autoloads on device plugin
19 * - Merged relevant parts of sarlib
20 * - Replaced the kernel thread with a tasklet
21 * - New packet transmission code
[all …]
/kernel/linux/linux-5.10/drivers/atm/
Dfirestream.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 /* drivers/atm/firestream.c - FireStream 155 (MB86697) and
9 * and ambassador.c Copyright (C) 1995-1999 Madge Networks Ltd
52 * pays to have those pre-allocated. Unfortunately, we can't fully
56 * smaller buffers more efficiently than the larger ones. -- REW
61 * from 1024-byte regions anyway. With the size of the sk_buffs (quite
62 * large), it doesn't pay to allocate the smallest size (64) -- REW */
65 * are appreciated. -- REW */
69 * would be interpreted. -- REW */
103 - When disabling channels, write an invalid VP/VC value to the
[all …]
Dhorizon.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 Copyright (C) 1995-1999 Madge Networks Ltd.
95 comes with the revision 0 (140-025-01) ASIC.
99 Madge's SAMBA framer or a SUNI-lite device (early versions). It
100 comes with the revision 1 (140-027-01) ASIC.
104 All Horizon-based cards present with the same PCI Vendor and Device
106 to enable bus-mastering (with appropriate latency).
115 up for loop-timing.
122 line-based timing; the internal RAM is zeroed and the allocation of
126 configurable at module load (if not actually on-demand), however,
[all …]
Diphase.c29 Complete the ABR logic of the driver, and added the ABR work-
32 Add the flow control logic to the driver to allow rate-limit VC.
71 #define PRIV(dev) ((struct suni_priv *) dev->phy_data)
98 que->next = NULL; in ia_init_rtn_q()
99 que->tail = NULL; in ia_init_rtn_q()
104 data->next = NULL; in ia_enque_head_rtn_q()
105 if (que->next == NULL) in ia_enque_head_rtn_q()
106 que->next = que->tail = data; in ia_enque_head_rtn_q()
108 data->next = que->next; in ia_enque_head_rtn_q()
109 que->next = data; in ia_enque_head_rtn_q()
[all …]
/kernel/linux/linux-4.19/drivers/atm/
Dfirestream.c2 /* drivers/atm/firestream.c - FireStream 155 (MB86697) and
8 * and ambassador.c Copyright (C) 1995-1999 Madge Networks Ltd
24 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
67 * pays to have those pre-allocated. Unfortunately, we can't fully
71 * smaller buffers more efficiently than the larger ones. -- REW
76 * from 1024-byte regions anyway. With the size of the sk_buffs (quite
77 * large), it doesn't pay to allocate the smallest size (64) -- REW */
80 * are appreciated. -- REW */
84 * would be interpreted. -- REW */
118 - When disabling channels, write an invalid VP/VC value to the
[all …]
Dhorizon.c3 Copyright (C) 1995-1999 Madge Networks Ltd.
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
110 comes with the revision 0 (140-025-01) ASIC.
114 Madge's SAMBA framer or a SUNI-lite device (early versions). It
115 comes with the revision 1 (140-027-01) ASIC.
119 All Horizon-based cards present with the same PCI Vendor and Device
121 to enable bus-mastering (with appropriate latency).
130 up for loop-timing.
137 line-based timing; the internal RAM is zeroed and the allocation of
141 configurable at module load (if not actually on-demand), however,
[all …]
Diphase.c29 Complete the ABR logic of the driver, and added the ABR work-
32 Add the flow control logic to the driver to allow rate-limit VC.
71 #define PRIV(dev) ((struct suni_priv *) dev->phy_data)
98 que->next = NULL; in ia_init_rtn_q()
99 que->tail = NULL; in ia_init_rtn_q()
104 data->next = NULL; in ia_enque_head_rtn_q()
105 if (que->next == NULL) in ia_enque_head_rtn_q()
106 que->next = que->tail = data; in ia_enque_head_rtn_q()
108 data->next = que->next; in ia_enque_head_rtn_q()
109 que->next = data; in ia_enque_head_rtn_q()
[all …]
Didt77252.c122 static int idt77252_open(struct atm_vcc *vcc);
123 static void idt77252_close(struct atm_vcc *vcc);
124 static int idt77252_send(struct atm_vcc *vcc, struct sk_buff *skb);
125 static int idt77252_send_oam(struct atm_vcc *vcc, void *cell,
130 static int idt77252_change_qos(struct atm_vcc *vcc, struct atm_qos *qos,
176 spin_lock_irqsave(&card->cmd_lock, flags); in read_sram()
180 spin_unlock_irqrestore(&card->cmd_lock, flags); in read_sram()
190 (((addr > card->tst[0] + card->tst_size - 2) && in write_sram()
191 (addr < card->tst[0] + card->tst_size)) || in write_sram()
192 ((addr > card->tst[1] + card->tst_size - 2) && in write_sram()
[all …]

123456