/linux/arch/s390/boot/ |
H A D | vmem.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <asm/page-states.h> 65 static bool is_kasan_populate_mode(enum populate_mode mode) in is_kasan_populate_mode() argument 68 return mode >= POPULATE_KASAN_MAP_SHADOW; in is_kasan_populate_mode() 74 static void pgtable_populate(unsigned long addr, unsigned long end, enum populate_mode mode); 87 static inline void kasan_populate(unsigned long start, unsigned long end, enum populate_mode mode) in kasan_populate() argument 92 boot_debug("%-17s 0x%016lx-0x%016lx >> 0x%016lx-0x%016lx\n", get_populate_mode_name(mode), in kasan_populate() 94 pgtable_populate(sha_start, sha_end, mode); in kasan_populate() 139 unsigned long end, enum populate_mode mode) in kasan_pgd_populate_zero_shadow() argument 141 if (mode == POPULATE_KASAN_ZERO_SHADOW && in kasan_pgd_populate_zero_shadow() [all …]
|
/linux/lib/zlib_inflate/ |
H A D | inflate.c | 1 /* inflate.c -- zlib decompression 2 * Copyright (C) 1995-2005 Mark Adler 18 /* architecture-specific bits */ 37 if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; in zlib_inflateReset() 38 state = (struct inflate_state *)strm->state; in zlib_inflateReset() 39 strm->total_in = strm->total_out = state->total = 0; in zlib_inflateReset() 40 strm->msg = NULL; in zlib_inflateReset() 41 strm->adler = 1; /* to support ill-conceived Java test suite */ in zlib_inflateReset() 42 state->mode = HEAD; in zlib_inflateReset() 43 state->last = 0; in zlib_inflateReset() [all …]
|
/linux/fs/proc/ |
H A D | generic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * proc/fs/generic.c --- generic routines for the proc-fs 5 * This file contains generic proc-fs routines for handling 39 if (S_ISLNK(pde->mode)) in pde_free() 40 kfree(pde->data); in pde_free() 41 if (pde->name != pde->inline_name) in pde_free() 42 kfree(pde->name); in pde_free() 48 if (len < de->namelen) in proc_match() 49 return -1; in proc_match() 50 if (len > de->namelen) in proc_match() [all …]
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_chain.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 4 #include <linux/dma-mapping.h> 16 chain->elem_size = params->elem_size; in qed_chain_init() 17 chain->intended_use = params->intended_use; in qed_chain_init() 18 chain->mode = params->mode; in qed_chain_init() 19 chain->cnt_type = params->cnt_type; in qed_chain_init() 21 chain->elem_per_page = ELEMS_PER_PAGE(params->elem_size, in qed_chain_init() 22 params->page_size); in qed_chain_init() 23 chain->usable_per_page = USABLE_ELEMS_PER_PAGE(params->elem_size, in qed_chain_init() 24 params->page_size, in qed_chain_init() [all …]
|
/linux/kernel/time/ |
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) 118 return likely(base->online); in hrtimer_base_is_online() [all …]
|
H A D | tick-common.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright(C) 2005-2006, Thomas Gleixner <tglx@linutronix.de> 7 * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar 8 * Copyright(C) 2006-2007, Timesys Corp., Thomas Gleixner 24 #include "tick-internal.h" 31 * Tick next event: keeps track of the tick time. It's updated by the 47 * TICK_DO_TIMER_NONE, i.e. a non existing CPU. So the next cpu which looks 58 static int tick_do_timer_boot_cpu __read_mostly = -1; 70 * tick_is_oneshot_available - check for a oneshot capable event device 76 if (!dev || !(dev->features & CLOCK_EVT_FEAT_ONESHOT)) in tick_is_oneshot_available() [all …]
|
H A D | tick-sched.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 enum tick_device_mode mode; member 17 /* The CPU is in the tick idle mode */ 22 * Indicator that the CPU is actively in the tick idle mode; 30 /* High resolution tick mode */ 34 * struct tick_sched - sched tick emulation and no idle tick control/stats 41 * resolution mode 46 * @next_tick: Next tick to be fired when in dynticks mode. 51 * @last_jiffies: Base jiffies snapshot when next event was last computed 54 * @next_timer: Expiry time of next expiring timer for debugging purpose only [all …]
|
H A D | tick-broadcast.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This file contains functions which emulate a local clock-event 6 * Copyright(C) 2005-2006, Thomas Gleixner <tglx@linutronix.de> 7 * Copyright(C) 2005-2007, Red Hat, Inc., Ingo Molnar 8 * Copyright(C) 2006-2007, Timesys Corp., Thomas Gleixner 20 #include "tick-internal.h" 75 * Start the device in periodic mode 89 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) || in tick_check_broadcast_device() 90 (newdev->features & CLOCK_EVT_FEAT_PERCPU) || in tick_check_broadcast_device() 91 (newdev->features & CLOCK_EVT_FEAT_C3STOP)) in tick_check_broadcast_device() [all …]
|
/linux/drivers/media/common/siano/ |
H A D | smscoreapi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Copyright (c), 2005-2008 Siano Mobile Silicon, Inc. 18 #include <linux/dma-mapping.h> 27 #include "sms-cards.h" 51 [MSG_TYPE_BASE_VAL - MSG_TYPE_BASE_VAL] = "MSG_TYPE_BASE_VAL", 52 [MSG_SMS_GET_VERSION_REQ - MSG_TYPE_BASE_VAL] = "MSG_SMS_GET_VERSION_REQ", 53 [MSG_SMS_GET_VERSION_RES - MSG_TYPE_BASE_VAL] = "MSG_SMS_GET_VERSION_RES", 54 [MSG_SMS_MULTI_BRIDGE_CFG - MSG_TYPE_BASE_VAL] = "MSG_SMS_MULTI_BRIDGE_CFG", 55 [MSG_SMS_GPIO_CONFIG_REQ - MSG_TYPE_BASE_VAL] = "MSG_SMS_GPIO_CONFIG_REQ", 56 [MSG_SMS_GPIO_CONFIG_RES - MSG_TYPE_BASE_VAL] = "MSG_SMS_GPIO_CONFIG_RES", [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
H A D | ramgk104.c | 99 struct ramfuc_reg r_mr[16]; /* MR0 - MR8, MR15 */ 132 int mode; member 149 for (i = 0; (data & 0x80000000) && i < ram->parts; addr += 0x1000, i++) { in gk104_ram_train() 150 if (ram->pmask & (1 << i)) in gk104_ram_train() 160 const u32 mcoef = ((--ram->P2 << 28) | (ram->N2 << 8) | ram->M2); in r1373f4_init() 161 const u32 rcoef = (( ram->P1 << 16) | (ram->N1 << 8) | ram->M1); in r1373f4_init() 162 const u32 runk0 = ram->fN1 << 16; in r1373f4_init() 163 const u32 runk1 = ram->fN1; in r1373f4_init() 165 if (ram->from == 2) { in r1373f4_init() 191 if (ram->mode == 2) { in r1373f4_init() [all …]
|
/linux/drivers/net/ethernet/amd/ |
H A D | ariadne.h | 4 * © Copyright 1995 by Geert Uytterhoeven (geert@linux-m68k.org) 8 * ---------------------------------------------------------------------------------- 13 * Written 1993-94 by Donald Becker. 15 * Am79C960: PCnet(tm)-ISA Single-Chip Ethernet Controller 22 * ---------------------------------------------------------------------------------- 28 * ---------------------------------------------------------------------------------- 30 * The Ariadne is a Zorro-II board made by Village Tronic. It contains: 32 * - an Am79C960 PCnet-ISA Single-Chip Ethernet Controller with both 33 * 10BASE-2 (thin coax) and 10BASE-T (UTP) connectors 35 * - an MC68230 Parallel Interface/Timer configured as 2 parallel ports [all …]
|
/linux/sound/soc/fsl/ |
H A D | fsl_dma.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * mpc8610-pcm.h - ALSA PCM interface for the Freescale MPC8610 SoC 12 __be32 mr; /* Mode register */ 21 __be32 enlndar; /* Next link descriptor extended address reg */ 22 __be32 nlndar; /* Next link descriptor address register */ 26 __be32 enlsdar; /* Next list descriptor extended address reg */ 27 __be32 nlsdar; /* Next list descriptor address register */ 74 /* ECLNDAR takes bits 32-36 of the CLNDAR register */ 96 * List Descriptor for extended chaining mode DMA operations. 98 * The CLSDAR register points to the first (in a linked-list) List [all …]
|
/linux/include/linux/qed/ |
H A D | qed_chain.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 19 /* Each Page contains a next pointer at its end */ 22 /* Chain is a single page (next ptr) is not required */ 36 /* The chain's size/prod/cons are kept in 16-bit variables */ 39 /* The chain's size/prod/cons are kept in 32-bit variables */ 59 /* Cyclic index of next element to produce/consume */ 65 /* Cyclic index of next element to produce/consume */ 76 /* Fastpath portion of the chain - required for commands such [all …]
|
/linux/drivers/atm/ |
H A D | idt77105.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* drivers/atm/idt77105.c - IDT77105 (PHY) driver */ 36 struct atm_dev *dev; /* device back-pointer */ 37 struct idt77105_priv *next; member 44 #define PRIV(dev) ((struct idt77105_priv *) dev->phy_data) 46 #define PUT(val,reg) dev->ops->phy_put(dev,val,IDT77105_##reg) 47 #define GET(reg) dev->ops->phy_get(dev,IDT77105_##reg) 91 for (walk = idt77105_all; walk; walk = walk->next) { in idt77105_stats_timer_func() 92 dev = walk->dev; in idt77105_stats_timer_func() 94 stats = &walk->stats; in idt77105_stats_timer_func() [all …]
|
/linux/drivers/net/fddi/skfp/h/ |
H A D | fplustm.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 12 * AMD Fplus in tag mode data structs 52 __le32 txd_ntdadr ; /* physical pointer to the next TxD */ 57 /* virt pointer to the next TxD */ 59 struct s_txd_os txd_os ; /* OS - specific struct */ 69 __le32 rxd_nrdadr ; /* physical pointer to the next RxD */ 74 /* virt pointer to the next RxD */ 76 struct s_rxd_os rxd_os ; /* OS - specific struct */ 91 struct s_smt_fp_txd volatile *tx_curr_put ; /* next free TxD */ 93 struct s_smt_fp_txd volatile *tx_curr_get ; /* next TxD to release*/ [all …]
|
/linux/init/ |
H A D | initramfs.c | 1 // SPDX-License-Identifier: GPL-2.0 35 /* sys_write only can write MAX_RW_COUNT aka 2G-4K bytes at most */ in xwrite() 40 if (rv == -EINTR || rv == -EAGAIN) in xwrite() 55 count -= rv; in xwrite() 77 umode_t mode; member 78 struct hash *next; member 91 umode_t mode, char *name) in find_link() argument 94 for (p = head + hash(major, minor, ino); *p; p = &(*p)->next) { in find_link() 95 if ((*p)->ino != ino) in find_link() 97 if ((*p)->minor != minor) in find_link() [all …]
|
/linux/Documentation/timers/ |
H A D | highres.rst | 8 https://www.kernel.org/doc/ols/2006/ols2006v1-pages-333-346.pdf 11 http://www.cs.columbia.edu/~nahum/w6998/papers/ols2006-hrtimers-slides.pdf 23 - hrtimer base infrastructure 24 - timeofday and clock source management 25 - clock event management 26 - high resolution timer functionality 27 - dynamic ticks 31 --------------------------- 40 - time ordered enqueueing into a rb-tree 41 - independent of ticks (the processing is based on nanoseconds) [all …]
|
/linux/drivers/rtc/ |
H A D | interface.c | 1 // SPDX-License-Identifier: GPL-2.0 27 if (!rtc->offset_secs) in rtc_add_offset() 38 if ((rtc->start_secs > rtc->range_min && secs >= rtc->start_secs) || in rtc_add_offset() 39 (rtc->start_secs < rtc->range_min && in rtc_add_offset() 40 secs <= (rtc->start_secs + rtc->range_max - rtc->range_min))) in rtc_add_offset() 43 rtc_time64_to_tm(secs + rtc->offset_secs, tm); in rtc_add_offset() 50 if (!rtc->offset_secs) in rtc_subtract_offset() 61 if (secs >= rtc->range_min && secs <= rtc->range_max) in rtc_subtract_offset() 64 rtc_time64_to_tm(secs - rtc->offset_secs, tm); in rtc_subtract_offset() 69 if (rtc->range_min != rtc->range_max) { in rtc_valid_range() [all …]
|
/linux/drivers/base/ |
H A D | devtmpfs.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * devtmpfs - kernel-maintained tmpfs-based /dev 8 * devtmpfs, a tmpfs-based filesystem is created. Every driver-core 12 * owned by root and have a default mode of 0600. Subsystems can 47 struct req *next; member 51 umode_t mode; /* 0 => delete */ member 79 struct super_block *sb = mnt->mnt_sb; in devtmpfs_get_tree() 81 atomic_inc(&sb->s_active); in devtmpfs_get_tree() 82 down_write(&sb->s_umount); in devtmpfs_get_tree() 83 fc->root = dget(sb->s_root); in devtmpfs_get_tree() [all …]
|
/linux/Documentation/scsi/ |
H A D | st.rst | 1 .. SPDX-License-Identifier: GPL-2.0 23 flexible method and applicable to single-user workstations. However, 24 in a multiuser environment the next user finds the tape parameters in 32 drive performs auto-detection of the tape format well (like some 33 QIC-drives). The result is that any tape can be read, writing can be 37 does not perform auto-detection well enough and there is a single 38 "sensible" mode for the device. An example is a DAT drive that is 39 used only in variable block mode (I don't know if this is sensible 40 or not :-). 48 ST_NBR_MODE_BITS in st.h. Mode 0 corresponds to the defaults discussed [all …]
|
/linux/Documentation/trace/ |
H A D | fprobetrace.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Fprobe-based Event Tracing 10 -------- 18 tracepoint argument, or the tracepoint without trace-event, which is 24 Synopsis of fprobe-events 25 ------------------------- 47 @SYM[+|-offs] : Fetch memory at SYM +|- offs (SYM should be a data symbol) 53 +|-[u]OFFS(FETCHARG) : Fetch memory at FETCHARG +|- OFFS address.(\*4)(\*5) 69 (\*5) "u" means user-space dereference. 74 -------------------------- [all …]
|
/linux/arch/x86/mm/ |
H A D | kasan_init_64.c | 1 // SPDX-License-Identifier: GPL-2.0 46 ((end - addr) == PMD_SIZE) && in kasan_populate_pmd() 76 unsigned long next; in kasan_populate_pud() local 82 ((end - addr) == PUD_SIZE) && in kasan_populate_pud() 96 next = pmd_addr_end(addr, end); in kasan_populate_pud() 98 kasan_populate_pmd(pmd, addr, next, nid); in kasan_populate_pud() 99 } while (pmd++, addr = next, addr != end); in kasan_populate_pud() 106 unsigned long next; in kasan_populate_p4d() local 116 next = pud_addr_end(addr, end); in kasan_populate_p4d() 118 kasan_populate_pud(pud, addr, next, nid); in kasan_populate_p4d() [all …]
|
H A D | tlb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include <asm/nospec-branch.h> 39 * TLB flushing, formerly SMP-only 70 * Instead we have a small per-cpu array of ASIDs and cache the last few mm's 77 * ASID - [0, TLB_NR_DYN_ASIDS-1] 79 * [TLB_NR_DYN_ASIDS, MAX_ASID_AVAILABLE-1] 82 * kPCID - [1, MAX_ASID_AVAILABLE] 86 * uPCID - [2048 + 1, 2048 + MAX_ASID_AVAILABLE] 103 #define CR3_AVAIL_PCID_BITS (X86_CR3_PCID_BITS - PTI_CONSUMED_PCID_BITS) 106 * ASIDs are zero-based: 0->MAX_AVAIL_ASID are valid. -1 below to account [all …]
|
/linux/sound/synth/emux/ |
H A D | soundfont.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Copyright (c) 1999-2000 Takashi Iwai <tiwai@suse.de> 69 scoped_guard(spinlock_irqsave, &sflist->lock) { in lock_preset() 70 if (sflist->open_client != client) in lock_preset() 94 dev_err(card->dev, "patch record too small %ld\n", count); 95 return -EINVA 485 struct snd_sf_zone *prev, *next, *p; remove_info() local [all...] |
/linux/Documentation/hwmon/ |
H A D | mp2975.rst | 1 .. SPDX-License-Identifier: GPL-2.0 17 ----------- 20 vendor dual-loop, digital, multi-phase controller MP2975. 24 - Supports up to two power rail. 25 - Provides 8 pulse-width modulations (PWMs), and can be configured up 26 to 8-phase operation for rail 1 and up to 4-phase operation for rail 28 - Supports two pages 0 and 1 for telemetry and also pages 2 and 3 for 30 - Can configured VOUT readout in direct or VID format and allows 32 protocols are available: VR13 mode with 5-mV DAC; VR13 mode with 33 10-mV DAC, IMVP9 mode with 5-mV DAC. [all …]
|