Home
last modified time | relevance | path

Searched +full:line +full:- +full:name (Results 1 – 25 of 1044) sorted by relevance

12345678910>>...42

/linux/arch/arm/boot/dts/nuvoton/
H A Dnuvoton-npcm750-runbmc-olympus.dts1 // 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 Dgpio-aggregator.sh2 # 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 Dgpio-sim.sh2 # 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 Dkunit_parser.py1 # 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:
42 self.name = ''
[all …]
H A Dkunit_config.py1 # 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/arch/arm/boot/dts/aspeed/
H A Daspeed-bmc-lenovo-hr855xg2.dts1 // 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,hr855xg2-bmc", "aspeed,ast2500";
29 stdout-path = &uart5;
38 reserved-memory {
39 #address-cells = <1>;
40 #size-cells = <1>;
[all …]
H A Daspeed-bmc-opp-palmetto.dts1 // SPDX-License-Identifier: GPL-2.0+
2 /dts-v1/;
4 #include "aspeed-g4.dtsi"
5 #include <dt-bindings/gpio/aspeed-gpio.h>
9 compatible = "tyan,palmetto-bmc", "aspeed,ast2400";
12 stdout-path = &uart5;
20 reserved-memory {
21 #address-cells = <1>;
22 #size-cells = <1>;
26 no-map;
[all …]
H A Daspeed-bmc-lenovo-hr630.dts1 // 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/usr/
H A Dgen_init_cpio.c1 // SPDX-License-Identifier: GPL-2.0
35 int (*handler)(const char *line);
38 static void push_string(const char *name) in push_string() argument
40 unsigned int name_len = strlen(name) + 1; in push_string()
42 fputs(name, stdout); in push_string()
55 static void push_rest(const char *name) in push_rest() argument
57 unsigned int name_len = strlen(name) + 1; in push_rest()
60 fputs(name, stdout); in push_rest()
81 const char name[] = "TRAILER!!!"; in cpio_trailer() local
97 (unsigned)strlen(name)+1, /* namesize */ in cpio_trailer()
[all …]
/linux/drivers/gpio/
H A Dgpio-aggregator.c1 // SPDX-License-Identifier: GPL-2.0-only
5 // Copyright (C) 2019-2020 Glider bv
7 #define DRV_NAME "gpio-aggregator"
33 #include "dev-sync-probe.h"
62 /* Line index within the aggregator device */
65 /* Custom name for the virtual line */
66 const char *name; member
67 /* GPIO chip label or line name */
69 /* Can be negative to indicate lookup by line name */
89 return -ENOMEM; in gpio_aggregator_alloc()
[all …]
H A Dgpio-sim.c1 // SPDX-License-Identifier: GPL-2.0-or-later
39 #include "dev-sync-probe.h"
75 guard(mutex)(&chip->lock); in gpio_sim_apply_pull()
77 if (test_bit(offset, chip->request_map) && in gpio_sim_apply_pull()
78 test_bit(offset, chip->direction_map)) { in gpio_sim_apply_pull()
79 if (value == !!test_bit(offset, chip->value_map)) in gpio_sim_apply_pull()
83 * This is fine - it just means, nobody is listening in gpio_sim_apply_pull()
84 * for interrupts on this line, otherwise in gpio_sim_apply_pull()
88 irq = irq_find_mapping(chip->irq_sim, offset); in gpio_sim_apply_pull()
104 /* Change the value unless we're actively driving the line. */ in gpio_sim_apply_pull()
[all …]
H A Dgpio-ts5500.c1 // 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/perf/util/
H A Ddrm_pmu.c1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
34 const char *name; member
63 return pmu && pmu->type >= PERF_PMU_TYPE_DRM_START && in perf_pmu__is_drm()
64 pmu->type <= PERF_PMU_TYPE_DRM_END; in perf_pmu__is_drm()
69 return perf_pmu__is_drm(evsel->pmu); in evsel__is_drm()
72 static struct drm_pmu *add_drm_pmu(struct list_head *pmus, char *line, size_t line_len) in add_drm_pmu() argument
76 const char *name; in add_drm_pmu() local
80 if (line[line_len - 1] == '\n') in add_drm_pmu()
81 line[line_len - 1] = '\0'; in add_drm_pmu()
82 while (isspace(line[i])) in add_drm_pmu()
[all …]
/linux/tools/testing/selftests/mseal_system_mappings/
H A Dsysmap_is_sealed.c1 // 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/include/uapi/linux/
H A Dgpio.h1 /* 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/Documentation/arch/arm/samsung/
H A Dclksrc-change-registers.awk1 #!/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 Dgpio-sim.rst1 .. 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 Dgpio-aggregator.rst1 .. 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/scripts/lib/kdoc/
H A Dkdoc_parser.py2 # SPDX-License-Identifier: GPL-2.0
23 # Regular expressions used to parse kernel-doc markups at KernelDoc class.
43 # @{section-name}:
57 attribute = KernRe(r"__attribute__\s*\(\([a-z0-9,_\*\s\(\)]*\)\)",
63 type_param = KernRe(r"\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)", cache=False)
73 r'(\w+)\s*(?:\(\w*\))?\s*' + # name an
70 NAME = 1 # looking for function name global() variable in state
78 name = [ global() variable in state
251 output_declaration(self, dtype, name, **args) global() argument
1167 process_export(function_set, line) global() argument
1187 process_normal(self, ln, line) global() argument
1202 process_name(self, ln, line) global() argument
1300 process_body(self, ln, line) global() argument
1419 process_inline(self, ln, line) global() argument
1531 process_proto_function(self, ln, line) global() argument
1579 process_proto_type(self, ln, line) global() argument
1620 process_proto(self, ln, line) global() argument
1641 process_docblock(self, ln, line) global() argument
[all...]
/linux/scripts/
H A Ddecode_stacktrace.sh2 # 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 …]
/linux/tools/usb/usbip/libsrc/
H A Dnames.c1 // 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 Dperf-probe.txt1 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 Dmemcg_event_listener.c1 // SPDX-License-Identifier: GPL-2.0
3 * memcg_event_listener.c - Simple listener of memcg memory.events
27 (length) -= sizeof(*(event)) + (event)->len; \
54 printf("\tlow: %ld\n", counters->low); in print_memcg_counters()
55 printf("\thigh: %ld\n", counters->high); in print_memcg_counters()
56 printf("\tmax: %ld\n", counters->max); in print_memcg_counters()
57 printf("\toom: %ld\n", counters->oom); in print_memcg_counters()
58 printf("\toom_kill: %ld\n", counters->oom_kill); in print_memcg_counters()
59 printf("\toom_group_kill: %ld\n", counters->oom_group_kill); in print_memcg_counters()
62 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 Dltl2k.py2 # 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 Ddynamic-debug-howto.rst9 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 …]

12345678910>>...42