| /linux/arch/arm/boot/dts/nuvoton/ |
| H A D | nuvoton-npcm750-runbmc-olympus.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 /dts-v1/; 6 #include "nuvoton-npcm750.dtsi" 7 #include "nuvoton-npcm750-runbmc-olympus-pincfg.dtsi" 9 #include <dt-bindings/i2c/i2c.h> 10 #include <dt-bindings/gpio/gpio.h> 43 stdout-path = &serial3; 50 iio-hwmon { 51 compatible = "iio-hwmon"; 52 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, [all …]
|
| /linux/tools/testing/selftests/gpio/ |
| H A D | gpio-aggregator.sh | 2 # SPDX-License-Identifier: GPL-2.0 7 CONFIGFS_SIM_DIR="/sys/kernel/config/gpio-sim" 8 CONFIGFS_AGG_DIR="/sys/kernel/config/gpio-aggregator" 9 SYSFS_AGG_DIR="/sys/bus/platform/drivers/gpio-aggregator" 10 MODULE="gpio-aggregator" 24 # gpio-sim 38 local NOCHECK=${1:-0} 41 [ -d "$CHIP_DIR" ] || continue 43 find "$CHIP_DIR" -depth -type d -exec rmdir {} \; 45 [ "$NOCHECK" -eq 1 ] && return; [all …]
|
| H A D | gpio-sim.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 CONFIGFS_DIR="/sys/kernel/config/gpio-sim" 7 MODULE="gpio-sim" 26 if [ "$BANK" = "live" -o "$BANK" = "dev_name" ]; then 30 LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | grep -E ^line` 32 for LINE in $LINES; do 33 if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then 34 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog || \ 38 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE || \ 39 fail "Unable to remove the line" [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] - lis [all...] |
| H A D | kunit_config.py | 1 # SPDX-License-Identifier: GPL-2.0 18 name: str 21 def __str__(self) -> str: 23 return f'# CONFIG_{self.name} is not set' 24 return f'CONFIG_{self.name}={self.value}' 34 def __init__(self) -> None: 37 def __eq__(self, other: Any) -> bool: 42 def __repr__(self) -> str: 45 def as_entries(self) -> Iterable[KconfigEntry]: 46 for name, value in self._entries.items(): [all …]
|
| /linux/tools/perf/util/ |
| H A D | drm_pmu.c | 1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 35 const char *name; member 64 return pmu && pmu->type >= PERF_PMU_TYPE_DRM_START && in perf_pmu__is_drm() 65 pmu->type <= PERF_PMU_TYPE_DRM_END; in perf_pmu__is_drm() 70 return perf_pmu__is_drm(evsel->pmu); in evsel__is_drm() 73 static struct drm_pmu *add_drm_pmu(struct list_head *pmus, char *line, size_t line_len) in add_drm_pmu() argument 77 const char *name; in add_drm_pmu() local 81 if (line[line_len - 1] == '\n') in add_drm_pmu() 82 line[line_len - 1] = '\0'; in add_drm_pmu() 83 while (isspace(line[i])) in add_drm_pmu() [all …]
|
| /linux/usr/ |
| H A D | gen_init_cpio.c | 1 // SPDX-License-Identifier: GPL-2.0 29 #define padlen(_off, _align) (((_align) - ((_off) & ((_align) - 1))) % (_align)) 31 /* zero-padding the filename field for data alignment is limited by PATH_MAX */ 43 int (*handler)(const char *line); 46 static int push_buf(const char *name, size_t name_len) in push_buf() argument 50 len = write(outfd, name, name_len); in push_buf() 52 return -1; in push_buf() 68 return -1; in push_pad() 74 static int push_rest(const char *name, size_t name_len) in push_rest() argument 78 len = write(outfd, name, name_len); in push_rest() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-aggregator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 // Copyright (C) 2019-2020 Glider bv 7 #define DRV_NAME "gpio-aggregator" 35 #include "dev-sync-probe.h" 64 /* Line index within the aggregator device */ 67 /* Custom name for the virtual line */ 68 const char *name; member 69 /* GPIO chip label or line name */ 71 /* Can be negative to indicate lookup by line name */ 91 return -ENOMEM; in gpio_aggregator_alloc() [all …]
|
| H A D | gpio-ts5500.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Digital I/O driver for Technologic Systems TS-5500 5 * Copyright (c) 2012 Savoir-faire Linux Inc. 10 * In that sense, the support is not limited to the TS-5500 blocks. 13 * TS-5500: 14 * Documentation: https://docs.embeddedts.com/TS-5500 17 * TS-5600: 18 * Documentation: https://docs.embeddedts.com/TS-5600 19 * Blocks: LCD port (identical to TS-5500 LCD). 102 * TS-5500 DIO1 block [all …]
|
| /linux/tools/lib/python/kdoc/ |
| H A D | kdoc_parser.py | 2 # SPDX-License-Identifier: GPL-2.0 23 # Regular expressions used to parse kernel-doc markups at KernelDoc class. 43 # @{section-name}: 61 type_param = KernRe(r"@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)", cache=False) 71 r'(\w+)\s*(?:\(\w*\))?\s*' + # name and optional "(...)" 72 r'(?:[-:].*)?$', # description (not captured) 83 (KernRe(r"__attribute__\s*\(\([a-z0-9,_\*\s\(\)]*\)\)", flags=re.I | re.S, cache=False), ' '), 96 # __struct_group(TAG, NAME, ATTRS, MEMBERS...) 97 # which has variants like: struct_group(NAME, MEMBERS...) 115 # - a recursive pattern: (?1) [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_gen_wa_oob.c | 1 // SPDX-License-Identifier: MIT 14 "// SPDX-License-Identifier: MIT\n" \ 33 fprintf(f, "usage: %s <input-rule-file> <generated-c-source-file> <generated-c-header-file>\n", in print_usage() 37 static void print_parse_error(const char *err_msg, const char *line, in print_parse_error() argument 41 err_msg, lineno, line); in print_parse_error() 44 static char *strip(char *line, size_t linelen) in strip() argument 46 while (isspace(*(line + linelen))) in strip() 47 linelen--; in strip() 49 line[linelen - 1] = '\0'; in strip() 51 return line + strspn(line, " \f\n\r\t\v"); in strip() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | gpio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 3 * <linux/gpio.h> - userspace ABI for the GPIO character devices 19 * The maximum size of name and label arrays. 21 * Must be a multiple of 8 to ensure 32/64-bit alignment of structs. 26 * struct gpiochip_info - Information about a certain GPIO chip 27 * @name: the Linux kernel name of this GPIO chip 28 * @label: a functional name for this GPIO chip, such as a product 33 char name[GPIO_MAX_NAME_SIZE]; member 41 * Must be no greater than 64, as bitmaps are restricted here to 64-bits 42 * for simplicity, and a multiple of 2 to ensure 32/64-bit alignment of [all …]
|
| /linux/tools/testing/selftests/mseal_system_mappings/ |
| H A D | sysmap_is_sealed.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 bool has_mapping(char *name, FILE *maps) in has_mapping() argument 23 char line[MAX_LINE_LEN]; in has_mapping() local 25 while (fgets(line, sizeof(line), maps)) { in has_mapping() 26 if (strstr(line, name)) in has_mapping() 33 bool mapping_is_sealed(char *name, FILE *maps) in mapping_is_sealed() argument 35 char line[MAX_LINE_LEN]; in mapping_is_sealed() local 37 while (fgets(line, sizeof(line), maps)) { in mapping_is_sealed() 38 if (!strncmp(line, VMFLAGS, strlen(VMFLAGS))) { in mapping_is_sealed() 39 if (strstr(line, MSEAL_FLAGS)) in mapping_is_sealed() [all …]
|
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | aspeed-bmc-lenovo-hr630.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2019-present Lenovo 8 /dts-v1/; 10 #include "aspeed-g5.dtsi" 11 #include <dt-bindings/gpio/aspeed-gpio.h> 15 compatible = "lenovo,hr630-bmc", "aspeed,ast2500"; 29 stdout-path = &uart5; 38 reserved-memory { 39 #address-cells = <1>; 40 #size-cells = <1>; [all …]
|
| /linux/Documentation/arch/arm/samsung/ |
| H A D | clksrc-change-registers.awk | 1 #!/usr/bin/awk -f 3 # Copyright 2010 Ben Dooks <ben-linux@fluff.org> 8 # ./clksrc-change-registers.awk arch/arm/plat-s5pc1xx/include/plat/regs-clock.h < src > dst 14 return substr(s, eqat+2, (comat-eqat)-2) 19 return substr(b, 2, length(b)-2) 69 while (getline line < ARGV[1] > 0) { 70 if (line ~ /\#define.*_MASK/ && 71 !(line ~ /USB_SIG_MASK/)) { 72 splitdefine(line, fields) 73 name = fields[0] [all …]
|
| /linux/Documentation/admin-guide/gpio/ |
| H A D | gpio-sim.rst | 1 .. SPDX-License-Identifier: GPL-2.0-or-later 6 The configfs GPIO Simulator (gpio-sim) provides a way to create simulated GPIO 12 ------------------------ 14 The gpio-sim module registers a configfs subsystem called ``'gpio-sim'``. For 21 **Group:** ``/config/gpio-sim`` 23 This is the top directory of the gpio-sim configfs tree. 25 **Group:** ``/config/gpio-sim/gpio-device`` 27 **Attribute:** ``/config/gpio-sim/gpio-device/dev_name`` 29 **Attribute:** ``/config/gpio-sim/gpio-device/live`` 32 attribute is read-only and allows the user-space to read the platform device [all …]
|
| H A D | gpio-aggregator.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 11 ----------------------------- 15 system permissions, on an all-or-nothing basis: either a GPIO controller is 26 write-only attribute files in sysfs. 28 /sys/bus/platform/drivers/gpio-aggregator/ 35 .. code-block:: none 42 is a GPIO line name, 48 is a comma-separated list of GPIO offsets and/or 52 line 19 of "e6052000.gpio" and GPIO lines 20-21 of 55 .. code-block:: sh [all …]
|
| /linux/tools/lib/python/feat/ |
| H A D | parse_features.py | 4 # SPDX-License-Identifier: GPL-2.0 36 # The only missing status is "..", which was mapped as "---", 70 Displays an error message, printing file name and line 85 """Parses a single arch-support.txt feature file""" 92 if base != "arch-support.txt": 97 subsys = os.path.dirname(fname).split("/")[-2] 113 with open(fname, encoding="utf-8") as f: 114 for ln, line in enumerate(f, start=1): 115 line = line.strip() 117 match = re.match(r"^\#\s+Feature\s+name:\s*(.*\S)", line) [all …]
|
| /linux/scripts/ |
| H A D | decode_stacktrace.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 #set -x 8 echo " $0 -r <release>" 10 echo " $0 -h" 14 if type llvm-cxxfilt >/dev/null 2>&1 ; then 15 cppfilt=llvm-cxxfilt 18 cppfilt_opts=-i 22 if [[ -z ${LLVM:-} ]]; then 23 UTIL_PREFIX=${CROSS_COMPILE:-} 25 UTIL_PREFIX=llvm- [all …]
|
| H A D | bpf_doc.py | 2 # SPDX-License-Identifier: GPL-2.0-only 4 # Copyright (C) 2018-2019 Netronome Systems, Inc. 25 def __init__(self, line='<line not provided>', reader=None): argument 28 'Error at file offset %d, parsing line: %s' % 29 (reader.tell(), line)) 31 BaseException.__init__(self, 'Error parsing line: %s' % line) 69 name, distincts arguments. 78 res['name'] = capture.group(3) 87 'name' : capture.group(6) 109 @filename: name of file to parse, usually include/uapi/linux/bpf.h in the [all …]
|
| /linux/tools/usb/usbip/libsrc/ |
| H A D | names.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * names.c -- USB name database manipulation routines 8 * - names_deinit() is added. 28 char name[1]; member 34 char name[1]; member 40 char name[1]; member 46 char name[1]; member 52 char name[1]; member 58 char name[1]; member 73 return num & (HASHSZ-1); in hashnum() [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | perf-probe.txt | 1 perf-probe(1) 4 NAME 5 ---- 6 perf-probe - Define new dynamic tracepoints 9 -------- 11 'perf probe' [options] --add='PROBE' [...] 15 'perf probe' [options] --del='[GROUP:]EVENT' [...] 17 'perf probe' --list[=[GROUP:]EVENT] 19 'perf probe' [options] --line='LINE' 21 'perf probe' [options] --vars='PROBEPOINT' [all …]
|
| /linux/samples/cgroup/ |
| H A D | memcg_event_listener.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * memcg_event_listener.c - Simple listener of memcg memory.events 25 (length) -= sizeof(*(event)) + (event)->len; \ 52 printf("\tlow: %ld\n", counters->low); in print_memcg_counters() 53 printf("\thigh: %ld\n", counters->high); in print_memcg_counters() 54 printf("\tmax: %ld\n", counters->max); in print_memcg_counters() 55 printf("\toom: %ld\n", counters->oom); in print_memcg_counters() 56 printf("\toom_kill: %ld\n", counters->oom_kill); in print_memcg_counters() 57 printf("\toom_group_kill: %ld\n", counters->oom_group_kill); in print_memcg_counters() 60 static int get_memcg_counter(char *line, const char *name, long *counter) in get_memcg_counter() argument [all …]
|
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | ltl2k.py | 2 # SPDX-License-Identifier: GPL-2.0-only 10 def line_len(line: str) -> int: 11 tabs = line.count('\t') 12 return tabs * 7 + len(line) 14 def break_long_line(line: str, indent='') -> list[str]: 16 while line_len(line) > COLUMN_LIMIT: 17 i = line[:COLUMN_LIMIT - line_len(line)].rfind(' ') 18 result.append(line[:i]) 19 line = indent + line[i + 1:] 20 if line: [all …]
|
| /linux/Documentation/admin-guide/ |
| H A D | dynamic-debug-howto.rst | 9 debug-print code to obtain additional kernel information. 22 - source filename 23 - function name 24 - line number (including ranges of line numbers) 25 - module name 26 - format string 27 - class name (as known/declared by each module) 29 NOTE: To actually get the debug-print output on the console, you may 32 Documentation/admin-guide/kernel-parameters.rst. 39 :#> head -n7 /proc/dynamic_debug/control [all …]
|