Home
last modified time | relevance | path

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

1234

/openbmc/linux/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 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 …]
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 */
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 …]
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 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 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 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 …]
/openbmc/linux/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 …]
/openbmc/linux/drivers/atm/
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.
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 …]
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
24 #include <linux/dma-mapping.h>
53 #if 1 /* ensure correct handling of 52-byte AAL0 SDUs expected by atmdump-like apps */
76 ((((unsigned long)(addr) + (alignment - 1)) & ~(alignment - 1)) - (unsigned long)(addr))
100 MODULE_AUTHOR("Christophe Lizzi - credits to Uwe Dannowski and Heikki Vatiainen");
101 MODULE_DESCRIPTION("FORE Systems 200E-series ATM driver - version " FORE200E_VERSION);
[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 …]
H A Dlanai.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* lanai.c -- Copyright 1999-2003 by Mitchell Blank Jr <mitch@sfgoth.com>
5 * chipset such as the Speedstream 3010 and the ENI-25p. The
7 * have the code to drive the on-board Alcatel DSL chipset (yet).
14 * o We don't support the Speedstream 3060 yet - this card has
15 * an on-board DSL modem chip by Alcatel and the driver will
18 * o Note that due to limitations of the Lanai only one VCC can be
24 * enable it yet - bugs in that code may actually damage your
32 * This isn't too much work - I just wanted to get other things
37 * o There aren't any ioctl's yet -- I'd like to eventually support
[all …]
/openbmc/linux/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.
71 printk(KERN_DEBUG "skt%u: %s: %pV", skt->nr, func, &vaf); in soc_pcmcia_debug()
89 if (!r->reg) in soc_pcmcia_regulator_set()
93 if (r->on == on) in soc_pcmcia_regulator_set()
97 ret = regulator_set_voltage(r->reg, v * 100000, v * 100000); in soc_pcmcia_regulator_set()
99 int vout = regulator_get_voltage(r->reg) / 100000; in soc_pcmcia_regulator_set()
101 dev_warn(&skt->socket.dev, in soc_pcmcia_regulator_set()
103 r == &skt->vcc ? "Vcc" : "Vpp", in soc_pcmcia_regulator_set()
107 ret = regulator_enable(r->reg); in soc_pcmcia_regulator_set()
109 ret = regulator_disable(r->reg); in soc_pcmcia_regulator_set()
[all …]
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/displays/
H A Dpanel-sharp-ls037v7dw01.c1 // SPDX-License-Identifier: GPL-2.0-only
21 struct regulator *vcc; member
55 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev) argument
60 struct omap_dss_device *in = ddata->in; in sharp_ls_connect()
65 return in->ops.dpi->connect(in, dssdev); in sharp_ls_connect()
71 struct omap_dss_device *in = ddata->in; in sharp_ls_disconnect()
76 in->ops.dpi->disconnect(in, dssdev); in sharp_ls_disconnect()
82 struct omap_dss_device *in = ddata->in; in sharp_ls_enable()
86 return -ENODEV; in sharp_ls_enable()
91 if (ddata->data_lines) in sharp_ls_enable()
[all …]
/openbmc/linux/drivers/input/touchscreen/
H A Dedt-ft5x06.c1 // SPDX-License-Identifier: GPL-2.0
5 * Lothar Waßmann <LW@KARO-electronics.de> (DT support)
114 struct regulator *vcc; member
167 for (i = 0; i < buflen - 1; i++) in edt_ft5x06_ts_check_crc()
170 if (crc != buf[buflen - 1]) { in edt_ft5x06_ts_check_crc()
171 tsdata->crc_errors++; in edt_ft5x06_ts_check_crc()
172 dev_err_ratelimited(&tsdata->client->dev, in edt_ft5x06_ts_check_crc()
174 crc, buf[buflen - 1]); in edt_ft5x06_ts_check_crc()
209 wbuf[0] = M06_REG_CMD(tsdata->factory_mode); in edt_M06_i2c_read()
210 wbuf[1] = M06_REG_ADDR(tsdata->factory_mode, addr); in edt_M06_i2c_read()
[all …]
/openbmc/u-boot/board/freescale/mx53evk/
H A Dmx53evk.c1 // SPDX-License-Identifier: GPL-2.0+
8 #include <asm/arch/imx-regs.h>
12 #include <asm/arch/iomux-mx53.h>
14 #include <asm/mach-imx/boot_mode.h>
28 /* dram_init must store complete ramsize in gd->ram_size */ in dram_init()
29 gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, in dram_init()
80 struct pmic *p; in power_init() local
87 p = pmic_get("FSL_PMIC"); in power_init()
88 if (!p) in power_init()
92 pmic_reg_read(p, REG_SW_2, &val); in power_init()
[all …]
/openbmc/linux/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 …]
/openbmc/u-boot/board/freescale/mx53loco/
H A Dmx53loco.c1 // SPDX-License-Identifier: GPL-2.0+
9 #include <asm/arch/imx-regs.h>
13 #include <asm/arch/iomux-mx53.h>
16 #include <asm/mach-imx/mx5_video.h>
36 struct fuse_bank *bank = &iim->bank[0]; in get_board_rev()
38 (struct fuse_bank0_regs *)bank->fuse_regs; in get_board_rev()
40 int rev = readl(&fuse->gp[6]); in get_board_rev()
103 struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; in board_mmc_getcd()
111 if (cfg->esdhc_base == MMC_SDHC1_BASE_ADDR) in board_mmc_getcd()
171 return -EINVAL; in board_mmc_init()
[all …]
/openbmc/linux/arch/riscv/boot/dts/allwinner/
H A Dsun20i-d1-lichee-rv-86-panel-480p.dts1 // SPDX-License-Identifier: (GPL-2.0+ or MIT)
4 #include "sun20i-d1-lichee-rv-86-panel.dtsi"
7 model = "Sipeed Lichee RV 86 Panel (480p)";
8 compatible = "sipeed,lichee-rv-86-panel-480p", "sipeed,lichee-rv",
9 "allwinner,sun20i-d1";
13 pinctrl-0 = <&i2c2_pb0_pins>;
14 pinctrl-names = "default";
20 interrupt-parent = <&pio>;
22 iovcc-supply = <&reg_vcc_3v3>;
23 reset-gpios = <&pio 6 15 GPIO_ACTIVE_LOW>; /* PG15 */
[all …]

1234