/linux/fs/gfs2/ |
H A D | lock_dlm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 4 * Copyright 2004-2011 Red Hat, Inc. 26 * gfs2_update_stats - Update time based stats 52 s64 delta = sample - s->stats[index]; in gfs2_update_stats() 53 s->stats[index] += (delta >> 3); in gfs2_update_stats() 55 s->stats[index] += (s64)(abs(delta) - s->stats[index]) >> 2; in gfs2_update_stats() 59 * gfs2_update_reply_times - Update locking statistics 62 * This assumes that gl->gl_dstamp has been set earlier. 72 * TRY_1CB flags are set are classified as non-blocking. All [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/mm/ |
H A D | multigen_lru.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Multi-Gen LRU 6 The multi-gen LRU is an alternative LRU implementation that optimizes 14 ---------- 20 * Simple self-correcting heuristics 23 implementations. In the multi-gen LRU, each generation represents a 25 (time-based) common frame of reference and therefore help make better 41 choices; thus self-correction is necessary. 43 The benefits of simple self-correcting heuristics are self-evident. 45 attainable. Specifically, pages in the same generation can be [all …]
|
/linux/fs/btrfs/ |
H A D | extent_map.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include "disk-io.h" 21 return -ENOMEM; in extent_map_init() 36 tree->root = RB_ROOT; in extent_map_tree_init() 37 INIT_LIST_HEAD(&tree->modified_extents); in extent_map_tree_init() 38 rwlock_init(&tree->lock); in extent_map_tree_init() 51 RB_CLEAR_NODE(&em->rb_node); in alloc_extent_map() 52 refcount_set(&em->refs, 1); in alloc_extent_map() 53 INIT_LIST_HEAD(&em->list); in alloc_extent_map() 65 if (refcount_dec_and_test(&em->refs)) { in free_extent_map() [all …]
|
/linux/drivers/pinctrl/meson/ |
H A D | pinctrl-meson8-pmx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * First generation of pinmux driver for Amlogic Meson SoCs 9 /* For this first generation of pinctrl driver every pinmux group can be 10 * enabled by a specific bit in the first register range. When all groups for 18 #include "pinctrl-meson.h" 19 #include "pinctrl-meson8-pmx.h" 22 * meson8_pmx_disable_other_groups() - disable other groups using a given pin 26 * @sel_group: index of the selected group, or -1 if none 29 * selected one. If @sel_group is -1 all groups are disabled, leaving 39 for (i = 0; i < pc->data->num_groups; i++) { in meson8_pmx_disable_other_groups() [all …]
|
H A D | pinctrl-meson-axg-pmx.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Second generation of pinmux driver for Amlogic Meson-AXG SoC. 13 * This new generation of pinctrl IP is mainly adopted by the 14 * Meson-AXG SoC and later series, which use 4-width continuous 25 #include "pinctrl-meson.h" 26 #include "pinctrl-meson-axg-pmx.h" 33 const struct meson_axg_pmx_data *pmx = pc->data->pmx_data; in meson_axg_pmx_get_bank() 35 for (i = 0; i < pmx->num_pmx_banks; i++) in meson_axg_pmx_get_bank() 36 if (pin >= pmx->pmx_banks[i].first && in meson_axg_pmx_get_bank() 37 pin <= pmx->pmx_banks[i].last) { in meson_axg_pmx_get_bank() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_tv_regs.h | 1 /* SPDX-License-Identifier: MIT */ 28 /* Enables slow sync generation (945GM only) */ 41 /* Sets the colorburst to PAL mode. Required for non-M PAL modes. */ 56 /* Read-only state that reports all features enabled */ 58 /* Read-only state that reports that Macrovision is disabled in hardware*/ 60 /* Read-only state that reports that TV-out is disabled in hardware. */ 64 /* Encoder test pattern 1 - combo pattern */ 66 /* Encoder test pattern 2 - full screen vertical 75% color bars */ 68 /* Encoder test pattern 3 - full screen horizontal 75% color bars */ 70 /* Encoder test pattern 4 - random noise */ [all …]
|
/linux/Documentation/sound/cards/ |
H A D | pcmtest.rst | 1 .. SPDX-License-Identifier: GPL-2.0 16 * Generate random or pattern-based capturing data 21 non-interleaved access modes. 24 which is used in the corresponding selftest (alsa/pcmtest-test.sh) to check the PCM middle 29 ------------- 33 * fill_mode (bool) - Buffer fill mode (see below) 40 Capture Data Generation 41 ----------------------- 43 The driver has two modes of data generation: the first (0 in the fill_mode parameter) 44 means random data generation, the second (1 in the fill_mode) - pattern-based [all …]
|
/linux/arch/nios2/mm/ |
H A D | mmu_context.c | 22 #define PID_MASK ((1UL << PID_BITS) - 1) 25 #define VERSION_BITS (32 - PID_BITS) 27 #define VERSION_MASK ((1UL << VERSION_BITS) - 1) 35 /* Value of the first context (version 1, pid 0) */ 72 /* If the version wraps we start over with the first generation, we do in get_new_context() 88 * generation then we have it should get a new generation/pid */ in switch_mm() 89 if (unlikely(CTX_VERSION(next->context) != in switch_mm() 91 next->context = get_new_context(); in switch_mm() 94 pgd_current = next->pgd; in switch_mm() 97 set_context(next->context); in switch_mm() [all …]
|
/linux/drivers/firewire/ |
H A D | core-device.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2005-2006 Kristian Hoegsberg <krh@bitplanet.net> 14 #include <linux/firewire-constants.h> 37 ci->p = p + 1; in fw_csr_iterator_init() 38 ci->end = ci->p + (p[0] >> 16); in fw_csr_iterator_init() 44 *key = *ci->p >> 24; in fw_csr_iterator_next() 45 *value = *ci->p & 0xffffff; in fw_csr_iterator_next() 47 return ci->p++ < ci->end; in fw_csr_iterator_next() 61 return ci.p - 1 + value; in search_directory() 76 return ci.p - 1 + value; in search_leaf() [all …]
|
/linux/include/linux/ |
H A D | mmzone.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 #include <linux/pageblock-flags.h> 20 #include <linux/page-flags-layout.h> 23 #include <linux/page-flags.h> 28 /* Free memory management - zoned buddy allocator. */ 80 get_pfnblock_flags_mask(&folio->page, pfn, MIGRATETYPE_MASK)) 109 #define MIGRATETYPE_MASK ((1UL << PB_migratetype_bits) - 1) 115 get_pfnblock_flags_mask(&folio->page, folio_pfn(folio), \ 139 /* First 128 byte cacheline (assuming 64 bit words) */ 200 NR_KERNEL_MISC_RECLAIMABLE, /* reclaimable non-slab kernel pages */ [all …]
|
/linux/include/dt-bindings/memory/ |
H A D | mt2701-larb-port.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 * Mediatek m4u generation 1 such as mt2701 has flat m4u port numbers, 12 * the first port's id for larb[N] would be the last port's id of larb[N - 1] 13 * plus one while larb[0]'s first port number is 0. The definition of 15 * But m4u generation 2 like mt8173 have different port number, it use fixed 16 * offset for each larb, the first port's id for larb[N] would be (N * 32).
|
/linux/sound/firewire/fireworks/ |
H A D | fireworks_transaction.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * fireworks_transaction.c - a part of driver for Fireworks based devices 5 * Copyright (c) 2013-2014 Takashi Sakamoto 14 * At first, 6 data exist. Following to the data, parameters for each command 22 * data[6-]: Parameters 81 t.seqnum = be32_to_cpu(((struct snd_efw_transaction *)cmd)->seqnum) + 1; in snd_efw_transaction_run() 104 dev_err(&t.unit->device, "EFW transaction timed out\n"); in snd_efw_transaction_run() 105 ret = -EIO; in snd_efw_transaction_run() 124 length = min_t(size_t, be32_to_cpu(t->length) * sizeof(u32), length); in copy_resp_to_buf() 126 spin_lock(&efw->lock); in copy_resp_to_buf() [all …]
|
/linux/net/batman-adv/ |
H A D | hash.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 31 * Return: an index based on the key in the data of the first argument and the 38 * struct batadv_hashtable - Wrapper of simple hlist based hashtable 50 /** @generation: current (generation) sequence number */ 51 atomic_t generation; member 65 * batadv_hash_add() - adds data to the hashtable 73 * and -1 on error. 82 int ret = -1; in batadv_hash_add() 90 index = choose(data, hash->size); in batadv_hash_add() 91 head = &hash->table[index]; in batadv_hash_add() [all …]
|
/linux/lib/vdso/ |
H A D | getrandom.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2022-2024 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 18 #define PAGE_MASK (~(PAGE_SIZE - 1)) 26 len -= sizeof(type); \ 42 * __cvdso_getrandom_data - Generic vDSO implementation of getrandom() syscall. 81 params->size_of_opaque_state = sizeof(*state); in __cvdso_getrandom_data() 82 params->mmap_prot = PROT_READ | PROT_WRITE; in __cvdso_getrandom_data() 83 params->mmap_flags = MAP_DROPPABLE | MAP_ANONYMOUS; in __cvdso_getrandom_data() 84 for (size_t i = 0; i < ARRAY_SIZE(params->reserved); ++i) in __cvdso_getrandom_data() 85 params->reserved[i] = 0; in __cvdso_getrandom_data() [all …]
|
/linux/Documentation/admin-guide/media/ |
H A D | technisat.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 ----------------------------- 17 First start your linux box with a shipped kernel: 19 .. code-block:: none 21 lspci -vvv for a PCI device (lsusb -vvv for an USB device) will show you for example: 29 ------------------- 37 (except ``Simple tuner support`` for ATSC 3rd generation only -> see case 9 please). 41 - Main module part: 50 - Frontend / Tuner / Demodulator module part: 55 - SkyStar DVB-S Revision 2.3: [all …]
|
/linux/Documentation/devicetree/bindings/nvmem/ |
H A D | brcm,ocotp.txt | 4 - compatible: "brcm,ocotp" for the first generation Broadcom OTPC which is used 5 in Cygnus and supports 32 bit read/write. Use "brcm,ocotp-v2" for the second 6 generation Broadcom OTPC which is used in SoC's such as Stingray and supports 7 64-bit read/write. 8 - reg: Base address of the OTP controller. 9 - brcm,ocotp-size: Amount of memory available, in 32 bit words 16 brcm,ocotp-size = <2048>;
|
/linux/sound/firewire/tascam/ |
H A D | tascam-transaction.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * tascam-transaction.c - a part of driver for TASCAM FireWire series 57 return -EINVAL; in calculate_message_bytes() 67 /* The first byte is used for label, the rest for MIDI bytes. */ in fill_message() 68 label = port->buf; in fill_message() 69 msg = port->buf + 1; in fill_message() 76 if (port->on_sysex) { in fill_message() 80 port->on_sysex = false; in fill_message() 86 if (!port->on_sysex) { in fill_message() 88 *label = (substream->number << 4) | 0x07; in fill_message() [all …]
|
/linux/drivers/md/dm-vdo/ |
H A D | block-map.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 13 #include "admin-state.h" 16 #include "int-map.h" 20 #include "wait-queue.h" 29 * radix trees assigned to that zone. The concurrency guarantees of this single-threaded model 30 * allow the code to omit more fine-grained locking for the block map structures. 42 * Generation counter for page references. 56 /* Whether the VDO is doing a read-only rebuild */ 69 /* free page list (oldest first) */ 113 /* this page is valid and un-modified */ [all …]
|
/linux/drivers/media/pci/tw686x/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 Support for Intersil/Techwell TW686x-based frame grabber cards. 13 - TW6864 (4 video channels), 14 - TW6865 (4 video channels, not tested, second generation chip), 15 - TW6868 (8 video channels but only 4 first channels using 16 built-in video decoder are supported, not tested), 17 - TW6869 (8 video channels, second generation chip).
|
/linux/arch/arc/include/asm/ |
H A D | mmu_context.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 6 * -Refactored get_new_mmu_context( ) to only handle live-mm. 7 * retiring-mm handled in other hooks 10 * -Major rewrite of Core ASID allocation routine get_new_mmu_context 21 #include <asm-generic/mm_hooks.h> 25 * MMU tags TLBs with an 8-bit ASID, avoiding need to flush the TLB on 26 * context-switch. 32 * Each task is assigned unique ASID, with a simple round-robin allocator 33 * tracked in @asid_cpu. When 8-bit value rolls over,a new cycle is started [all …]
|
/linux/drivers/infiniband/hw/qib/ |
H A D | qib_tx.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 53 * qib_disarm_piobufs - cancel a range of PIO buffers 55 * @first: the first PIO buffer to cancel 61 void qib_disarm_piobufs(struct qib_devdata *dd, unsigned first, unsigned cnt) in qib_disarm_piobufs() argument 67 last = first + cnt; in qib_disarm_piobufs() 68 spin_lock_irqsave(&dd->pioavail_lock, flags); in qib_disarm_piobufs() 69 for (i = first; i < last; i++) { in qib_disarm_piobufs() 70 __clear_bit(i, dd->pio_need_disarm); in qib_disarm_piobufs() 71 dd->f_sendctrl(dd->pport, QIB_SENDCTRL_DISARM_BUF(i)); in qib_disarm_piobufs() [all …]
|
/linux/drivers/platform/x86/intel/ifs/ |
H A D | runtest.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * execute together, but only the first thread on the 71 "Exceeded number of Logical Processors (LP) allowed to run Scan-At-Field concurrently", 88 cpumask_pr_args(cpu_smt_mask(cpu)), ifsd->cur_batch, ifsd->loaded_version); in message_not_tested() 122 cpumask_pr_args(cpu_smt_mask(cpu)), ifsd->cur_batch, ifsd->loaded_version); in message_fail() 172 timeout -= SPINUNIT; in wait_for_sibling_cpu() 187 int first; in doscan() local 189 ifsd = params->ifsd; in doscan() 191 if (ifsd->generation) { in doscan() 192 start = params->activate->gen2.start; in doscan() [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | tid_rdma.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 3 * Copyright(c) 2018 - 2020 Intel Corporation. 18 * This is an end-to-end protocol at the hfi1 level between two nodes that 24 * -- The total data length should be greater than 256K; 25 * -- The total data length should be a multiple of 4K page size; 26 * -- Each local scatter-gather entry should be 4K page aligned; 27 * -- Each local scatter-gather entry should be a multiple of 4K page size; 37 /* Maximum number of packets within a flow generation. */ 47 /* Reserved generation value to set to unused flows for kernel contexts */ 56 #define HFI1_KERNEL_MAX_JKEY (2 * HFI1_ADMIN_JKEY_RANGE - 1) [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-driver-hid-wiimote | 24 Starting with kernel-version 3.11 Motion Plus hotplugging is 26 extension. You will get uevent notifications for the motion-plus 40 Other strings for each device-type are available and may be 41 added if new device-specific detections are added. 45 gen10: First Wii Remote generation 46 gen20: Second Wii Remote Plus generation 59 First, 0kg values for all 4 sensors are written, followed by the 64 values but may be used by user-space to perform other 72 pro-controller. It provides a single line with 4 calibration 74 is prefixed with a +/-. Each value is a signed 16bit number. [all …]
|