/linux/drivers/gpu/drm/tests/ |
H A D | drm_cmdline_parser_test.c | 1 // SPDX-License-Identifier: GPL-2.0 16 struct drm_cmdline_mode mode = { }; in drm_test_cmdline_force_e_only() local 20 &no_connector, &mode)); in drm_test_cmdline_force_e_only() 21 KUNIT_EXPECT_FALSE(test, mode.specified); in drm_test_cmdline_force_e_only() 22 KUNIT_EXPECT_FALSE(test, mode.refresh_specified); in drm_test_cmdline_force_e_only() 23 KUNIT_EXPECT_FALSE(test, mode.bpp_specified); in drm_test_cmdline_force_e_only() 25 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_e_only() 26 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_e_only() 27 KUNIT_EXPECT_FALSE(test, mode.interlace); in drm_test_cmdline_force_e_only() 28 KUNIT_EXPECT_FALSE(test, mode.margins); in drm_test_cmdline_force_e_only() [all …]
|
H A D | drm_modes_test.c | 1 // SPDX-License-Identifier: GPL-2.0 26 priv->dev = drm_kunit_helper_alloc_device(test); in drm_test_modes_init() 27 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, priv->dev); in drm_test_modes_init() 29 priv->drm = __drm_kunit_helper_alloc_drm_device(test, priv->dev, in drm_test_modes_init() 30 sizeof(*priv->drm), 0, in drm_test_modes_init() 32 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, priv->drm); in drm_test_modes_init() 34 test->priv = priv; in drm_test_modes_init() 41 struct drm_test_modes_priv *priv = test->priv; in drm_test_modes_analog_tv_ntsc_480i() 42 struct drm_display_mode *mode; in drm_test_modes_analog_tv_ntsc_480i() local 44 mode = drm_analog_tv_mode(priv->drm, in drm_test_modes_analog_tv_ntsc_480i() [all …]
|
/linux/sound/soc/codecs/ |
H A D | wcd-clsh-v2.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 10 #include "wcd-clsh-v2.h" 14 int mode; member 22 /* Class-H registers for codecs from and above WCD9335 */ 122 struct snd_soc_component *comp = ctrl->comp; in wcd_enable_clsh_block() 124 if ((enable && ++ctrl->clsh_users == 1) || in wcd_enable_clsh_block() 125 (!enable && --ctrl->clsh_users == 0)) in wcd_enable_clsh_block() 129 if (ctrl->clsh_users < 0) in wcd_enable_clsh_block() [all …]
|
H A D | wl1273.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/mfd/wl1273-core.h> 24 enum wl1273_mode mode; member 32 struct device *dev = &core->client->dev; in snd_wl1273_fm_set_i2s_mode() 34 u16 mode; in snd_wl1273_fm_set_i2s_mode() local 39 mutex_lock(&core->lock); in snd_wl1273_fm_set_i2s_mode() 41 mode = core->i2s_mode & ~WL1273_IS2_WIDTH & ~WL1273_IS2_RATE; in snd_wl1273_fm_set_i2s_mode() 45 mode |= WL1273_IS2_RATE_48K; in snd_wl1273_fm_set_i2s_mode() 48 mode |= WL1273_IS2_RATE_44_1K; in snd_wl1273_fm_set_i2s_mode() 51 mode |= WL1273_IS2_RATE_32K; in snd_wl1273_fm_set_i2s_mode() [all …]
|
/linux/Documentation/networking/devlink/ |
H A D | devlink-eswitch-attr.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Devlink E-Switch Attribute 7 Devlink E-Switch supports two modes of operation: legacy and switchdev. 8 Legacy mode operates based on traditional MAC/VLAN steering rules. Switching 12 On the other hand, switchdev mode allows for more advanced offloading 13 capabilities of the E-Switch to hardware. In switchdev mode, more switching 16 or scalable-functions (SFs) of the device. See more information about 20 In addition, the devlink E-Switch also comes with other attributes listed 26 The following is a list of E-Switch attributes. 28 .. list-table:: E-Switch attributes [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_modes.c | 2 * Copyright © 1997-2003 by The XFree86 Project, Inc. 4 * Copyright © 2007-2008 Intel Corporation 6 * Copyright 2005-2006 Luc Verhaegen 53 * drm_mode_debug_printmodeline - print a mode to dmesg 54 * @mode: mode to print 56 * Describe @mode using DRM_DEBUG. 58 void drm_mode_debug_printmodeline(const struct drm_display_mode *mode) in drm_mode_debug_printmodeline() argument 60 DRM_DEBUG_KMS("Modeline " DRM_MODE_FMT "\n", DRM_MODE_ARG(mode)); in drm_mode_debug_printmodeline() 65 * drm_mode_create - create a new display mode 72 * Pointer to new mode on success, NULL on error. [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_xdp_redirect_multi.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 # - - - - - - - - - - - - - - - - - - - 7 # - -| - - - - - - | - - - - - - | - - 8 # --------- --------- --------- 10 # --------- --------- --------- 19 # ns1 -> gw: ns1, ns2, ns3, should receive the arp request 22 # ns1 -> gw: ns1 should not receive, ns2, ns3 should receive redirects. 24 # ping test: ns1 -> ns2 (block), echo requests will be redirect back 34 LOG_DIR=$(mktemp -d) 35 declare -a NS [all …]
|
/linux/Documentation/driver-api/usb/ |
H A D | typec_bus.rst | 2 API for USB Type-C Alternate Mode drivers 6 ------------ 9 Messages (VDM) as defined in USB Type-C and USB Power Delivery Specifications. 11 every alternate mode, so every alternate mode will need a custom driver. 13 USB Type-C bus allows binding a driver to the discovered partner alternate 14 modes by using the SVID and the mode number. 16 :ref:`USB Type-C Connector Class <typec>` provides a device for every alternate 17 mode a port supports, and separate device for every alternate mode the partner 19 mode devices, and the port alternate mode devices must be handled by the port 22 When a new partner alternate mode device is registered, it is linked to the [all …]
|
/linux/Documentation/admin-guide/ |
H A D | svga.rst | 4 Video Mode Selection Support 2.13 7 :Copyright: |copy| 1995--1999 Martin Mares, <mj@ucw.cz> 12 This small document describes the "Video Mode Selection" feature which 21 enter ``scan`` on the video mode prompt, pick the mode you want to use, 22 remember its mode ID (the four-digit hexadecimal number) and then 25 The video mode to be used is selected by a kernel parameter which can be 31 NORMAL_VGA - Standard 80x25 mode available on all display adapters. 33 EXTENDED_VGA - Standard 8-pixel font mode: 80x43 on EGA, 80x50 on VGA. 35 ASK_VGA - Display a video mode menu upon startup (see below). 37 0..35 - Menu item number (when you have used the menu to view the list of [all …]
|
/linux/arch/x86/boot/ |
H A D | video-mode.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* -*- linux-c -*- ------------------------------------------------------- * 5 * Copyright 2007-2008 rPath, Inc. - All Rights Reserved 7 * ----------------------------------------------------------------------- */ 10 * arch/i386/boot/video-mode.c 12 * Set the video mode. This is separated out into a different 27 int do_restore; /* Screen contents changed during mode flip */ 28 int graphic_mode; /* Graphic mode with linear frame buffer */ 30 /* Probe the video drivers and have them generate their mode lists. */ 42 if (card->unsafe == unsafe) { in probe_cards() [all …]
|
/linux/drivers/net/wireless/ath/ath5k/ |
H A D | eeprom.c | 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2009 Nick Kossifidis <mickflemm@gmail.com> 4 * Copyright (c) 2008-2009 Felix Fietkau <nbd@openwrt.org> 41 unsigned int mode) in ath5k_eeprom_bin2freq() argument 48 if (mode == AR5K_EEPROM_MODE_11A) { in ath5k_eeprom_bin2freq() 49 if (ee->ee_version > AR5K_EEPROM_VERSION_3_2) in ath5k_eeprom_bin2freq() 52 val = bin > 62 ? (10 * 62) + (5 * (bin - 62)) + 5100 : in ath5k_eeprom_bin2freq() 55 if (ee->ee_version > AR5K_EEPROM_VERSION_3_2) in ath5k_eeprom_bin2freq() 75 struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; in ath5k_eeprom_init_header() 89 if (ah->ah_ee_version < AR5K_EEPROM_VERSION_3_0) in ath5k_eeprom_init_header() [all …]
|
/linux/drivers/phy/hisilicon/ |
H A D | phy-histb-combphy.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2016-2017 HiSilicon Co., Ltd. http://www.hisilicon.com 21 #include <dt-bindings/phy/phy.h> 50 struct histb_combphy_mode mode; member 56 void __iomem *reg = priv->mmio + COMBPHY_CFG_REG; in nano_register_write() 74 static int is_mode_fixed(struct histb_combphy_mode *mode) in is_mode_fixed() argument 76 return (mode->fixed != PHY_NONE) ? true : false; in is_mode_fixed() 81 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_set_mode() local 82 struct regmap *syscon = priv->syscon; in histb_combphy_set_mode() 85 if (is_mode_fixed(mode)) in histb_combphy_set_mode() [all …]
|
/linux/drivers/parport/ |
H A D | ieee1284.c | 2 * IEEE-1284 implementation for parport. 5 * Carsten Gross <carsten@sol.wohnheim.uni-ulm.de> 10 * read/write requests to low-level drivers. 38 up (&port->physport->ieee1284.irq); in parport_ieee1284_wakeup() 49 * parport_wait_event - wait for an event on a parallel port 68 if (!port->physport->cad->timeout) in parport_wait_event() 73 timer_setup(&port->timer, timeout_waiting_on_port, 0); in parport_wait_event() 74 mod_timer(&port->timer, jiffies + timeout); in parport_wait_event() 75 ret = down_interruptible (&port->physport->ieee1284.irq); in parport_wait_event() 76 if (!del_timer_sync(&port->timer) && !ret) in parport_wait_event() [all …]
|
/linux/include/linux/ |
H A D | phylink.h | 22 MLO_AN_FIXED, /* Fixed-link mode */ 23 MLO_AN_INBAND, /* In-band protocol */ 25 /* PCS "negotiation" mode. 26 * PHYLINK_PCS_NEG_NONE - protocol has no inband capability 27 * PHYLINK_PCS_NEG_OUTBAND - some out of band or fixed link setting 28 * PHYLINK_PCS_NEG_INBAND_DISABLED - inband mode disabled, e.g. 29 * 1000base-X with autoneg off 30 * PHYLINK_PCS_NEG_INBAND_ENABLED - inband mode enabled 32 * PHYLINK_PCS_NEG_INBAND - inband mode selected 33 * PHYLINK_PCS_NEG_ENABLED - negotiation mode enabled [all …]
|
/linux/drivers/usb/typec/ |
H A D | bus.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Bus for USB Type-C Alternate Modes 21 if (!alt->retimer) in typec_altmode_set_retimer() 24 state.alt = &alt->adev; in typec_altmode_set_retimer() 25 state.mode = conf; in typec_altmode_set_retimer() 28 return typec_retimer_set(alt->retimer, &state); in typec_altmode_set_retimer() 36 if (!alt->mux) in typec_altmode_set_mux() 39 state.alt = &alt->adev; in typec_altmode_set_mux() 40 state.mode = conf; in typec_altmode_set_mux() 43 return typec_mux_set(alt->mux, &state); in typec_altmode_set_mux() [all …]
|
/linux/drivers/pci/controller/dwc/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 3 menu "DesignWare-based PCIe controllers" 27 required only for DT-based platforms. ACPI platforms with the 38 and therefore the driver re-uses the DesignWare core functions to 45 bool "Axis ARTPEC-6 PCIe controller (host mode)" 51 Enables support for the PCIe controller in the ARTPEC-6 SoC to work in 52 host mode. This uses the DesignWare core. 55 bool "Axis ARTPEC-6 PCIe controller (endpoint mode)" 61 Enables support for the PCIe controller in the ARTPEC-6 SoC to work in 62 endpoint mode. This uses the DesignWare core. [all …]
|
/linux/Documentation/userspace-api/media/cec/ |
H A D | cec-ioc-g-mode.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 12 CEC_G_MODE, CEC_S_MODE - Get or set exclusive use of the CEC adapter 32 Pointer to CEC mode. 40 filehandle to initiator and/or follower mode which can be exclusive 41 depending on the chosen mode. The initiator is the filehandle that is 61 by the follower. The follower can enable the passthrough mode. In that 65 the passthrough mode. See :ref:`cec-core-processing` for details. 77 .. _cec-mode-initiator_e: 79 .. flat-table:: Initiator Modes 80 :header-rows: 0 [all …]
|
/linux/drivers/net/ethernet/realtek/ |
H A D | r8169_leds.c | 1 // SPDX-License-Identifier: GPL-2.0-only 57 struct rtl8169_private *tp = netdev_priv(ldev->ndev); in rtl8168_led_hw_control_is_supported() 58 int shift = ldev->index * 4; in rtl8168_led_hw_control_is_supported() 61 /* Switch LED off to indicate that mode isn't supported */ in rtl8168_led_hw_control_is_supported() 63 return -EOPNOTSUPP; in rtl8168_led_hw_control_is_supported() 73 struct rtl8169_private *tp = netdev_priv(ldev->ndev); in rtl8168_led_hw_control_set() 74 int shift = ldev->index * 4; in rtl8168_led_hw_control_set() 75 u16 mode = 0; in rtl8168_led_hw_control_set() local 78 mode |= RTL8168_LED_CTRL_LINK_10; in rtl8168_led_hw_control_set() 80 mode |= RTL8168_LED_CTRL_LINK_100; in rtl8168_led_hw_control_set() [all …]
|
/linux/Documentation/devicetree/bindings/power/reset/ |
H A D | reboot-mode.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/reboot-mode.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Generic reboot mode core map 10 - Andy Yan <andy.yan@rock-chips.com> 13 This driver get reboot mode arguments and call the write 18 All mode properties are vendor specific, it is a indication to tell 20 as mode-xxx = <magic> (xxx is mode name, magic should be a non-zero value). 23 - normal: Normal reboot mode, system reboot with command "reboot". [all …]
|
/linux/drivers/firmware/efi/libstub/ |
H A D | gop.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* ----------------------------------------------------------------------- 6 * ----------------------------------------------------------------------- */ 29 u32 mode; member 42 if (!strstarts(option, "mode=")) in parse_modenum() 44 option += strlen("mode="); in parse_modenum() 49 cmdline.mode = m; in parse_modenum() 58 int pf = -1; in parse_res() 66 if (*option == '-') { in parse_res() 138 efi_graphics_output_protocol_mode_t *mode; in choose_mode_modenum() local [all …]
|
/linux/net/ipv4/ |
H A D | sysctl_net_ipv4.c | 1 // SPDX-License-Identifier: GPL-2.0 26 static int tcp_adv_win_scale_min = -31; 57 if (same_parity && !net->ipv4.ip_local_ports.warned) { in set_local_port_range() 58 net->ipv4.ip_local_ports.warned = true; in set_local_port_range() 61 WRITE_ONCE(net->ipv4.ip_local_ports.range, high << 16 | low); in set_local_port_range() 68 struct net *net = table->data; in ipv4_local_port_range() 74 .mode = table->mode, in ipv4_local_port_range() 89 (range[0] < READ_ONCE(net->ipv4.sysctl_ip_prot_sock))) in ipv4_local_port_range() 90 ret = -EINVAL; in ipv4_local_port_range() 102 struct net *net = container_of(table->data, struct net, in ipv4_privileged_ports() [all …]
|
/linux/drivers/scsi/aic94xx/ |
H A D | aic94xx_reg_def.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 22 #define CSEQ_MODE_PAGE_SIZE 0x200 /* CSEQ mode page size */ 23 #define LmSEQ_MODE_PAGE_SIZE 0x200 /* LmSEQ mode page size */ 32 * CHIM Registers, Address Range : (0x00-0xFF) 172 /* 0x38 - 0x3C are reserved */ 197 /* 0x58h - 0xFCh are reserved */ 200 * DCH_SAS Registers, Address Range : (0x800-0xFFF) 291 /* 0x83Ch - 0xFFCh are reserved */ 294 * ARP2 External Processor Registers, Address Range : (0x00-0x1F) 349 /* 0x14h - 0x1Ch are reserved */ [all …]
|
/linux/include/drm/ |
H A D | drm_modes.h | 3 * Copyright © 2007-2008 Dave Airlie 4 * Copyright © 2007-2008 Intel Corporation 46 * enum drm_mode_status - hardware support status of a mode 47 * @MODE_OK: Mode OK 50 * @MODE_H_ILLEGAL: mode has illegal horizontal timings 51 * @MODE_V_ILLEGAL: mode has illegal vertical timings 53 * @MODE_NOMODE: no mode with a matching name 54 * @MODE_NO_INTERLACE: interlaced mode not supported 55 * @MODE_NO_DBLESCAN: doublescan mode not supported 56 * @MODE_NO_VSCAN: multiscan mode not supported [all …]
|
/linux/Documentation/networking/ |
H A D | ipvlan.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 exception of using L3 for mux-ing /demux-ing among slaves. This property makes 34 ip link add link <master> name <slave> type ipvlan [ mode MODE ] [ FLAGS ] 36 MODE: l3 (default) | l3s | l2 42 L3 bridge mode:: 45 (b) This command will create IPvlan link in L2 bridge mode:: 47 bash# ip link add link eth0 name ipvl0 type ipvlan mode l2 bridge 49 (c) This command will create an IPvlan device in L2 private mode:: 51 bash# ip link add link eth0 name ipvlan type ipvlan mode l2 private 53 (d) This command will create an IPvlan device in L2 vepa mode:: [all …]
|
/linux/drivers/leds/trigger/ |
H A D | ledtrig-netdev.c | 1 // SPDX-License-Identifier: GPL-2.0 9 // Derived from ledtrig-timer.c which is: 10 // Copyright 2005-2006 Openedhand Ltd. 36 * device_name - network device name to monitor 37 * interval - duration of LED blink, in milliseconds 38 * link - LED's normal state reflects whether the link is up 40 * tx - LED blinks on transmitted data 41 * rx - LED blinks on receive data 42 * tx_err - LED blinks on transmit error 43 * rx_err - LED blinks on receive error [all …]
|