Home
last modified time | relevance | path

Searched +full:sw +full:- +full:mode (Results 1 – 25 of 761) sorted by relevance

12345678910>>...31

/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_hw.h1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2 /* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved. */
140 (struct prestera_switch *sw, struct prestera_event *evt, void *arg);
152 int prestera_hw_switch_init(struct prestera_switch *sw);
153 void prestera_hw_switch_fini(struct prestera_switch *sw);
154 int prestera_hw_switch_ageing_set(struct prestera_switch *sw, u32 ageing_ms);
155 int prestera_hw_switch_mac_set(struct prestera_switch *sw, const char *mac);
162 u32 *mode, u32 *speed, u8 *duplex, u8 *fec);
164 bool admin, u32 mode, u8 inband,
170 bool admin, bool adv, u32 mode, u64 modes,
[all …]
H A Dprestera_hw.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
2 /* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved */
254 __le32 mode; member
307 __le32 mode; member
315 __le32 mode; member
325 __le32 mode; member
656 u8 mode; member
810 static u8 prestera_hw_mdix_to_eth(u8 mode);
813 static int __prestera_cmd_ret(struct prestera_switch *sw, in __prestera_cmd_ret() argument
819 struct prestera_device *dev = sw->dev; in __prestera_cmd_ret()
[all …]
H A Dprestera.h1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2 /* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved. */
25 struct prestera_switch *sw; member
31 struct prestera_switch *sw; member
97 u32 mode; member
115 u32 mode; member
124 u32 mode; member
131 struct prestera_switch *sw; member
208 u32 mode; member
262 /* the interface is of lag type (lag-id) */
[all …]
H A Dprestera_switchdev.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
2 /* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved */
30 struct prestera_switch *sw; member
97 prestera_bridge_find(const struct prestera_switch *sw, in prestera_bridge_find() argument
102 list_for_each_entry(bridge, &sw->swdev->bridge_list, head) in prestera_bridge_find()
103 if (bridge->dev == br_dev) in prestera_bridge_find()
115 list_for_each_entry(br_port, &bridge->port_list, head) in __prestera_bridge_port_find()
116 if (br_port->dev == brport_dev) in __prestera_bridge_port_find()
123 prestera_bridge_port_find(struct prestera_switch *sw, in prestera_bridge_port_find() argument
132 bridge = prestera_bridge_find(sw, br_dev); in prestera_bridge_port_find()
[all …]
/linux/drivers/platform/surface/
H A Dsurface_aggregator_tabletsw.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Surface System Aggregator Module (SSAM) tablet mode switch driver.
19 /* -- SSAM generic tablet switch driver framework. -------------------------- */
29 int (*get_state)(struct ssam_tablet_sw *sw, struct ssam_tablet_sw_state *state);
30 const char *(*state_name)(struct ssam_tablet_sw *sw,
32 bool (*state_is_tablet_mode)(struct ssam_tablet_sw *sw,
55 int (*get_state)(struct ssam_tablet_sw *sw, struct ssam_tablet_sw_state *state);
56 const char *(*state_name)(struct ssam_tablet_sw *sw,
58 bool (*state_is_tablet_mode)(struct ssam_tablet_sw *sw,
72 struct ssam_tablet_sw *sw = dev_get_drvdata(dev); in state_show() local
[all …]
/linux/drivers/block/
H A Dswim3.c1 // SPDX-License-Identifier: GPL-2.0-or-later
24 #include <linux/blk-mq.h>
66 REG(mode);
182 int cur_cyl; /* cylinder head is on, or -1 */
193 int write_prot; /* 1 if write-protected, 0 if not, -1 dunno */
209 #define swim3_err(fmt, arg...) dev_err(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg)
210 #define swim3_warn(fmt, arg...) dev_warn(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg)
211 #define swim3_info(fmt, arg...) dev_info(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg)
214 #define swim3_dbg(fmt, arg...) dev_dbg(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg)
249 static int floppy_ioctl(struct block_device *bdev, blk_mode_t mode,
[all …]
/linux/arch/mips/alchemy/common/
H A Dsleeper.S1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * Sleep helper for Au1xxx sleep mode.
25 sw $1, PT_R1(sp)
26 sw $2, PT_R2(sp)
27 sw $3, PT_R3(sp)
28 sw $4, PT_R4(sp)
29 sw $5, PT_R5(sp)
30 sw $6, PT_R6(sp)
31 sw $7, PT_R7(sp)
32 sw $16, PT_R16(sp)
[all …]
/linux/drivers/thunderbolt/
H A Dquirks.c1 // SPDX-License-Identifier: GPL-2.0
3 * Thunderbolt driver - quirks
10 static void quirk_force_power_link(struct tb_switch *sw) in quirk_force_power_link() argument
12 sw->quirks |= QUIRK_FORCE_POWER_LINK_CONTROLLER; in quirk_force_power_link()
13 tb_sw_dbg(sw, "forcing power to link controller\n"); in quirk_force_power_link()
16 static void quirk_dp_credit_allocation(struct tb_switch *sw) in quirk_dp_credit_allocation() argument
18 if (sw->credit_allocation && sw->min_dp_main_credits == 56) { in quirk_dp_credit_allocation()
19 sw->min_dp_main_credits = 18; in quirk_dp_credit_allocation()
20 tb_sw_dbg(sw, "quirked DP main: %u\n", sw->min_dp_main_credits); in quirk_dp_credit_allocation()
24 static void quirk_clx_disable(struct tb_switch *sw) in quirk_clx_disable() argument
[all …]
/linux/drivers/usb/typec/mux/
H A Dfsa4480.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2021-2022 Linaro Ltd.
4 * Copyright (C) 2018-2020 The Linux Foundation
58 struct typec_switch_dev *sw; member
64 unsigned long mode; member
75 /* Accesses only done under fsa4480->lock */
81 bool reverse = (fsa->orientation == TYPEC_ORIENTATION_REVERSE); in fsa4480_set()
85 if (fsa->swap_sbu_lanes) in fsa4480_set()
88 /* USB Mode */ in fsa4480_set()
89 if (fsa->mode < TYPEC_STATE_MODAL || in fsa4480_set()
[all …]
H A Dit5205.c1 // SPDX-License-Identifier: GPL-2.0
3 * ITE IT5205 Type-C USB alternate mode passive mux
25 #define IT5205FN_CHIP_ID 0x35303235 /* "5025" -> "5205" */
65 struct typec_switch_dev *sw; member
69 static int it5205_switch_set(struct typec_switch_dev *sw, enum typec_orientation orientation) in it5205_switch_set() argument
71 struct it5205 *it = typec_switch_get_drvdata(sw); in it5205_switch_set()
75 regmap_update_bits(it->regmap, IT5205_REG_MUXCR, in it5205_switch_set()
79 regmap_update_bits(it->regmap, IT5205_REG_MUXCR, in it5205_switch_set()
85 regmap_write(it->regmap, IT5205_REG_MUXCR, 0); in it5205_switch_set()
97 if (state->mode >= TYPEC_STATE_MODAL && in it5205_mux_set()
[all …]
H A Dptn36502.c1 // SPDX-License-Identifier: GPL-2.0+
3 * NXP PTN36502 Type-C driver
11 #include <drm/bridge/aux-bridge.h>
66 struct typec_switch_dev *sw; member
72 struct mutex lock; /* protect non-concurrent retimer & switch */
75 unsigned long mode; member
81 bool reverse = (ptn->orientation == TYPEC_ORIENTATION_REVERSE); in ptn36502_set()
86 switch (ptn->mode) { in ptn36502_set()
89 regmap_write(ptn->regmap, PTN36502_MODE_CTRL1_REG, in ptn36502_set()
97 * A -> USB RX in ptn36502_set()
[all …]
H A Dnb7vpq904m.c1 // SPDX-License-Identifier: GPL-2.0+
3 * OnSemi NB7VPQ904M Type-C driver
14 #include <drm/bridge/aux-bridge.h>
67 struct typec_switch_dev *sw; member
74 struct mutex lock; /* protect non-concurrent retimer & switch */
77 unsigned long mode; member
97 regmap_update_bits(nb7->regmap, EQ_SETTING_REG(channel), in nb7vpq904m_set_channel()
99 regmap_update_bits(nb7->regmap, OUTPUT_COMPRESSION_AND_POL_REG(channel), in nb7vpq904m_set_channel()
101 regmap_update_bits(nb7->regmap, FLAT_GAIN_REG(channel), in nb7vpq904m_set_channel()
103 regmap_update_bits(nb7->regmap, LOSS_MATCH_REG(channel), in nb7vpq904m_set_channel()
[all …]
H A Dwcd939x-usbss.c1 // SPDX-License-Identifier: GPL-2.0-only
72 #define WCD_USBSS_SWITCH_SELECT0_DP_AUXP_SWITCHES BIT(7) /* 1-> MG2 */
73 #define WCD_USBSS_SWITCH_SELECT0_DP_AUXM_SWITCHES BIT(6) /* 1-> MG2 */
76 #define WCD_USBSS_SWITCH_SELECT0_SENSE_SWITCHES BIT(1) /* 1-> SBU2 */
77 #define WCD_USBSS_SWITCH_SELECT0_MIC_SWITCHES BIT(0) /* 1-> MG2 */
89 #define WCD_USBSS_SWITCH_SELECT1_AGND_SWITCHES BIT(0) /* 1-> MG2 */
189 struct typec_switch_dev *sw; member
198 unsigned long mode; member
242 bool reverse = (usbss->orientation == TYPEC_ORIENTATION_REVERSE); in wcd939x_usbss_set()
248 /* USB Mode */ in wcd939x_usbss_set()
[all …]
H A Dpi3usb30532.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Pericom PI3USB30532 Type-C cross switch / mux driver
5 * Copyright (c) 2017-2018 Hans de Goede <hdegoede@redhat.com>
26 struct typec_switch_dev *sw; member
35 if (pi->conf == new_conf) in pi3usb30532_set_conf()
38 ret = i2c_smbus_write_byte_data(pi->client, PI3USB30532_CONF, new_conf); in pi3usb30532_set_conf()
40 dev_err(&pi->client->dev, "Error writing conf: %d\n", ret); in pi3usb30532_set_conf()
44 pi->conf = new_conf; in pi3usb30532_set_conf()
48 static int pi3usb30532_sw_set(struct typec_switch_dev *sw, in pi3usb30532_sw_set() argument
51 struct pi3usb30532 *pi = typec_switch_get_drvdata(sw); in pi3usb30532_sw_set()
[all …]
/linux/tools/testing/selftests/drivers/net/bonding/
H A Dbond-lladdr-target.sh2 # SPDX-License-Identifier: GPL-2.0
7 # +----------------+
9 # | | | sw
11 # +---+-------+----+
13 # +---+-------+----+
17 # +----------------+
25 sw="sw-$(mktemp -u XXXXXX)"
26 host="ns-$(mktemp -u XXXXXX)"
30 ip netns del $sw
36 $@ | grep fe80 | grep -qv tentative
[all …]
/linux/drivers/hid/intel-thc-hid/intel-thc/
H A Dintel-thc-hw.h1 /* SPDX-License-Identifier: GPL-2.0 */
26 /* THC SW sequencing Control */
28 /* THC SW sequencing Status */
30 /* THC SW Sequencing Data DW0 or SPI Address Register */
32 /* THC SW sequencing Data DW1 */
34 /* THC SW sequencing Data DW2 */
36 /* THC SW sequencing Data DW3 */
38 /* THC SW sequencing Data DW4 */
40 /* THC SW sequencing Data DW5 */
42 /* THC SW sequencing Data DW6 */
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/
H A Dphy.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2012-2014, 2019-2022, 2024-2025 Intel Corporation
4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5 * Copyright (C) 2016-2017 Intel Deutschland GmbH
13 * enum iwl_phy_ops_subcmd_ids - PHY group commands
73 * struct iwl_dts_measurement_cmd - request DTS temp and/or voltage measurements
83 * enum iwl_dts_control_measurement_mode - DTS measurement type
84 * @DTS_AUTOMATIC: Automatic mode (full SW control). Provide temperature read
86 * SW DTS configuration.
90 * @DTS_OVER_WRITE: over-write the DTS temperatures in the SW until next read
[all …]
/linux/arch/alpha/kernel/
H A Dprocess.c1 // SPDX-License-Identifier: GPL-2.0
9 * This file handles the architecture-dependent parts of process handling.
71 int mode; member
87 ((unsigned long)hwrpb + hwrpb->processor_offset in common_shutdown_1()
88 + hwrpb->processor_size * cpuid); in common_shutdown_1()
89 pflags = &cpup->flags; in common_shutdown_1()
106 if (how->mode == LINUX_REBOOT_CMD_RESTART) { in common_shutdown_1()
107 if (!how->restart_cmd) { in common_shutdown_1()
136 /* If we've gotten here after SysRq-b, leave interrupt in common_shutdown_1()
142 do_take_over_console(&dummy_con, 0, MAX_NR_CONSOLES-1, 1); in common_shutdown_1()
[all …]
/linux/Documentation/hid/
H A Dintel-thc-hid.rst1 .. SPDX-License-Identifier: GPL-2.0
10 - A natively half-duplex Quad I/O capable SPI master
11 - Low latency I2C interface to support HIDI2C compliant devices
12 - A HW sequencer with RW DMA capability to system memory
29 -------------------------------
31 Below diagram illustrates the high-level architecture of THC software/hardware stack, which is fully
36 ----------------------------------------------
37 | +-----------------------------------+ |
39 | +-----------------------------------+ |
40 | +-----------------------------------+ |
[all …]
/linux/drivers/platform/x86/lenovo/
H A Dymc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * lenovo-ymc.c - Lenovo Yoga Mode Control driver
13 #include <linux/input/sparse-keymap.h>
15 #include "ideapad-laptop.h"
17 #define LENOVO_YMC_EVENT_GUID "06129D99-6083-4164-81AD-F092F9D773A6"
18 #define LENOVO_YMC_QUERY_GUID "09B0EE6E-C3FD-4243-8DA1-7911FF80BB8C"
25 MODULE_PARM_DESC(force, "Force loading on boards without a convertible DMI chassis-type");
49 { KE_SW, 0x01, { .sw = { SW_TABLET_MODE, 0 } } },
51 { KE_SW, 0x02, { .sw = { SW_TABLET_MODE, 1 } } },
53 { KE_SW, 0x03, { .sw = { SW_TABLET_MODE, 1 } } },
[all …]
/linux/arch/alpha/include/uapi/asm/
H A Dfpu.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
7 * Alpha floating-point control register defines:
25 #define FPCR_DYN_SHIFT 58 /* first dynamic rounding mode bit */
27 #define FPCR_DYN_MINUS (0x1UL << FPCR_DYN_SHIFT) /* towards -INF */
35 * IEEE trap enables are implemented in software. These per-thread
38 * floating-point enable bit (which is architected). On top of that,
88 * receive my thanks for making all the not-implemented fpcr bits
93 ieee_swcr_to_fpcr(unsigned long sw) in ieee_swcr_to_fpcr() argument
96 fp = (sw & IEEE_STATUS_MASK) << 35; in ieee_swcr_to_fpcr()
97 fp |= (sw & IEEE_MAP_DMZ) << 36; in ieee_swcr_to_fpcr()
[all …]
/linux/drivers/usb/typec/
H A Dmux.c1 // SPDX-License-Identifier: GPL-2.0
3 * USB Type-C Multiplexer/DeMultiplexer Switch support
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
74 struct typec_switch *sw; in fwnode_typec_switch_get() local
79 sw = kzalloc(sizeof(*sw), GFP_KERNEL); in fwnode_typec_switch_get()
80 if (!sw) in fwnode_typec_switch_get()
81 return ERR_PTR(-ENOMEM); in fwnode_typec_switch_get()
[all …]
/linux/include/linux/usb/
H A Dtypec_mux.h1 // SPDX-License-Identifier: GPL-2.0
18 typedef int (*typec_switch_set_fn_t)(struct typec_switch_dev *sw,
31 void typec_switch_put(struct typec_switch *sw);
32 int typec_switch_set(struct typec_switch *sw, in typec_switch_get()
38 void typec_switch_unregister(struct typec_switch_dev *sw);
40 void typec_switch_set_drvdata(struct typec_switch_dev *sw, void *data);
41 void *typec_switch_get_drvdata(struct typec_switch_dev *sw);
51 static inline void typec_switch_put(struct typec_switch *sw) {}
47 unsigned long mode; global() member
[all...]
/linux/drivers/watchdog/
H A Dasm9260_wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 2014 Oleksij Rempel <linux@rempel-privat.de>
21 /* Watchdog Mode register */
25 /* This bit set if timeout reached. Cleared by SW. */
64 enum asm9260_wdt_mode mode; member
71 iowrite32(0xaa, priv->iobase + HW_WDFEED); in asm9260_wdt_feed()
72 iowrite32(0x55, priv->iobase + HW_WDFEED); in asm9260_wdt_feed()
82 counter = ioread32(priv->iobase + HW_WDTV); in asm9260_wdt_gettimeleft()
84 return counter / priv->wdt_freq; in asm9260_wdt_gettimeleft()
92 counter = wdd->timeout * priv->wdt_freq; in asm9260_wdt_updatetimeout()
[all …]
/linux/drivers/gpu/drm/amd/include/
H A Datombios.h2 * Copyright 2006-2007 Advanced Micro Devices, Inc.
107 #define ATOM_SCALER_DISABLE 0 //For Fudo, it's bypass and auto-cengter & no replication
108 #define ATOM_SCALER_CENTER 1 //For Fudo, it's bypass and auto-center & auto replication
109 #define ATOM_SCALER_EXPANSION 2 //For Fudo, it's 2 Tap alpha blending mode
110 #define ATOM_SCALER_MULTI_EX 3 //For Fudo only, it's multi-tap mode only used to drive TV or CV,…
222 UCHAR uaFirmWareSignature[4]; //Signature to distinguish between Atombios and non-atombios,
235 …USHORT usMasterCommandTableOffset;//Offest for SW to get all command table offsets, Don't change t…
236 …USHORT usMasterDataTableOffset; //Offest for SW to get all data table offsets, Don't change the …
245 UCHAR uaFirmWareSignature[4]; //Signature to distinguish between Atombios and non-atombios,
258 …USHORT usMasterCommandTableOffset;//Offest for SW to get all command table offsets, Don't change t…
[all …]

12345678910>>...31