/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | leds.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 err = mv88e6xxx_port_led_read(p->chip, p->port, in mv88e6xxx_led_brightness_set() 67 return mv88e6xxx_port_led_write(p->chip, p->port, reg); in mv88e6xxx_led_brightness_set() 76 mv88e6xxx_reg_lock(p->chip); in mv88e6xxx_led0_brightness_set_blocking() 78 mv88e6xxx_reg_unlock(p->chip); in mv88e6xxx_led0_brightness_set_blocking() 89 mv88e6xxx_reg_lock(p->chip); in mv88e6xxx_led1_brightness_set_blocking() 91 mv88e6xxx_reg_unlock(p->chip); in mv88e6xxx_led1_brightness_set_blocking() 99 unsigned long rules; member 105 /* The following is a lookup table to check what rules we can support on a 106 * certain LED given restrictions such as that some rules only work with fiber [all …]
|
/linux/tools/perf/Documentation/ |
H A D | perf-probe.txt | 1 perf-probe(1) 5 ---- 6 perf-probe - Define new dynamic tracepoints 9 -------- 11 'perf probe' [options] --add='PROBE' [...] 15 'perf probe' [options] --del='[GROUP:]EVENT' [...] 17 'perf probe' --list[=[GROUP:]EVENT] 19 'perf probe' [options] --line='LINE' 21 'perf probe' [options] --vars='PROBEPOINT' 23 'perf probe' [options] --funcs [all …]
|
/linux/include/linux/crush/ |
H A D | crush.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * CRUSH is a pseudo-random data distribution algorithm that 20 * https://www.ssrc.ucsc.edu/Papers/weil-sc06.pdf 39 * CRUSH uses user-defined "rules" to describe how inputs should be 73 #define CRUSH_CHOOSE_N_MINUS(x) (-(x)) 99 * A bucket is a named container of other items (either devices or 106 * ------------------------------------------------ 133 __u16 type; /* non-zero; type=0 is reserved for devices */ 136 __u32 weight; /* 16-bit fixed point */ 163 * __weight_set_size__, the weights found at __weight_set_size-1__ are [all …]
|
/linux/Documentation/trace/ |
H A D | kprobetrace.rst | 2 Kprobe-based Event Tracing 8 -------- 9 These events are similar to tracepoint-based events. Instead of tracepoints, 13 Unlike the tracepoint-based event, this can be added and removed 28 ------------------------- 34 -:[GRP/][EVENT] : Clear a probe 50 @SYM[+|-offs] : Fetch memory at SYM +|- offs (SYM should be a data symbol) 56 +|-[u]OFFS(FETCHARG) : Fetch memory at FETCHARG +|- OFFS address.(\*3)(\*4) 72 (\*4) "u" means user-space dereference. See :ref:`user_mem_access`. 75 ------------------------------- [all …]
|
/linux/Documentation/userspace-api/ |
H A D | landlock.rst | 1 .. SPDX-License-Identifier: GPL-2.0 2 .. Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net> 3 .. Copyright © 2019-2020 ANSSI 4 .. Copyright © 2021-2022 Microsoft Corporation 16 new security layers in addition to the existing system-wide access-controls. 23 ``dmesg | grep landlock || journalctl -kb -g landlock`` . 29 Landlock rules 33 perform. A set of rules is aggregated in a ruleset, which can then restrict 36 The two existing types of rules are: 38 Filesystem rules [all …]
|
/linux/Documentation/gpu/ |
H A D | drm-vm-bind-async.rst | 1 .. SPDX-License-Identifier: (GPL-2.0+ OR MIT) 10 * ``VRAM``: On-device memory. Sometimes referred to as device local memory. 16 an IOCTL. The operations include mapping and unmapping system- or 19 * ``syncobj``: A container that abstracts synchronization objects. The 20 synchronization objects can be either generic, like dma-fences or 24 * ``in-syncobj``: Argument to a VM_BIND IOCTL, the VM_BIND operation waits 27 * ``out-syncobj``: Argument to a VM_BIND_IOCTL, the VM_BIND operation 30 * ``dma-fence``: A cross-driver synchronization object. A basic 31 understanding of dma-fences is required to digest this 33 :doc:`dma-buf doc </driver-api/dma-buf>`. [all …]
|
/linux/include/uapi/drm/ |
H A D | pvr_drm.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only WITH Linux-syscall-note) OR MIT */ 22 * - All members must be type-aligned. 23 * - The overall struct must be padded to 64-bit alignment. 24 * - Explicit padding is almost always required. This takes the form of 25 * ``_padding_[x]`` members of sufficient size to pad to the next power-of-two 29 * - Unions may only appear as the last member of a struct. 30 * - Individual union members may grow in the future. The space between the 36 * device and runtime. These structs are subject to the same rules set out 41 * struct drm_pvr_obj_array - Container used to pass arrays of objects 67 * DRM_PVR_OBJ_ARRAY() - Helper macro for filling &struct drm_pvr_obj_array. [all …]
|
/linux/security/apparmor/ |
H A D | policy.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 1998-2008 Novell/SUSE 8 * Copyright 2009-2010 Canonical Ltd. 10 * AppArmor policy is based around profiles, which contain the rules a 13 * visible set of profiles or by following a profiles attachment rules. 15 * Each profile exists in a profile namespace which is a container of 21 * :namespace:profile - used by kernel interfaces for easy detection 22 * namespace://profile - used by policy 27 * unconfined - special automatically generated unconfined profile 28 * inherit - special name to indicate profile inheritance [all …]
|
/linux/security/ |
H A D | device_cgroup.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * device_cgroup.c - device cgroup subsystem 8 #include <linux/bpf-cgroup.h> 30 * exception list locking rules: 72 list_add_tail(&new->list, dest); in dev_exceptions_copy() 79 list_del(&ex->list); in dev_exceptions_copy() 82 return -ENOMEM; in dev_exceptions_copy() 92 list_move_tail(&ex->list, dest); in dev_exceptions_move() 108 return -ENOMEM; in dev_exception_add() 110 list_for_each_entry(walk, &dev_cgroup->exceptions, list) { in dev_exception_add() [all …]
|
/linux/include/uapi/linux/ |
H A D | vfio.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 37 /* Two-stage IOMMU */ 43 * The No-IOMMU IOMMU offers no translation or isolation for devices and 44 * supports no ioctls outside of VFIO_CHECK_EXTENSION. Use of VFIO's No-IOMMU 100 /* -------- IOCTLs for VFIO file descriptor (/dev/vfio/vfio) -------- */ 103 * VFIO_GET_API_VERSION - _IO(VFIO_TYPE, VFIO_BASE + 0) 114 * VFIO_CHECK_EXTENSION - _IOW(VFIO_TYPE, VFIO_BASE + 1, __u32) 123 * VFIO_SET_IOMMU - _IOW(VFIO_TYPE, VFIO_BASE + 2, __s32) 130 * Return: 0 on success, -errno on failure 135 /* -------- IOCTLs for GROUP file descriptors (/dev/vfio/$GROUP) -------- */ [all …]
|
H A D | landlock.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Landlock - User space API 5 * Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net> 6 * Copyright © 2018-2020 ANSSI 7 * Copyright © 2021-2025 Microsoft Corporation 16 * struct landlock_ruleset_attr - Ruleset definition. 27 * add new rules with this access right, the bit must still be set explicitly 67 /* clang-format off */ 70 /* clang-format on */ 113 * important security events. It is useful for container runtimes or [all …]
|
H A D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 26 * have the same layout for 32-bit and 64-bit userland. 38 * struct ethtool_cmd - DEPRECATED, link control and status 43 * interface supports autonegotiation or auto-detection. 44 * Read-onl [all...] |
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_txrx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 /* The size limit for a transmit buffer in a descriptor is (16K - 1). 24 #define ICE_MAX_DATA_PER_TXD (16 * 1024 - 1) 26 (~(ICE_MAX_READ_REQ_SIZE - 1) & ICE_MAX_DATA_PER_TXD) 46 * ice_compute_pad - compute the padding 59 return SKB_WITH_OVERHEAD(half_page_size) - rx_buf_len; in ice_compute_pad() 63 * ice_skb_pad - determine the padding that we can supply 77 * cache-line alignment. in ice_skb_pad() 85 rx_buf_len -= NET_IP_ALIGN; in ice_skb_pad() 112 (u16)((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \ [all …]
|
/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api.c | 1 // SPDX-License-Identifier: GPL-2.0+ 53 itr->offset = offset; in vcap_iter_set() 54 itr->sw_width = sw_width; in vcap_iter_set() 55 itr->regs_per_sw = DIV_ROUND_UP(sw_width, 32); in vcap_iter_set() 56 itr->tg = tg; in vcap_iter_set() 62 * A typegroup table ends with an all-zero terminator. in vcap_iter_skip_tg() 64 while (itr->tg->width && itr->offset >= itr->tg->offset) { in vcap_iter_skip_tg() 65 itr->offset += itr->tg->width; in vcap_iter_skip_tg() 66 itr->tg++; /* next typegroup */ in vcap_iter_skip_tg() 75 sw_idx = itr->offset / itr->sw_width; in vcap_iter_update() [all …]
|
/linux/Documentation/arch/arm64/ |
H A D | acpi_object_usage.rst | 16 - Required: DSDT, FADT, GTDT, MADT, MCFG, RSDP, SPCR, XSDT 18 - Recommended: BERT, EINJ, ERST, HEST, PCCT, SSDT 20 - Optional: AGDI, BGRT, CEDT, CPEP, CSRT, DBG2, DRTM, ECDT, FACS, FPDT, 24 - Not supported: AEST, APMT, BOOT, DBGP, DMAR, ETDT, HPET, IVRS, LPIT, 41 This table describes a non-maskable event, that is used by the platform 68 Optional, not currently supported, with no real use-case for an 83 time as ARM-compatible hardware is available, and the specification 151 UEFI-based; if it is UEFI-based, this table may be supplied. When this 167 the hardware reduced profile, and only 64-bit address fields will 184 filled in properly - that the PSCI_COMPLIANT flag is set and that [all …]
|
/linux/drivers/acpi/acpica/ |
H A D | exstore.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: exstore - AML Interpreter object store support 6 * Copyright (C) 2000 - 2025, Intel Corp. 35 * PARAMETERS: *source_desc - Value to be stored 36 * *dest_desc - Where to store it. Must be an NS node 39 * walk_state - Current walk state 46 * the destination operand -- not just simply the actual "Store" 86 switch (dest_desc->common.type) { in acpi_ex_store() 93 /* Allow stores to Constants -- a Noop as per ACPI spec */ in acpi_ex_store() 95 if (dest_desc->common.flags & AOPOBJ_AML_CONSTANT) { in acpi_ex_store() [all …]
|
/linux/kernel/time/ |
H A D | timer.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * 1997-01-28 Modified by Finn Arne Gangstad to make timers scale better. 9 * 1997-09-10 Updated NTP code according to technical memorandum Jan '96 11 * 1998-12-24 Fixed a xtime SMP race (we need the xtime_lock rw spinlock to 14 * 1999-03-10 Improved NTP compatibility by Ulrich Windl 15 * 2002-05-31 Move sys_sysinfo here and make its locking sane, Robert Love 16 * 2000-10-05 Implemented scalable SMP per-CPU timer handling. 33 #include <linux/posix-timers.h> 54 #include "tick-internal.h" 106 * 0 0 1 ms 0 ms - 63 ms [all …]
|
H A D | posix-cpu-timers.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/posix-timers.h> 20 #include "posix-timers.h" 28 pct->bases[CPUCLOCK_PROF].nextevt = cpu_limit * NSEC_PER_SEC; in posix_cputimers_group_init() 29 pct->timers_active = true; in posix_cputimers_group_init() 35 * tsk->signal->posix_cputimers.bases[clock].nextevt expiration cache if 39 * Returns 0 on success, -ESRCH on failure. Can fail if the task is exiting and 48 return -ESRCH; in update_rlimit_cpu() 102 ret = pid_for_clock(clock, false) ? 0 : -EINVAL; in validate_clock_permissions() 115 return pid_task(timer->it.cpu.pid, clock_pid_type(timer->it_clock)); in cpu_timer_task_rcu() [all …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_sriov.h | 3 * Copyright 2009-2013 Broadcom Corporation 10 * at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (the "GPL"). 49 u32 cap; /* SR-IOV Capabilities */ 50 u16 ctrl; /* SR-IOV Control */ 81 /* VLAN-MACs object */ 86 /* Queue Slow-path State object */ 96 /* struct bnx2x_vf_queue_construct_params - prepare queue construction 97 * parameters: q-init, q-setup and SB index 157 * - xxq_count = 0 as the queues memory is not allocated yet. 159 * - sb_count = The number of status blocks configured for this VF in [all …]
|
/linux/rust/kernel/ |
H A D | dma.rs | 1 // SPDX-License-Identifier: GPL-2.0 5 //! C header: [`include/linux/dma-mapping.h`](srctree/include/linux/dma-mapping.h) 23 /// Note that this may be `u64` even on 32-bit architectures. 41 unsafe fn dma_set_mask(&self, mask: DmaMask) -> Result { 43 // - By the type invariant of `device::Device`, `self.as_ref().as_raw()` is valid. 44 // - The safety requirement of this function guarantees that there are no concurrent calls 58 unsafe fn dma_set_coherent_mask(&self, mask: DmaMask) -> Resul [all...] |
/linux/drivers/dma-buf/ |
H A D | dma-resv.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright (C) 2012-2014 Canonical Ltd (Maarten Lankhorst) 8 * Copyright (c) 2006-2009 VMware, Inc., Palo Alto, CA., USA 25 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 33 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> 36 #include <linux/dma-resv.h> 37 #include <linux/dma-fence-array.h> 47 * The reservation object provides a mechanism to manage a container of 52 * locked write-side updates. 76 tmp = (long)rcu_dereference_check(list->table[index], in dma_resv_list_entry() [all …]
|
/linux/arch/x86/kernel/fpu/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 49 * Track FPU initialization and kernel-mode usage. 'true' means the FPU is 62 if (WARN_ON_ONCE(task->flags & PF_KTHREAD)) in x86_task_fpu() 81 * - FPU is not yet initialized. This can happen only when the call is in irq_fpu_usable() 83 * - The kernel is already using the FPU, either because of explicit in irq_fpu_usable() 85 * nesting when a hardirq interrupted a kernel-mode FPU section. in irq_fpu_usable() 95 * - Task context except from within fpregs_lock()'ed critical in irq_fpu_usable() 98 * - Soft interrupt processing context which cannot happen in irq_fpu_usable() 122 if (fpu->fpstate->regs.xsave.header.xfeatures & AVX512_TRACKING_MASK) in update_avx_timestamp() 123 fpu->avx512_timestamp = jiffies; in update_avx_timestamp() [all …]
|
/linux/include/linux/ |
H A D | perf_event.h | 4 * Copyright (C) 2008-2009, Thomas Gleixner <tglx@linutronix.de> 5 * Copyright (C) 2008-2011, Red Hat, Inc., Ingo Molnar 6 * Copyright (C) 2008-2011, Red Hat, Inc., Peter Zijlstra 12 * For licencing details see kernel-base/COPYING 21 * Kernel-internal data types and definitions: 30 # include <linux/rhashtable-types.h> 92 return frag->pad < sizeof(u64); in perf_raw_frag_last() 100 * -1ULL means invalid/unknown. 110 * The hw_idx index is between -1 (unknown) and max depth, 130 int idx; /* index in shared_regs->regs[] */ [all …]
|
/linux/drivers/net/ethernet/sfc/ |
H A D | mcdi_pcol.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2009-2018 Solarflare Communications Inc. 5 * Copyright 2019-2020 Xilinx Inc. 13 /* Power-on reset state */ 35 /* The 'doorbell' addresses are hard-wired to alert the MC when written */ 38 /* The rest of these are firmware-defined */ 46 /* Values to be written to the per-port status dword in shared 71 * | | \--- Response 72 * | \------- Error 73 * \------------------------------ Resync (always set) [all …]
|
/linux/net/ipv4/ |
H A D | fib_frontend.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 59 return -ENOMEM; in fib4_rules_init() 65 hlist_add_head_rcu(&local_table->tb_hlist, in fib4_rules_init() 66 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]); in fib4_rules_init() 67 hlist_add_head_rcu(&main_table->tb_hlist, in fib4_rules_init() 68 &net->ipv in fib4_rules_init() [all...] |