| /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/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/lib/ |
| H A D | Kconfig.kasan | 1 # SPDX-License-Identifier: GPL-2.0-only 32 compile-time constants for better performance. 35 def_bool $(cc-option, -fsanitize=kernel-address) 38 def_bool $(cc-option, -fsanitize=kernel-hwaddress) 55 Enables KASAN (Kernel Address Sanitizer) - a dynamic memory safety 56 error detector designed to find out-of-bounds and use-after-free bugs. 58 See Documentation/dev-tools/kasan.rst for details. 65 …def_bool (CC_IS_CLANG && $(cc-option,-fsanitize=kernel-address -mllvm -asan-kernel-mem-intrinsic-p… 66 (CC_IS_GCC && $(cc-option,-fsanitize=kernel-address --param asan-kernel-mem-intrinsic-prefix=1)) 81 2. Software Tag-Based KASAN (arm64 only, based on software memory [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/drivers/net/ethernet/intel/ice/ |
| H A D | ice_vf_mbx.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * @v_opcode: opcodes for VF-PF communication 31 cmd->id = cpu_to_le32(vfid); in ice_aq_send_msg_to_vf() 39 return ice_sq_send_cmd(hw, &hw->mailboxq, &desc, msg, msglen, cd); in ice_aq_send_msg_to_vf() 71 u32 index = fls(link_speed) - 1; in ice_conv_link_speed_to_virtchnl() 117 * detect it again. 123 /* Using the highest value for an unsigned 16-bit value 0xFFFF to indicate that 129 * ice_mbx_reset_snapshot - Reset mailbox snapshot structure 139 memset(&snap->mbx_buf, 0, sizeof(snap->mbx_buf)); in ice_mbx_reset_snapshot() 140 snap->mbx_buf.state = ICE_MAL_VF_DETECT_STATE_NEW_SNAPSHOT; in ice_mbx_reset_snapshot() [all …]
|
| /linux/Documentation/devicetree/bindings/mmc/ |
| H A D | mmc-controller-common.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-controller-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 14 possible slots or ports for multi-slot controllers. 17 "#address-cells": 22 "#size-cells": 27 # detect will be used. Only one of them should be provided. 29 broken-cd: [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/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/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/kernel/trace/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 21 API, which will be used by other function-entry hooking 27 See Documentation/trace/ftrace-design.rst 32 See Documentation/trace/ftrace-design.rst 45 See Documentation/trace/ftrace-design.rst 86 See Documentation/trace/ftrace-design.rst 91 Arch supports the gcc options -pg with -mfentry 96 Arch supports the gcc options -pg with -mrecord-mcount and -nop-mcount 101 Arch supports objtool --mcount 106 Arch supports the objtool options --mcount with --mnop. [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/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/fs/btrfs/ |
| H A D | extent-io-tree.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include "extent-io-tree.h" 15 return !RB_EMPTY_NODE(&state->rb_node); in extent_state_in_tree() 27 list_add(&state->leak_list, &states); in btrfs_leak_debug_add_state() 36 list_del(&state->leak_list); in btrfs_leak_debug_del_state() 48 state->start, state->end, state->state, in btrfs_extent_state_leak_debug_check() 50 refcount_read(&state->refs)); in btrfs_extent_state_leak_debug_check() 51 list_del(&state->leak_list); in btrfs_extent_state_leak_debug_check() 63 const struct btrfs_inode *inode = tree->inode; in __btrfs_debug_check_extent_io_range() 66 if (tree->owner != IO_TREE_INODE_IO) in __btrfs_debug_check_extent_io_range() [all …]
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | pmu_counters_test.c | 1 // SPDX-License-Identifier: GPL-2.0 58 * compiler often thinks the feature definitions aren't compile-time constants. 149 * one "hit, assert that its count is non-zero. If an event isn't supported or 151 * off regarding the count, i.e. no checks can be done. 166 /* Relax precise count check due to VM-EXIT/VM-ENTRY overcount issue */ in guest_assert_event_count() 173 /* Relax precise count check due to VM-EXIT/VM-ENTRY overcount issue */ in guest_assert_event_count() 194 "Expected top-down slots >= %u, got count = %lu", in guest_assert_event_count() 211 * compiler can't insert _any_ code into the measured sequence. Note, ECX 337 /* Testing arch events requires a vPMU (there are no negative tests). */ in test_arch_events() 359 * that aren't defined counter MSRs *probably* don't exist, but there's no [all …]
|
| /linux/drivers/net/ethernet/intel/e1000e/ |
| H A D | defines.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 46 #define E1000_CTRL_EXT_IAME 0x08000000 /* Int ACK Auto-mask */ 100 #define E1000_MANC_SMBUS_EN 0x00000001 /* SMBus Enabled - RO */ 101 #define E1000_MANC_ASF_EN 0x00000002 /* ASF Enabled - RO */ 121 #define E1000_RCTL_LBM_NO 0x00000000 /* no loopback mode */ 183 #define E1000_CTRL_ASDE 0x00000020 /* Auto-speed detect enable */ 185 #define E1000_CTRL_ILOS 0x00000080 /* Invert Loss-Of Signal */ 212 #define E1000_STATUS_LU 0x00000002 /* Link up.0=no,1=link */ 238 /* 1000/H is not supported, nor spec-compliant. */ [all …]
|