Home
last modified time | relevance | path

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

123456

/OK3568_Linux_fs/kernel/net/atm/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A Dmpc.c1 // SPDX-License-Identifier: GPL-2.0-only
68 /* mpc_daemon -> kernel */
87 static void purge_egress_shortcut(struct atm_vcc *vcc, eg_cache_entry *entry);
90 static void mpoad_close(struct atm_vcc *vcc);
91 static int msg_from_mpoad(struct atm_vcc *vcc, struct sk_buff *skb);
93 static void mpc_push(struct atm_vcc *vcc, struct sk_buff *skb);
134 if (mpc->dev_num == itf) in find_mpc_by_itfnum()
136 mpc = mpc->next; in find_mpc_by_itfnum()
142 static struct mpoa_client *find_mpc_by_vcc(struct atm_vcc *vcc) in find_mpc_by_vcc() argument
148 if (mpc->mpoad_vcc == vcc) in find_mpc_by_vcc()
[all …]
/OK3568_Linux_fs/kernel/net/sched/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/usb/atm/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/atm/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A Deni.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* drivers/atm/eni.c - Efficient Networks ENI155P device driver */
4 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
41 * - OAM support
42 * - fix bugs listed below
48 * - may run into JK-JK bug and deadlock
49 * - should allocate UBR channel first
50 * - buffer space allocation algorithm is stupid
53 * - doesn't support OAM cells
54 * - eni_put_free may hang if not putting memory fragments that _complete_
[all …]
H A Dfore200e.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 A FORE Systems 200E-series driver for ATM on Linux.
4 Christophe Lizzi (lizzi@cnam.fr), October 1999-March 2003.
6 Based on the PCA-200E driver from Uwe Dannowski (Uwe.Dannowski@inf.tu-dresden.de).
8 This driver simultaneously supports PCA-200E and SBA-200E adapters
25 #include <linux/dma-mapping.h>
54 #if 1 /* ensure correct handling of 52-byte AAL0 SDUs expected by atmdump-like apps */
77 ((((unsigned long)(addr) + (alignment - 1)) & ~(alignment - 1)) - (unsigned long)(addr))
101 MODULE_AUTHOR("Christophe Lizzi - credits to Uwe Dannowski and Heikki Vatiainen");
102 MODULE_DESCRIPTION("FORE Systems 200E-series ATM driver - version " FORE200E_VERSION);
[all …]
H A Dambassador.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 Copyright (C) 1995-1999 Madge Networks Ltd.
8 /* * dedicated to the memory of Graham Gordon 1971-1998 * */
48 This driver is for the PCI ATMizer-based Ambassador card (except
58 The cards are big-endian.
66 The cards are reset and the self-test results are checked. The
68 pointer to a descriptor containing details of the host-based queues
81 contents of several other "shared run-time registers" (bad) which
96 1. Driver <-> Adapter Communication
104 All queues are host-based circular queues. They are contiguous and
[all …]
H A Dhe.c6 Copyright (C) 1999-2001 Naval Research Laboratory
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 Copyright (C) 1999-2001 Naval Research Laboratory
42 ForeRunnerHE(tm)", MANU0361-01 - Rev. A, 08/21/98.
69 #include <linux/dma-mapping.h>
88 #define hprintk(fmt,args...) printk(KERN_ERR DEV_LABEL "%d: " fmt, he_dev->number , ##args)
91 #define HPRINTK(fmt,args...) printk(KERN_DEBUG DEV_LABEL "%d: " fmt, he_dev->number , ##args)
98 static int he_open(struct atm_vcc *vcc);
99 static void he_close(struct atm_vcc *vcc);
100 static int he_send(struct atm_vcc *vcc, struct sk_buff *skb);
[all …]
/OK3568_Linux_fs/kernel/drivers/pcmcia/
H A Ddb1xxx_ss.c1 // SPDX-License-Identifier: GPL-2.0-only
13 * The Db1000 is used as a reference: Per-socket card-, carddetect- and
15 * bits arranged in per-socket groups in an external PLD. All boards
19 * - Pb1100/Pb1500: single socket only; voltage key bits VS are
21 * - Au1200-based: additional card-eject irqs, irqs not gpios!
22 * - Db1300: Db1200-like, no pwr ctrl, single socket (#1).
37 #include <asm/mach-au1x00/au1000.h>
38 #include <asm/mach-db1x00/bcsr.h>
57 int stschg_irq; /* card-status-change irq */
82 return sigstat & 1 << (8 + 2 * sock->nr); in db1200_card_inserted()
[all …]
H A Di82365.c56 /* ISA-bus controllers */
67 return -1; in _check_irq()
81 static int ignore = -1;
86 /* The card status change interrupt -- 0 means autoselect */
91 /* Poll status interval -- 0 means default to interrupt */
97 static int has_dma = -1;
98 static int has_led = -1;
99 static int has_ring = -1;
101 static int freq_bypass = -1;
102 static int setup_time = -1;
[all …]
H A Dsoc_common.c4 integrated SOCs like the SA-11x0 and PXA2xx microprocessors.
72 printk(KERN_DEBUG "skt%u: %s: %pV", skt->nr, func, &vaf); in soc_pcmcia_debug()
90 if (!r->reg) in soc_pcmcia_regulator_set()
94 if (r->on == on) in soc_pcmcia_regulator_set()
98 ret = regulator_set_voltage(r->reg, v * 100000, v * 100000); in soc_pcmcia_regulator_set()
100 int vout = regulator_get_voltage(r->reg) / 100000; in soc_pcmcia_regulator_set()
102 dev_warn(&skt->socket.dev, in soc_pcmcia_regulator_set()
104 r == &skt->vcc ? "Vcc" : "Vpp", in soc_pcmcia_regulator_set()
108 ret = regulator_enable(r->reg); in soc_pcmcia_regulator_set()
110 ret = regulator_disable(r->reg); in soc_pcmcia_regulator_set()
[all …]
/OK3568_Linux_fs/kernel/drivers/video/fbdev/omap2/omapfb/displays/
H A Dpanel-sharp-ls037v7dw01.c1 // SPDX-License-Identifier: GPL-2.0-only
22 struct regulator *vcc; member
56 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) argument
61 struct omap_dss_device *in = ddata->in; in sharp_ls_connect()
67 r = in->ops.dpi->connect(in, dssdev); in sharp_ls_connect()
77 struct omap_dss_device *in = ddata->in; in sharp_ls_disconnect()
82 in->ops.dpi->disconnect(in, dssdev); in sharp_ls_disconnect()
88 struct omap_dss_device *in = ddata->in; in sharp_ls_enable()
92 return -ENODEV; in sharp_ls_enable()
97 if (ddata->data_lines) in sharp_ls_enable()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dedt-ft5x06.c1 // SPDX-License-Identifier: GPL-2.0
5 * Lothar Waßmann <LW@KARO-electronics.de> (DT support)
103 struct regulator *vcc; member
144 wrmsg[i].addr = client->addr; in edt_ft5x06_ts_readwrite()
151 wrmsg[i].addr = client->addr; in edt_ft5x06_ts_readwrite()
158 ret = i2c_transfer(client->adapter, wrmsg, i); in edt_ft5x06_ts_readwrite()
162 return -EIO; in edt_ft5x06_ts_readwrite()
173 for (i = 0; i < buflen - 1; i++) in edt_ft5x06_ts_check_crc()
176 if (crc != buf[buflen-1]) { in edt_ft5x06_ts_check_crc()
177 dev_err_ratelimited(&tsdata->client->dev, in edt_ft5x06_ts_check_crc()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/serial/
H A Diuu_phoenix.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2010 James Courtier-Dutton (James@superbug.co.uk)
60 int vcc; /* vcc (either 3 or 5 V) */ member
72 return -ENOMEM; in iuu_port_probe()
74 priv->buf = kzalloc(256, GFP_KERNEL); in iuu_port_probe()
75 if (!priv->buf) { in iuu_port_probe()
77 return -ENOMEM; in iuu_port_probe()
80 priv->writebuf = kzalloc(256, GFP_KERNEL); in iuu_port_probe()
81 if (!priv->writebuf) { in iuu_port_probe()
82 kfree(priv->buf); in iuu_port_probe()
[all …]

123456