Home
last modified time | relevance | path

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

1234567

/kernel/linux/linux-6.6/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 */
57 struct atm_vcc *vcc; in to_atmarpd() local
64 vcc = rcu_dereference(atmarpd); in to_atmarpd()
65 if (!vcc) { in to_atmarpd()
66 err = -EUNATCH; in to_atmarpd()
71 err = -ENOMEM; in to_atmarpd()
75 ctrl->type = type; in to_atmarpd()
76 ctrl->itf_num = itf; 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 …]
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 interrupting context, so write locking must block
110 return list_entry(le, struct br2684_dev, br2684_devs)->net_dev; in list_entry_brdev()
[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 */
51 static void svc_disconnect(struct atm_vcc *vcc) in svc_disconnect() argument
55 struct sock *sk = sk_atm(vcc); in svc_disconnect()
57 pr_debug("%p\n", vcc); in svc_disconnect()
58 if (test_bit(ATM_VF_REGIS, &vcc->flags)) { in svc_disconnect()
59 sigd_enq(vcc, as_close, NULL, NULL, NULL); in svc_disconnect()
62 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || !sigd) in svc_disconnect()
68 /* beware - socket is still in use by atmsigd until the last in svc_disconnect()
[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()
140 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-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 …]
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 …]
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 …]
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-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-6.6/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 …]
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 …]
Dnicstar.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * It was taken from the frle-0.22 device driver.
11 * frle-0.22 device driver.
26 * 1 - Per card interrupt spinlock (to protect structures and such)
27 * 2 - Per SCQ scq spinlock
28 * 3 - Per card resource spinlock (to access registers, etc.)
42 #include <linux/dma-mapping.h>
105 #define CMD_BUSY(card) (readl((card)->membase + STAT) & NS_STAT_CMDBZ)
109 #define PTR_DIFF(a, b) ((u32)((unsigned long)(a) - (unsigned long)(b)))
112 #define ATM_SKB(s) (&(s)->atm)
[all …]
/kernel/linux/linux-6.6/drivers/atm/
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.
72 #define PRIV(dev) ((struct suni_priv *) dev->phy_data)
99 que->next = NULL; in ia_init_rtn_q()
100 que->tail = NULL; in ia_init_rtn_q()
105 data->next = NULL; in ia_enque_head_rtn_q()
106 if (que->next == NULL) in ia_enque_head_rtn_q()
107 que->next = que->tail = data; in ia_enque_head_rtn_q()
109 data->next = que->next; in ia_enque_head_rtn_q()
110 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 …]
Dnicstar.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * It was taken from the frle-0.22 device driver.
11 * frle-0.22 device driver.
26 * 1 - Per card interrupt spinlock (to protect structures and such)
27 * 2 - Per SCQ scq spinlock
28 * 3 - Per card resource spinlock (to access registers, etc.)
42 #include <linux/dma-mapping.h>
105 #define CMD_BUSY(card) (readl((card)->membase + STAT) & NS_STAT_CMDBZ)
109 #define PTR_DIFF(a, b) ((u32)((unsigned long)(a) - (unsigned long)(b)))
112 #define ATM_SKB(s) (&(s)->atm)
[all …]

1234567