| /linux/Documentation/devicetree/bindings/leds/backlight/ |
| H A D | lm3630a-backlight.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/lm3630a-backlight.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TI LM3630A High-Efficiency Dual-String White LED 10 - Lee Jones <lee@kernel.org> 11 - Daniel Thompson <daniel.thompson@linaro.org> 12 - Jingoo Han <jingoohan1@gmail.com> 15 The LM3630A is a current-mode boost converter which supplies the power and 26 '#address-cells': [all …]
|
| H A D | mediatek,mt6370-backlight.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/mediatek,mt6370-backlight.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiaEn Wu <chiaen_wu@richtek.com> 17 16384 current steps (14 bits, only for MT6372) in exponential or linear 18 mapping curves. 21 - $ref: common.yaml# 26 - mediatek,mt6370-backlight 27 - mediatek,mt6372-backlight [all …]
|
| /linux/arch/arm64/mm/ |
| H A D | init.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1995-2005 Russell King 24 #include <linux/dma-direct.h> 25 #include <linux/dma-map-ops.h> 40 #include <asm/kernel-pgtable.h> 50 #include <asm/xen/swiotlb-xen.h> 58 s64 memstart_addr __ro_after_init = -1; 63 * and ZONE_DMA32. By default ZONE_DMA covers the 32-bit addressable memory 64 * unless restricted on specific platforms (e.g. 30-bit on Raspberry Pi 4). 65 * In such case, ZONE_DMA32 covers the rest of the 32-bit addressable memory, [all …]
|
| /linux/Documentation/arch/powerpc/ |
| H A D | kasan.txt | 1 KASAN is supported on powerpc on 32-bit and Radix 64-bit only. 6 KASAN is supported on both hash and nohash MMUs on 32-bit. 23 - It would be good to support inline instrumentation so as to be able to catch 24 stack issues that cannot be caught with outline mode. 26 - Inline instrumentation requires a fixed offset. 28 - Book3S runs code with translations off ("real mode") during boot, including a 29 lot of generic device-tree parsing code which is used to determine MMU 32 - Some code - most notably a lot of KVM code - also runs with translations off 35 - Therefore any offset has to point to memory that is valid with 38 One approach is just to give up on inline instrumentation. This way boot-time [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-backlight-driver-lm3533 | 7 ALS-current-control mode (0, 1), where: 19 Enable ALS-current-control mode (0, 1). 28 What: /sys/class/backlight/<backlight>/linear 33 Set the brightness-mapping mode (0, 1), where: 36 0 exponential mode 37 1 linear mode 45 Set the PWM-input control mask (5 bits), where: 48 bit 5 PWM-input enabled in Zone 4 49 bit 4 PWM-input enabled in Zone 3 50 bit 3 PWM-input enabled in Zone 2 [all …]
|
| H A D | sysfs-class-led-driver-lm3533 | 7 ALS-current-control mode (1, 2), where: 19 Enable ALS-current-control mode (0, 1). 47 What: /sys/class/leds/<led>/linear 52 Set the brightness-mapping mode (0, 1), where: 55 0 exponential mode 56 1 linear mode 64 Set the PWM-input control mask (5 bits), where: 67 bit 5 PWM-input enabled in Zone 4 68 bit 4 PWM-input enabled in Zone 3 69 bit 3 PWM-input enabled in Zone 2 [all …]
|
| H A D | sysfs-class-backlight-lm3639 | 2 ------------------------------------------------------------------------------ 7 Contact: dri-devel@lists.freedesktop.org 9 (WO) Write to the backlight mapping mode. The backlight current 10 can be mapped for either exponential (value "0") or linear 11 mapping modes (default).
|
| /linux/arch/riscv/mm/ |
| H A D | init.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2020 FORTH-ICS/CARV 20 #include <linux/dma-map-ops.h> 103 pr_notice("%12s : 0x%08lx - 0x%08lx (%4ld kB)\n", name, b, t, in print_mlk() 104 (((t) - (b)) >> LOG2_SZ_1K)); in print_mlk() 109 pr_notice("%12s : 0x%08lx - 0x%08lx (%4ld MB)\n", name, b, t, in print_mlm() 110 (((t) - (b)) >> LOG2_SZ_1M)); in print_mlm() 115 pr_notice("%12s : 0x%08lx - 0x%08lx (%4ld GB)\n", name, b, t, in print_mlg() 116 (((t) - (b)) >> LOG2_SZ_1G)); in print_mlg() 122 pr_notice("%12s : 0x%08lx - 0x%08lx (%4ld TB)\n", name, b, t, in print_mlt() [all …]
|
| /linux/drivers/md/ |
| H A D | dm-linear.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2001-2003 Sistina Software (UK) Limited. 15 #include <linux/device-mapper.h> 17 #define DM_MSG_PREFIX "linear" 20 * Linear: maps a linear range of a device. 28 * Construct a linear mapping: <dev_path> <offset> 38 ti->error = "Invalid argument count"; in linear_ctr() 39 return -EINVAL; in linear_ctr() 44 ti->error = "Cannot allocate linear context"; in linear_ctr() 45 return -ENOMEM; in linear_ctr() [all …]
|
| /linux/drivers/mtd/maps/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 menu "Mapping drivers for chip access" 7 bool "Support non-linear mappings of flash chips" 16 This provides a 'mapping' driver which allows the NOR Flash and 21 with config options or at run-time. 31 Setup a simple mapping via the Kconfig options. Normally the 38 hex "Physical start address of flash mapping" 48 hex "Physical length of flash mapping" 52 This is the total length of the mapping of the flash chips on 73 This provides a 'mapping' driver which allows the NOR Flash, ROM [all …]
|
| /linux/arch/powerpc/kernel/ |
| H A D | setup_64.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 37 #include <asm/asm-prototypes.h> 63 #include <asm/text-patching.h> 68 #include <asm/feature-fixups.h> 101 * If we boot via kdump on a non-primary thread, in setup_tlb_core_data() 108 paca_ptrs[cpu]->tcd_ptr = &paca_ptrs[first]->tcd; in setup_tlb_core_data() 112 * or e6500 tablewalk mode, or else TLB handlers in setup_tlb_core_data() 127 /* Look for ibm,smt-enabled OF option */ 151 smt_option = of_get_property(dn, "ibm,smt-enabled", in check_smt_enabled() 166 /* Look for smt-enabled= cmdline option */ [all …]
|
| /linux/include/linux/ |
| H A D | led-lm3530.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2011 ST-Ericsson SA. 9 * based on leds-lm3530.c by Dan Murphy <D.Murphy@motorola.com> 82 * @mode: mode of operation i.e. Manual, ALS or PWM 83 * @als_input_mode: select source of ALS input - ALS1/2 or average 85 * @pwm_pol_hi: PWM input polarity - active high/active low 87 * @brt_ramp_law: brightness mapping mode - exponential/linear 94 * @brt_val: brightness value (0-127) 95 * @pwm_data: PWM control functions (only valid when the mode is PWM) 98 enum lm3530_mode mode; member
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | params.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 26 u8 req_page_shift = xsk ? order_base_2(xsk->chunk_size) : PAGE_SHIFT; in mlx5e_mpwrq_page_shift() 29 /* Regular RQ uses order-0 pages, the NIC must be able to map them. */ in mlx5e_mpwrq_page_shift() 40 * user-mode memory. The stricter guarantees we have, the faster in mlx5e_mpwrq_umr_mode() 42 * 1. MTT - direct mapping in page granularity. in mlx5e_mpwrq_umr_mode() 43 * 2. KSM - indirect mapping to another MKey to arbitrary addresses, but in mlx5e_mpwrq_umr_mode() 45 * 3. KLM - indirect mapping to another MKey to arbitrary addresses, and in mlx5e_mpwrq_umr_mode() 49 bool unaligned = xsk ? xsk->unaligned : false; in mlx5e_mpwrq_umr_mode() 53 oversized = xsk->chunk_size < (1 << page_shift); in mlx5e_mpwrq_umr_mode() 54 WARN_ON_ONCE(xsk->chunk_size > (1 << page_shift)); in mlx5e_mpwrq_umr_mode() [all …]
|
| /linux/Documentation/virt/kvm/x86/ |
| H A D | mmu.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 - correctness: 18 - security: 21 - performance: 23 - scaling: 25 - hardware: 27 - integration: 31 - dirty tracking: 33 and framebuffer-based displays 34 - footprint: [all …]
|
| /linux/Documentation/arch/riscv/ |
| H A D | boot.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 RISC-V Kernel Boot Requirements and Constraints 10 This document describes what the RISC-V kernel expects from bootloaders and 14 mapping is set up. 16 Pre-kernel Requirements and Constraints 19 The RISC-V kernel expects the following of bootloaders and platform firmware: 22 -------------- 24 The RISC-V kernel expects: 30 --------- 32 The RISC-V kernel expects: [all …]
|
| /linux/Documentation/dev-tools/ |
| H A D | kasan.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 -------- 11 designed to find out-of-bounds and use-after-free bugs. 16 2. Software Tag-Based KASAN 17 3. Hardware Tag-Based KASAN 19 Generic KASAN, enabled with CONFIG_KASAN_GENERIC, is the mode intended for 20 debugging, similar to userspace ASan. This mode is supported on many CPU 23 Software Tag-Based KASAN or SW_TAGS KASAN, enabled with CONFIG_KASAN_SW_TAGS, 25 This mode is only supported for arm64, but its moderate memory overhead allows 26 using it for testing on memory-restricted devices with real workloads. [all …]
|
| /linux/arch/alpha/include/asm/ |
| H A D | core_irongate.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 * IRONGATE is the internal name for the AMD-751 K7 core logic chipset 10 * which provides memory controller and PCI access for NAUTILUS-based 21 * The 21264 supports, and internally recognizes, a 44-bit physical 30 * through the routines given is 32-bit. 38 igcsr32 dev_vendor; /* 0x00 - device ID, vendor ID */ 39 igcsr32 stat_cmd; /* 0x04 - status, command */ 40 igcsr32 class; /* 0x08 - class code, rev ID */ 41 igcsr32 latency; /* 0x0C - header type, PCI latency */ 42 igcsr32 bar0; /* 0x10 - BAR0 - AGP */ [all …]
|
| /linux/arch/powerpc/mm/book3s64/ |
| H A D | hash_utils.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 #define pr_fmt(fmt) "hash-mmu: " fmt 41 #include <linux/elf-randomize.h> 61 #include <asm/text-patching.h> 67 #include <asm/pte-walk.h> 68 #include <asm/asm-prototypes.h> 94 * Note: pte --> Linux PTE 95 * HPTE --> PowerPC Hashed Page Table Entry 143 .penc = {[MMU_PAGE_4K] = 0, [1 ... MMU_PAGE_COUNT - 1] = -1}, 158 .penc = {[MMU_PAGE_4K] = 0, [1 ... MMU_PAGE_COUNT - 1] = -1}, [all …]
|
| /linux/mm/ |
| H A D | memremap.c | 1 // SPDX-License-Identifier: GPL-2.0 22 * constraints on the alignment and size of the mapping (namespace). 25 * the minimum mapping granularity of memremap_pages() is 16MB. 31 * reconfigured into a mode that requires SUBSECTION_SIZE alignment. 43 xa_store_range(&pgmap_array, PHYS_PFN(range->start), PHYS_PFN(range->end), in pgmap_array_delete() 50 struct range *range = &pgmap->ranges[range_id]; in pfn_first() 51 unsigned long pfn = PHYS_PFN(range->start); in pfn_first() 62 for (i = 0; i < pgmap->nr_range; i++) { in pgmap_pfn_valid() 63 struct range *range = &pgmap->ranges[i]; in pgmap_pfn_valid() 65 if (pfn >= PHYS_PFN(range->start) && in pgmap_pfn_valid() [all …]
|
| /linux/drivers/gpu/drm/etnaviv/ |
| H A D | etnaviv_mmu.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2015-2018 Etnaviv Project 6 #include <linux/dma-mapping.h> 23 unmapped_page = context->global->ops->unmap(context, iova, in etnaviv_context_unmap() 43 ret = context->global->ops->map(context, iova, paddr, pgsize, in etnaviv_context_map() 50 size -= pgsize; in etnaviv_context_map() 53 /* unroll mapping in case something went wrong */ in etnaviv_context_map() 55 etnaviv_context_unmap(context, orig_iova, orig_size - size); in etnaviv_context_map() 70 return -EINVAL; in etnaviv_iommu_map() 80 dev_err(context->global->dev, in etnaviv_iommu_map() [all …]
|
| /linux/drivers/iommu/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 # The IOVA library may also be used by non-IOMMU_API users 40 sizes at both stage-1 and stage-2, as well as address spaces 41 up to 48-bits in size. 47 Enable self-tests for LPAE page table allocator. This performs 48 a series of page-table consistency checks during boot. 57 Enable support for the ARM Short-descriptor pagetable format. 58 This supports 32-bit virtual and physical addresses mapped using 59 2-level tables with 4KB pages/1MB sections, and contiguous entries 66 Enable self-tests for ARMv7s page table allocator. This performs [all …]
|
| /linux/include/uapi/drm/ |
| H A D | drm_fourcc.h | 39 * further describe the buffer's format - for example tiling or compression. 42 * ---------------- 56 * vendor-namespaced, and as such the relationship between a fourcc code and a 58 * may preserve meaning - such as number of planes - from the fourcc code, 64 * a modifier: a buffer may match a 64-pixel aligned modifier and a 32-pixel 76 * - Kernel and user-space drivers: for drivers it's important that modifiers 80 * - Higher-level programs interfacing with KMS/GBM/EGL/Vulkan/etc: these users 93 * ----------------------- 98 * upstream in-kernel or open source userspace user does not apply. 225 * Half-Floating point - 16b/component [all …]
|
| /linux/arch/x86/kernel/ |
| H A D | head32.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * linux/arch/i386/kernel/head32.c -- prepare to run common code 86 * Mappings are created both at virtual address 0 (identity mapping) 89 * In PAE mode initial_page_table is statically defined to contain 91 * entries). The identity mapping is handled by pointing two PGD entries 130 /* Enough space to fit pagetables for the low memory linear map */ in mk_early_pgtbl_32() 149 if (!params->hdr.ramdisk_size || !params->hdr.ramdisk_image) in mk_early_pgtbl_32() 155 *ptr += ((unsigned long)params->hdr.ramdisk_image) & ~PAGE_MASK; in mk_early_pgtbl_32() 161 limit = (unsigned long)params->hdr.ramdisk_image; in mk_early_pgtbl_32() 163 limit = (unsigned long)params->hdr.ramdisk_image + params->hdr.ramdisk_size; in mk_early_pgtbl_32()
|
| /linux/sound/soc/sof/ |
| H A D | ipc4-topology.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 15 #define SOF_IPC4_FW_PAGE(x) ((((x) + BIT(12) - 1) & ~(BIT(12) - 1)) >> 12) 16 #define SOF_IPC4_FW_ROUNDUP(x) (((x) + BIT(6) - 1) & (~(BIT(6) - 1))) 22 * LL domain - Low latency domain 23 * DP domain - Data processing domain 80 * The base of multi-gateways. Multi-gateways addressing starts from 81 * ALH_MULTI_GTW_BASE and there are ALH_MULTI_GTW_COUNT multi-sources 82 * and ALH_MULTI_GTW_COUNT multi-sinks available. 84 * ALH_MULTI_GTW_BASE + ALH_MULTI_GTW_COUNT - 1. 107 * Use LARGE_CONFIG_GET to retrieve Linear Link Position (LLP) value for non [all …]
|
| /linux/arch/arm64/include/asm/ |
| H A D | kvm_mmu.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2012,2013 - ARM Ltd 20 * Instead, give the HYP mode its own VA region at a fixed offset from 29 * and that half of that space (VA_BITS - 1) is used for the linear 30 * mapping, we can also limit the EL2 space to (VA_BITS - 1). 33 * top or the bottom half of that space to shadow the kernel's linear 34 * mapping?". As we need to idmap the trampoline page, this is 41 * if (T & BIT(VA_BITS - 1)) 44 * HYP_VA_MIN = 1 << (VA_BITS - 1) 45 * HYP_VA_MAX = HYP_VA_MIN + (1 << (VA_BITS - 1)) - 1 [all …]
|