/linux/Documentation/dev-tools/ |
H A D | checkuapi.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 7 The UAPI checker (``scripts/check-uapi.sh``) is a shell script which 8 checks UAPI header files for userspace backwards-compatibility across 14 This section will describe the options with which ``check-uapi.sh`` 19 check-uapi.sh [-b BASE_REF] [-p PAST_REF] [-j N] [-l ERROR_LOG] [-i] [-q] [-v] 23 -b BASE_REF Base git reference to use for comparison. If unspecified or empty, 26 -p PAST_REF Compare BASE_REF to PAST_REF (e.g. -p v6.1). If unspecified or empty, 29 -j JOBS Number of checks to run in parallel (default: number of CPU cores). 30 -l ERROR_LOG Write error log to file (default: no error log is generated). 31 -i Ignore ambiguous changes that may or may not break UAPI compatibility. [all …]
|
/linux/arch/mips/boot/dts/loongson/ |
H A D | loongson64-2k1000.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include <dt-bindings/interrupt-controller/irq.h> 10 #address-cells = <2>; 11 #size-cells = <2>; 14 #address-cells = <1>; 15 #size-cells = <0>; 21 #clock-cells = <1>; 27 #clock-cells = <0>; 28 compatible = "fixed-clock"; [all …]
|
/linux/include/net/psp/ |
H A D | functions.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 15 /* Driver-facing API */ 24 /* Kernel-facing API */ 29 return pas->drv_data; in psp_assoc_drv_data() 41 return rcu_dereference_check(sk->psp_assoc, lockdep_sock_is_held(sk)); in psp_sk_assoc() 50 if (pas && pas->tx.spi) in psp_enqueue_set_decrypted() 51 skb->decrypted = 1; in psp_enqueue_set_decrypted() 58 struct psp_skb_ext *a, *b; in __psp_skb_coalesce_diff() local 61 b = skb_ext_find(two, SKB_EXT_PSP); in __psp_skb_coalesce_diff() 63 diffs |= (!!a) ^ (!!b); in __psp_skb_coalesce_diff() [all …]
|
/linux/tools/lib/bpf/ |
H A D | libbpf_common.h | 1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 4 * Common user-facing libbpf helpers. 40 * number of arguments provided by used in backwards-compatible way during the 45 #define ___libbpf_cat(A, B) A ## B argument 60 * Macro declares opts struct of given type and name, zero-initializes, 62 * values provided by users in struct initializer-syntax as varargs. 76 * structure size member. Values provided by users in struct initializer-
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-gru-scarlet.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Google Gru-scarlet board device tree source 8 #include "rk3399-gru.dtsi" 11 chassis-type = "tablet"; 16 pp1250_s3: regulator-pp1250-s3 { 17 compatible = "regulator-fixed"; 18 regulator-name = "pp1250_s3"; 21 regulator-always-on; 22 regulator-boot-on; 23 regulator-min-microvolt = <1250000>; [all …]
|
/linux/arch/arm/boot/dts/intel/ixp/ |
H A D | intel-ixp42x-linksys-wrv54g.dts | 1 // SPDX-License-Identifier: ISC 9 /dts-v1/; 11 #include "intel-ixp42x.dtsi" 12 #include <dt-bindings/input/input.h> 17 #address-cells = <1>; 18 #size-cells = <1>; 28 stdout-path = "uart1:115200n8"; 39 compatible = "gpio-leds"; 40 led-power { 43 default-state = "on"; [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_engine_user.c | 1 // SPDX-License-Identifier: MIT 19 struct rb_node *p = i915->uabi_engines.rb_node; in intel_engine_lookup_user() 25 if (class < it->uabi_class) in intel_engine_lookup_user() 26 p = p->rb_left; in intel_engine_lookup_user() 27 else if (class > it->uabi_class || in intel_engine_lookup_user() 28 instance > it->uabi_instance) in intel_engine_lookup_user() 29 p = p->rb_right; in intel_engine_lookup_user() 30 else if (instance < it->uabi_instance) in intel_engine_lookup_user() 31 p = p->rb_left; in intel_engine_lookup_user() 41 llist_add(&engine->uabi_llist, &engine->i915->uabi_engines_llist); in intel_engine_add_user() [all …]
|
/linux/Documentation/arch/x86/ |
H A D | earlyprintk.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 Mini-HOWTO for using the earlyprintk=dbgp boot option with a 13 [host/target] <-------> [USB debug key] <-------> [client/console] 21 the lspci -vvv output:: 23 # lspci -vvv 25 …roller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20 [EHCI]) 27 …Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisIN… 28 …Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- I… 31 Region 0: Memory at fe227000 (32-bit, non-prefetchable) [size=1K] 33 Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+) [all …]
|
/linux/drivers/extcon/ |
H A D | extcon-usbc-tusb320.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/extcon/extcon-tusb320.c - TUSB320 extcon driver 10 #include <linux/extcon-provider.h> 90 [TUSB320_ATTACHED_STATE_DFP] = "downstream facing port", 91 [TUSB320_ATTACHED_STATE_UFP] = "upstream facing port", 103 static const char sig[] = { '\0', 'T', 'U', 'S', 'B', '3', '2', '0' }; in tusb320_check_signature() 108 ret = regmap_read(priv->regmap, sizeof(sig) - 1 - i, &val); in tusb320_check_signature() 112 dev_err(priv->dev, "signature mismatch!\n"); in tusb320_check_signature() 113 return -ENODEV; in tusb320_check_signature() 125 if (priv->state != TUSB320_ATTACHED_STATE_NONE) in tusb320_set_mode() [all …]
|
/linux/scripts/ |
H A D | check-uapi.sh | 2 # SPDX-License-Identifier: GPL-2.0-only 5 set -o errexit 6 set -o pipefail 11 $name - check for UAPI header stability across Git commits 15 check against additional commit ranges with the -b and -p options. 20 Usage: $name [-b BASE_REF] [-p PAST_REF] [-j N] [-l ERROR_LOG] [-i] [-q] [-v] 23 -b BASE_REF Base git reference to use for comparison. If unspecified or empty, 26 -p PAST_REF Compare BASE_REF to PAST_REF (e.g. -p v6.1). If unspecified or empty, 29 -j JOBS Number of checks to run in parallel (default: number of CPU cores). 30 -l ERROR_LOG Write error log to file (default: no error log is generated). [all …]
|
/linux/Documentation/networking/dsa/ |
H A D | dsa.rst | 22 An Ethernet switch typically comprises multiple front-panel ports and one 27 gateways, or even top-of-rack switches. This host Ethernet controller will 36 For each front-panel port, DSA creates specialized network devices which are 37 used as controlling and data-flowing endpoints for use by the Linux networking 46 - what port is this frame coming from 47 - what was the reason why this frame got forwarded 48 - how to send CPU originated traffic to specific ports 52 on Port-based VLAN IDs). 57 - the "cpu" port is the Ethernet switch facing side of the management 61 - the "dsa" port(s) are just conduits between two or more switches, and as such [all …]
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | dp.h | 1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2023, 2025 Qualcomm Innovation Center, Inc. All rights reserved. 237 #define DP_HW2SW_MACID(mac_id) ((mac_id) ? ((mac_id) - 1) : 0) 283 * - reo_cmd_list 284 * - reo_cmd_cache_flush_list 285 * - reo_cmd_cache_flush_count 357 /* host -> target HTT_SRING_SETUP message 360 * each host facing LMAC SRING. Target setups up HW registers based 368 * |--------------- +-----------------+----------------+------------------| [all …]
|
/linux/include/linux/qed/ |
H A D | common_hsi.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 3 * Copyright (c) 2015-2016 QLogic Corporation 4 * Copyright (c) 2019-2021 Marvell International Ltd. 132 /* Traffic classes in network-facing blocks (PBF, BTB, NIG, BRB, PRS and QM) */ 334 (DQ_PWM_OFFSET_TCM32_BASE + DQ_TCM_AGG_VAL_SEL_REG9 - 4) 382 #define QM_LINE_CRD_REG_SIGN_BIT BIT((QM_LINE_CRD_REG_WIDTH - 1)) 384 #define QM_BYTE_CRD_REG_SIGN_BIT BIT((QM_BYTE_CRD_REG_WIDTH - 1)) 386 #define QM_WFQ_CRD_REG_SIGN_BIT BIT((QM_WFQ_CRD_REG_WIDTH - 1)) 388 #define QM_RL_CRD_REG_SIGN_BIT BIT((QM_RL_CRD_REG_WIDTH - 1)) 467 PXP_PF_WINDOW_ADMIN_LENGTH - 1) [all …]
|
/linux/drivers/xen/xenbus/ |
H A D | xenbus_client.c | 2 * Client-facing interface for the Xenbus driver. In other words, the 3 * interface between the Xenbus and the device-specific code, be it the 115 * xenbus_watch_path - register a watch 125 * On success, the given @path will be saved as @watch->node, and remains the 126 * caller's to free. On error, @watch->node will be NULL, the device will 129 * Returns: %0 on success or -errno on error 140 watch->node = path; in xenbus_watch_path() 141 watch->will_handle = will_handle; in xenbus_watch_path() 142 watch->callback = callback; in xenbus_watch_path() 147 watch->node = NULL; in xenbus_watch_path() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | tc_redirect.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 4 * This test sets up 3 netns (src <-> fwd <-> dst). There is no direct veth link 7 * host facing veth in fwd which calls into i) bpf_redirect_neigh() to perform the 63 #define PING_ARGS "-i 0.2 - 588 snd_tstamp(int fd,char * b,size_t s) snd_tstamp() argument [all...] |
/linux/rust/pin-init/src/ |
H A D | macros.rs | 1 // SPDX-License-Identifier: Apache-2.0 OR MIT 3 //! This module provides the macros that actually implement the proc-macros `pin_data` and 9 //! safe code! Use the public facing macros instead. 12 //! would make matters a lot easier for implementing these as proc-macros. 34 //! fn new(t: T) -> impl PinInit<Self> { 43 //! b: Bar<u32>, 56 //! b <- Ba [all...] |
/linux/drivers/usb/host/ |
H A D | octeon-hcd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * Copyright (c) 2003-2010 Cavium Networks (support@cavium.com). All rights 104 * This register can be used to configure the core after power-on or a change in 105 * mode of operation. This register mainly contains AHB system-related 126 * @nptxfemplvl: Non-Periodic TxFIFO Empty Level (NPTxFEmpLvl) 128 * Indicates when the Non-Periodic TxFIFO Empty Interrupt bit in 131 * * 1'b0: GINTSTS.NPTxFEmp interrupt indicates that the Non- 133 * * 1'b1: GINTSTS.NPTxFEmp interrupt indicates that the Non- 172 * This value is in terms of 32-bit words. 211 * - ... [all …]
|
H A D | oxu210hp-hcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * This code is *strongly* based on EHCI-HCD code by David Brownell since 7 * the chip is a quasi-EHCI compatible. 26 #include <linux/dma-mapping.h> 83 #define EHCI_TUNE_CERR 3 /* 0-3 qtd retries; 0 == don't stop */ 86 #define EHCI_TUNE_MULT_HS 1 /* 1-3 transactions/uframe; 4.10.3 */ 102 u32 hcs_params; /* HCSPARAMS - offset 0x4 */ 111 u32 hcc_params; /* HCCPARAMS - offset 0x8 */ 117 #define HCC_64BIT_ADDR(p) ((p)&(1)) /* true: can use 64-bit addr */ 118 u8 portroute[8]; /* nibbles for routing - offset 0xC */ [all …]
|
/linux/include/linux/ |
H A D | pci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * Copyright 1997--1999 Martin Mares <mj@ucw.cz> 60 * The PCI interface treats multi-function devices as independent 68 * In the interest of not exposing interfaces to user-space unnecessarily, 69 * the following kernel-only defines are being added here. 80 unsigned char number; /* PCI_SLOT(pci_dev->devfn) */ 86 return kobject_name(&slot->kobj); in pci_slot_name() 97 /* #0-5: standard PCI resources */ 99 PCI_STD_RESOURCE_END = PCI_STD_RESOURCES + PCI_STD_NUM_BARS - 1, 104 /* Device-specific resources */ [all …]
|
H A D | phy.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Based on code in sungem_phy.c and (long-removed) gianfar_phy.c 56 * Set phydev->irq to PHY_POLL if interrupts are not supported, 60 #define PHY_POLL -1 61 #define PHY_MAC_INTERRUPT -2 70 * enum phy_interface_t - Interface Mode definitions 72 * @PHY_INTERFACE_MODE_NA: Not Applicable - don't touch 74 * @PHY_INTERFACE_MODE_MII: Media-independent interface 75 * @PHY_INTERFACE_MODE_GMII: Gigabit media-independent interface 76 * @PHY_INTERFACE_MODE_SGMII: Serial gigabit media-independent interface [all …]
|
/linux/drivers/net/dsa/ |
H A D | mt7530.c | 1 // SPDX-License-Identifier: GPL-2.0-only 49 if (priv->bus) in mt7530_mutex_lock() 50 mutex_lock_nested(&priv->bus->mdio_lock, MDIO_MUTEX_NESTED); in mt7530_mutex_lock() 56 if (priv->bus) in mt7530_mutex_unlock() 57 mutex_unlock(&priv->bus->mdio_lock); in mt7530_mutex_unlock() 63 struct mii_bus *bus = priv->bus; in core_write() 69 ret = bus->write(bus, MT753X_CTRL_PHY_ADDR(priv->mdiodev->addr), in core_write() 75 ret = bus->write(bus, MT753X_CTRL_PHY_ADDR(priv->mdiodev->addr), in core_write() 81 ret = bus->write(bus, MT753X_CTRL_PHY_ADDR(priv->mdiodev->addr), in core_write() 87 ret = bus->write(bus, MT753X_CTRL_PHY_ADDR(priv->mdiodev->addr), in core_write() [all …]
|
/linux/drivers/net/phy/ |
H A D | phylink.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * technologies such as SFP cages where the PHY is hot-pluggable. 23 #include "phy-caps.h" 38 * struct phylink - internal data type for phylink 55 u8 link_port; /* The current non-phy ethtool port */ 70 /* Serialize updates to pl->phydev with phylink_resolve() */ 100 if ((pl)->config->type == PHYLINK_NETDEV) \ 101 netdev_printk(level, (pl)->netdev, fmt, ##__VA_ARGS__); \ 102 else if ((pl)->config->type == PHYLINK_DEV) \ 103 dev_printk(level, (pl)->dev, fmt, ##__VA_ARGS__); \ [all …]
|
/linux/fs/ubifs/ |
H A D | tnc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2006-2008 Nokia Corporation. 13 * the UBIFS B-tree. 53 p = &c->old_idx.rb_node; in do_insert_old_idx() 57 if (old_idx->lnum < o->lnum) in do_insert_old_idx() 58 p = &(*p)->rb_left; in do_insert_old_idx() 59 else if (old_idx->lnum > o->lnum) in do_insert_old_idx() 60 p = &(*p)->rb_right; in do_insert_old_idx() 61 else if (old_idx->offs < o->offs) in do_insert_old_idx() 62 p = &(*p)->rb_left; in do_insert_old_idx() [all …]
|
/linux/kernel/bpf/ |
H A D | syscall.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com 6 #include <linux/bpf-cgroup.h> 35 #include <linux/bpf-netns.h> 48 #define IS_FD_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY || \ 49 (map)->map_type == BPF_MAP_TYPE_CGROUP_ARRAY || \ 50 (map)->map_type == BPF_MAP_TYPE_ARRAY_OF_MAPS) 51 #define IS_FD_PROG_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY) 52 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) 83 * are 0 - i.e. new user-space does not rely on any kernel feature extensions [all …]
|