/linux/Documentation/userspace-api/ioctl/ |
H A D | cdrom.rst | 5 - Edward A. Falk <efalk@google.com> 10 the CDROM layer. These are by-and-large implemented (as of Linux 2.6) 28 CDROMREADMODE2 Read CDROM mode 2 data (2336 Bytes) 30 CDROMREADMODE1 Read CDROM mode 1 data (2048 Bytes) 33 CDROMEJECT_SW enable(1)/disable(0) auto-ejecting 34 CDROMMULTISESSION Obtain the start-of-last-session 40 CDROMRESET hard-reset the drive 43 CDROMREADRAW read data in raw mode (2352 Bytes) 45 CDROMREADCOOKED read data in cooked mode 47 CDROMPLAYBLK scsi-cd only, (struct cdrom_blk) [all …]
|
/linux/include/uapi/linux/ |
H A D | mdio.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 4 * Copyright 2006-2009 Solarflare Communications Inc. 25 #define MDIO_MMD_AN 7 /* Auto-Negotiation */ 59 /* Media-dependent registers. */ 60 #define MDIO_PMA_10GBT_SWAPPOL 130 /* 10GBASE-T pair swap & polarity */ 61 #define MDIO_PMA_10GBT_TXPWR 131 /* 10GBASE-T TX power control */ 62 #define MDIO_PMA_10GBT_SNR 133 /* 10GBASE-T SNR margin, lane A. 63 * Lanes B-D are numbered 134-136. */ 64 #define MDIO_PMA_10GBR_FSRT_CSR 147 /* 10GBASE-R fast retrain status and control */ 65 #define MDIO_PMA_10GBR_FECABLE 170 /* 10GBASE-R FEC ability */ [all …]
|
H A D | pci_regs.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 5 * Copyright 1997--1999 Martin Mares <mj@ucw.cz> 25 * Conventional PCI and PCI-X Mode 1 devices have 256 bytes of 26 * configuration space. PCI- [all...] |
H A D | netdev.h | 1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ 2 /* Do not edit directly, auto-generated from: */ 4 /* YNL-GEN uapi header */ 20 * in zero copy mode. 23 * @NETDEV_XDP_ACT_RX_SG: This feature informs if netdev implements non-linear 26 * non-linear XDP buffer support in ndo_xdp_xmit callback. 43 * @NETDEV_XDP_RX_METADATA_TIMESTAMP: Device is capable of exposing receive HW 45 * @NETDEV_XDP_RX_METADATA_HASH: Device is capable of exposing receive packet 47 * @NETDEV_XDP_RX_METADATA_VLAN_TAG: Device is capable of exposing receive 86 NETDEV_A_DEV_MAX = (__NETDEV_A_DEV_MAX - 1) [all …]
|
/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 int ret = -EINVAL, res; in get_integer() 61 return -EINVAL; in get_boolean() 71 if (!capable(CAP_NET_ADMIN)) in b43legacy_attr_interfmode_show() 72 return -EPERM; in b43legacy_attr_interfmode_show() 74 mutex_lock(&wldev->wl->mutex); in b43legacy_attr_interfmode_show() 76 switch (wldev->phy.interfmode) { in b43legacy_attr_interfmode_show() 82 "1 (Non-WLAN Interference Mitigation)\n"); in b43legacy_attr_interfmode_show() 91 mutex_unlock(&wldev->wl->mutex); in b43legacy_attr_interfmode_show() 103 int mode; in b43legacy_attr_interfmode_store() local [all …]
|
/linux/Documentation/driver-api/usb/ |
H A D | typec.rst | 3 USB Type-C connector class 7 ------------ 9 The typec class is meant for describing the USB Type-C ports in a system to the 14 The platforms are expected to register every USB Type-C port they have with the 15 class. In a normal case the registration will be done by a USB Type-C or PD PHY 18 considers the component registering the USB Type-C ports with the class as "port 23 driver is capable of supporting those features. 26 attributes are described in Documentation/ABI/testing/sysfs-class-typec. 29 -------------------- 36 "port0-partner". Full path to the device would be [all …]
|
/linux/drivers/net/ethernet/atheros/atlx/ |
H A D | atlx.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* atlx_hw.h -- common hardware definitions for Attansic network drivers 4 * Copyright(c) 2005 - 2006 Attansic Corporation. All rights reserved. 5 * Copyright(c) 2006 - 2007 Chris Snook <csnook@redhat.com> 6 * Copyright(c) 2006 - 2008 Jay Cliburn <jcliburn@gmail.com> 10 * Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. 149 /* IRQ Anti-Lost Timer Initial Value Register */ 228 /* MAC Half-Duplex Control Register */ 246 /* Wake-On-Lan control register */ 322 #define MII_SR_AUTONEG_CAPS 0x0008 /* Auto Neg Capable */ [all …]
|
/linux/Documentation/driver-api/serial/ |
H A D | serial-rs485.rst | 8 EIA-485, also known as TIA/EIA-485 or RS-485, is a standard defining the 15 2. Hardware-related Considerations 18 Some CPUs/UARTs (e.g., Atmel AT91 or 16C950 UART) contain a built-in 19 half-duplex mode capable of automatically controlling line direction by 21 half-duplex hardware like an RS485 transceiver or any RS232-connected 22 half-duplex devices like some modems. 24 For these microcontrollers, the Linux driver should be made capable of 26 available at user-level to allow switching from one mode to the other, and 37 [#DT-bindings]_. The serial core fills the struct serial_rs485 from the 41 Any driver for devices capable of working both as RS232 and RS485 should [all …]
|
H A D | serial-iso7816.rst | 11 2. Hardware-related considerations 14 Some CPUs/UARTs (e.g., Microchip AT91) contain a built-in mode capable of 17 For these microcontrollers, the Linux driver should be made capable of 19 available at user-level to allow switching from one mode to the other, and 29 Any driver for devices capable of working both as RS232 and ISO7816 should 35 4. Usage from user-level 38 From user-level, ISO7816 configuration can be get/set using the previous 57 /* Enable ISO7816 mode: */
|
/linux/block/ |
H A D | ioctl.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <linux/backing-dev.h> 22 struct gendisk *disk = bdev->bd_disk; in blkpg_do_ioctl() 26 if (!capable(CAP_SYS_ADMIN)) in blkpg_do_ioctl() 27 return -EACCES; in blkpg_do_ioctl() 29 return -EFAULT; in blkpg_do_ioctl() 31 return -EINVAL; in blkpg_do_ioctl() 34 return -EINVAL; in blkpg_do_ioctl() 39 if (p.start < 0 || p.length <= 0 || LLONG_MAX - p.length < p.start) in blkpg_do_ioctl() 40 return -EINVAL; in blkpg_do_ioctl() [all …]
|
/linux/Documentation/arch/arm64/ |
H A D | asymmetric-32bit.rst | 2 Asymmetric 32-bit SoCs 7 This document describes the impact of asymmetric 32-bit SoCs on the 8 execution of 32-bit (``AArch32``) applications. 10 Date: 2021-05-17 16 of the CPUs are capable of executing 32-bit user applications. On such 19 ``execve(2)`` of 32-bit ELF binaries, with the latter returning 20 ``-ENOEXEC``. If the mismatch is detected during late onlining of a 21 64-bit-only CPU, then the onlining operation fails and the new CPU is 25 running legacy 32-bit binaries. Unsurprisingly, that doesn't work very 28 It seems inevitable that future SoCs will drop 32-bit support [all …]
|
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 26 int ret = -EINVAL; in get_integer() 44 if (!capable(CAP_NET_ADMIN)) in b43_attr_interfmode_show() 45 return -EPERM; in b43_attr_interfmode_show() 47 mutex_lock(&wldev->wl->mutex); in b43_attr_interfmode_show() 49 if (wldev->phy.type != B43_PHYTYPE_G) { in b43_attr_interfmode_show() 50 mutex_unlock(&wldev->wl->mutex); in b43_attr_interfmode_show() 51 return -ENOSYS; in b43_attr_interfmode_show() 54 switch (wldev->phy.g->interfmode) { in b43_attr_interfmode_show() 60 "1 (Non-WLAN Interference Mitigation)\n"); in b43_attr_interfmode_show() [all …]
|
/linux/fs/gfs2/ |
H A D | sys.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 41 return a->show ? a->show(sdp, buf) : 0; in gfs2_attr_show() 49 return a->store ? a->store(sdp, buf, len) : len; in gfs2_attr_store() 63 MAJOR(sdp->sd_vfs->s_dev), MINOR(sdp->sd_vfs->s_dev)); in id_show() 68 unsigned long f = sdp->sd_flags; in status_show() 107 (sdp->sd_jdesc ? sdp->sd_jdesc->jd_jid : 0), in status_show() 108 (sdp->sd_args.ar_spectator ? 1 : 0), in status_show() 114 (sb_rdonly(sdp->sd_vfs) ? 1 : 0), in status_show() [all …]
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | usb-drd.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/usb/usb-drd.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Greg Kroah-Hartman <gregkh@linuxfoundation.org> 13 otg-rev: 16 which the device and its descriptors are compliant, in binary-coded 18 features (HNP/SRP/ADP) is enabled. If ADP is required, otg-rev should be 25 Tells Dual-Role USB controllers that we want to work on a particular 26 mode. In case this attribute isn't passed via DT, USB DRD controllers [all …]
|
/linux/include/linux/ |
H A D | brcmphy.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 /* All Broadcom Ethernet switches have a pseudo-PHY at address 30 which is used 94 #define MII_BCM54XX_EXP_SEL_WOL 0x0e00 /* Wake-on-LAN expansion select register */ 104 #define MII_BCM54XX_INT_DUPLEX 0x0008 /* Duplex mode changed */ 111 #define MII_BCM54XX_INT_ANPR 0x0400 /* Auto-negotiation page received */ 205 /* 01010: Auto Power-Down */ 219 #define BCM54XX_SHD_RGMII_MODE 0x0b /* 01011: RGMII Mode Selector */ 221 #define BCM5482_SHD_SSD_LEDM 0x0008 /* SSD LED Mode enable */ 224 /* 10011: SerDes 100-FX Control Register */ 226 #define BCM54616S_100FX_MODE BIT(0) /* 100-FX SerDes Enable */ [all …]
|
/linux/arch/powerpc/kvm/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 82 tristate "KVM for POWER7 and later using hypervisor mode in host" 90 hypervisor mode available to the host. 103 tristate "KVM support without using hypervisor mode in host" 109 without using hypervisor mode in the host, by running the 110 guest in user mode (problem state) and emulating all 113 This is only available for hash MMU mode and only supports 114 guests that use hash MMU mode. 116 This is not as fast as using hypervisor mode, but works on 117 machines where hypervisor mode is not available or not usable, [all …]
|
/linux/arch/x86/kernel/ |
H A D | itmt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 * Boolean to control whether we want to move processes to cpu capable 51 return -EINVAL; in sched_itmt_update_handler() 72 .mode = 0644, 82 * sched_set_itmt_support() - Indicate platform supports ITMT 85 * is capable of supporting the ITMT feature. 88 * is ITMT capable and call sched_set_itmt_support. 110 return -ENOMEM; in sched_set_itmt_support() 126 * sched_clear_itmt_support() - Revoke platform's support of ITMT 151 /* disable sched_itmt if we are no longer ITMT capable */ in sched_clear_itmt_support() [all …]
|
/linux/tools/include/uapi/linux/ |
H A D | netdev.h | 1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ 2 /* Do not edit directly, auto-generated from: */ 4 /* YNL-GEN uapi header */ 20 * in zero copy mode. 23 * @NETDEV_XDP_ACT_RX_SG: This feature informs if netdev implements non-linear 26 * non-linear XDP buffer support in ndo_xdp_xmit callback. 43 * @NETDEV_XDP_RX_METADATA_TIMESTAMP: Device is capable of exposing receive HW 45 * @NETDEV_XDP_RX_METADATA_HASH: Device is capable of exposing receive packet 47 * @NETDEV_XDP_RX_METADATA_VLAN_TAG: Device is capable of exposing receive 86 NETDEV_A_DEV_MAX = (__NETDEV_A_DEV_MAX - 1) [all …]
|
/linux/Documentation/networking/device_drivers/ethernet/3com/ |
H A D | 3c509.rst | 1 .. SPDX-License-Identifier: GPL-2.0 21 ethercards in Linux. These cards are commonly known by the most widely-used 22 card's 3Com model number, 3c509. They are all 10mb/s ISA-bus cards and shouldn't 23 be (but sometimes are) confused with the similarly-numbered PCI-bus "3c905" 28 - 3c509 (original ISA card) 29 - 3c509B (later revision of the ISA card; supports full-duplex) 30 - 3c589 (PCMCIA) 31 - 3c589B (later revision of the 3c589; supports full-duplex) 32 - 3c579 (EISA) 45 The driver allows boot- or load-time overriding of the card's detected IOADDR, [all …]
|
/linux/Documentation/networking/ |
H A D | phy.rst | 26 #. Increase code-reuse 27 #. Increase overall code-maintainability 67 for one of the users. (e.g. "git grep fsl,.*-mdio arch/powerpc/boot/dts/") 72 The Reduced Gigabit Medium Independent Interface (RGMII) is a 12-pin 83 internal delay by itself, it assumes that either the Ethernet MAC (if capable) 84 or the PCB traces insert the correct 1.5-2ns delay 97 * PHY devices may offer sub-nanosecond granularity in how they allow a 109 For cases where the PHY is not capable of providing this delay, but the 110 Ethernet MAC driver is capable of doing so, the correct phy_interface_t value 114 MAC driver looks at the phy_interface_t value, for any other mode but [all …]
|
/linux/drivers/ata/ |
H A D | pata_ali.c | 2 * pata_ali.c - ALI 15x3 PATA for new ATA layer 8 * Copyright (C) 1998-2000 Michel Aubry, Maintainer 9 * Copyright (C) 1998-2000 Andrzej Krzysztofowicz, Maintainer 10 * Copyright (C) 1999-2000 CJ, cjtsai@ali.com.tw, Maintainer 12 * Copyright (C) 1998-2000 Andre Hedrick (andre@linux-ide.org) 54 DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"), 55 DMI_MATCH(DMI_BOARD_VERSION, "OmniBook N32N-736"), 59 .ident = "Toshiba Satellite S1800-814", 62 DMI_MATCH(DMI_PRODUCT_NAME, "S1800-814"), 71 if (pdev->subsystem_vendor == 0x10CF && pdev->subsystem_device == 0x10AF) in ali_cable_override() [all …]
|
/linux/drivers/tty/vt/ |
H A D | vt_ioctl.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Dynamic diacritical handling - aeb@cwi.nl - Dec 1993 6 * Dynamic keymap and string allocation - aeb@cwi.nl - May 1994 7 * Restrict VT switching via ioctl() - grif@cs.ucr.edu - Dec 1995 8 * Some code moved for less code duplication - Andi Kleen - Mar 1997 9 * Check put/get_user, cleanups - acme@conectiva.com.br - Jun 2001 50 * while we're checking whether it's in-use. in vt_in_use() 54 return vc && kref_read(&vc->port.kref) > 1; in vt_in_use() 77 * ttys 0..MAX_NR_CONSOLES-1). Explicitly naming VT 0 is illegal, but using 123 if (!(ve->event.event & event)) in vt_event_post() [all …]
|
/linux/include/linux/usb/ |
H A D | tcpm.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright 2015-2017 Google, Inc 59 * struct tcpc_dev - Port configuration and callback functions 64 * and cc=Rp-def. This allows the tcpm to provide a fallback 65 * current-limit detection method for the cc=Rp-def case. 82 * Optional; if supported by hardware, called to start dual-role 83 * toggling or single-role connection detection. Toggling stops 87 * @set_bist_data: Turn on/off bist data mode for compliance testing 114 * Optional; The USB Communications Capable bit indicates if port 115 * partner is capable of communication over the USB data lines [all …]
|
/linux/Documentation/devicetree/bindings/serial/ |
H A D | rs485.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 9 description: The RTS signal is capable of automatically controlling line 10 direction for the built-in half-duplex mode. The properties described 11 hereafter shall be given to a half-duplex capable UART node. 14 - Rob Herring <robh@kernel.org> 17 rs485-rts-delay: 18 description: prop-encoded-array <a b> 19 $ref: /schemas/types.yaml#/definitions/uint32-array [all …]
|
/linux/drivers/net/wireless/silabs/wfx/ |
H A D | hif_tx_mib.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Implementation of the host-to-chip MIBs of the hardware API. 5 * Copyright (c) 2017-2020, Silicon Laboratories, Inc. 6 * Copyright (c) 2010, ST-Ericsson 7 * Copyright (C) 2010, ST-Ericsson SA 23 return wfx_hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_CURRENT_TX_POWER_LEVEL, in wfx_hif_set_output_power() 37 return -EINVAL; in wfx_hif_set_beacon_wakeup_period() 38 return wfx_hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_BEACON_WAKEUP_PERIOD, in wfx_hif_set_beacon_wakeup_period() 59 return wfx_hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_RCPI_RSSI_THRESHOLD, in wfx_hif_set_rcpi_rssi_threshold() 83 return wfx_hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_DOT11_MAC_ADDRESS, in wfx_hif_set_macaddr() [all …]
|