/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_pmdemand.c | 1 // SPDX-License-Identifier: MIT 24 u8 active_dbufs; /* pre-Xe3 only */ 31 u8 scalers; /* pre-Xe3 only */ 57 pmdemand_state = kmemdup(obj->state, sizeof(*pmdemand_state), GFP_KERNEL); in intel_pmdemand_duplicate_state() 61 return &pmdemand_state->base; in intel_pmdemand_duplicate_state() 81 &display->pmdemand.obj); in intel_atomic_get_pmdemand_state() 95 &display->pmdemand.obj); in intel_atomic_get_old_pmdemand_state() 109 &display->pmdemand.obj); in intel_atomic_get_new_pmdemand_state() 123 return -ENOMEM; in intel_pmdemand_init() 125 intel_atomic_global_obj_init(display, &display->pmdemand.obj, in intel_pmdemand_init() [all …]
|
/linux/Documentation/devicetree/bindings/media/i2c/ |
H A D | st,st-mipid02.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/media/i2c/st,st-mipid02.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics MIPID02 CSI-2 to PARALLEL bridge 10 - Benjamin Mugnier <benjamin.mugnier@foss.st.com> 11 - Sylvain Petinot <sylvain.petinot@foss.st.com> 14 MIPID02 has two CSI-2 input ports, only one of those ports can be 15 active at a time. Active port input stream will be de-serialized 17 CSI-2 first input port is a dual lane 800Mbps per lane whereas CSI-2 [all …]
|
/linux/include/linux/ |
H A D | plist.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Descending-priority-sorted double-linked list 5 * (C) 2002-2003 Intel Corp 6 * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>. 8 * 2001-2005 (c) MontaVista Software, Inc. 11 * (C) 2005 Thomas Gleixner <tglx@linutronix.de> 14 * Oleg Nesterov <oleg@tv-sign.ru> 18 * This is a priority-sorted list of nodes; each node has a 27 * - The tier 1 list is the prio_list, different priority nodes. 29 * - The tier 2 list is the node_list, serialized nodes. [all …]
|
H A D | sched.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 41 #include <linux/posix-timers_types.h> 91 * We have two separate sets of flags: task->__state 92 * is about runnability, while task->exit_state are 98 /* Used in tsk->__state: */ 104 /* Used in tsk->exit_state: */ 108 /* Used in tsk->__state again: */ 121 #define TASK_ANY (TASK_STATE_MAX-1) 144 #define task_is_running(task) (READ_ONCE((task)->__state) == TASK_RUNNING) 146 #define task_is_traced(task) ((READ_ONCE(task->jobctl) & JOBCTL_TRACED) != 0) [all …]
|
H A D | interrupt.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 44 * IRQF_SHARED - allow sharing the irq among several devices 45 * IRQF_PROBE_SHARED - set by callers when they expect sharing mismatches to occur 46 * IRQF_TIMER - Flag to mark this interrupt as timer interrupt 47 * IRQF_PERCPU - Interrupt is per cpu 48 * IRQF_NOBALANCING - Flag to exclude this interrupt from irq balancing 49 * IRQF_IRQPOLL - Interrupt is used for polling (only the interrupt that is 52 * IRQF_ONESHOT - Interrupt is not reenabled after the hardirq handler finished. 55 * IRQF_NO_SUSPEND - Do not disable this IRQ during suspend. Does not guarantee 57 * state. See Documentation/power/suspend-and-interrupts.rst [all …]
|
/linux/arch/s390/appldata/ |
H A D | appldata_mem.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Data gathering module for Linux-VM Monitor Stream, Stage 1. 8 * Author: Gerald Schaefer <gerald.schaefer@de.ibm.com> 23 #define P2K(x) ((x) << (PAGE_SHIFT - 10)) /* Converts #Pages to KB */ 58 // New in 2.6 --> 62 // <-- New in 2.6 76 * serialized through the appldata_ops_mutex and can use static in appldata_get_mem_data() 83 mem_data->sync_count_1++; in appldata_get_mem_data() 86 mem_data->pgpgin = ev[PGPGIN] >> 1; in appldata_get_mem_data() 87 mem_data->pgpgout = ev[PGPGOUT] >> 1; in appldata_get_mem_data() [all …]
|
/linux/Documentation/core-api/ |
H A D | cpu_hotplug.rst | 6 :Author: Sebastian Andrzej Siewior <bigeasy@linutronix.de>, 11 Thomas Gleixner <tglx@linutronix.de> 26 A more novel use of CPU-hotplug support is its use today in suspend resume 27 support for SMP. Dual-core and HT support makes even a laptop run SMP kernels 75 from the map depending on the event is hot-add/hot-remove. There are currently 80 be read-only for most use. When setting up per-cpu resources almost always use 94 $ ls -lh /sys/devices/system/cpu 96 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu0 97 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu1 98 drwxr-xr-x 9 root root 0 Dec 21 16:33 cpu2 [all …]
|
/linux/lib/reed_solomon/ |
H A D | reed_solomon.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2004 Thomas Gleixner (tglx@linutronix.de) 58 * codec_init - Initialize a Reed-Solomon codec 59 * @symsize: symbol size, bits (1-8) 80 INIT_LIST_HEAD(&rs->list); in codec_init() 82 rs->mm = symsize; in codec_init() 83 rs->nn = (1 << symsize) - 1; in codec_init() 84 rs->fcr = fcr; in codec_init() 85 rs->prim = prim; in codec_init() 86 rs->nroots = nroots; in codec_init() [all …]
|
/linux/kernel/ |
H A D | async.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Author: Arjan van de Ven <arjan@linux.intel.com> 16 decoupled and not strictly serialized. 21 have their externally visible parts happen sequentially and in-order. 22 (not unlike how out-of-order CPUs retire their instructions in order) 98 if (!list_empty(&domain->pending)) in lowest_in_progress() 99 first = list_first_entry(&domain->pending, in lowest_in_progress() 108 ret = first->cookie; in lowest_in_progress() 125 pr_debug("calling %lli_%pS @ %i\n", (long long)entry->cookie, in async_run_entry_fn() 126 entry->func, task_pid_nr(current)); in async_run_entry_fn() [all …]
|
/linux/Documentation/scheduler/ |
H A D | completion.rst | 2 Completions - "wait for completion" barrier APIs 6 ------------- 10 race-free solution to this problem. Semantically they are somewhat like a 11 pthread_barrier() and have similar use-cases. 14 misuse of locks/semaphores and busy-loops. Any time you think of using 34 ------ 38 - the initialization of the 'struct completion' synchronization object 39 - the waiting part through a call to one of the variants of wait_for_completion(), 40 - the signaling side through a call to complete() or complete_all(). 57 This provides the ->wait waitqueue to place tasks on for waiting (if any), and [all …]
|
/linux/Documentation/virt/kvm/x86/ |
H A D | timekeeping.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Timekeeping Virtualization for X86-Based Architectures 32 information relevant to KVM and hardware-based virtualization. 41 2.1. i8254 - PIT 42 ---------------- 46 channels which can be programmed to deliver periodic or one-shot interrupts. 53 The PIT uses I/O ports 0x40 - 0x43. Access to the 16-bit counters is done 59 -------------- ---------------- 61 | 1.1932 MHz|---------->| CLOCK OUT | ---------> IRQ 0 63 -------------- | +->| GATE TIMER 0 | [all …]
|
/linux/net/netfilter/ipset/ |
H A D | ip_set_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (C) 2000-2002 Joakim Axelsson <gozem@linux.nu> 3 * Patrick Schaaf <bof@bof.de> 4 * Copyright (C) 2003-2013 Jozsef Kadlecsik <kadlec@netfilter.org> 57 rcu_dereference_protected((inst)->ip_set_list, \ 60 (inst)->is_deleted) 64 rcu_dereference_raw((inst)->ip_set_list)[id] 70 * serialized by ip_set_type_mutex. 94 if (STRNCMP(type->name, name) && in find_set_type() 95 (type->family == family || in find_set_type() [all …]
|
/linux/arch/x86/kernel/cpu/microcode/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2000-2006 Tigran Aivazian <aivazian.tigran@gmail.com> 7 * 2013-2016 Borislav Petkov <bp@alien8.de> 13 * (C) 2015 Borislav Petkov <bp@alien8.de> 53 * All non cpu-hotplug-callback call sites use: 55 * - cpus_read_lock/unlock() to synchronize with 56 * the cpu-hotplug-callback call sites. 70 0, /* T-101 terminator */ 79 * - true: if update should stop 80 * - false: otherwise [all …]
|
/linux/Documentation/driver-api/soundwire/ |
H A D | stream.rst | 24 ------------------------- 26 ------------------------- 31 +---------------+ Clock Signal +---------------+ 32 | Master +----------------------------------+ Slave | 36 | L + R +----------------------------------+ L + R | 38 +---------------+ +-----------------------> +---------------+ 45 +---------------+ Clock Signal +---------------+ 46 | Master +----------------------------------+ Slave | 50 | L + R +----------------------------------+ L + R | 52 +---------------+ <-----------------------+ +---------------+ [all …]
|
/linux/include/uapi/linux/ |
H A D | rkisp1-config.h | 1 /* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR MIT) */ 16 /* Sensor De-gamma */ 44 /* Denoise Pre-Filter */ 46 /* Denoise Pre-Filter Strength */ 129 /* 0-2 for sets 1-3 */ 181 * enum rkisp1_cif_isp_version - ISP variants 221 * enum rkisp1_cif_isp_exp_ctrl_autostop - stop modes 231 * enum rkisp1_cif_isp_exp_meas_mode - Exposure measure mode 240 /*---------- PART1: Input Parameters ------------*/ 243 * struct rkisp1_cif_isp_window - measurement window. [all …]
|
/linux/fs/ |
H A D | dcache.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * (C) 1997 Thomas Schoebel-Theuer, 13 * The dcache is a master of the icache - whenever a dcache entry 38 #include <asm/runtime-const.h> 42 * dcache->d_inode->i_lock protects: 43 * - i_dentry, d_u.d_alias, d_inode of aliases 45 * - the dcache hash table 47 * - the s_roots list (see __d_drop) 48 * dentry->d_sb->s_dentry_lru_lock protects: 49 * - the dcache lru lists and counters [all …]
|
/linux/kernel/locking/ |
H A D | rtmutex.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * RT-Mutexes: simple blocking mutual exclusion locks with PI support 7 * Copyright (C) 2004-2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> 8 * Copyright (C) 2005-2006 Timesys Corp., Thomas Gleixner <tglx@timesys.com> 17 * See Documentation/locking/rt-mutex-design.rst for details. 68 * lock->owner state tracking: 70 * lock->owner holds the task_struct pointer of the owner. Bit 0 81 * possible when bit 0 of lock->owner is 0. 84 * with ->wait_lock is held. To prevent any fast path cmpxchg to the lock, 109 * lock->wait_lock is held but explicit acquire semantics are needed in rt_mutex_set_owner() [all …]
|
/linux/drivers/s390/crypto/ |
H A D | zcrypt_api.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Cornelia Huck <cornelia.huck@de.ibm.com> 8 * Hotplug & misc device support: Jochen Roehrig (roehrig@de.ibm.com) 9 * Major cleanup & driver split: Martin Schwidefsky <schwidefsky@de.ibm.com> 10 * Ralph Wuerthner <rwuerthn@de.ibm.com> 84 list_add_tail(&zops->list, &zcrypt_ops_list); in zcrypt_msgtype_register() 89 list_del_init(&zops->list); in zcrypt_msgtype_unregister() 97 if (zops->variant == variant && in zcrypt_msgtype() 98 (!strncmp(zops->name, name, sizeof(zops->name)))) in zcrypt_msgtype() 162 return -ERESTARTSYS; in ioctlmask_show() [all …]
|
/linux/drivers/hwtracing/stm/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 43 ret = sprintf(buf, "%u %u\n", stm->data->sw_start, stm->data->sw_end); in masters_show() 57 ret = sprintf(buf, "%u\n", stm->data->sw_nchannels); in channels_show() 71 ret = sprintf(buf, "%u\n", stm->data->hw_override); in hw_override_show() 93 * stm_find_device() - find stm device by name 117 if (!try_module_get(stm->owner)) { in stm_find_device() 127 * stm_put_device() - drop references on the stm device 135 module_put(stm->owner); in stm_put_device() 136 put_device(&stm->dev); in stm_put_device() 140 * Internally we only care about software-writable masters here, that is the [all …]
|
/linux/kernel/sched/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 1991-2002 Linus Torvalds 8 * Copyright (C) 1998-2024 Ingo Molnar, Red Hat 72 # include <linux/entry-common.h> 97 #include "../../io_uring/io-wq.h" 163 if (p->sched_class == &stop_sched_class) /* trumps deadline */ in __task_prio() 164 return -2; in __task_prio() 166 if (p->dl_server) in __task_prio() 167 return -1; /* deadline */ in __task_prio() 169 if (rt_or_dl_prio(p->prio)) in __task_prio() [all …]
|
/linux/kernel/time/ |
H A D | tick-sched.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright(C) 2005-2006, Thomas Gleixner <tglx@linutronix.de> 4 * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar 5 * Copyright(C) 2006-2007 Timesys Corp., Thomas Gleixner 27 #include <linux/posix-timers.h> 33 #include "tick-internal.h" 38 * Per-CPU nohz control structure 63 * 64-bit can do a quick check without holding the jiffies lock and in tick_do_update_jiffies64() 67 * 32-bit cannot do that because the store of 'tick_next_period' in tick_do_update_jiffies64() 68 * consists of two 32-bit stores, and the first store could be in tick_do_update_jiffies64() [all …]
|
H A D | hrtimer.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright(C) 2005-2006, Thomas Gleixner <tglx@linutronix.de> 4 * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar 5 * Copyright(C) 2006-2007 Timesys Corp., Thomas Gleixner 7 * High-resolution kernel timers 9 * In contrast to the low-resolution timeout API, aka timer wheel, 50 #include "tick-internal.h" 54 * cpu_base->active 57 #define HRTIMER_ACTIVE_HARD ((1U << MASK_SHIFT) - 1) 122 [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, [all …]
|
/linux/arch/m68k/kernel/ |
H A D | head.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later 2 ** -*- mode: asm -*- 4 ** head.S -- This file contains the initial boot code for the 14 ** Atari support by Andreas Schwab, using ideas of Robert de Vries 20 ** ++ Bjoern & Roman: ATARI-68040 support for the Medusa 23 ** Magnum- and FX-alternate ram 26 ** for linux-2.1.115 28 ** 2004/05/13 Kars de Jong: Finalised HP300 support 49 * 1) Remove register dependency through-out the file. 57 * write-ups on the structure of the file, and the features of the [all …]
|
/linux/fs/proc/ |
H A D | base.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * 1999, Al Viro. Rewritten. Now it covers the whole per-process part. 11 * we allocate and fill in-core inodes upon lookup. They don't even 18 * 17-Jan-2005 25 * Embedded Linux Lab - 10LE Instituto Nokia de Tecnologia - INdT 35 * 21-Feb-2005 36 * Embedded Linux Lab - 10LE Instituto Nokia de Tecnologia - INdT 40 * 10-Mar-2005 41 * 10LE Instituto Nokia de Tecnologia - INdT: 61 #include <linux/generic-radix-tree.h> [all …]
|
/linux/drivers/gpu/drm/panthor/ |
H A D | panthor_mmu.c | 1 // SPDX-License-Identifier: GPL-2.0 or MIT 16 #include <linux/dma-mapping.h> 20 #include <linux/io-pgtable.h> 42 * struct panthor_as_slot - Address space slot 50 * struct panthor_mmu - MMU related data 59 * us to re-assign them to re-assign slots on-demand. 105 * struct panthor_vm_pool - VM pool object 113 * struct panthor_vma - GPU mapping object 133 * struct panthor_vm_op_ctx - VM operation context 135 * With VM operations potentially taking place in a dma-signaling path, we [all …]
|