/linux/drivers/irqchip/ |
H A D | qcom-pdc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. 45 #define pin_to_hwirq(r, p) ((r)->parent_base + (p) - (r)->pin_base) 88 __pdc_enable_intr(d->hwirq, on); in pdc_enable_intr() 110 * Level sensitive active low LOW 111 * Rising edge sensitive NOT USED 112 * Falling edge sensitive LOW 113 * Dual Edge sensitive NOT USED 114 * Level sensitive active High HIGH 115 * Falling Edge sensitive NOT USED [all …]
|
H A D | irq-mst-intc.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 4 * Author Mark-PK Tsai <mark-pk.tsai@mediatek.com> 49 raw_spin_lock_irqsave(&cd->lock, flags); in mst_set_irq() 50 val = readw_relaxed(cd->base + offset) | mask; in mst_set_irq() 51 writew_relaxed(val, cd->base + offset); in mst_set_irq() 52 raw_spin_unlock_irqrestore(&cd->lock, flags); in mst_set_irq() 65 raw_spin_lock_irqsave(&cd->lock, flags); in mst_clear_irq() 66 val = readw_relaxed(cd->base + offset) & ~mask; in mst_clear_irq() 67 writew_relaxed(val, cd->base + offset); in mst_clear_irq() 68 raw_spin_unlock_irqrestore(&cd->lock, flags); in mst_clear_irq() [all …]
|
/linux/Documentation/security/ |
H A D | self-protection.rst | 2 Kernel Self-Protection 5 Kernel self-protection is the design and implementation of systems and 13 In the worst-case scenario, we assume an unprivileged local attacker 16 but with systems in place that defend against the worst case we'll 23 The goals for successful self-protection systems would be that they 24 are effective, on by default, require no opt-in by developers, have no 36 from limiting the exposed APIs available to userspace, making in-kernel 41 -------------------------------- 47 Executable code and read-only data must not be writable 61 writable, data is not executable, and read-only data is neither writable [all …]
|
/linux/fs/efivarfs/ |
H A D | super.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 case EFIVAR_OPS_RDONLY: in efivarfs_ops_notifier() 30 sfi->sb->s_flags |= SB_RDONLY; in efivarfs_ops_notifier() 32 case EFIVAR_OPS_RDWR: in efivarfs_ops_notifier() 33 sfi->sb->s_flags &= ~SB_RDONLY; in efivarfs_ops_notifier() 49 struct super_block *sb = root->d_sb; in efivarfs_show_options() 50 struct efivarfs_fs_info *sbi = sb->s_fs_info; in efivarfs_show_options() 51 struct efivarfs_mount_opts *opts = &sbi->mount_opts; in efivarfs_show_options() 53 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) in efivarfs_show_options() 55 from_kuid_munged(&init_user_ns, opts->uid)); in efivarfs_show_options() [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | ext-ctrls-image-source.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _image-source-controls: 9 The Image Source control class is intended for low-level control of 15 .. _image-source-control-id: 28 same sub-device. 58 The unit cell consists of the whole area of the pixel, sensitive and 59 non-sensitive. 64 .. flat-table:: struct v4l2_area 65 :header-rows: 0 66 :stub-columns: 0 [all …]
|
H A D | colorspaces.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 20 the human eye has color receptors that are sensitive to three different 22 color. Be glad you are not a mantis shrimp as those are sensitive to 12 59 colors are specified with lower case 'x' and 'y', then the CIE xyY 60 colorspace is used. Upper case 'X' and 'Y' refer to the CIE XYZ 97 the non-linear component value, which is a closer match to the 98 non-linear performance of both the eye and displays. Linear component 99 values are denoted RGB, non-linear are denoted as R'G'B'. In general 102 provide linear RGB colors or to use the built-in openGL support to apply 106 non-linear R'G'B' to non-linear Y'CbCr. This function is determined by [all …]
|
/linux/arch/arm64/kvm/vgic/ |
H A D | vgic-v2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/irqchip/arm-gic.h> 31 struct vgic_v2_cpu_if *cpuif = &vcpu->arch.vgic_cpu.vgic_v2; in vgic_v2_set_underflow() 33 cpuif->vgic_hcr |= GICH_HCR_UIE; in vgic_v2_set_underflow() 44 * - active bit is transferred as is 45 * - pending bit is 46 * - transferred as is in case of edge sensitive IRQs 47 * - set to the line-level (resample time) for level sensitive IRQs 51 struct vgic_cpu *vgic_cpu = &vcpu->arch.vgic_cpu; in vgic_v2_fold_lr_state() 52 struct vgic_v2_cpu_if *cpuif = &vgic_cpu->vgic_v2; in vgic_v2_fold_lr_state() [all …]
|
/linux/Documentation/power/ |
H A D | swsusp.rst | 17 [this is actually same case as above] 47 - If you feel ACPI works pretty well on your system, you might try:: 51 - If you would like to write hibernation image to swap and then suspend 56 - If you have SATA disks, you'll need recent kernels with SATA suspend 58 are built into kernel -- not modules. [There's way to make 68 - The resume process checks for the presence of the resume device, 72 - The resume process may be triggered in two ways: 81 read-only) otherwise data may be corrupted. 87 Last revised: 2003-10-20 by Pavel Machek 90 ------------------------- [all …]
|
/linux/fs/ntfs3/ |
H A D | upcase.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2019-2021 Paragon Software GmbH, All rights reserved. 19 return chr - ('a' - 'A'); in upcase_unicode_char() 30 * - Case insensitive 31 * - If name equals and 'bothcases' then 32 * - Case sensitive 33 * 'Straight way' code scans input names twice in worst case. 46 for (; len; s1++, s2++, len--) { in ntfs_cmp_names() 47 diff1 = le16_to_cpu(*s1) - le16_to_cpu(*s2); in ntfs_cmp_names() 55 return l1 - l2; in ntfs_cmp_names() [all …]
|
/linux/Documentation/admin-guide/pm/ |
H A D | intel_uncore_frequency_scaling.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 :Copyright: |copy| 2022-2023 Intel Corporation 13 ------------ 23 Users may have some latency sensitive workloads where they do not want any 30 --------------- 45 This is a read-only attribute. If users adjust max_freq_khz, 50 This is a read-only attribute. If users adjust min_freq_khz, 63 ----------------------------------------------------------------- 109 directory with the same package id will be updated. In this case user can 118 ------------------------------- [all …]
|
/linux/arch/arm/kernel/ |
H A D | sigreturn_codes.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * sigreturn_codes.S - code sinpets for sigreturn syscalls 5 * Created by: Victor Kamensky, 2013-08-13 10 #include <asm/asm-offsets.h> 19 * need two 16-bit instructions in .thumb encoding 23 * arch/arm/kernel/signal.c is very sensitive to layout of these code 28 * In CPU_THUMBONLY case kernel arm opcodes are not allowed. 29 * Note in this case codes skips those instructions but it uses .org 80 ARM_OK( mov r7, #(__NR_sigreturn - __NR_SYSCALL_BASE) ) 85 movs r7, #(__NR_sigreturn - __NR_SYSCALL_BASE) [all …]
|
/linux/Documentation/staging/ |
H A D | rpmsg.rst | 17 flavor of real-time OS. 19 OMAP4, for example, has dual Cortex-A9, dual Cortex-M3 and a C64x+ DSP. 20 Typically, the dual cortex-A9 is running Linux in a SMP configuration, 25 hardware accelerators, and therefore are often used to offload CPU-intensive 28 These remote processors could also be used to control latency-sensitive 34 hardware accessible only by the remote processor, reserving kernel-controlled 37 Rpmsg is a virtio-based messaging bus that allows kernel drivers to communicate 43 system's physical memory and other sensitive hardware resources (e.g. on 60 a unique rpmsg local address (a 32-bit integer). This way when inbound messages 80 In case there are no TX buffers available, the function will block until [all …]
|
/linux/arch/loongarch/vdso/ |
H A D | vgetrandom-chacha.S | 1 // SPDX-License-Identifier: GPL-2.0 22 * 8-byte counter. Importantly does not spill to the stack. Its arguments 26 * a1: 32-byte key input 27 * a2: 8-byte counter input/output 28 * a3: number of 64-byte blocks to write to output 83 * The ABI requires s0-s9 saved, and sp aligned to 16-byte. 84 * This does not violate the stack-less requirement: no sensitive data 87 PTR_ADDI sp, sp, (-SZREG * 10) & STACK_ALIGN 107 /* state[0,1,2,3] = "expand 32-byte k" */ 167 addi.w i, i, -1 [all …]
|
/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | vgic_irq.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * vgic_irq.c - Test userspace injection of IRQs 36 * 0x00 (highest priority) - 0xF8 (lowest priority), in steps of 8 38 * Note that these macros will still be correct in the case that KVM implements 44 #define LOWEST_PRIO (KVM_NUM_PRIOS - 1) 46 #define IRQ_DEFAULT_PRIO (LOWEST_PRIO - 1) 81 kvm_inject_call(cmd, intid, num, -1 /* not used */, expect_failure) 125 for ((f) = (t); (f)->cmd; (f)++) 129 if ((args)->kvm_supports_irqfd || (f)->cmd != KVM_INJECT_IRQFD) 235 for (i = 0; i < args->nr_irqs; i++) in reset_priorities() [all …]
|
/linux/arch/x86/kernel/ |
H A D | mpparse.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * compliant MP-table parsing routines. 45 while (len--) in mpf_checksum() 55 topology_register_apic(m->apicid, CPU_ACPIID_INVALID, m->cpuflag & CPU_ENABLED); in MP_processor_info() 56 if (!(m->cpuflag & CPU_ENABLED)) in MP_processor_info() 59 if (m->cpuflag & CPU_BOOTPROCESSOR) in MP_processor_info() 60 bootup_cpu = " (Bootup-CPU)"; in MP_processor_info() 62 pr_info("Processor #%d%s\n", m->apicid, bootup_cpu); in MP_processor_info() 69 memcpy(str, m->bustype, 6); in mpc_oem_bus_info() 71 apic_pr_verbose("Bus #%d is %s\n", m->busid, str); in mpc_oem_bus_info() [all …]
|
/linux/crypto/ |
H A D | jitterentropy.c | 2 * Non-physical true random number generator based on timing jitter -- 5 * Copyright Stephan Mueller <smueller@chronox.de>, 2015 - 2023 29 * the GNU General Public License, in which case the provisions of the GPL2 are 32 * the restrictions contained in a BSD-style copyright.) 54 … be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitt… 65 /* SHA3-256 is used as conditioner */ 68 * of the RNG are marked as SENSITIVE. A user must not 71 void *hash_state; /* SENSITIVE hash state entropy pool */ 72 __u64 prev_time; /* SENSITIVE Previous time stamp */ 73 __u64 last_delta; /* SENSITIVE stuck test */ [all …]
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | hvcserver.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 * functions aren't performance sensitive, so this conversion isn't an 34 case H_SUCCESS: in hvcs_convert() 36 case H_PARAMETER: in hvcs_convert() 37 return -EINVAL; in hvcs_convert() 38 case H_HARDWARE: in hvcs_convert() 39 return -EIO; in hvcs_convert() 40 case H_BUSY: in hvcs_convert() 41 case H_LONG_BUSY_ORDER_1_MSEC: in hvcs_convert() 42 case H_LONG_BUSY_ORDER_10_MSEC: in hvcs_convert() [all …]
|
/linux/arch/x86/kvm/ |
H A D | i8259.c | 4 * Copyright (c) 2003-2004 Fabrice Bellard 45 __acquires(&s->lock) in pic_lock() 47 spin_lock(&s->lock); in pic_lock() 51 __releases(&s->lock) in pic_unlock() 53 bool wakeup = s->wakeup_needed; in pic_unlock() 57 s->wakeup_needed = false; in pic_unlock() 59 spin_unlock(&s->lock); in pic_unlock() 62 kvm_for_each_vcpu(i, vcpu, s->kvm) { in pic_unlock() 74 s->isr &= ~(1 << irq); in pic_clear_isr() 75 if (s != &s->pics_state->pics[0]) in pic_clear_isr() [all …]
|
/linux/Documentation/devicetree/bindings/iio/pressure/ |
H A D | honeywell,mprls0025pa.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andreas Klinger <ak@it-klinger.de> 11 - Petre Rodan <petre.rodan@subdimension.ro> 26 the pressure values can be specified manually via honeywell,pmin-pascal and 27 honeywell,pmax-pascal. 35 https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/ 36 products/sensors/pressure-sensors/board-mount-pressure-sensors/ 37 micropressure-mpr-series/documents/ [all …]
|
H A D | honeywell,hsc030pa.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 23 pressure-triplet (directly extracted from the part number) or in case it's 27 by the sensor. pmin-pascal and pmax-pascal corespond to the minimum and 30 Please note that in case of an SPI-based sensor, the clock signal should not 34 …-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/bo… 35 …-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/bo… 38 - Petre Rodan <petre.rodan@subdimension.ro> 47 honeywell,transfer-function: [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-rcar.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Renesas R-Car GPIO Support 71 return ioread32(p->base + offs); in gpio_rcar_read() 77 iowrite32(value, p->base + offs); in gpio_rcar_write() 122 * "Setting Edge-Sensitive Interrupt Input Mode" and in gpio_rcar_config_interrupt_input_mode() 123 * "Setting Level-Sensitive Interrupt Input Mode" in gpio_rcar_config_interrupt_input_mode() 126 spin_lock_irqsave(&p->lock, flags); in gpio_rcar_config_interrupt_input_mode() 135 if (p->info.has_both_edge_trigger) in gpio_rcar_config_interrupt_input_mode() 141 /* Write INTCLR in case of edge trigger */ in gpio_rcar_config_interrupt_input_mode() 145 spin_unlock_irqrestore(&p->lock, flags); in gpio_rcar_config_interrupt_input_mode() [all …]
|
/linux/include/linux/ |
H A D | genl_magic_struct.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 30 * know about. This flag can be set in nlattr->nla_type to indicate that this 45 * @DRBD_F_SENSITIVE: Attribute includes sensitive information and must not be 59 * multi-include macro expansion magic starts here 172 * Magic: -"- unique numbers for top level attributes 173 * Magic: -"- unique numbers for nested attributes 182 case op_name: 186 case op_name: 192 case 0: in ct_assert_unique_operations() 205 case tag_number: [all …]
|
/linux/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_cmd_parser.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2015-2018 Etnaviv Project 93 if (state->num_relocs && state->relocs->submit_offset < buf_offset) { in etnaviv_warn_if_non_sensitive() 94 dev_warn_once(state->gpu->dev, in etnaviv_warn_if_non_sensitive() 95 "%s: relocation for non-sensitive state 0x%x at offset %u\n", in etnaviv_warn_if_non_sensitive() 97 state->relocs->submit_offset); in etnaviv_warn_if_non_sensitive() 98 while (state->num_relocs && in etnaviv_warn_if_non_sensitive() 99 state->relocs->submit_offset < buf_offset) { in etnaviv_warn_if_non_sensitive() 100 state->relocs++; in etnaviv_warn_if_non_sensitive() 101 state->num_relocs--; in etnaviv_warn_if_non_sensitive() [all …]
|
/linux/Documentation/misc-devices/ |
H A D | lis3lv02d.rst | 12 - Yan Burman <burman.yan@gmail.com> 13 - Eric Piel <eric.piel@tremplin-utc.net> 17 ----------- 31 - 3D position that the accelerometer reports. Format: "(x,y,z)" 33 - read reports the sampling rate of the accelerometer device in HZ. 37 - performs selftest for the chip as specified by chip manufacturer. 40 the laptop to act as a pinball machine-esque joystick. Joystick device can be 42 By default output values are scaled between -32768 .. 32767. In joystick raw 63 acts similar to /dev/rtc and reacts on free-fall interrupts received 66 result is number of free-fall interrupts since the last successful [all …]
|
/linux/arch/x86/entry/vdso/ |
H A D | vgetrandom-chacha.S | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2022-2024 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 16 * of blocks of output with a nonce of 0, taking an input key and 8-byte 20 * rsi: 32-byte key input 21 * rdx: 8-byte counter input/output 22 * rcx: number of 64-byte blocks to write to output 31 /* xmm registers are *not* callee-save. */ 43 /* copy0 = "expand 32-byte k" */ 160 /* output += 64, --nblocks */ 168 /* Zero out the potentially sensitive regs, in case nothing uses these again. */
|