| /linux/drivers/tty/serial/ |
| H A D | mux.c | 1 // 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 D | fsl,imx-audio-es8328.yaml | 1 # 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 D | eukrea-tlv320.txt | 5 - 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 …]
|
| /linux/drivers/extcon/ |
| H A D | extcon-usbc-cros-ec.c | 1 // 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/drivers/platform/chrome/ |
| H A D | cros_ec_typec.c | 1 // 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() 61 static int cros_typec_perform_role_swap(struct typec_port *tc_port, int target_role, u8 swap_type) in cros_typec_perform_role_swap() [all …]
|
| /linux/include/net/ |
| H A D | bond_3ad.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright(c) 1999 - 2004 Intel Corporation. All rights reserved. 52 /* mux machine states(43.4.13 in the 802.3ad standard) */ 55 AD_MUX_DETACHED, /* mux machine */ 56 AD_MUX_WAITING, /* mux machine */ 57 AD_MUX_ATTACHED, /* mux machin 208 typedef struct port { global() struct 209 actor_port_numberport global() argument 210 actor_port_priorityport global() argument 213 actor_port_aggregator_identifierport global() argument 215 actor_admin_port_keyport global() argument 216 actor_oper_port_keyport global() argument 217 actor_admin_port_stateport global() argument 218 actor_oper_port_stateport global() argument 220 partner_adminport global() argument 221 partner_operport global() argument 226 sm_varsport global() argument 244 slaveport global() argument 245 aggregatorport global() argument 246 next_port_in_aggregatorport global() argument 248 lacpduport global() argument 274 struct port port; /* 802.3ad port structure */ global() member [all...] |
| /linux/sound/soc/fsl/ |
| H A D | imx-es8328.c | 1 // 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 D | imx-sgtl5000.c | 1 // 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 D | eukrea-tlv320.c | 1 // 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 D | n_gsm.rst | 10 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 D | trans_fd.c | 1 // 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/soc/qcom/ |
| H A D | pmic_glink_altmode.c | 1 // 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 D | rt721-sdca.c | 1 // 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 D | wcd934x.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/clk-provider.h> 21 #include <sound/soc-dapm.h> 23 #include "wcd-clsh-v2.h" 24 #include "wcd-common.h" 25 #include "wcd-mbhc-v 371 u16 port; global() member 3301 slim_rx_mux_to_dai_id(int mux) slim_rx_mux_to_dai_id() argument [all...] |
| H A D | wcd9335.c | 1 // 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 …]
|
| H A D | lpass-rx-macro.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. 14 #include <sound/soc-dapm.h> 17 #include <linux/clk-provider.h> 19 #include "lpass-macro-common.h" 162 #define CDC_RX_RXn_RX_PATH_CTL(rx, n) (0x0400 + rx->rxn_reg_stride * n) 170 #define CDC_RX_RXn_RX_PATH_CFG0(rx, n) (0x0404 + rx->rxn_reg_stride * n) 177 #define CDC_RX_RXn_RX_PATH_CFG1(rx, n) (0x0408 + rx->rxn_reg_stride * n) 181 #define CDC_RX_RXn_RX_PATH_CFG2(rx, n) (0x040C + rx->rxn_reg_stride * n) 184 #define CDC_RX_RXn_RX_PATH_CFG3(rx, n) (0x0410 + rx->rxn_reg_stride * n) [all …]
|
| /linux/drivers/net/usb/ |
| H A D | hso.c | 1 // 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/gpu/drm/imx/ipuv3/ |
| H A D | imx-ldb.c | 1 // 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/usb/typec/ucsi/ |
| H A D | ucsi_huawei_gaokun.c | 1 // 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/include/linux/ |
| H A D | parport.h | 25 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 D | pinctrl-imx1-core.c | 1 // 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 D | mux.c | 1 // 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/usb/typec/mux/ |
| H A D | intel_pmc_mux.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for Intel PMC USB mux control 86 * Input Output Manager (IOM) PORT STATUS 93 /* activity type: Display Port */ 95 /* activity type: Display Port Multi Function Device */ 101 /* Upstream Facing Port Information */ 103 /* Display Port Hot Plug Detect status */ 120 /* IOM port status register */ 133 int num; 154 struct pmc_usb_port *port; member [all …]
|
| /linux/drivers/media/i2c/ |
| H A D | max9286.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2017-2019 Jacopo Mondi 6 * Copyright (C) 2017-2019 Kieran Bingham 7 * Copyright (C) 2017-2019 Laurent Pinchart 8 * Copyright (C) 2017-2019 Niklas Söderlund 20 #include <linux/i2c-mux.h> 26 #include <media/v4l2-async.h> 27 #include <media/v4l2-ctrls.h> 28 #include <media/v4l2-device.h> 29 #include <media/v4l2-fwnode.h> [all …]
|
| /linux/drivers/net/ethernet/qualcomm/rmnet/ |
| H A D | rmnet_config.c | 1 // 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 …]
|