/linux/tools/testing/selftests/drivers/net/hw/ |
H A D | ethtool_lib.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 {sub(/,$/, "") \ 8 sub(/ETHTOOL_LINK_MODE_/,"") \ 9 sub(/_BIT/,"") \ 10 sub(/_Full/,"/Full") \ 11 sub(/_Half/,"/Half");\ 20 local out=$(ethtool -s $cmd 2>&1 | wc -l) 29 local -a linkmodes_params 39 local -a dev_linkmodes=($(dev_speeds_get $dev 1 $adver)) 41 linkmodes_params[$i]=$(echo -e "${dev_linkmodes[$i]}" | \ [all …]
|
/linux/scripts/lib/kdoc/ |
H A D | kdoc_parser.py | 2 # SPDX-License-Identifier: GPL-2.0 22 # Regular expressions used to parse kernel-doc markups at KernelDoc class. 42 # @{section-name}: 55 attribute = KernRe(r"__attribute__\s*\(\([a-z0-9,_\*\s\(\)]*\)\)", 61 type_param = KernRe(r"\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)", cache=False) 71 BODY_MAYBE = 2 # body - or maybe more description 94 INLINE_ERROR = 4 # error - Comment without header was found. 96 # proper kernel-doc and ignore the rest. 140 # TODO: rename to emit_message after removal of kernel-doc.pl 180 # Only warn on user-specified duplicate section names [all …]
|
H A D | kdoc_output.py | 2 # SPDX-License-Identifier: GPL-2.0 8 Implement output filters to print kernel-doc documentation. 30 type_constant2 = KernRe(r"\%([-_*\w]+)", cache=False) 32 type_param_ref = KernRe(r"([\!~\*]?)\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)", cache=False) 38 type_fp_param2 = KernRe(r"\@(\w+->\S+)\(\)", cache=False) 45 type_member = KernRe(r"\&([_\w]+)(\.|->)([_\w]+)", cache=False) 52 Base class for OutputFormat. If used as-is, it means that only 60 OUTPUT_INTERNAL = 3 # output non-exported symbols 114 Apply the RST highlights to a sub-block of text. 117 for r, sub in self.highlights: [all …]
|
/linux/Documentation/devicetree/bindings/remoteproc/ |
H A D | ti,omap-remoteproc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/ti,omap-remoteproc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Suman Anna <s-anna@ti.com> 13 The OMAP family of SoCs usually have one or more slave processor sub-systems 14 that are used to offload some of the processor-intensive tasks, or to manage 17 The processor cores in the sub-system are usually behind an IOMMU, and may 18 contain additional sub-modules like Internal RAM and/or ROMs, L1 and/or L2 21 The OMAP SoCs usually have a DSP processor sub-system and/or an IPU processor [all …]
|
H A D | ti,k3-r5f-rproc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/ti,k3-r5f-rproc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Suman Anna <s-anna@ti.com> 13 The TI K3 family of SoCs usually have one or more dual-core Arm Cortex R5F 20 AM64x SoCs do not support LockStep mode, but rather a new non-safety mode 21 called "Single-CPU" mode, where only Core0 is used, but with ability to use 27 Each Dual-Core R5F sub-system is represented as a single DTS node 40 - ti,am62-r5fss [all …]
|
H A D | mtk,scp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Tinghan Shen <tinghan.shen@mediatek.com> 13 This binding provides support for ARM Cortex M4 Co-processor found on some 19 - mediatek,mt8183-scp 20 - mediatek,mt8186-scp 21 - mediatek,mt8188-scp 22 - mediatek,mt8188-scp-dual 23 - mediatek,mt8192-scp [all …]
|
/linux/scripts/ |
H A D | kernel-doc.pl | 2 # SPDX-License-Identifier: GPL-2.0 11 ## Copyright (C) 2005-2012 Randy Dunlap ## 23 kernel-doc - Print formatted kernel documentation to stdout 27 …kernel-doc [-h] [-v] [-Werror] [-Wall] [-Wreturn] [-Wshort-desc[ription]] [-Wcontents-before-secti… 28 [ -man | 29 -rst [-enable-lineno] | 30 -none 33 -export | 34 -internal | 35 [-function NAME] ... | [all …]
|
H A D | cleanfile | 2 # SPDX-License-Identifier: GPL-2.0 4 # Clean a text file -- or directory of text files -- of stealth whitespace. 15 # Clean up space-tab sequences, either by removing spaces or 17 sub clean_space_tabs($) 31 my $ntab = ($npos >> 3) - ($pos >> 3); 56 sub strwidth($) { 85 if ($a =~ /^-/) { 86 if ($a eq '-width' || $a eq '-w') { 89 print STDERR "Usage: $name [-width #] files...\n"; 100 if (! -f $f) { [all …]
|
H A D | cleanpatch | 2 # SPDX-License-Identifier: GPL-2.0 4 # Clean a patch file -- or directory of patch files -- of stealth whitespace. 15 # Clean up space-tab sequences, either by removing spaces or 17 sub clean_space_tabs($) 31 my $ntab = ($npos >> 3) - ($pos >> 3); 56 sub strwidth($) { 85 if ($a =~ /^-/) { 86 if ($a eq '-width' || $a eq '-w') { 89 print STDERR "Usage: $name [-width #] files...\n"; 100 if (! -f $f) { [all …]
|
H A D | checkpatch.pl | 2 # SPDX-License-Identifier: GPL-2.0 7 # (c) 2008-2010 Andy Whitcroft <apw@canonical.com> 8 # (c) 2010-2018 Joe Perches <joe@perches.com> 69 my $docsfile = "$D/../Documentation/dev-tools/checkpatch.rst"; 72 my $allow_c99_comments = 1; # Can be overridden by --ignore C99_COMMENT_TOLERANCE 74 my $git_command ='export LANGUAGE=en_US.UTF-8; git'; 80 sub help { 88 -q, --quiet quiet 89 -v, --verbose verbose mode 90 --no-tree run without a kernel tree [all …]
|
H A D | Makefile.build | 1 # SPDX-License-Identifier: GPL-2.0 14 obj-y := 15 obj-m := 16 lib-y := 17 lib-m := 18 always-y := 19 always-m := 21 subdir-y := 22 subdir-m := 23 asflags-y := [all …]
|
/linux/Documentation/netlink/ |
H A D | netlink-raw.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 12 name-cap: 14 pattern: ^[0-9a-zA-Z-]+$ 18 len-or-define: 20 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 27 required: [ name, doc, attribute-sets, operations ] [all …]
|
H A D | genetlink.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 15 len-or-define: 17 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 19 len-or-limit: 20 # literal int, const name, or limit based on fixed-width type 21 # e.g. u8-min, u16-max, etc. [all …]
|
H A D | genetlink-legacy.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 15 len-or-define: 17 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 19 len-or-limit: 20 # literal int, const name, or limit based on fixed-width type 21 # e.g. u8-min, u16-max, etc. [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | snps,dw-pcie-common.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/snps,dw-pcie-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jingoo Han <jingoohan1@gmail.com> 11 - Gustavo Pimentel <gustavo.pimentel@synopsys.com> 23 Interface - DBI. In accordance with the reference manual the register 24 configuration space belongs to the Configuration-Dependent Module (CDM) 25 and is split up into several sub-parts Standard PCIe configuration 26 space, Port Logic Registers (PL), Shadow Config-space Registers, [all …]
|
/linux/arch/powerpc/crypto/ |
H A D | ppc-xlate.pl | 2 # SPDX-License-Identifier: GPL-2.0 16 my $globl = sub { 41 my $text = sub { 46 my $machine = sub { 51 $arch = ($flavour=~/64/) ? "ppc970-64" : "ppc970" if ($arch eq "any"); 55 my $size = sub { 59 my $ret = ".size $name,.-".($flavour=~/64$/?".":"").$name; 60 $ret .= "\n.size .$name,.-.$name" if ($flavour=~/64$/); 66 my $asciz = sub { 74 my $quad = sub { [all …]
|
/linux/Documentation/admin-guide/ |
H A D | bootconfig.rst | 1 .. SPDX-License-Identifier: GPL-2.0 15 additional key-value data when booting the kernel in an efficient way. 16 This allows administrators to pass a structured-Key config file. 21 The boot config syntax is a simple structured key-value. Each key consists 22 of dot-connected-words, and key and value are connected by ``=``. The value 23 has to be terminated by semi-colon (``;``) or newline (``\n``). 28 Unlike the kernel command line syntax, spaces are OK around the comma and ``=``. 30 Each key word must contain only alphabets, numbers, dash (``-``) or underscore 31 (``_``). And each value only contains printable characters or spaces except 32 for delimiters such as semi-colon (``;``), new-line (``\n``), comma (``,``), [all …]
|
/linux/lib/zstd/common/ |
H A D | compiler.h | 1 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */ 6 * This source code is licensed under both the BSD-style license (found in the 9 * You may select, at your option, one of the above-listed licenses. 19 /*-******************************************************* 61 * gcc-4.8 and gcc-4.9 have been shown to benefit from leaving off the 125 * older GCC (pre gcc-4.3 picked as the cutoff) uses a different syntax, 129 # define DONT_VECTORIZE __attribute__((optimize("no-tree-vectorize"))) 131 # define DONT_VECTORIZE _Pragma("GCC optimize(\"no-tree-vectorize\")") 155 /* C-language Attributes are added in C23. */ 168 * - C23: https://en.cppreference.com/w/c/language/attributes/fallthrough [all …]
|
/linux/arch/m68k/include/asm/ |
H A D | uaccess.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <asm-generic/access_ok.h> 16 * Not all varients of the 68k family support the notion of address spaces. 70 : "r" (x), "i" (-EFAULT) \ 75 * These are the main single-value transfer routines. They automatically 86 __put_user_asm(MOVES, __pu_err, __pu_val, ptr, b, d, -EFAULT); \ 89 __put_user_asm(MOVES, __pu_err, __pu_val, ptr, w, r, -EFAULT); \ 92 __put_user_asm(MOVES, __pu_err, __pu_val, ptr, l, r, -EFAULT); \ 113 " sub.l %1,%1\n" \ 141 " sub.l %1,%1\n" \ [all …]
|
/linux/Documentation/driver-api/usb/ |
H A D | usb.rst | 1 .. _usb-hostside-api: 4 The Linux-USB Host Side API 18 That master/slave asymmetry was designed-in for a number of reasons, one 22 distributed auto-configuration since the pre-designated master node 37 USB Host-Side API Model 40 Host-side drivers for USB devices talk to the "usbcore" APIs. There are 41 two. One is intended for *general-purpose* drivers (exposed through 49 - USB supports four kinds of data transfers (control, bulk, interrupt, 54 - The device description model includes one or more "configurations" 60 - From USB 3.0 on configurations have one or more "functions", which [all …]
|
/linux/Documentation/devicetree/bindings/ |
H A D | writing-schema.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 Writing Devicetree Bindings in json-schema 6 Devicetree bindings are written using json-schema vocabulary. Schema files are 7 written in a JSON-compatible subset of YAML. YAML is used instead of JSON as it 11 Also see :ref:`example-schema`. 14 --------------- 16 Each schema doc is a structured json-schema which is defined by a set of 17 top-level properties. Generally, there is one binding defined per file. The 18 top-level json-schema properties used are: 21 A json-schema unique identifier string. The string must be a valid [all …]
|
/linux/sound/firewire/dice/ |
H A D | dice-transaction.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * dice_transaction.c - a part of driver for Dice based devices 16 offset += dice->tx_offset; in get_subaddr() 19 offset += dice->rx_offset; in get_subaddr() 22 offset += dice->sync_offset; in get_subaddr() 25 offset += dice->rsrv_offset; in get_subaddr() 29 offset += dice->global_offset; in get_subaddr() 40 return snd_fw_transaction(dice->unit, in snd_dice_transaction_write() 50 return snd_fw_transaction(dice->unit, in snd_dice_transaction_read() 87 err = -ENOSYS; in snd_dice_transaction_get_rate() [all …]
|
/linux/tools/testing/kunit/ |
H A D | kunit_parser.py | 1 # SPDX-License-Identifier: GPL-2.0 4 # results with reader-friendly format. Stores and returns test results in a 29 status : TestStatus - status of the test 30 name : str - name of the test 31 expected_count : int - expected number of subtests (0 if single 33 subtests : List[Test] - list of subtests 34 log : List[str] - log of KTAP lines that correspond to the test 35 counts : TestCounts - counts of the test statuses and errors of 39 def __init__(self) -> None: 48 def __str__(self) -> str: [all …]
|
/linux/tools/testing/ktest/ |
H A D | ktest.pl | 1 #!/usr/bin/perl -w 2 # SPDX-License-Identifier: GPL-2.0-only 4 # Copyright 2010 - Steven Rostedt <srostedt@redhat.com>, Red Hat Inc. 67 "GRUB_REBOOT" => "grub2-reboot", 68 "GRUB_BLS_GET" => "grubby --info=ALL", 76 "LOCALVERSION" => "-test", 79 "TARGET_IMAGE" => "/boot/vmlinuz-test", 422 i.e. -j20 433 …POWER_CYCLE = wget --no-proxy -O /dev/null -q --auth-no-challenge 'http://admin:admin\@power/outl… 444 CONSOLE = nc -d localhost 3001 [all …]
|
/linux/arch/parisc/kernel/ |
H A D | syscall.S | 2 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 12 How does the Linux gateway page on PA-RISC work? 13 ------------------------------------------------ 14 The Linux gateway page on PA-RISC is "special". 26 flip address spaces. The basic upshot of this is that these code snippets are 27 executed atomically (because the kernel can't be pre-empted) and they may 33 #include <asm/asm-offsets.h> 66 ldo -1(\reg1), \reg1 102 /* Light-weight-syscall entry must always be located at 0xb0 */ 192 LDREGM -FRAME_SIZE(%r30), %r2 /* get users sp back */ [all …]
|