/linux/Documentation/devicetree/bindings/mfd/ |
H A D | maxim,max8925.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Lee Jones <lee@kernel.org> 22 interrupt-controller: true 24 "#interrupt-cells": 29 maxim,tsc-irq: 37 "^SDV[1-3]$|^LDO[1-9]$|^LDO1[0-9]$|^LDO20$": 38 description: regulator configuration for SDV1-3 and LDO1-20 47 maxim,max8925-dual-string: [all …]
|
/linux/lib/ |
H A D | Kconfig.kasan | 1 # SPDX-License-Identifier: GPL-2.0-only 23 def_bool $(cc-option, -fsanitize=kernel-address) 26 def_bool $(cc-option, -fsanitize=kernel-hwaddress) 43 Enables KASAN (Kernel Address Sanitizer) - a dynamic memory safety 44 error detector designed to find out-of-bounds and use-after-free bugs. 46 See Documentation/dev-tools/kasan.rst for details. 53 …def_bool (CC_IS_CLANG && $(cc-option,-fsanitize=kernel-address -mllvm -asan-kernel-mem-intrinsic-p… 54 (CC_IS_GCC && $(cc-option,-fsanitize=kernel-address --param asan-kernel-mem-intrinsic-prefix=1)) 69 2. Software Tag-Based KASAN (arm64 only, based on software memory 72 3. Hardware Tag-Based KASAN (arm64 only, based on hardware memory [all …]
|
/linux/drivers/acpi/acpica/ |
H A D | utstrsuppt.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: utstrsuppt - Support functions for string-to-integer conversion 27 * PARAMETERS: string - Null terminated input string 28 * return_value_ptr - Where the converted value is returned 30 * RETURN: Status and 64-bit converted integer 35 * NOTE: Maximum 64-bit unsigned octal value is 01777777777777777777777 36 * Maximum 32-bit unsigned octal value is 037777777777 49 * Character must be ASCII 0-7, otherwise: in acpi_ut_convert_octal_string() 50 * 1) Runtime: terminate with no error, per the ACPI spec in acpi_ut_convert_octal_string() 60 /* Convert and insert this octal digit into the accumulator */ in acpi_ut_convert_octal_string() [all …]
|
/linux/arch/arm/boot/dts/marvell/ |
H A D | mmp2-brownstone.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 7 /dts-v1/; 12 compatible = "mrvl,mmp2-brownstone", "mrvl,mmp2"; 34 interrupt-parent = <&intcmux4>; 35 interrupt-controller; 36 #interrupt-cells = <1>; 37 maxim,tsc-irq = <0>; 41 regulator-min-microvolt = <637500>; 42 regulator-max-microvolt = <1425000>; 43 regulator-boot-on; [all …]
|
/linux/include/linux/mfd/wm8994/ |
H A D | pdata.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * include/linux/mfd/wm8994/pdata.h -- Platform data for WM8994 39 * panel provided by the WISCE - see http://www.wolfsonmicro.com/wisce/ 52 * control panel in WISCE - see http://www.wolfsonmicro.com/wisce/ 64 * WISCE - see http://www.wolfsonmicro.com/wisce/ 78 * multiband compressor configuration panel in WISCE - see 89 * multiband compressor configuration panel in WISCE - see 100 * the multiband compressor configuration panel in WISCE - see 113 * @idle: True if this configuration should use when no accessory is detected, 129 * Default values for GPIOs if non-zero, WM8994_CONFIGURE_GPIO [all …]
|
/linux/include/linux/mfd/ |
H A D | max8925.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 207 int lxw_scl; /* 0/1 -- 0.8Ohm/0.4Ohm */ 209 int dual_string; /* 0/1 -- single/dual string */ 221 unsigned no_temp_support:1; /* set if no temperature detect */ 222 unsigned no_insert_detect:1; /* set if no ac insert detect */
|
/linux/fs/ocfs2/ |
H A D | uptodate.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Tracking the up-to-date-ness of a local buffer_head with respect to 11 * in a clustered environment - a buffer may be marked up to date on 15 * memory as possible - we never pin buffer_head structures in order 23 * - buffer_jbd is used liberally - if a bh is in the journal on 25 * - the standard buffer_uptodate() macro is used to detect buffers 58 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_owner() 60 return ci->ci_ops->co_owner(ci); in ocfs2_metadata_cache_owner() 65 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_get_super() 67 return ci->ci_ops->co_get_super(ci); in ocfs2_metadata_cache_get_super() [all …]
|
/linux/drivers/mtd/nand/raw/ |
H A D | r852.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright © 2009 - Maxim Levitsky 30 #define R852_CTL_CARDENABLE 0x10 /* probably (#CE) - always set*/ 42 #define R852_CARD_STA_BUSY 0x80 /* card is busy - (#R/B) */ 49 #define R852_CARD_IRQ_REMOVE 0x04 /* detect card removal */ 50 #define R852_CARD_IRQ_INSERT 0x08 /* detect card insert */ 71 /* physical DMA address - 32 bit value*/ 77 #define R852_DMA_MEMORY 0x01 /* (memory <-> internal hw buffer) */ 79 #define R852_DMA_INTERNAL 0x04 /* (internal hw buffer <-> card) */ 87 #define R852_DMA_IRQ_MEMORY 0x01 /* (memory <-> internal hw buffer) */ [all …]
|
/linux/drivers/power/supply/ |
H A D | max8925_power.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2009-2010 Marvell International Ltd. 87 struct max8925_chip *chip = info->chip; in __set_charger() 90 if (info->set_charger) in __set_charger() 91 info->set_charger(1); in __set_charger() 93 max8925_set_bits(info->gpm, MAX8925_CHG_CNTL1, 1 << 7, 0); in __set_charger() 96 max8925_set_bits(info->gpm, MAX8925_CHG_CNTL1, 1 << 7, 1 << 7); in __set_charger() 97 if (info->set_charger) in __set_charger() 98 info->set_charger(0); in __set_charger() 100 dev_dbg(chip->dev, "%s\n", (enable) ? "Enable charger" in __set_charger() [all …]
|
/linux/Documentation/admin-guide/device-mapper/ |
H A D | log-writes.rst | 2 dm-log-writes 9 able to take arbitrary data from userspace to insert into the log. The data 16 We log things in order of completion once we are sure the write is no longer in 20 to make it easier to detect improper waiting/flushing. 35 Again this is to simulate what is actually on disk, this allows us to detect 59 log-writes <dev_path> <log_dev_path> 85 mkfs.btrfs -f /dev/mapper/log 93 Every log has a mark at the end labeled "dm-log-writes-end". 99 It can be found here: https://github.com/josefbacik/log-writes 107 TABLE="0 $(blockdev --getsz /dev/sdb) log-writes /dev/sdb /dev/sdc" [all …]
|
/linux/Documentation/devicetree/bindings/mmc/ |
H A D | mmc-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 25 "#address-cells": 30 "#size-cells": 35 # detect will be used. Only one of them should be provided. 37 broken-cd: 40 There is no card detection available; polling must be used. [all …]
|
/linux/include/linux/i3c/ |
H A D | master.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 39 * struct i3c_i2c_dev_desc - Common part of the I3C/I2C device descriptor 40 * @node: node element used to insert the slot into the I2C or I3C device 62 * struct i2c_dev_boardinfo - I2C device board information 63 * @node: used to insert the boardinfo object in the I2C boardinfo list 68 * This structure is used to attach board-level information to an I2C device. 78 * struct i2c_dev_desc - I2C device descriptor 87 * using &struct_i3c_master_controller->op [all...] |
/linux/fs/xfs/ |
H A D | xfs_log_cil.c | 1 // SPDX-License-Identifier: GPL-2.0 27 * We don't reserve any space for the ticket - we are going to steal whatever 45 tic->t_curr_res = 0; in xlog_cil_ticket_alloc() 46 tic->t_iclog_hdrs = 0; in xlog_cil_ticket_alloc() 53 struct xlog *log = cil->xc_log; in xlog_cil_set_iclog_hdr_count() 55 atomic_set(&cil->xc_iclog_hdrs, in xlog_cil_set_iclog_hdr_count() 57 (log->l_iclog_size - log->l_iclog_hsize))); in xlog_cil_set_iclog_hdr_count() 65 * Note: for this to be used in a non-racy manner, it has to be called with 74 if (test_bit(XLOG_CIL_EMPTY, &cil->xc_flags)) in xlog_item_in_current_chkpt() 82 return lip->li_seq == READ_ONCE(cil->xc_current_sequence); in xlog_item_in_current_chkpt() [all …]
|
H A D | xfs_trans_ail.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc. 36 __must_hold(&ailp->ail_lock) in xfs_ail_check() 46 if (list_empty(&ailp->ail_head)) in xfs_ail_check() 52 in_ail = test_bit(XFS_LI_IN_AIL, &lip->li_flags); in xfs_ail_check() 53 prev_lip = list_entry(lip->li_ail.prev, struct xfs_log_item, li_ail); in xfs_ail_check() 54 if (&prev_lip->li_ail != &ailp->ail_head) in xfs_ail_check() 55 prev_lsn = prev_lip->li_lsn; in xfs_ail_check() 56 next_lip = list_entry(lip->li_ail.next, struct xfs_log_item, li_ail); in xfs_ail_check() 57 if (&next_lip->li_ail != &ailp->ail_head) in xfs_ail_check() [all …]
|
/linux/crypto/ |
H A D | jitterentropy-kcapi.c | 2 * Non-physical true random number generator based on timing jitter -- 5 * Copyright Stephan Mueller <smueller@chronox.de>, 2015 - 2023 24 * the restrictions contained in a BSD-style copyright.) 29 * WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE 51 #define JENT_CONDITIONING_HASH "sha3-256-generic" 78 * Obtain a high-resolution time stamp value. The time stamp is used to measure 83 * implement a high-resolution time stamp, the RNG code's runtime test 84 * will detect it and will not produce output. 109 SHASH_DESC_ON_STACK(desc, hash_state_desc->tfm); in jent_hash_time() 114 desc->tfm = hash_state_desc->tfm; in jent_hash_time() [all …]
|
/linux/Documentation/arch/x86/ |
H A D | intel_txt.rst | 6 Technology (Intel(R) TXT), defines platform-level enhancements that 13 - Provides dynamic root of trust for measurement (DRTM) 14 - Data protection in case of improper shutdown 15 - Measurement and verification of launched environment 18 non-vPro systems. It is currently available on desktop systems 30 - LinuxTAG 2008: 31 http://www.linuxtag.org/2008/en/conf/events/vp-donnerstag.html 33 - TRUST2008: 34 http://www.trust-conference.eu/downloads/Keynote-Speakers/ 35 3_David-Grawrock_The-Front-Door-of-Trusted-Computing.pdf [all …]
|
/linux/Documentation/core-api/ |
H A D | unaligned-memory-access.rst | 32 which will compile to multiple-byte memory access instructions, namely when 59 - Some architectures are able to perform unaligned memory accesses 61 - Some architectures raise processor exceptions when unaligned accesses 64 - Some architectures raise processor exceptions when unaligned accesses 67 - Some architectures are not capable of unaligned memory access, but will 69 resulting in a subtle code bug that is hard to detect! 101 above case it would insert 2 bytes of padding in between field1 and field2. 131 structure type. This GCC-specific attribute tells the compiler never to 132 insert any padding within structures, useful when you want to use a C struct 141 non-packed case, so the packed attribute should only be used when avoiding [all …]
|
/linux/mm/ |
H A D | Kconfig.debug | 1 # SPDX-License-Identifier: GPL-2.0-only 6 could be used for debugging features that need to insert extra 24 use-after-free). The error reports for these checks can be augmented 68 There is no support for more fine grained debug control like 71 "slab_debug=-". 86 detect use-after-free accesses in such caches. 118 for user-space helper. 178 bool "Testcase for the marking rodata read-only" 181 This option enables a testcase for the setting rodata read-only. 199 <arch>/mm: Checked W+X mappings: passed, no W+X pages found. [all …]
|
/linux/arch/mips/include/asm/ |
H A D | sync.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 7 * II-A of the MIPS Architecture Reference Manual, which can be found here: 9 * https://www.mips.com/?do-download=the-mips64-instruction-set-v6-06 27 * actually need to complete - they just need to get far enough that all 43 * No sync instruction at all; used to allow code to nullify the effect of the 46 #define __SYNC_none -1 121 * be executed after the LL - this is the reordering case. 130 * of the LL-SC loop, for example an exit upon value mismatch in cmpxchg() 132 * execution of memory accesses from outside of the LL-SC loop. 140 * such that the Invalidate of a competing LL-SC goes 'missing' and SC [all …]
|
/linux/drivers/usb/host/ |
H A D | uhci-hcd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 32 #define USBSTS_RD 0x0004 /* Resume Detect */ 61 #define USBPORTSC_DMINUS 0x0020 /* D- high (line status) */ 62 #define USBPORTSC_RD 0x0040 /* Resume Detect */ 80 /* PCI Intel-specific resume-enable register */ 97 /* When no queues need Full-Speed Bandwidth Reclamation, 110 * To facilitate the strongest possible byte-order checking from "sparse" 127 * with each endpoint, and qh->element (updated by the HC) is either: 128 * - the next unprocessed TD in the endpoint's queue, or 129 * - UHCI_PTR_TERM (when there's no more traffic for this endpoint). [all …]
|
/linux/arch/alpha/kernel/ |
H A D | perf_event.c | 1 // SPDX-License-Identifier: GPL-2.0 31 #define PMC_NO_INDEX -1 82 * hardware restrictions is pmc_max_period - pmc_left. 98 #define HW_OP_UNSUPPORTED -1 109 * There is no one-to-one mapping of the possible hw event types to the 120 #define EV67_NUM_EVENT_TYPES (EV67_LAST_ET-EV67_CYCLES) 137 * The mapping used for one event only - these must be in same order as enum 158 idx0 = ev67_mapping[evtype[0]-1].idx; in ev67_check_constraints() 159 config = ev67_mapping[evtype[0]-1].config; in ev67_check_constraints() 196 return -1; in ev67_check_constraints() [all …]
|
/linux/Documentation/filesystems/xfs/ |
H A D | xfs-self-describing-metadata.rst | 1 .. SPDX-License-Identifier: GPL-2.0 44 magic number in the metadata block, we have no other way of identifying what it 70 Luckily, almost all XFS metadata has magic numbers embedded already - only the 72 magic numbers. Hence we can change the on-disk format of all these objects to 73 add more identifying information and detect this simply by changing the magic 87 hence a 32 bit CRC is more than sufficient to detect multi-bit errors in 93 complexity and so there is no provision for changing the integrity checking 100 mis-directed writes - a write might be misdirected to the wrong LUN and so be 111 no owner can be found (i.e. it's an orphan block), and so without an owner field 112 in the metadata we have no idea of the scope of the corruption. If we have an [all …]
|
/linux/net/rds/ |
H A D | rdma.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 26 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 36 #include <linux/dma-mapping.h> /* for DMA_*_DEVICE */ 42 * - build with sparse 43 * - should we detect duplicate keys on a socket? hmm. 44 * - an rdma is an mlock, apply rlimit? 57 if ((vec->addr + vec->bytes <= vec->addr) || in rds_pages_in_vec() 58 (vec->bytes > (u64)UINT_MAX)) in rds_pages_in_vec() 61 return ((vec->addr + vec->bytes + PAGE_SIZE - 1) >> PAGE_SHIFT) - in rds_pages_in_vec() [all …]
|
/linux/Documentation/arch/arm/sa1100/ |
H A D | assabet.rst | 2 The Intel Assabet (SA-1110 evaluation) board 13 ------------------- 25 ----------------------- 39 John Dorsey has produced add-on patches to add support for Assabet and 55 - ftp://ftp.netwinder.org/users/n/nico/ 56 - ftp://ftp.arm.linux.org.uk/pub/linux/arm/people/nico/ 57 - ftp://ftp.handhelds.org/pub/linux/arm/sa-1100-patches/ 59 Look for redboot-assabet*.tgz. Some installation infos are provided in 60 redboot-assabet*.txt. 64 ----------------------------- [all …]
|
/linux/arch/mips/kernel/ |
H A D | pm-cps.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 #include <asm/asm-offsets.h> 17 #include <asm/mips-cps.h> 20 #include <asm/pm-cps.h> 22 #include <asm/smp-cps.h> 26 * cps_nc_entry_fn - type of a generated non-coherent state entry function 28 * @nc_ready_count: pointer to a non-coherent mapping of the core ready_count 30 * The code entering & exiting non-coherent states is generated at runtime 31 * using uasm, in order to ensure that the compiler cannot insert a stray 33 * core-specific code particularly for cache routines. If coupled_coherence [all …]
|