/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/u-boot/fs/btrfs/ |
H A D | conv-funcs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 12 #include <u-boot/variadic-macro.h> 17 We want to define macro DEFINE_CONV(x, ...), where the first argument is the 55 first we declare the functions taking pointers to this types (these function 57 correspond functions taking non-pointers, so that they can be used in the 78 (d->x) = _Generic((d->x), \ 88 )((d->x)); 91 (d->x) = _Generic((d->x), \ 101 )((d->x)); 123 sector_size, type, generation, start_offset, dev_group) [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | pcie.hpp | 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3 // SPDX-FileCopyrightText: Copyright 2018 Intel Corporation 23 #include <asm-generic/errno.h> 79 messages::internalError(asyncResp->res); in handlePCIeDevicePath() 82 callback(pcieDevicePath, object.begin()->first); in handlePCIeDevicePath() 88 messages::resourceNotFound(asyncResp->res, "PCIeDevice", pcieDeviceId); in handlePCIeDevicePath() 105 BMCWEB_LOG_ERROR("D-Bus response error on GetSubTree {}", ec); in getValidPCIeDevicePath() 106 messages::internalError(asyncResp->res); in getValidPCIeDevicePath() 127 messages::resourceNotFound(asyncResp->res, "ComputerSystem", in handlePCIeDeviceCollectionGet() [all …]
|
H A D | pcie_slots.hpp | 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 18 #include <asm-generic/errno.h> 47 messages::internalError(asyncResp->res); in onPcieSlotGetAllDone() 51 nlohmann::json& slots = asyncResp->res.jsonValue["Slots"]; in onPcieSlotGetAllDone() 58 messages::internalError(asyncResp->res); in onPcieSlotGetAllDone() 64 const std::string* generation = nullptr; in onPcieSlotGetAllDone() local 70 dbus_utils::UnpackErrorPrinter(), propertiesList, "Generation", in onPcieSlotGetAllDone() 71 generation, "Lanes", lanes, "SlotType", slotType, "HotPluggable", in onPcieSlotGetAllDone() 76 messages::internalError(asyncResp->res); in onPcieSlotGetAllDone() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pci/ |
H A D | brcm,iproc-pcie.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/brcm,iproc-pcie.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ray Jui <ray.jui@broadcom.com> 11 - Scott Branden <scott.branden@broadcom.com> 14 - $ref: /schemas/pci/pci-bus.yaml# 19 - enum: 20 # for the first generation of PAXB based controller, used in SoCs 22 - brcm,iproc-pcie [all …]
|
/openbmc/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 …]
|
/openbmc/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).
|
/openbmc/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>;
|
/openbmc/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).
|
/openbmc/linux/fs/btrfs/ |
H A D | extent_map.c | 1 // SPDX-License-Identifier: GPL-2.0 22 return -ENOMEM; in extent_map_init() 37 tree->map = RB_ROOT_CACHED; in extent_map_tree_init() 38 INIT_LIST_HEAD(&tree->modified_extents); in extent_map_tree_init() 39 rwlock_init(&tree->lock); in extent_map_tree_init() 52 RB_CLEAR_NODE(&em->rb_node); in alloc_extent_map() 53 em->compress_type = BTRFS_COMPRESS_NONE; in alloc_extent_map() 54 refcount_set(&em->refs, 1); in alloc_extent_map() 55 INIT_LIST_HEAD(&em->list); in alloc_extent_map() 67 if (refcount_dec_and_test(&em->refs)) { in free_extent_map() [all …]
|
/openbmc/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> 36 ci->p = p + 1; in fw_csr_iterator_init() 37 ci->end = ci->p + (p[0] >> 16); in fw_csr_iterator_init() 43 *key = *ci->p >> 24; in fw_csr_iterator_next() 44 *value = *ci->p & 0xffffff; in fw_csr_iterator_next() 46 return ci->p++ < ci->end; in fw_csr_iterator_next() 59 return ci.p - 1 + value; in search_leaf() 73 return -EINVAL; in textual_leaf_to_string() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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> 27 /* Free memory management - zoned buddy allocator. */ 105 #define MIGRATETYPE_MASK ((1UL << PB_migratetype_bits) - 1) 111 get_pfnblock_flags_mask(&folio->page, folio_pfn(folio), \ 135 /* First 128 byte cacheline (assuming 64 bit words) */ 196 NR_KERNEL_MISC_RECLAIMABLE, /* reclaimable non-slab kernel pages */ 240 * Global and per-node slab counters track slab pages. in vmstat_item_in_bytes() [all …]
|
/openbmc/qemu/scripts/performance/ |
H A D | dissect.py | 7 # dissect.py [-h] -- <qemu executable> [<qemu executable options>] \ 10 # [-h] - Print the script arguments help message. 13 # dissect.py -- qemu-arm coulomb_double-arm 42 Search for the first instance of the JIT call in 43 the callgrind_annotate output when ran using --tree=caller 52 line = -1 55 callgrind_data[i].split()[-1] == "[???]": 58 if line == -1: 66 usage='dissect.py [-h] -- ' 92 "--tool=callgrind", [all …]
|
/openbmc/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 …]
|
/openbmc/qemu/docs/specs/ |
H A D | vmgenid.rst | 1 Virtual Machine Generation ID Device 9 See the COPYING file in the top-level directory. 11 The VM generation ID (``vmgenid``) device is an emulated device which 12 exposes a 128-bit, cryptographically random, integer value identifier, 20 re-initializing its random number generator etc. 24 ------------ 27 generation ID support in a virtualization platform" section of 28 `the Microsoft Virtual Machine Generation ID specification 31 - **R1a** The generation ID shall live in an 8-byte aligned buffer. 33 - **R1b** The buffer holding the generation ID shall be in guest RAM, [all …]
|
/openbmc/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 …]
|
/openbmc/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 56 "Exceeded number of Logical Processors (LP) allowed to run Scan-At-Field concurrently", 90 cpumask_pr_args(cpu_smt_mask(cpu)), ifsd->cur_batch, ifsd->loaded_version); in message_fail() 102 cpumask_pr_args(cpu_smt_mask(cpu)), ifsd->cur_batch, ifsd->loaded_version); in message_fail() 139 int first; in doscan() local 141 /* Only the first logical CPU on a core reports result */ in doscan() 142 first = cpumask_first(cpu_smt_mask(cpu)); in doscan() 154 if (cpu == first) { in doscan() 185 to_stop = ifsd->valid_chunks - 1; in ifs_test_core() [all …]
|