Home
last modified time | relevance | path

Searched +full:up +full:- (Results 1 – 25 of 1085) sorted by relevance

12345678910>>...44

/linux/drivers/tty/serial/
H A Domap-serial.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Driver for OMAP-UART controller.
16 * this driver as required for the omap-platform.
38 #include <linux/platform_data/serial-omap.h>
79 #define OMAP_UART_DMA_CH_FREE -1
172 static void serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1);
174 static inline unsigned int serial_in(struct uart_omap_port *up, int offset) in serial_in() argument
176 offset <<= up->port.regshift; in serial_in()
177 return readw(up->port.membase + offset); in serial_in()
180 static inline void serial_out(struct uart_omap_port *up, int offset, int value) in serial_out() argument
[all …]
H A Dsunsab.c1 // SPDX-License-Identifier: GPL-2.0
13 * Theodore Ts'o <tytso@mit.edu>, 2001-Oct-12
92 static __inline__ void sunsab_tec_wait(struct uart_sunsab_port *up) in sunsab_tec_wait() argument
94 int timeout = up->tec_timeout; in sunsab_tec_wait()
96 while ((readb(&up->regs->r.star) & SAB82532_STAR_TEC) && --timeout) in sunsab_tec_wait()
100 static __inline__ void sunsab_cec_wait(struct uart_sunsab_port *up) in sunsab_cec_wait() argument
102 int timeout = up->cec_timeout; in sunsab_cec_wait()
104 while ((readb(&up->regs->r.star) & SAB82532_STAR_CEC) && --timeout) in sunsab_cec_wait()
109 receive_chars(struct uart_sunsab_port *up, in receive_chars() argument
119 if (up->port.state != NULL) /* Unopened serial console */ in receive_chars()
[all …]
H A Dar933x_uart.c1 // SPDX-License-Identifier: GPL-2.0
3 * Atheros AR933X SoC built-in UART driver
31 #include <asm/mach-ath79/ar933x_uart.h>
35 #define DRIVER_NAME "ar933x-uart"
57 static inline unsigned int ar933x_uart_read(struct ar933x_uart_port *up, in ar933x_uart_read() argument
60 return readl(up->port.membase + offset); in ar933x_uart_read()
63 static inline void ar933x_uart_write(struct ar933x_uart_port *up, in ar933x_uart_write() argument
66 writel(value, up->port.membase + offset); in ar933x_uart_write()
69 static inline void ar933x_uart_rmw(struct ar933x_uart_port *up, in ar933x_uart_rmw() argument
76 t = ar933x_uart_read(up, offset); in ar933x_uart_rmw()
[all …]
H A Dsunzilog.c1 // SPDX-License-Identifier: GPL-2.0
48 /* On 32-bit sparcs we need to delay after register accesses
50 * On 64-bit sparc we only need to flush single writes to ensure
61 readb(&((__channel)->control))
105 #define ZILOG_CHANNEL_FROM_PORT(PORT) ((struct zilog_channel __iomem *)((PORT)->membase))
108 #define ZS_IS_KEYB(UP) ((UP)->flags & SUNZILOG_FLAG_CONS_KEYB) argument
109 #define ZS_IS_MOUSE(UP) ((UP)->flags & SUNZILOG_FLAG_CONS_MOUSE) argument
110 #define ZS_IS_CONS(UP) ((UP)->flags & SUNZILOG_FLAG_IS_CONS) argument
111 #define ZS_IS_KGDB(UP) ((UP)->flags & SUNZILOG_FLAG_IS_KGDB) argument
112 #define ZS_WANTS_MODEM_STATUS(UP) ((UP)->flags & SUNZILOG_FLAG_MODEM_STATUS) argument
[all …]
H A Dpxa.c1 // SPDX-License-Identifier: GPL-2.0+
52 static inline unsigned int serial_in(struct uart_pxa_port *up, int offset) in serial_in() argument
55 return readl(up->port.membase + offset); in serial_in()
58 static inline void serial_out(struct uart_pxa_port *up, int offset, int value) in serial_out() argument
61 writel(value, up->port.membase + offset); in serial_out()
66 struct uart_pxa_port *up = (struct uart_pxa_port *)port; in serial_pxa_enable_ms() local
68 up->ier |= UART_IER_MSI; in serial_pxa_enable_ms()
69 serial_out(up, UART_IER, up->ier); in serial_pxa_enable_ms()
74 struct uart_pxa_port *up = (struct uart_pxa_port *)port; in serial_pxa_stop_tx() local
76 if (up->ier & UART_IER_THRI) { in serial_pxa_stop_tx()
[all …]
H A Dserial_txx9.c1 // SPDX-License-Identifier: GPL-2.0
10 * Copyright (C) 2000-2002 Toshiba Corporation
159 static inline unsigned int sio_in(struct uart_port *up, int offset) in sio_in() argument
161 switch (up->iotype) { in sio_in()
163 return __raw_readl(up->membase + offset); in sio_in()
165 return inl(up->iobase + offset); in sio_in()
170 sio_out(struct uart_port *up, int offset, int value) in sio_out() argument
172 switch (up->iotype) { in sio_out()
174 __raw_writel(value, up->membase + offset); in sio_out()
177 outl(value, up->iobase + offset); in sio_out()
[all …]
/linux/drivers/net/can/usb/
H A Ducan.c1 // SPDX-License-Identifier: GPL-2.0
48 * ------------------------
79 /* start the can transceiver - val defines the operation mode */
83 /* send can transceiver into low-power sleep mode */
85 /* wake up can transceiver from low-power sleep mode */
89 /* get piece of info from the can transceiver - subcmd defines what
93 /* clear or disable hardware filter - subcmd defines which of the two */
97 /* recover from bus-off state */
137 __le16 mode; /* OR-ing any of UCAN_MODE_* */
205 * msg.len - sizeof (msg.len)
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Duar.c2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
74 system_page_index = index >> (PAGE_SHIFT - MLX5_ADAPTER_PAGE_SHIFT); in uar2pfn()
78 return (mdev->bar_addr >> PAGE_SHIFT) + system_page_index; in uar2pfn()
83 struct mlx5_uars_page *up = container_of(kref, struct mlx5_uars_page, ref_count); in up_rel_func() local
85 list_del(&up->list); in up_rel_func()
86 iounmap(up->map); in up_rel_func()
87 if (mlx5_cmd_free_uar(up->mdev, up->index)) in up_rel_func()
88 mlx5_core_warn(up->mdev, "failed to free uar index %d\n", up->index); in up_rel_func()
[all …]
/linux/drivers/mtd/maps/
H A Dsun_uflash.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* sun_uflash.c - Driver for user-programmable flash on
5 * This driver does NOT provide access to the OBP-flash for
6 * safety reasons-- use <linux>/drivers/sbus/char/flash.c instead.
31 #define UFLASH_BUSWIDTH 1 /* EBus is 8-bit */
34 MODULE_DESCRIPTION("User-programmable flash device on Sun Microsystems boardsets");
45 .name = "SUNW,???-????",
52 struct uflash_dev *up; in uflash_devinit() local
54 if (op->resource[1].flags) { in uflash_devinit()
55 /* Non-CFI userflash device-- once I find one we in uflash_devinit()
[all …]
/linux/drivers/tty/serial/8250/
H A D8250_mtk.c1 // SPDX-License-Identifier: GPL-2.0+
19 #include <linux/dma-mapping.h>
89 static void mtk8250_rx_dma(struct uart_8250_port *up);
93 struct uart_8250_port *up = param; in mtk8250_dma_rx_complete() local
94 struct uart_8250_dma *dma = up->dma; in mtk8250_dma_rx_complete()
95 struct mtk8250_data *data = up->port.private_data; in mtk8250_dma_rx_complete()
96 struct tty_port *tty_port = &up->port.state->port; in mtk8250_dma_rx_complete()
102 if (data->rx_status == DMA_RX_SHUTDOWN) in mtk8250_dma_rx_complete()
105 uart_port_lock_irqsave(&up->port, &flags); in mtk8250_dma_rx_complete()
107 dmaengine_tx_status(dma->rxchan, dma->rx_cookie, &state); in mtk8250_dma_rx_complete()
[all …]
H A D8250_uniphier.c1 // SPDX-License-Identifier: GPL-2.0+
17 * - MMIO32 (regshift = 2)
18 * - FCR is not at 2, but 3
19 * - LCR and MCR are not at 3 and 4, they share 4
20 * - No SCR (Instead, CHAR can be used as a scratch register)
21 * - Divisor latch at 9, no divisor latch access bit
43 if (!device->port.membase) in uniphier_early_console_setup()
44 return -ENODEV; in uniphier_early_console_setup()
47 device->port.iotype = UPIO_MEM32; in uniphier_early_console_setup()
48 device->port.regshift = UNIPHIER_UART_REGSHIFT; in uniphier_early_console_setup()
[all …]
H A D8250_ce4100.c1 // SPDX-License-Identifier: GPL-2.0-only
21 offset = offset << p->regshift; in mem_serial_in()
22 return readl(p->membase + offset); in mem_serial_in()
32 * errata number 9 in Errata - B step.
58 offset <<= p->regshift; in ce4100_mem_serial_out()
59 writel(value, p->membase + offset); in ce4100_mem_serial_out()
62 static void ce4100_serial_fixup(int port, struct uart_port *up, u32 *capabilities) in ce4100_serial_fixup() argument
70 if (up->iotype != UPIO_MEM32) { in ce4100_serial_fixup()
71 up->uartclk = 14745600; in ce4100_serial_fixup()
72 up->mapbase = 0xdffe0200; in ce4100_serial_fixup()
[all …]
H A D8250_em.c1 // SPDX-License-Identifier: GPL-2.0
41 writeb(value, p->membase); in serial8250_em_serial_out_helper()
46 writel(value, p->membase + ((offset + 1) << 2)); in serial8250_em_serial_out_helper()
49 writel(value, p->membase + (UART_FCR_EM_HW << 2)); in serial8250_em_serial_out_helper()
52 value &= 0x0f; /* only 4 valid bits - not Xscale */ in serial8250_em_serial_out_helper()
57 writel(value, p->membase + (offset << 2)); in serial8250_em_serial_out_helper()
66 return readb(p->membase); in serial8250_em_serial_in()
72 return readl(p->membase + ((offset + 1) << 2)); in serial8250_em_serial_in()
74 return readl(p->membase + (UART_FCR_EM_HW << 2)); in serial8250_em_serial_in()
80 return readl(p->membase + (offset << 2)); in serial8250_em_serial_in()
[all …]
/linux/Documentation/networking/dsa/
H A Db53.rst1 .. SPDX-License-Identifier: GPL-2.0
20 The switch is, if possible, configured to enable a Broadcom specific 4-bytes
30 configuration described in the :ref:`dsa-config-showcases`.
33 ----------------------------------
38 See :ref:`dsa-tagged-configuration`.
41 -------------------------------------
48 The configuration slightly differ from the :ref:`dsa-vlan-configuration`.
54 In difference to the configuration described in :ref:`dsa-vlan-configuration`
61 The configuration can only be set up via VLAN tagging and bridge setup.
64 .. code-block:: sh
[all …]
H A Dconfiguration.rst1 .. SPDX-License-Identifier: GPL-2.0
10 .. _dsa-config-showcases:
13 -----------------------
37 The user interfaces depend on the conduit interface being up in order for them
42 - when a DSA user interface is brought up, the conduit interface is
43 automatically brought up.
44 - when the conduit interface is brought down, all DSA user interfaces are
71 * lan1: 192.0.2.1/30 (192.0.2.0 - 192.0.2.3)
72 * lan2: 192.0.2.5/30 (192.0.2.4 - 192.0.2.7)
73 * lan3: 192.0.2.9/30 (192.0.2.8 - 192.0.2.11)
[all …]
/linux/lib/crypto/mpi/
H A Dmpih-mul.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* mpihelp-mul.c - MPI helper functions
18 #include "mpi-internal.h"
21 #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ argument
24 mul_n_basecase(prodp, up, vp, size); \
26 mul_n(prodp, up, vp, size, tspace); \
29 #define MPN_SQR_N_RECURSE(prodp, up, size, tspace) \ argument
32 mpih_sqr_n_basecase(prodp, up, size); \
34 mpih_sqr_n(prodp, up, size, tspace); \
37 /* Multiply the natural numbers u (pointed to by UP) and v (pointed to by VP),
[all …]
/linux/arch/arm64/boot/dts/rockchip/
H A Drockchip-pinconf.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 /omit-if-no-ref/
8 pcfg_pull_up: pcfg-pull-up {
9 bias-pull-up;
12 /omit-if-no-ref/
13 pcfg_pull_down: pcfg-pull-down {
14 bias-pull-down;
17 /omit-if-no-ref/
18 pcfg_pull_none: pcfg-pull-none {
19 bias-disable;
[all …]
/linux/arch/arm/boot/dts/broadcom/
H A Dbcm2166x-pinctrl.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
10 bsc1_pins: bsc1-pins {
11 bsc1clk-grp0 {
16 bsc1dat-grp0 {
23 bsc2_pins: bsc2-pins {
24 bsc2clk-grp0 {
29 bsc2dat-grp0 {
36 bsc3_pins: bsc3-pins {
37 bsc3clk-grp0 {
42 bsc3dat-grp0 {
[all …]
/linux/Documentation/admin-guide/aoe/
H A Daoe.rst11 http://support.coraid.com/support/linux/EtherDrive-2.6-HOWTO.html
16 http://support.coraid.com/support/linux/EtherDrive-2.6-HOWTO-5.html#ss5.19
23 The scripts in this Documentation/admin-guide/aoe directory are intended to
35 There is a udev-install.sh script that shows how to install these
76 state, mac, and netif. The state attribute is "up" when the device
79 cannot come up again until it has been closed.
86 a convenient way. Users with aoetools should use the aoe-stat
89 root@makki root# sh Documentation/admin-guide/aoe/status.sh
90 e10.0 eth3 up
91 e10.1 eth3 up
[all …]
/linux/kernel/
H A Duser.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * (C) Copyright 1991-2000 Linus Torvalds
7 * We have a per-user structure to keep track of how many
9 * able to have per-user limits for system resources.
94 #define UIDHASH_MASK (UIDHASH_SZ - 1)
104 * task-structs get RCU-freed. Hence all locking must be softirq-safe.
106 * local_bh_enable() with local interrupts disabled is an error - we'll run
122 static void uid_hash_insert(struct user_struct *up, struct hlist_head *hashent) in uid_hash_insert() argument
124 hlist_add_head(&up->uidhash_node, hashent); in uid_hash_insert()
127 static void uid_hash_remove(struct user_struct *up) in uid_hash_remove() argument
[all …]
/linux/include/linux/
H A Dserial_core.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
25 ((port)->cons && (port)->cons->index == (port)->line)
37 * struct uart_ops -
605 __uart_port_lock_irqsave(struct uart_port * up,unsigned long * flags) __uart_port_lock_irqsave() argument
614 __uart_port_unlock_irqrestore(struct uart_port * up,unsigned long flags) __uart_port_unlock_irqrestore() argument
628 uart_port_set_cons(struct uart_port * up,struct console * con) uart_port_set_cons() argument
638 __uart_port_using_nbcon(struct uart_port * up) __uart_port_using_nbcon() argument
663 __uart_port_nbcon_try_acquire(struct uart_port * up) __uart_port_nbcon_try_acquire() argument
672 __uart_port_nbcon_acquire(struct uart_port * up) __uart_port_nbcon_acquire() argument
682 __uart_port_nbcon_release(struct uart_port * up) __uart_port_nbcon_release() argument
694 uart_port_lock(struct uart_port * up) uart_port_lock() argument
704 uart_port_lock_irq(struct uart_port * up) uart_port_lock_irq() argument
715 uart_port_lock_irqsave(struct uart_port * up,unsigned long * flags) uart_port_lock_irqsave() argument
727 uart_port_trylock(struct uart_port * up) uart_port_trylock() argument
747 uart_port_trylock_irqsave(struct uart_port * up,unsigned long * flags) uart_port_trylock_irqsave() argument
764 uart_port_unlock(struct uart_port * up) uart_port_unlock() argument
774 uart_port_unlock_irq(struct uart_port * up) uart_port_unlock_irq() argument
785 uart_port_unlock_irqrestore(struct uart_port * up,unsigned long flags) uart_port_unlock_irqrestore() argument
791 serial_port_in(struct uart_port * up,int offset) serial_port_in() argument
796 serial_port_out(struct uart_port * up,int offset,int value) serial_port_out() argument
841 uart_xmit_advance(struct uart_port * up,unsigned int chars) uart_xmit_advance() argument
849 uart_fifo_out(struct uart_port * up,unsigned char * buf,unsigned int chars) uart_fifo_out() argument
860 uart_fifo_get(struct uart_port * up,unsigned char * ch) uart_fifo_get() argument
[all...]
/linux/net/caif/
H A Dcfmuxl.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson AB 2010
54 this->layer.receive = cfmuxl_receive; in cfmuxl_create()
55 this->layer.transmit = cfmuxl_transmit; in cfmuxl_create()
56 this->layer.ctrlcmd = cfmuxl_ctrlcmd; in cfmuxl_create()
57 INIT_LIST_HEAD(&this->srvl_list); in cfmuxl_create()
58 INIT_LIST_HEAD(&this->frml_list); in cfmuxl_create()
59 spin_lock_init(&this->transmit_lock); in cfmuxl_create()
60 spin_lock_init(&this->receive_lock); in cfmuxl_create()
61 snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "mux"); in cfmuxl_create()
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dvxlan.sh2 # SPDX-License-Identifier: GPL-2.0
45 ip link set dev $swp1 up
46 ip link set dev $swp2 up
91 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
99 log_test "vxlan device - valid configuration"
108 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
116 log_test "vxlan device with a vlan-aware bridge"
125 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
141 ip link add name dummy1 up type dummy
143 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
[all …]
/linux/fs/ceph/
H A Dstrings.c1 // SPDX-License-Identifier: GPL-2.0
15 /* up and out */ in ceph_mds_state_name()
16 case CEPH_MDS_STATE_BOOT: return "up:boot"; in ceph_mds_state_name()
17 case CEPH_MDS_STATE_STANDBY: return "up:standby"; in ceph_mds_state_name()
18 case CEPH_MDS_STATE_STANDBY_REPLAY: return "up:standby-replay"; in ceph_mds_state_name()
19 case CEPH_MDS_STATE_REPLAYONCE: return "up:oneshot-replay"; in ceph_mds_state_name()
20 case CEPH_MDS_STATE_CREATING: return "up:creating"; in ceph_mds_state_name()
21 case CEPH_MDS_STATE_STARTING: return "up:starting"; in ceph_mds_state_name()
22 /* up and in */ in ceph_mds_state_name()
23 case CEPH_MDS_STATE_REPLAY: return "up:replay"; in ceph_mds_state_name()
[all …]
/linux/Documentation/devicetree/bindings/mfd/
H A Dams,as3711.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
15 two step-up DC/DC converters are defined.
26 Step-up converter configuration, to be used as a backlight source
31 const: ams,as3711-bl
33 su1-dev:
34 description: Framebuffer phandle for the first step-up converter
37 su1-max-uA:
[all …]

12345678910>>...44