Home
last modified time | relevance | path

Searched +full:serial +full:- +full:state (Results 1 – 25 of 881) sorted by relevance

12345678910>>...36

/linux/drivers/spi/
H A Dspi-falcon.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #define DRV_NAME "sflash-falcon"
26 /* Serial Flash Configuration Register */
28 /* Serial Flash Time Register */
30 /* Serial Flash Status Register */
32 /* Serial Flash Command Register */
34 /* Serial Flash Address Register */
36 /* Serial Flash Data Register */
38 /* Serial Flash I/O Control Register */
52 /* SCK Rise-edge Position */
[all …]
/linux/drivers/tty/
H A Damiserial.c1 // SPDX-License-Identifier: GPL-2.0
3 * Serial driver for the amiga builtin port.
5 * This code was created by taking serial.c version 4.30 from kernel
9 * associated with the registers and bits of 16550 compatible UARTS -
10 * but only to keep track of status, etc in the state variables. It
12 * (non hardware specific) changes to serial.c.
33 * End of serial driver configuration section.
52 #include <linux/serial.h>
103 /* some serial hardware definitions */
126 * ------------------------------------------------------------
[all …]
/linux/drivers/usb/serial/
H A Dmxuport.c1 // SPDX-License-Identifier: GPL-2.0+
3 * mxuport.c - MOXA UPort series driver
8 * Supports the following Moxa USB to serial converters:
11 * 8 ports : UPort 1610-8, UPort 1650-8
12 * 16 ports : UPort 1610-16, UPort 1650-16
19 #include <linux/serial.h>
27 #include <linux/usb/serial.h>
72 #define RQ_VENDOR_SET_HIGH_PERFOR 0x11 /* Set hi-performance */
90 #define RQ_VENDOR_GET_ROM_PROC 0x83 /* Get ROM process state */
105 /* Definitions for serial event type */
[all …]
H A Dcp210x.c1 // SPDX-License-Identifier: GPL-2.0
3 * Silicon Laboratories CP210x USB to RS232 serial adaptor driver
6 * Copyright (C) 2010-2021 Johan Hovold (johan@kernel.org)
10 * control thanks to Munir Nassar nassarmu@real-time.com
21 #include <linux/usb/serial.h>
26 #define DRIVER_DESC "Silicon Labs CP210x RS232 serial adaptor driver"
55 { USB_DEVICE(0x045B, 0x0053) }, /* Renesas RX610 RX-Stick */
56 { USB_DEVICE(0x0471, 0x066A) }, /* AKTAKOM ACE-1001 cable */
57 { USB_DEVICE(0x0489, 0xE000) }, /* Pirelli Broadband S.p.A, DP-L10 SIP/GSM Mobile */
58 { USB_DEVICE(0x0489, 0xE003) }, /* Pirelli Broadband S.p.A, DP-L10 SIP/GSM Mobile */
[all …]
H A Dbelkin_sa.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Definitions for Belkin USB Serial Adapter Driver
8 * This program is largely derived from work by the linux-usb group
9 * and associated source files. Please see the usb/serial files for
12 * See Documentation/usb/usb-serial.rst for more information on using this
15 * 12-Mar-2001 gkh
16 * Added GoHubs GO-COM232 device id.
18 * 06-Nov-2000 gkh
21 * 12-Oct-2000 William Greathouse
22 * First cut at supporting Belkin USB Serial Adapter F5U103
[all …]
H A Dkl5kusb105.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Utz-Uwe Haus <haus@uuhaus.de>
10 * It was written out of frustration with the PalmConnect USB Serial adapter
15 * It seems that KLSI bought some silicon-design information from ScanLogic,
21 * on the protocol used (or find errors in my reverse-engineered stuff), please
25 * are adventurous, try it with any KLSI-based device and let me know how it
44 #include <linux/usb/serial.h>
47 #define DRIVER_AUTHOR "Utz-Uwe Haus <haus@uuhaus.de>, Johan Hovold <jhovold@gmail.com>"
48 #define DRIVER_DESC "KLSI KL5KUSB105 chipset USB->Serial Converter driver"
127 rc = usb_control_msg_send(port->serial->dev, in klsi_105_chg_port_settings()
[all …]
H A Dgarmin_gps.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2006-2011 Hermann Kneissel herkne@gmx.de
8 * http://sourceforge.net/projects/garmin-gps/
25 #include <linux/usb/serial.h>
52 /* max. possible size of a packet using the serial protocol */
60 * size, but in theory a packet may be 64k+12 bytes - if in
69 /* where to place the packet id of a serial packet, so we can
70 * prepend the usb-packet header without the need to move the
72 #define GSP_INITIAL_OFFSET (GARMIN_PKTHDR_LENGTH-2)
79 /* our own layer-id to use for some control mechanisms */
[all …]
/linux/Documentation/devicetree/bindings/leds/
H A Dleds-bcm6328.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-bcm6328.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Álvaro Fernández Rojas <noltari@gmail.com>
15 However, on some devices there are Serial LEDs (LEDs connected to a 74x164
17 as spi-gpio. See
20 Some of these Serial LEDs are hardware controlled (e.g. ethernet LEDs) and
21 exporting the 74x164 as spi-gpio prevents those LEDs to be hardware
29 explained later in brcm,link-signal-sources). Even if a LED is hardware
[all …]
/linux/net/rxrpc/
H A Dconn_event.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* connection-level event handling
17 #include "ar-internal.h"
20 * Set the completion state on an aborted connection.
28 if (conn->state != RXRPC_CONN_ABORTED) { in rxrpc_set_conn_aborted()
29 spin_lock_irq(&conn->state_lock); in rxrpc_set_conn_aborted()
30 if (conn->state != RXRPC_CONN_ABORTED) { in rxrpc_set_conn_aborted()
31 conn->abort_code = abort_code; in rxrpc_set_conn_aborted()
32 conn->error = err; in rxrpc_set_conn_aborted()
33 conn->completion = compl; in rxrpc_set_conn_aborted()
[all …]
H A Dar-internal.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
15 #include <keys/rxrpc-type.h>
36 * Mark applied to socket buffers in skb->mark. skb->priority is used
44 RXRPC_SKB_MARK_REJECT_ABORT, /* Reject with ABORT (code in skb->priority) */
62 * Per-network namespace data.
66 u32 epoch; /* Local epoch for detecting local-end reset */
68 spinlock_t call_lock; /* Lock for ->calls */
75 rwlock_t conn_lock; /* Lock for ->conn_proc_list, ->service_conns */
84 struct mutex local_mutex; /* Lock for ->local_endpoints */
87 spinlock_t peer_hash_lock; /* Lock for ->peer_hash */
[all …]
/linux/Documentation/devicetree/bindings/serial/
H A Dpl011.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/serial/pl011.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ARM AMBA Primecell PL011 serial UART
10 - Rob Herring <robh@kernel.org>
13 - $ref: /schemas/arm/primecell.yaml#
14 - $ref: serial.yaml#
22 - arm,pl011
24 - compatible
[all …]
/linux/Documentation/driver-api/serial/
H A Ddriver.rst2 Low Level Serial API
6 This document is meant as a brief overview of some aspects of the new serial
10 The reference implementation is contained within amba-pl011.c.
14 Low Level Serial Hardware Driver
15 --------------------------------
17 The low level serial hardware driver is responsible for supplying port
19 by uart_ops) to the core serial driver. The low level driver is also
25 ---------------
27 The serial core provides a few helper functions. This includes identifying
38 -------
[all …]
/linux/drivers/parisc/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
10 The VSC, GSC and HSC busses were used from the earliest 700-series
12 were also used in servers from the E-class to the K-class. They
17 bool "HP-PB bus support"
20 The HP-PB bus was used in the Nova class and K-class servers.
28 generation of PA-RISC cache-coherent machines. Programs the
36 many PA-RISC workstations & servers. It includes interfaces
37 for a parallel port, serial port, NCR 53c710 SCSI, Apricot
48 715/100. Wax includes an EISA adapter, a serial port (not always
67 Note that Dino also supplies one of the serial ports on certain
[all …]
/linux/drivers/iio/chemical/
H A Dsps30_serial.c1 // SPDX-License-Identifier: GPL-2.0
3 * Sensirion SPS30 particulate matter sensor serial driver
51 static int sps30_serial_xfer(struct sps30_state *state, const unsigned char *buf, size_t size) in sps30_serial_xfer() argument
53 struct serdev_device *serdev = to_serdev_device(state->dev); in sps30_serial_xfer()
54 struct sps30_serial_priv *priv = state->priv; in sps30_serial_xfer()
57 priv->num = 0; in sps30_serial_xfer()
58 priv->escaped = false; in sps30_serial_xfer()
59 priv->done = false; in sps30_serial_xfer()
65 return -EIO; in sps30_serial_xfer()
67 ret = wait_for_completion_interruptible_timeout(&priv->new_frame, SPS30_SERIAL_TIMEOUT); in sps30_serial_xfer()
[all …]
H A Dscd30_serial.c1 // SPDX-License-Identifier: GPL-2.0
3 * Sensirion SCD30 carbon dioxide sensor serial driver
55 static int scd30_serdev_xfer(struct scd30_state *state, char *txbuf, int txsize, in scd30_serdev_xfer() argument
58 struct serdev_device *serdev = to_serdev_device(state->dev); in scd30_serdev_xfer()
59 struct scd30_serdev_priv *priv = state->priv; in scd30_serdev_xfer()
62 priv->buf = rxbuf; in scd30_serdev_xfer()
63 priv->num_expected = rxsize; in scd30_serdev_xfer()
64 priv->num = 0; in scd30_serdev_xfer()
70 return -EIO; in scd30_serdev_xfer()
72 ret = wait_for_completion_interruptible_timeout(&priv->meas_ready, SCD30_SERDEV_TIMEOUT); in scd30_serdev_xfer()
[all …]
/linux/drivers/iio/imu/bno055/
H A Dbno055_ser_core.c1 // SPDX-License-Identifier: GPL-2.0
3 * Serial line interface for Bosh BNO055 IMU (via serdev).
4 * This file implements serial communication up to the register read/write
7 * Copyright (C) 2021-2022 Istituto Italiano di Tecnologia
33 * +------+------+-----+-----+----- ... ----+
35 * +------+------+-----+-----+----- ... ----+
38 * +------+----------+
40 * +------+----------+
45 * sw resets - bno055 on serial bus basically requires the hw reset pin).
48 * +------+------+-----+-----+
[all …]
/linux/drivers/tty/serial/
H A Dmux.c1 // SPDX-License-Identifier: GPL-2.0+
4 ** serial driver for the Mux console found in some PA-RISC servers.
7 ** (c) Copyright 2002 Hewlett-Packard Company
18 #include <linux/serial.h>
26 #include <asm/parisc-device.h>
63 #define UART_PUT_CHAR(p, c) __raw_writel((c), (p)->membase + IO_DATA_REG_OFFSET)
64 #define UART_GET_FIFO_CNT(p) __raw_readl((p)->membase + IO_DCOUNT_REG_OFFSET)
67 * get_mux_port_count - Get the number of available ports on the Mux.
82 /* If this is the built-in Mux for the K-Class (Eole CAP/MUX), in get_mux_port_count()
86 if(dev->id.hversion == 0x15) in get_mux_port_count()
[all …]
H A Dserial_txx9.c1 // SPDX-License-Identifier: GPL-2.0
10 * Copyright (C) 2000-2002 Toshiba Corporation
12 * Serial driver for TX3927/TX4927/TX4925/TX4938 internal SIO controller
23 #include <linux/serial.h>
33 /* "ttyS" is used for standard serial driver */
38 /* acts like standard serial driver */
54 * Number of serial ports
60 /* TXX9 Serial Registers */
161 switch (up->iotype) { in sio_in()
163 return __raw_readl(up->membase + offset); in sio_in()
[all …]
/linux/arch/arm/include/asm/hardware/
H A Dsa1111.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 * This file contains definitions for the SA-1111 Companion Chip.
8 * (Structure and naming borrowed from SA-1101.h, by Peter Danielsson.)
10 * Macro that calculates real address for registers in the SA-1111
50 * - The October 1999 errata (278260-007) says its bit 13, 1 to enable.
51 * - The Feb 2001 errata (278260-010) says that the previous errata
52 * (278260-009) is wrong, and its bit actually 12, fixed in spec
53 * 278242-003.
54 * - The SA1111 manual (278242) says bit 12, but 0 to enable.
55 * - Reality is bit 13, 1 to enable.
[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 -- interface between serial_core and the driver
55 * This function sets the modem control lines for @port to the state
58 * - %TIOCM_RTS RTS signal.
59 * - %TIOCM_DTR DTR signal.
60 * - %TIOCM_OUT1 OUT1 signal.
61 * - %TIOCM_OUT2 OUT2 signal.
62 * - %TIOCM_LOOP Set the port into loopback mode.
68 * Locking: @port->lock taken.
[all …]
/linux/security/keys/
H A Dproc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
51 p = proc_create_seq("key-users", 0, NULL, &proc_key_users_ops); in key_proc_init()
53 panic("Cannot create /proc/key-users\n"); in key_proc_init()
71 if (kuid_has_mapping(user_ns, key->user->uid)) in key_serial_next()
86 if (id < key->serial) { in find_ge_key()
87 if (!minkey || minkey->serial > key->serial) in find_ge_key()
89 n = n->rb_left; in find_ge_key()
90 } else if (id > key->serial) { in find_ge_key()
91 n = n->rb_right; in find_ge_key()
103 if (kuid_has_mapping(user_ns, minkey->user->uid)) in find_ge_key()
[all …]
H A Dkey.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2004-2008 Red Hat, Inc. All Rights Reserved.
20 struct rb_root key_serial_tree; /* tree of keys indexed by serial */
41 key, key->magic, KEY_DEBUG_MAGIC); in __key_check()
65 if (uid_lt(uid, user->uid)) in key_user_lookup()
66 p = &(*p)->rb_left; in key_user_lookup()
67 else if (uid_gt(uid, user->uid)) in key_user_lookup()
68 p = &(*p)->rb_right; in key_user_lookup()
91 * second pass - so we use the candidate record */ in key_user_lookup()
92 refcount_set(&candidate->usage, 1); in key_user_lookup()
[all …]
/linux/drivers/platform/surface/
H A Dsurface3_power.c1 // SPDX-License-Identifier: GPL-2.0+
5 * (C) Copyright 2016-2018 Red Hat, Inc
6 * (C) Copyright 2016-2018 Benjamin Tissoires <benjamin.tissoires@gmail.com>
9 * This driver has been reverse-engineered by parsing the DSDT of the Surface 3
13 * - the driver is required for the ACPI BAT0 device to communicate to the chip
15 * - the various defines for the operation region functions to communicate with
17 * - the DSM 3f99e367-6220-4955-8b0f-06ef2ae79412 allows to trigger ACPI
21 * - there are 2 chips declared:
24 * - the battery chip uses a SMBus protocol (using plain SMBus allows non
84 char serial[SURFACE_3_STRLEN]; member
[all …]
/linux/Documentation/usb/
H A Dusb-serial.rst2 USB serial
8 The USB serial driver currently supports a number of different USB to
9 serial converter products, as well as some devices that use a serial
19 Currently the driver can handle up to 256 different serial interfaces at
45 --------------------------------------
58 -----------------------------------------------
72 This goes against the current documentation for pilot-xfer and other
77 (this is usually /dev/ttyUSB1 if you do not have any other usb-serial
99 Kroah-Hartman at greg@kroah.com
103 -------------------
[all …]
/linux/arch/arm/boot/dts/microchip/
H A Dat91-vinco.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 * 2015 Gregory CLEMENT <gregory.clement@free-electrons.com>
9 /dts-v1/;
17 stdout-path = "serial0:115200n8";
26 clock-frequency = <32768>;
30 clock-frequency = <12000000>;
42 pinctrl-names = "default";
43 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0
46 vqmmc-supply = <&vcc_3v3_reg>;
47 vmmc-supply = <&vcc_3v3_reg>;
[all …]

12345678910>>...36