Home
last modified time | relevance | path

Searched +full:mux +full:- +full:int +full:- +full:port (Results 1 – 25 of 253) sorted by relevance

1234567891011

/linux/drivers/tty/serial/
H A Dmux.c1 // SPDX-License-Identifier: GPL-2.0+
3 ** mux.c:
4 ** serial driver for the Mux console found in some PA-RISC servers.
7 ** (c) Copyright 2002 Hewlett-Packard Company
9 ** This Driver currently only supports the console (port 0) on the MUX.
11 ** functionality of the MUX.
26 #include <asm/parisc-device.h>
45 static unsigned int port_cnt __read_mostly;
47 struct uart_port port; member
48 int enabled;
[all …]
/linux/Documentation/devicetree/bindings/sound/
H A Dfsl,imx-audio-es8328.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/fsl,imx-audio-es8328.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Shawn Guo <shawnguo@kernel.org>
11 - Sascha Hauer <s.hauer@pengutronix.de>
14 - $ref: sound-card-common.yaml#
18 const: fsl,imx-audio-es8328
22 description: The user-visible name of this sound complex
24 ssi-controller:
[all …]
H A Deukrea-tlv320.txt5 - compatible : "eukrea,asoc-tlv320"
7 - eukrea,model : The user-visible name of this sound complex.
9 - ssi-controller : The phandle of the SSI controller.
11 - fsl,mux-int-port : The internal port of the i.MX audio muxer (AUDMUX).
13 - fsl,mux-ext-port : The external port of the i.MX audio muxer.
15 Note: The AUDMUX port numbering should start at 1, which is consistent with
21 compatible = "eukrea,asoc-tlv320";
22 eukrea,model = "imx51-eukrea-tlv320aic23";
23 ssi-controller = <&ssi2>;
24 fsl,mux-int-port = <2>;
[all …]
H A Dimx-audio-sgtl5000.txt5 - compatible : "fsl,imx-audio-sgtl5000"
7 - model : The user-visible name of this sound complex
9 - ssi-controller : The phandle of the i.MX SSI controller
11 - audio-codec : The phandle of the SGTL5000 audio codec
13 - audio-routing : A list of the connections between audio components.
35 - mux-int-port : The internal port of the i.MX audio muxer (AUDMUX)
37 - mux-ext-port : The external port of the i.MX audio muxer
39 Note: The AUDMUX port numbering should start at 1, which is consistent with
45 compatible = "fsl,imx51-babbage-sgtl5000",
46 "fsl,imx-audio-sgtl5000";
[all …]
/linux/drivers/extcon/
H A Dextcon-usbc-cros-ec.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/extcon-provider.h>
22 int port_id;
28 unsigned int dr; /* data role */
31 bool mux; /* SuperSpeed (usb3) enabled */ member
32 unsigned int power_type;
35 static const unsigned int usb_type_c_cable[] = {
49 * cros_ec_pd_command() - Send a command to the EC.
60 static int cros_ec_pd_command(struct cros_ec_extcon_info *info, in cros_ec_pd_command()
61 unsigned int command, in cros_ec_pd_command()
[all …]
/linux/include/net/
H A Dbond_3ad.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved.
51 /* mux machine states(43.4.13 in the 802.3ad standard) */
54 AD_MUX_DETACHED, /* mux machine */
55 AD_MUX_WAITING, /* mux machine */
56 AD_MUX_ATTACHED, /* mux machine */
57 AD_MUX_COLLECTING, /* mux machine */
58 AD_MUX_DISTRIBUTING, /* mux machine */
59 AD_MUX_COLLECTING_DISTRIBUTING /* mux machine */
141 u16 requester_port; /* The number assigned to the port by the requester */
[all …]
/linux/drivers/platform/chrome/
H A Dcros_ec_typec.c1 // SPDX-License-Identifier: GPL-2.0-only
23 #define DRV_NAME "cros-ec-typec"
36 switch_fwnode = fwnode_find_reference(fwnode, "usb-role-switch", 0); in cros_typec_role_switch_quirk()
40 if (adev && !adev->pld_crc) in cros_typec_role_switch_quirk()
41 adev->pld_crc = to_acpi_device_node(fwnode)->pld_crc; in cros_typec_role_switch_quirk()
47 static int cros_typec_enter_usb_mode(struct typec_port *tc_port, enum usb_mode mode) in cros_typec_enter_usb_mode()
49 struct cros_typec_port *port = typec_get_drvdata(tc_port); in cros_typec_enter_usb_mode() local
51 .port = port->port_num, in cros_typec_enter_usb_mode()
57 return cros_ec_cmd(port->typec_data->ec, 0, EC_CMD_TYPEC_CONTROL, in cros_typec_enter_usb_mode()
65 static int cros_typec_parse_port_props(struct typec_capability *cap, in cros_typec_parse_port_props()
[all …]
/linux/sound/soc/fsl/
H A Dimx-es8328.c1 // SPDX-License-Identifier: GPL-2.0+
14 #include "imx-audmux.h"
30 .name = "headset-gpio",
49 static int imx_es8328_dai_init(struct snd_soc_pcm_runtime *rtd) in imx_es8328_dai_init()
51 struct imx_es8328_data *data = container_of(rtd->card, in imx_es8328_dai_init()
53 int ret = 0; in imx_es8328_dai_init()
55 if (data->jack_gpiod) { in imx_es8328_dai_init()
57 ret = snd_soc_card_jack_new_pins(rtd->card, "Headphone", in imx_es8328_dai_init()
65 headset_jack_gpios[0].desc = data->jack_gpiod; in imx_es8328_dai_init()
78 SND_SOC_DAPM_REGULATOR_SUPPLY("audio-amp", 1, 0),
[all …]
H A Dimx-sgtl5000.c1 // SPDX-License-Identifier: GPL-2.0+
14 #include "imx-audmux.h"
24 unsigned int clk_frequency;
27 static int imx_sgtl5000_dai_init(struct snd_soc_pcm_runtime *rtd) in imx_sgtl5000_dai_init()
29 struct imx_sgtl5000_data *data = snd_soc_card_get_drvdata(rtd->card); in imx_sgtl5000_dai_init()
30 struct device *dev = rtd->card->dev; in imx_sgtl5000_dai_init()
31 int ret; in imx_sgtl5000_dai_init()
34 data->clk_frequency, SND_SOC_CLOCK_IN); in imx_sgtl5000_dai_init()
51 static int imx_sgtl5000_probe(struct platform_device *pdev) in imx_sgtl5000_probe()
53 struct device_node *np = pdev->dev.of_node; in imx_sgtl5000_probe()
[all …]
H A Deukrea-tlv320.c1 // SPDX-License-Identifier: GPL-2.0+
3 // eukrea-tlv320.c -- SoC audio for eukrea_cpuimxXX in I2S mode
9 // and on sound/soc/imx/phycore-ac97.c which is
22 #include <asm/mach-types.h>
25 #include "imx-ssi.h"
26 #include "imx-audmux.h"
30 static int eukrea_tlv320_hw_params(struct snd_pcm_substream *substream, in eukrea_tlv320_hw_params()
36 int ret; in eukrea_tlv320_hw_params()
41 dev_err(cpu_dai->dev, in eukrea_tlv320_hw_params()
51 if (ret && ret != -EINVAL) { in eukrea_tlv320_hw_params()
[all …]
/linux/Documentation/driver-api/tty/
H A Dn_gsm.rst10 https://www.3gpp.org/ftp/Specs/archive/07_series/07.10/0710-720.zip
13 modems connected to a physical serial port.
19 ----------------
21 #. Initialize the modem in 0710 mux mode (usually ``AT+CMUX=`` command) through
22 its serial port. Depending on the modem used, you can pass more or less
28 #. Configure the mux using ``GSMIOC_GETCONF_EXT``/``GSMIOC_SETCONF_EXT`` ioctl if needed.
30 #. Configure the mux using ``GSMIOC_GETCONF``/``GSMIOC_SETCONF`` ioctl.
32 #. Configure DLCs using ``GSMIOC_GETCONF_DLCI``/``GSMIOC_SETCONF_DLCI`` ioctl for non-defaults.
34 #. Obtain base gsmtty number for the used serial port.
37 (a good starting point is util-linux-ng/sys-utils/ldattach.c)::
[all …]
/linux/net/9p/
H A Dtrans_fd.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2004-2005 by Latchesar Ionkov <lucho@ionkov.net>
7 * Copyright (C) 2004-2008 by Eric Van Hensbergen <ericvh@gmail.com>
8 * Copyright (C) 1997-2002 by Ron Minnich <rminnich@sarnoff.com>
42 * struct p9_fd_opts - per-transport options
45 * @port: port to connect to (trans=tcp)
46 * @privport: port is privileged
50 int rfd;
51 int wfd;
52 u16 port; member
[all …]
/linux/drivers/tty/
H A Dn_gsm.c1 // SPDX-License-Identifier: GPL-2.0
10 * tty -> DLCI fifo -> scheduler -> GSM MUX data queue ---o-> ldisc
11 * control message -> GSM MUX control queue --´
14 * ldisc -> gsm_queue() -o--> tty
15 * `-> gsm_control_response()
25 * Review the locking/move to refcounts more (mux now moved to an
27 * Use newest tty open/close port helpers and install hooks
30 * Do we need a 'which mux are you' ioctl to correlate mux and tty sets
67 static int debug;
68 module_param(debug, int, 0600);
[all …]
/linux/drivers/soc/qcom/
H A Dpmic_glink_altmode.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
15 #include <drm/bridge/aux-bridge.h>
69 unsigned int index;
95 unsigned int owner_id;
108 static int pmic_glink_altmode_request(struct pmic_glink_altmode *altmode, u32 cmd, u32 arg) in pmic_glink_altmode_request()
112 int ret; in pmic_glink_altmode_request()
118 guard(mutex)(&altmode->lock); in pmic_glink_altmode_request()
120 req.hdr.owner = cpu_to_le32(altmode->owner_id); in pmic_glink_altmode_request()
126 ret = pmic_glink_send(altmode->client, &req, sizeof(req)); in pmic_glink_altmode_request()
[all …]
/linux/sound/soc/codecs/
H A Drt721-sdca.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt721-sdca.c -- rt721 SDCA ALSA SoC audio driver
23 #include <sound/soc-dapm.h>
26 #include "rt721-sdca.h"
27 #include "rt-sdw-common.h"
33 int btn_type = 0; in rt721_sdca_jack_detect_handler()
35 if (!rt721->hs_jack) in rt721_sdca_jack_detect_handler()
38 if (!rt721->component->card || !rt721->component->card->instantiated) in rt721_sdca_jack_detect_handler()
42 if (rt721->scp_sdca_stat1 & SDW_SCP_SDCA_INT_SDCA_0) { in rt721_sdca_jack_detect_handler()
43 rt721->jack_type = rt_sdca_headset_detect(rt721->regmap, in rt721_sdca_jack_detect_handler()
[all …]
H A Dwcd9335.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
3 // Copyright (c) 2017-2018, Linaro Limited
19 #include <sound/soc-dapm.h>
26 #include "wcd-clsh-v2.h"
28 #include <dt-bindings/sound/qcom,wcd9335.h>
38 /* slave port water mark level
93 {.port = p + WCD9335_RX_START, .shift = p,}
96 {.port = p, .shift = p,}
99 #define WCD9335_CALCULATE_VOUT_D(req_mv) (((req_mv - 650) * 10) / 25)
[all …]
/linux/drivers/gpu/drm/imx/ipuv3/
H A Dimx-ldb.c1 // SPDX-License-Identifier: GPL-2.0+
3 * i.MX drm driver - LVDS display bridge
11 #include <linux/media-bus-format.h>
13 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
33 #include "imx-drm.h"
35 #define DRIVER_NAME "imx-ldb"
67 int chno;
73 return container_of(e, struct imx_ldb_encoder, encoder)->channel; in enc_to_imx_ldb_ch()
77 int reg;
78 int shift;
[all …]
/linux/drivers/net/usb/
H A Dhso.c1 // SPDX-License-Identifier: GPL-2.0-only
12 * Copyright (C) 2008 Greg Kroah-Hartman <gregkh@suse.de>
27 * Interface 1: Diagnostics port, uses bulk only, do not submit urbs until the
28 * port is opened, as this have a huge impact on the network port
31 * Interface 2: Standard modem interface - circuit switched interface, this
83 /* - use *_bit operations on it. (bit indices not values.) */
123 int use_count;
124 int ref_count;
186 int intr_completed;
197 int magic;
[all …]
/linux/drivers/usb/typec/ucsi/
H A Ducsi_huawei_gaokun.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ucsi-huawei-gaokun - A UCSI driver for HUAWEI Matebook E Go
5 * Copyright (C) 2024-2025 Pengyu Luo <mitltlatltl@gmail.com>
8 #include <drm/bridge/aux-bridge.h>
16 #include <linux/platform_data/huawei-gaokun-ec.h>
35 #define GET_IDX(updt) (ffs(updt) - 1)
56 USBC_DPAM_PAN_A, /* Not supported after USB Type-C Standard v1.0b */
57 USBC_DPAM_PAN_B, /* Not supported after USB Type-C Standard v1.0b */
58 USBC_DPAM_PAN_C, /* USBC_DPAM_PAN_C_REVERSE - 6 */
61 USBC_DPAM_PAN_F, /* Not supported after USB Type-C Standard v1.0b */
[all …]
/linux/drivers/i2c/
H A Di2c-mux.c4 * Copyright (c) 2008-2009 Rodolfo Giometti <giometti@linux.it>
5 * Copyright (c) 2008-2009 Eurotech S.p.A. <info@eurotech.it>
6 * Copyright (c) 2009-2010 NSN GmbH & Co KG <michael.lawnick.ext@nsn.com>
10 * Supports multi-level mux'ing (mux behind a mux).
13 * i2c-virt.c from Kumar Gala <galak@kernel.crashing.org>
14 * i2c-virtual.c from Ken Harrenstien, Copyright (c) 2004 Google, Inc.
15 * i2c-virtual.c from Brian Kuschak <bkuschak@yahoo.com>
24 #include <linux/i2c-mux.h>
39 static int __i2c_mux_master_xfer(struct i2c_adapter *adap, in __i2c_mux_master_xfer()
40 struct i2c_msg msgs[], int num) in __i2c_mux_master_xfer()
[all …]
/linux/drivers/pinctrl/renesas/
H A Dpinctrl-rza1.c1 // SPDX-License-Identifier: GPL-2.0
11 * This includes SoCs which are sub- or super- sets of this particular line,
23 #include <linux/pinctrl/pinconf-generic.h>
35 #define DRIVER_NAME "pinctrl-rza1"
48 #define RZA1_ADDR(mem, reg, port) ((mem) + (reg) + ((port) * 4)) argument
58 * Use 16 higher bits [31:16] for pin mux function
70 /* Pin mux flags */
75 /* ----------------------------------------------------------------------------
80 * rza1_bidir_pin - describe a single pin that needs bidir flag applied.
88 * rza1_bidir_entry - describe a list of pins that needs bidir flag applied.
[all …]
/linux/include/linux/
H A Dparport.h25 unsigned int ctr;
26 unsigned int ecr;
30 unsigned int ctr;
31 unsigned int ecr;
32 unsigned int dcsr;
44 unsigned int dcr;
45 unsigned int ecr;
61 /* IBM PC-style virtual registers. */
86 size_t (*epp_write_data) (struct parport *port, const void *buf,
87 size_t len, int flags);
[all …]
/linux/drivers/pinctrl/freescale/
H A Dpinctrl-imx1-core.c1 // SPDX-License-Identifier: GPL-2.0+
8 // Based on pinctrl-imx.c:
29 #include "pinctrl-imx1.h"
65 * IMX1 IOMUXC manages the pins based on ports. Each port has 32 pins. IOMUX
78 static void __iomem *imx1_mem(struct imx1_pinctrl *ipctl, unsigned int pin_id) in imx1_mem()
80 unsigned int port = pin_id / 32; in imx1_mem() local
81 return ipctl->base + port * MX1_PORT_STRIDE; in imx1_mem()
88 static void imx1_write_2bit(struct imx1_pinctrl *ipctl, unsigned int pin_id, in imx1_write_2bit()
92 int offset = (pin_id % 16) * 2; /* offset, regardless of register used */ in imx1_write_2bit()
93 int mask = ~(0x3 << offset); /* Mask for 2 bits at offset */ in imx1_write_2bit()
[all …]
/linux/drivers/usb/typec/
H A Dmux.c1 // SPDX-License-Identifier: GPL-2.0
3 * USB Type-C Multiplexer/DeMultiplexer Switch support
18 #include "mux.h"
24 unsigned int num_sw_devs;
27 static int switch_fwnode_match(struct device *dev, const void *fwnode) in switch_fwnode_match()
42 * device type or the device class of the remote port parent that @fwnode in typec_switch_match()
45 * property is named "orientation-switch" (@id). The value of the device in typec_switch_match()
59 return dev ? to_typec_switch_dev(dev) : ERR_PTR(-EPROBE_DEFER); in typec_switch_match()
63 * fwnode_typec_switch_get - Find USB Type-C orientation switch
68 * ERR_PTR(-EPROBE_DEFER) when a connection was found but the switch
[all …]
/linux/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_config.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
24 static int rmnet_is_real_dev_registered(const struct net_device *real_dev) in rmnet_is_real_dev_registered()
26 return rcu_access_pointer(real_dev->rx_handler) == rmnet_rx_handler; in rmnet_is_real_dev_registered()
33 return rtnl_dereference(real_dev->rx_handler_data); in rmnet_get_port_rtnl()
36 static int rmnet_unregister_real_device(struct net_device *real_dev) in rmnet_unregister_real_device()
38 struct rmnet_port *port = rmnet_get_port_rtnl(real_dev); in rmnet_unregister_real_device() local
40 if (port->nr_rmnet_devs) in rmnet_unregister_real_device()
41 return -EINVAL; in rmnet_unregister_real_device()
43 rmnet_map_tx_aggregate_exit(port); in rmnet_unregister_real_device()
[all …]

1234567891011