/linux/arch/s390/include/asm/ |
H A D | scsw.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 #include <asm/dma-types.h> 18 * struct cmd_scsw - command-mode subchannel status word 25 * @isic: initial-status interruption control 26 * @alcc: address-limit checking control 27 * @ssi: suppress-suspended interruption 64 * struct tm_scsw - transport-mode subchannel status word 69 * @x: IRB-format control 70 * @q: interrogate-complete 80 * @schxs: subchannel-extended status [all …]
|
/linux/tools/testing/selftests/damon/ |
H A D | sysfs.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # Kselftest frmework requirement - SKIP code is 4. 39 if [ "$to_ensure" = "exist" ] && [ ! -d "$dir" ] 43 elif [ "$to_ensure" = "not_exist" ] && [ -d "$dir" ] 57 if [ ! -f "$file" ] 62 perm=$(stat -c "%a" "$file") 68 elif [ "$to_ensure" = "not_exist" ] && [ -f "$dir" ] 104 ensure_write_succ "$filter_dir/type" "anon" "valid input" 105 ensure_write_succ "$filter_dir/type" "memcg" "valid input" 106 ensure_write_succ "$filter_dir/type" "addr" "valid input" [all …]
|
/linux/rust/kernel/ |
H A D | cpumask.rs | 1 // SPDX-License-Identifier: GPL-2.0 28 /// A [`Cpumask`] instance always corresponds to a valid C `struct cpumask`. 30 /// The callers must ensure that the `struct cpumask` is valid for access and 31 /// remains valid for the lifetime of the returned reference. 43 /// // SAFETY: The `ptr` is valid for writing and remains valid for the lifetime of the 59 /// The caller must ensure that `ptr` is valid for writing and remains valid for the lifetime 61 pub unsafe fn as_mut_ref<'a>(ptr: *mut bindings::cpumask) -> &'a mut Self { in as_mut_ref() 64 // INVARIANT: The caller ensures that `ptr` is valid for writing and remains valid for the in as_mut_ref() 73 /// The caller must ensure that `ptr` is valid for reading and remains valid for the lifetime 75 pub unsafe fn as_ref<'a>(ptr: *const bindings::cpumask) -> &'a Self { in as_ref() [all …]
|
H A D | cpufreq.rs | 1 // SPDX-License-Identifier: GPL-2.0 9 //! Reference: <https://docs.kernel.org/admin-guide/pm/cpufreq.html> 55 /// Supports multiple clock domains with per-policy governors in `cpu/cpuN/cpufreq/`. 58 /// Allows post-change notifications outside of the `target()` routine. 61 /// Ensure CPU starts at a valid frequency from the driver's freq-table. 90 // Construct from a C-compatible `u32` value. 91 fn new(val: u32) -> Result<Self> { in new() 104 // Convert to a C-compatible `u32` value. 105 fn from(rel: Relation) -> Self { in from() 126 /// A [`PolicyData`] instance always corresponds to a valid C `struct cpufreq_policy_data`. [all …]
|
H A D | pci.rs | 1 // SPDX-License-Identifier: GPL-2.0 30 // SAFETY: A call to `unregister` for a given instance of `RegType` is guaranteed to be valid if 39 ) -> Result { in register() 48 // SAFETY: `pdrv` is guaranteed to be a valid `RegType`. in register() 55 // SAFETY: `pdrv` is guaranteed to be a valid `RegType`. in unregister() 64 ) -> kernel::ffi::c_int { in probe_callback() 65 // SAFETY: The PCI bus only ever calls the probe callback with a valid pointer to a in probe_callback() 68 // INVARIANT: `pdev` is valid for the duration of `probe_callback()`. in probe_callback() 79 // SAFETY: By the type invariant `pdev.as_raw` returns a valid pointer to a in probe_callback() 90 // SAFETY: The PCI bus only ever calls the remove callback with a valid pointer to a in remove_callback() [all …]
|
H A D | cpu.rs | 1 // SPDX-License-Identifier: GPL-2.0 11 pub fn nr_cpu_ids() -> u32 { in nr_cpu_ids() 18 // SAFETY: `nr_cpu_ids` is a valid global provided by the kernel. in nr_cpu_ids() 39 /// // SAFETY: 0 is always a valid CPU number. 44 /// assert!(CpuId::from_i32(-1).is_none()); 54 /// The caller must ensure that `id` is a valid CPU ID (i.e., `0 <= id < nr_cpu_ids()`). 56 pub unsafe fn from_i32_unchecked(id: i32) -> Self { in from_i32_unchecked() 60 // INVARIANT: The function safety guarantees `id` is a valid CPU id. in from_i32_unchecked() 64 /// Creates a new [`CpuId`] from the given `id`, checking that it is valid. 65 pub fn from_i32(id: i32) -> Option<Self> { in from_i32() [all …]
|
H A D | rbtree.rs | 1 // SPDX-License-Identifier: GPL-2.0 3 //! Red-black trees. 7 //! Reference: <https://docs.kernel.org/core-api/rbtree.html> 17 /// A red-black tree with owned nodes. 19 /// It is backed by the kernel C red-black trees. 103 /// fn insert_test(tree: &SpinLock<RBTree<u32, u32>>) -> Result { 104 /// // Pre-allocate node. This may fail (as it allocates memory). 148 /// // Create a preallocated reservation that we can re-use later. 169 /// Non-null parent/children pointers stored in instances of the `rb_node` C struct are always 170 /// valid, and pointing to a field of our internal representation of a node. [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-power | 5 Contact: linux-pm@vger.kernel.org 10 Valid values: Represented as string 14 Contact: linux-pm@vger.kernel.org 19 Valid values: Represented as string 23 Contact: linux-pm@vger.kernel.org 28 Valid values: Represented as string 32 Contact: linux-pm@vger.kernel.org 37 Valid values: "Battery", "UPS", "Mains", "USB", "Wireless" 43 Contact: linux-pm@vger.kernel.org 60 Valid values: Represented in microamps. Negative values are [all …]
|
/linux/drivers/hid/ |
H A D | hid-uclogic-params.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * HID driver for UC-Logic devices not fully compliant with HID standard 4 * - tablet initialization and parameter retrieval 26 /* Types of pen in-range reporting */ 28 /* Normal reports: zero - out of proximity, one - in proximity */ 30 /* Inverted reports: zero - in proximity, one - out of proximity */ 59 * report is equal to "value". Only valid if "value" is not zero. 85 * Only valid, if "desc_ptr" is not NULL. 90 /* The list of subreports, only valid if "id" is not zero */ 92 /* Type of in-range reporting, only valid if "id" is not zero */ [all …]
|
/linux/drivers/accel/habanalabs/include/gaudi/ |
H A D | gaudi_async_ids_map_extended.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * Copyright 2018-2020 HabanaLabs, Ltd. 9 ** This is an auto-generated file ** 19 int valid; member 24 { .fc_id = 0, .cpu_id = 0, .valid = 0, .name = "" }, 25 { .fc_id = 1, .cpu_id = 1, .valid = 0, .name = "" }, 26 { .fc_id = 2, .cpu_id = 2, .valid = 0, .name = "" }, 27 { .fc_id = 3, .cpu_id = 3, .valid = 0, .name = "" }, 28 { .fc_id = 4, .cpu_id = 4, .valid = 0, .name = "" }, 29 { .fc_id = 5, .cpu_id = 5, .valid = 0, .name = "" }, [all …]
|
/linux/drivers/comedi/drivers/ |
H A D | ni_routes.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 6 * COMEDI - Linux Control and Measurement Device Interface 33 * struct ni_route_set - Set of destinations with a common source. 45 * struct ni_device_routes - List of all src->dest sets for a particular device. 46 * @device: Name of board/device (e.g. pxi-6733). 47 * @n_route_sets: Number of route sets that are valid for this device. 48 * @routes: List of route sets that are valid for this device. 57 * struct ni_route_tables - Register values and valid routes for a device. 58 * @valid_routes: Pointer to a all valid route sets for a single device. 62 * Link to the valid src->dest routes and the register values used to assign [all …]
|
H A D | ni_routes.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 32 * #define B(x) ((x) - NI_NAMES_BASE) 59 if (!strcmp(ni_all_route_values[i]->family, device_family)) { in ni_find_route_values() 60 rv = &ni_all_route_values[i]->register_values[0][0]; in ni_find_route_values() 68 * Find the valid routes for a board. 77 if (!strcmp(ni_device_routes_list[i]->device, board_name)) { in ni_find_valid_routes() 90 * Return: -ENODATA if either was not found; 0 if both were found. 103 /* Second, find the set of routes valid for this device. */ in ni_find_device_routes() 108 tables->route_values = rv; in ni_find_device_routes() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_core_reloc_kernel.c | 1 // SPDX-License-Identifier: GPL-2.0 20 int valid[10]; member 21 /* we have test_progs[-flavor], so cut flavor part */ 62 if (CORE_READ(&pid, &task->pid) || in test_core_kernel() 63 CORE_READ(&tgid, &task->tgid)) in test_core_kernel() 67 out->valid[0] = (((uint64_t)pid << 32) | tgid) == pid_tgid; in test_core_kernel() 70 out->valid[1] = BPF_CORE_READ(task, in test_core_kernel() 72 out->valid[2] = BPF_CORE_READ(task, in test_core_kernel() 75 out->valid[3] = BPF_CORE_READ(task, in test_core_kernel() 78 out->valid[4] = BPF_CORE_READ(task, in test_core_kernel() [all …]
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | rx_desc.h | 1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2025 Qualcomm Innovation Center, Inc. All rights reserved. 241 * Field only valid when for the received frame type the corresponding 245 * Field only valid when for the received frame type the corresponding 257 * field in address search failure cache-only entry should 261 * If set, intra-BSS routing detection is enabled 279 * buffer management for WiFi-to-PPE routing. 282 * by a different subsystem, completely disabling WiFi-to-PPE 309 * Field only valid when AST_based_lookup_valid == 1. [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/tests/ |
H A D | links.c | 1 // SPDX-License-Identifier: GPL-2.0-only 80 .signal = -100, 89 .signal = -84, 98 .signal = -50, 107 .signal = -66, 117 .signal = -61, 128 .signal = -66, 139 .signal = -72, 148 .signal = -72, 157 .signal = -72, [all …]
|
/linux/tools/perf/pmu-events/arch/arm64/fujitsu/a64fx/ |
H A D | pipeline.json | 9 "PublicDescription": "This event counts valid cycles of EAGA pipeline.", 12 "BriefDescription": "This event counts valid cycles of EAGA pipeline." 15 "PublicDescription": "This event counts valid cycles of EAGB pipeline.", 18 "BriefDescription": "This event counts valid cycles of EAGB pipeline." 21 "PublicDescription": "This event counts valid cycles of EXA pipeline.", 24 "BriefDescription": "This event counts valid cycles of EXA pipeline." 27 "PublicDescription": "This event counts valid cycles of EXB pipeline.", 30 "BriefDescription": "This event counts valid cycles of EXB pipeline." 33 "PublicDescription": "This event counts valid cycles of FLA pipeline.", 36 "BriefDescription": "This event counts valid cycles of FLA pipeline." [all …]
|
/linux/include/uapi/linux/ |
H A D | dpll.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 */ 13 * enum dpll_mode - working modes a dpll can support, differentiates if and how 14 * dpll selects one of its inputs to syntonize with it, valid values for 25 DPLL_MODE_MAX = (__DPLL_MODE_MAX - 1) 29 * enum dpll_lock_status - provides information of dpll device lock status, 30 * valid values for DPLL_A_LOCK_STATUS attribute 31 * @DPLL_LOCK_STATUS_UNLOCKED: dpll was not yet locked to any valid input (or 33 * @DPLL_LOCK_STATUS_LOCKED: dpll is locked to a valid signal, but no holdover [all …]
|
/linux/drivers/accel/habanalabs/include/gaudi2/ |
H A D | gaudi2_async_ids_map_extended.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * Copyright 2018-2022 HabanaLabs, Ltd. 9 ** This is an auto-generated file ** 25 int valid; member 32 { .fc_id = 0, .cpu_id = 0, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE, 34 { .fc_id = 1, .cpu_id = 1, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE, 36 { .fc_id = 2, .cpu_id = 2, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE, 38 { .fc_id = 3, .cpu_id = 3, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE, 40 { .fc_id = 4, .cpu_id = 4, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE, 42 { .fc_id = 5, .cpu_id = 5, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE, [all …]
|
/linux/tools/testing/selftests/tc-testing/tc-tests/actions/ |
H A D | ife.json | 4 "name": "Create valid ife encode action with mark and pass control", 23 …"matchPattern": "action order [0-9]*: ife encode action pass.*type 0[xX]ED3E.*allow mark.*index 2", 31 "name": "Create valid ife encode action with mark and pipe control", 50 … "matchPattern": "action order [0-9]*: ife encode action pipe.*type 0[xX]ED3E.*use mark.*index 2", 58 "name": "Create valid ife encode action with mark and continue control", 77 …"matchPattern": "action order [0-9]*: ife encode action continue.*type 0[xX]ED3E.*allow mark.*inde… 85 "name": "Create valid ife encode action with mark and drop control", 104 …"matchPattern": "action order [0-9]*: ife encode action drop.*type 0[xX]ED3E.*use mark 789.*index … 112 "name": "Create valid ife encode action with mark and reclassify control", 131 …"matchPattern": "action order [0-9]*: ife encode action reclassify.*type 0[xX]ED3E.*use mark 65676… [all …]
|
/linux/drivers/net/ethernet/apm/xgene/ |
H A D | xgene_enet_cle.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* Applied Micro X-Gene SoC Ethernet Classifier structures 27 if (pdata->enet_id == XGENE_ENET1) { in xgene_cle_idt_to_hw() 41 buf[0] = SET_VAL(CLE_DROP, dbptr->drop); in xgene_cle_dbptr_to_hw() 42 buf[4] = SET_VAL(CLE_FPSEL, dbptr->fpsel) | in xgene_cle_dbptr_to_hw() 43 SET_VAL(CLE_NFPSEL, dbptr->nxtfpsel) | in xgene_cle_dbptr_to_hw() 44 SET_VAL(CLE_DSTQIDL, dbptr->dstqid); in xgene_cle_dbptr_to_hw() 46 buf[5] = SET_VAL(CLE_DSTQIDH, (u32)dbptr->dstqid >> CLE_DSTQIDL_LEN) | in xgene_cle_dbptr_to_hw() 47 SET_VAL(CLE_PRIORITY, dbptr->cle_priority); in xgene_cle_dbptr_to_hw() 55 buf[j++] = SET_VAL(CLE_TYPE, kn->node_type); in xgene_cle_kn_to_hw() [all …]
|
/linux/tools/perf/pmu-events/arch/x86/amdzen2/ |
H A D | other.json | 5 "BriefDescription": "Cycles where the Micro-Op Queue is empty." 28 …"BriefDescription": "Cycles where a dispatch group is valid but does not get dispatched due to a t… 34 …"BriefDescription": "Cycles where a dispatch group is valid but does not get dispatched due to a t… 40 …"BriefDescription": "Cycles where a dispatch group is valid but does not get dispatched due to a t… 46 …"BriefDescription": "Cycles where a dispatch group is valid but does not get dispatched due to a t… 52 …"BriefDescription": "Cycles where a dispatch group is valid but does not get dispatched due to a t… 58 …"BriefDescription": "Cycles where a dispatch group is valid but does not get dispatched due to a t… 64 …"BriefDescription": "Cycles where a dispatch group is valid but does not get dispatched due to a t… 70 …"BriefDescription": "Cycles where a dispatch group is valid but does not get dispatched due to a t… 76 …"BriefDescription": "Cycles where a dispatch group is valid but does not get dispatched due to a t… [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-versatile-fpga.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Support for Versatile FPGA-based IRQ controllers 35 * struct fpga_irq_data - irq data container for the FPGA IRQ controller 38 * @valid: mask for valid IRQs on this controller 43 u32 valid; member 55 u32 mask = 1 << d->hwirq; in fpga_irq_mask() 57 writel(mask, f->base + IRQ_ENABLE_CLEAR); in fpga_irq_mask() 63 u32 mask = 1 << d->hwirq; in fpga_irq_unmask() 65 writel(mask, f->base + IRQ_ENABLE_SET); in fpga_irq_unmask() 72 seq_puts(p, irq_domain_get_of_node(f->domain)->name); in fpga_irq_print_chip() [all …]
|
/linux/rust/kernel/drm/gem/ |
H A D | mod.rs | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 20 fn new(dev: &drm::Device<T::Driver>, size: usize) -> impl PinInit<Self, Error>; in new() 26 ) -> Result { in open() 43 /// Returns a reference to the raw `drm_gem_object` structure, which must be valid as long as 44 /// this owning object is valid. 45 fn as_raw(&self) -> *mut bindings::drm_gem_object; in as_raw() 51 /// - `self_ptr` must be a valid pointer to `Self`. 52 /// - The caller promises that holding the immutable reference returned by this function does 53 /// not violate rust's data aliasing rules and remains valid throughout the lifetime of `'a`. 54 unsafe fn as_ref<'a>(self_ptr: *mut bindings::drm_gem_object) -> &'a Self; in as_ref() [all …]
|
/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | arm,vic.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/arm,vic.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 15 be nested or have the outputs wire-OR'd together. 18 - $ref: /schemas/interrupt-controller.yaml# 23 - arm,pl190-vic 24 - arm,pl192-vic 25 - arm,versatile-vic [all …]
|
/linux/Documentation/devicetree/bindings/leds/ |
H A D | maxim,max77693.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 16 There are two LED outputs available - FLED1 and FLED2. Each of them can 26 const: maxim,max77693-led 28 maxim,boost-mode: 34 See LEDS_BOOST_* in include/dt-bindings/leds/common.h. 38 maxim,boost-mvout: 41 Valid values: 3300 - 5500, step by 25 (rounded down) [all …]
|