Home
last modified time | relevance | path

Searched +full:signal +full:- +full:guard (Results 1 – 25 of 199) sorted by relevance

12345678

/linux/rust/kernel/sync/
H A Dcondvar.rs1 // SPDX-License-Identifier: GPL-2.0
8 use super::{lock::Backend, lock::Guard, LockClassKey};
21 /// Creates a [`CondVar`] initialiser with the given name and a newly-created lock class.
35 /// [`CondVar::notify_all`]) or because the thread received a signal. It may also wake up
59 /// let mut guard = e.value.lock();
60 /// while *guard != v {
61 /// e.value_changed.wait(&mut guard);
72 /// fn new_example() -> Result<Pin<KBox<Example>>> {
74 /// value <- new_mutex!(0),
75 /// value_changed <- new_condvar!(),
[all …]
/linux/Documentation/devicetree/bindings/input/
H A Dmicrochip,cap11xx.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 The Microchip CAP1xxx Family of RightTouchTM multiple-channel capacitive
14 - Rob Herring <robh@kernel.org>
19 - microchip,cap1106
20 - microchip,cap1126
21 - microchip,cap1188
22 - microchip,cap1203
23 - microchip,cap1206
[all …]
/linux/tools/testing/selftests/mm/
H A Dguard-regions.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <asm-generic/mman.h> /* Force the import of the tools version. */
13 #include <signal.h>
30 * "If the signal occurs other than as the result of calling the abort or raise
31 * function, the behavior is undefined if the signal handler refers to any
76 switch (variant->backing) { in is_anon_backed()
93 switch (variant->backing) { in mmap_()
96 fd = -1; in mmap_()
101 fd = self->fd; in mmap_()
131 * Enable our signal catcher and try to read/write the specified buffer. The
[all …]
/linux/drivers/reset/
H A Dreset-aspeed.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include <linux/reset-controller.h>
14 #include <dt-bindings/reset/aspeed,ast2700-scu.h>
29 const struct ast2700_reset_signal *signal; member
35 spinlock_t lock; /* Protect read-modify-write cycle */
162 void __iomem *reg_offset = rc->base + rc->info->signal[id].offset; in aspeed_reset_assert()
164 if (rc->info->signal[id].dedicated_clr) { in aspeed_reset_assert()
165 writel(rc->info->signal[id].bit, reg_offset); in aspeed_reset_assert()
167 guard(spinlock_irqsave)(&rc->lock); in aspeed_reset_assert()
168 writel(readl(reg_offset) & ~rc->info->signal[id].bit, reg_offset); in aspeed_reset_assert()
[all …]
/linux/kernel/time/
H A Dposix-timers.c1 // SPDX-License-Identifier: GPL-2.0+
3 * 2002-10-15 Posix Clocks & timers
7 * 2004-06-01 Fix CLOCK_REALTIME clock/timer TIMER_ABSTIME bug.
20 #include <linux/posix-clock.h>
21 #include <linux/posix-timers.h>
31 #include "posix-timers.h"
35 * constructed from current::signal and the timer ID and the timer is
36 * matched against current::signal and the timer ID when walking the hash
73 __cond_lock(&__timr->it_lock, __timr = __lock_timer(tid)); \
80 spin_unlock_irq(&timr->it_lock); in unlock_timer()
[all …]
/linux/drivers/iio/resolver/
H A Dad2s1210.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2010-2010 Analog Devices Inc.
11 * ----------------------------|------|-------------------------------------------
23 * Resolution | D1:0 | *device tree: assigned-resolution-bits*
34 * ----------------------------------------|----|---------------------------------
153 /* adi,fixed-mode property - only valid when mode_gpios == NULL. */
178 struct gpio_descs *gpios = st->mode_gpios; in ad2s1210_set_mode()
182 return mode == st->fixed_mode ? 0 : -EOPNOTSUPP; in ad2s1210_set_mode()
202 .rx_buf = &st->rx[0], in ad2s1210_regmap_reg_write()
203 .tx_buf = &st->tx[0], in ad2s1210_regmap_reg_write()
[all …]
/linux/drivers/dpll/zl3073x/
H A Ddpll.c1 // SPDX-License-Identifier: GPL-2.0-only
28 * struct zl3073x_dpll_pin - DPLL pin
65 * zl3073x_dpll_is_input_pin - check if the pin is input one
73 return pin->dir == DPLL_PIN_DIRECTION_INPUT; in zl3073x_dpll_is_input_pin()
77 * zl3073x_dpll_is_p_pin - check if the pin is P-pin
80 * Return: true if the pin is P-pin, false if it is N-pin
85 return zl3073x_is_p_pin(pin->id); in zl3073x_dpll_is_p_pin()
96 *direction = pin->dir; in zl3073x_dpll_pin_direction_get()
102 * zl3073x_dpll_input_ref_frequency_get - get input reference frequency
115 struct zl3073x_dev *zldev = zldpll->dev; in zl3073x_dpll_input_ref_frequency_get()
[all …]
/linux/drivers/dma/
H A Dlpc32xx-dmamux.c1 // SPDX-License-Identifier: GPL-2.0-only
6 // Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com
23 int signal; member
41 .signal = 3,
42 .name_sel0 = "spi2-rx-tx",
43 .name_sel1 = "ssp1-rx",
48 .signal = 10,
49 .name_sel0 = "uart7-rx",
50 .name_sel1 = "i2s1-dma1",
55 .signal = 11,
[all …]
/linux/drivers/counter/
H A Dinterrupt-cnt.c1 // SPDX-License-Identifier: GPL-2.0
17 #define INTERRUPT_CNT_NAME "interrupt-cnt"
35 atomic_long_inc(&priv->count); in interrupt_cnt_isr()
47 guard(mutex)(&priv->lock); in interrupt_cnt_enable_read()
49 *enable = priv->enabled; in interrupt_cnt_enable_read()
59 guard(mutex)(&priv->lock); in interrupt_cnt_enable_write()
61 if (priv->enabled == enable) in interrupt_cnt_enable_write()
65 priv->enabled = true; in interrupt_cnt_enable_write()
66 enable_irq(priv->irq); in interrupt_cnt_enable_write()
68 disable_irq(priv->irq); in interrupt_cnt_enable_write()
[all …]
/linux/tools/testing/selftests/x86/
H A Dtest_shadow_stack.c1 // SPDX-License-Identifier: GPL-2.0
29 #include <signal.h>
35 #include <sys/signal.h>
148 ssp -= 8; in try_shstk()
161 try_shstk((unsigned long)shstk + SS_SIZE - 8); in test_shstk_pivot()
236 signal(SIGSEGV, SIG_DFL); in test_shstk_violation()
330 if (fd == -1) in test_gup()
338 printf("[INFO]\tGup read -> shstk access success\n"); in test_gup()
345 printf("[INFO]\tGup write -> shstk access success\n"); in test_gup()
352 printf("[INFO]\tGup read -> write access success\n"); in test_gup()
[all …]
/linux/arch/um/kernel/skas/
H A Dmmu.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
8 #include <linux/sched/signal.h>
15 #include <as-layout.h>
18 #include <stub-data.h>
28 struct mm_id *new_id = &mm->context.id; in init_new_context()
30 int ret = -ENOMEM; in init_new_context()
36 new_id->stack = stack; in init_new_context()
40 list_add(&mm->context.list, &mm_list); in init_new_context()
53 free_pages(new_id->stack, ilog2(STUB_DATA_PAGES)); in init_new_context()
[all …]
/linux/drivers/media/dvb-frontends/
H A Das102_fe_types.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Abilis Systems Single DVB-T Receiver
50 /* guard interval available values */
127 /* guard interval */
136 /* signal strength */
138 /* packet error rate 10^-4 */
140 /* bit error rate 10^-4 */
149 /* Number of wrong bytes fixed by Reed-Solomon */
H A Ddib3000mb_priv.h1 /* SPDX-License-Identifier: GPL-2.0-only */
17 { pr_err("while sending 0x%04x to 0x%04x.", val, reg); return -EREMOTEIO; }
113 /* Guard time */
159 * Dual Automatic-Gain-Control
160 * - gains RF in tuner (AGC1)
161 * - gains IF after filtering (AGC2)
214 * changes when, inversion, guard time and fft is
297 * data diversity when having more than one chip on-board
313 /* time frame for Bit-Error-Rate calculation */
320 /* 142 - 152 FIFO parameters
[all …]
/linux/Documentation/admin-guide/media/
H A Dvivid.rst1 .. SPDX-License-Identifier: GPL-2.0
13 Each input can be a webcam, TV capture device, S-Video capture device or an HDMI
14 capture device. Each output can be an S-Video output device or an HDMI output
23 - Support for read()/write(), MMAP, USERPTR and DMABUF streaming I/O.
24 - A large list of test patterns and variations thereof
25 - Working brightness, contrast, saturation and hue controls
26 - Support for the alpha color component
27 - Full colorspace support, including limited/full RGB range
28 - All possible control types are present
29 - Support for various pixel aspect ratios and video aspect ratios
[all …]
H A Ddvb_intro.rst1 .. SPDX-License-Identifier: GPL-2.0
12 structure of DVB-T cards are substantially similar to Analogue TV cards,
16 Television signal. An Analogue TV signal (otherwise known as composite
22 * Tune the receiver to receive a broadcast signal
23 * demodulate the broadcast signal
24 * demultiplex the analogue video signal and analogue audio
25 signal.
29 some countries employ a digital audio signal
30 embedded within the modulated composite analogue signal -
33 * digitize the analogue video signal and make the resulting datastream
[all …]
/linux/net/wireless/
H A Dwext-compat.c1 // SPDX-License-Identifier: GPL-2.0
3 * cfg80211 - wext compat code
9 * Copyright 2008-2009 Johannes Berg <johannes@sipsolutions.net>
10 * Copyright (C) 2019-2023 Intel Corporation
21 #include <net/cfg80211-wext.h>
22 #include "wext-compat.h"
24 #include "rdev-ops.h"
30 strcpy(wrqu->name, "IEEE 802.11"); in cfg80211_wext_giwname()
37 __u32 *mode = &wrqu->mode; in cfg80211_wext_siwmode()
38 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_wext_siwmode()
[all …]
/linux/include/uapi/linux/dvb/
H A Dfrontend.h1 /* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */
18 * enum fe_caps - Frontend capabilities
23 * @FE_CAN_INVERSION_AUTO: Can auto-detect frequency spectral
33 * @FE_CAN_FEC_AUTO: Can auto-detect FEC
35 * @FE_CAN_QAM_16: Supports 16-QAM modulation
36 * @FE_CAN_QAM_32: Supports 32-QAM modulation
37 * @FE_CAN_QAM_64: Supports 64-QAM modulation
38 * @FE_CAN_QAM_128: Supports 128-QAM modulation
39 * @FE_CAN_QAM_256: Supports 256-QAM modulation
40 * @FE_CAN_QAM_AUTO: Can auto-detect QAM modulation
[all …]
/linux/net/mac80211/
H A Dethtool.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copied from cfg.c - originally
6 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net>
8 * Copyright (C) 2018, 2022-2023 Intel Corporation
14 #include "driver-ops.h"
21 struct ieee80211_local *local = wiphy_priv(dev->ieee80211_ptr->wiph in ieee80211_set_ringparam()
[all...]
/linux/Documentation/arch/x86/
H A Dsgx.rst1 .. SPDX-License-Identifier: GPL-2.0
4 Software Guard eXtensions (SGX)
10 Software Guard eXtensions (SGX) hardware enables for user space applications
13 * Privileged (ring-0) ENCLS functions orchestrate the construction of the
15 * Unprivileged (ring-3) ENCLU functions allow an application to enter and
38 with an enclave. It is contained in a BIOS-reserved region of physical memory.
49 ------------------
67 ----------------------
76 remain read-only. EPCM permissions may only impose additional restrictions on
88 -----------------------
[all …]
/linux/drivers/irqchip/
H A Dirq-csky-apb-intc.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
40 * When controller support pulse signal, the PEN_reg will hold on signal
43 * So, to support pulse signal we need to clear IFR_reg and the address of
44 * IFR_offset is NEN_offset - 8.
50 unsigned long ifr = ct->regs.mask - 8; in irq_ck_mask_set_bit()
51 u32 mask = d->mask; in irq_ck_mask_set_bit()
53 guard(raw_spinlock)(&gc->lock); in irq_ck_mask_set_bit()
54 *ct->mask_cache |= mask; in irq_ck_mask_set_bit()
55 irq_reg_writel(gc, *ct->mask_cache, ct->regs.mask); in irq_ck_mask_set_bit()
[all …]
/linux/include/vdso/
H A Dgetrandom.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2022-2024 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
15 * struct vgetrandom_state - State used by vDSO getrandom().
25 * @generation: Snapshot of @rng_info->generation in the vDSO data page at
30 * @in_use: Reentrancy guard for reusing a state within the same thread
31 * due to signal handlers.
47 * __arch_chacha20_blocks_nostack - Generate ChaCha20 stream without using the stack.
49 * @key: 32-byte input key.
50 * @counter: 8-byte counter, read on input and updated on return.
60 * __vdso_getrandom - Architecture-specific vDSO implementation of getrandom() syscall.
/linux/sound/core/seq/
H A Dseq_fifo.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 #include <linux/sched/signal.h>
26 f->pool = snd_seq_pool_new(poolsize); in snd_seq_fifo_new()
27 if (f->pool == NULL) { in snd_seq_fifo_new()
31 if (snd_seq_pool_init(f->pool) < 0) { in snd_seq_fifo_new()
32 snd_seq_pool_delete(&f->poo in snd_seq_fifo_new()
[all...]
/linux/drivers/pps/generators/
H A Dpps_gen_tio.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Intel PPS signal Generator Driver
14 #include <linux/io-64-nonatomic-hi-lo.h>
39 #define MAGIC_CONST (NSEC_PER_SEC - SAFE_TIME_NS)
54 return readl(tio->base + offset); in pps_tio_read()
59 writel(value, tio->base + TIOCTL); in pps_ctl_write()
64 * higher 32-bit followed by lower 32-bit
68 hi_lo_writeq(value, tio->base + TIOCOMPV); in pps_compv_write()
85 tio->pps_gen->enabled = false; in pps_tio_disable()
86 tio->prev_count = 0; in pps_tio_disable()
[all …]
/linux/rust/kernel/
H A Ddevres.rs1 // SPDX-License-Identifier: GPL-2.0
66 /// unsafe fn new(paddr: usize) -> Result<Self>{
88 /// fn deref(&self) -> &Self::Target {
93 /// # fn no_run(dev: &Device<Bound>) -> Result<(), Error> {
106 /// `Self::inner` is guaranteed to be initialized and is always accessed read-only.
133 ) -> impl PinInit<Self, Error> + 'a in new()
142 inner <- Opaque::pin_init(try_pin_init!(Inner { in new()
143 devm <- Completion::new(), in new()
144 revoke <- Completion::new(), in new()
145 data <- Revocable::new(data), in new()
[all …]
/linux/sound/core/
H A Dhwdep.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 #include <linux/sched/signal.h>
37 if (hwdep->card == card && hwdep->device == device) in snd_hwdep_search()
44 struct snd_hwdep *hw = file->private_data; in snd_hwdep_llseek()
45 if (hw->ops.llseek) in snd_hwdep_llseek()
46 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek()
47 return -ENXIO; in snd_hwdep_llseek()
53 struct snd_hwdep *hw = file->private_data; in snd_hwdep_read()
54 if (hw->ops.read) in snd_hwdep_read()
55 return hw->ops.read(hw, buf, count, offset); in snd_hwdep_read()
[all …]

12345678