/linux/Documentation/leds/ |
H A D | ledtrig-transient.rst | 6 a one shot timer. The current support allows for setting two timers, one for 11 gets deactivated. There is no provision for one time activation to implement 15 Without one shot timer interface, user space can still use timer trigger to 20 Transient trigger addresses the need for one shot timer activation. The 56 non-transient state. When driver gets suspended, irrespective of the transient 71 - duration allows setting timer value in msecs. The initial value is 0. 72 - activate allows activating and deactivating the timer specified by 75 - state allows user to specify a transient state to be held for the specified 79 - one shot timer activate mechanism. 90 - one shot timer value. When activate is set, duration value [all …]
|
H A D | ledtrig-oneshot.rst | 2 One-shot LED Trigger 6 no clear trap points to put standard led-on and led-off settings. Using this 16 A one-shot LED only stays in a constant state when there are no events. An 26 Documentation/ABI/testing/sysfs-class-led-trigger-oneshot 28 Example use-case: network devices, initialization:: 36 echo 1 > invert # set led as normally-on, turn the led on 40 echo 1 > shot # led starts blinking, ignored if already blinking 44 echo 0 > invert # set led as normally-off, turn the led off
|
/linux/Documentation/devicetree/bindings/iio/light/ |
H A D | upisemi,us5182.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jonathan Cameron <jic23@kernel.org> 19 upisemi,glass-coef: 22 glass attenuation factor - compensation factor of resolution 1000 26 upisemi,dark-ths: 27 $ref: /schemas/types.yaml#/definitions/uint16-array 31 16-bit thresholds (adc counts) corresponding to every scale. 33 upisemi,upper-dark-gain: [all …]
|
/linux/include/crypto/ |
H A D | sha2.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Common values for SHA-2 algorithms 76 sctx->state[0] = SHA224_H0; in sha224_block_init() 77 sctx->state[1] = SHA224_H1; in sha224_block_init() 78 sctx->state[2] = SHA224_H2; in sha224_block_init() 79 sctx->state[3] = SHA224_H3; in sha224_block_init() 80 sctx->state[4] = SHA224_H4; in sha224_block_init() 81 sctx->state[5] = SHA224_H5; in sha224_block_init() 82 sctx->state[6] = SHA224_H6; in sha224_block_init() 83 sctx->state[7] = SHA224_H7; in sha224_block_init() [all …]
|
H A D | sha1.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Common values for SHA-1 algorithms 30 * An implementation of SHA-1's compression function. Don't use in new code! 31 * You shouldn't be using SHA-1, and even if you *have* to use SHA-1, this isn't 32 * the correct way to hash something with SHA-1 (use crypto_shash instead). 39 /* State for the SHA-1 compression function */ 45 * struct sha1_ctx - Context for hashing a message with SHA-1 57 * sha1_init() - Initialize a SHA-1 context for a new message 67 * sha1_update() - Update a SHA-1 context with message data 79 * sha1_final() - Finish computing a SHA-1 message digest [all …]
|
H A D | md5.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 37 * struct md5_ctx - Context for hashing a message with MD5 49 * md5_init() - Initialize an MD5 context for a new message 59 * md5_update() - Update an MD5 context with message data 71 * md5_final() - Finish computing an MD5 message digest 82 * md5() - Compute MD5 message digest in one shot 92 * struct hmac_md5_key - Prepared key for HMAC-MD5 102 * struct hmac_md5_ctx - Context for computing HMAC-MD5 of a message 112 * hmac_md5_preparekey() - Prepare a key for HMAC-MD5 114 * @raw_key: the raw HMAC-MD5 key [all …]
|
/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | ti,ina3221.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jean Delvare <jdelvare@suse.com> 11 - Guenter Roeck <linux@roeck-us.net> 20 ti,single-shot: 22 This chip has two power modes: single-shot (chip takes one measurement 25 hardware monitor type device, but the single-shot mode is more power- 26 friendly and useful for battery-powered device which cares power 29 If this property is present, the single-shot mode will be used, instead [all …]
|
/linux/arch/m68k/include/asm/ |
H A D | mac_psc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 * The first seven DMA channels appear to be "one-shot" and are actually 10 * sets of two channels; one member is active while the other is being 12 * The one-shot channels are grouped together and are: 23 * to be closely tied and share one set of registers. They also seem to run 25 * not understood as there seems to be only one input and one output buffer 30 * machine with easy-to-find patterns and looking for them in the DMA 34 * 1999-05-25 (jmt) 52 * One-shot DMA control registers 69 * You're supposed to use one channel while the other runs and [all …]
|
/linux/drivers/leds/trigger/ |
H A D | ledtrig-oneshot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * One-shot LED Trigger 7 * Based on ledtrig-timer.c by Richard Purdie <rpurdie@openedhand.com> 32 &led_cdev->blink_delay_on, &led_cdev->blink_delay_off, in led_shot() 33 oneshot_data->invert); in led_shot() 43 return sprintf(buf, "%u\n", oneshot_data->invert); in led_invert_show() 58 oneshot_data->invert = !!state; in led_invert_store() 60 if (oneshot_data->invert) in led_invert_store() 73 return sprintf(buf, "%lu\n", led_cdev->blink_delay_on); in led_delay_on_show() 87 led_cdev->blink_delay_on = state; in led_delay_on_store() [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 18 For more details read Documentation/leds/leds-class.rst. 23 tristate "LED One-shot Trigger" 25 This allows LEDs to blink in one-shot pulses with parameters 53 The flash frequency is a hyperbolic function of the 1-minute 105 This allows one time activation of a transient state on 146 When build as a module this driver will be called ledtrig-tty. 156 capacitive touch-buttons, such as e.g. the menu / home / back buttons 162 When build as a module this driver will be called ledtrig-input-events.
|
/linux/kernel/time/ |
H A D | tick-oneshot.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 18 #include "tick-internal.h" 21 * tick_program_event - program the CPU local timer device for the next event 32 dev->next_event = KTIME_MAX; in tick_program_event() 48 * tick_resume_oneshot - resume oneshot mode 59 * tick_setup_oneshot - setup the event device for oneshot mode (hres or nohz) 65 newdev->event_handler = handler; in tick_setup_oneshot() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | notif-wait.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2005-2014, 2023 Intel Corporation 4 * Copyright (C) 2015-2017 Intel Deutschland GmbH 11 #include "iwl-trans.h" 22 * struct iwl_notification_wait - notification wait entry 41 * Each notification is one-shot. If at some point we 42 * need to support multi-shot notifications (which 68 wake_up_all(¬if_data->notif_waitq); in iwl_notification_notify()
|
/linux/include/xen/interface/ |
H A D | vcpu.h | 1 /* SPDX-License-Identifier: MIT */ 18 * @extra_args == Operation-specific extra arguments (NULL if none). 23 * newly-initialised VCPU will not run until it is brought up by VCPUOP_up. 37 * Bring down a VCPU (i.e., make it non-runnable). 41 * idea to ensure that the VCPU has entered a non-critical loop before 102 * 2. Only one shared area may be registered per VCPU. The shared area is 119 * Set or stop a VCPU's periodic timer. Every VCPU has one periodic timer 120 * which can be set via these commands. Periods smaller than one millisecond 131 * Set or stop a VCPU's single-shot timer. Every VCPU has one single-shot 143 /* Require the timeout to be in the future (return -ETIME if it's passed). */ [all …]
|
/linux/drivers/net/can/ |
H A D | grcan.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 * See "Documentation/ABI/testing/sysfs-class-net-grcan" for information on the 19 * See "Documentation/admin-guide/kernel-parameters.rst" for information on the module 38 #include <linux/dma-mapping.h> 44 #define GRCAN_RESERVE_SIZE(slot1, slot2) (((slot2) - (slot1)) / 4 - 1) 51 u32 smask; /* 0x18 - CanMASK */ 52 u32 scode; /* 0x1c - CanCODE */ 202 #define GRCAN_MSG_DATA_SHIFT(i) ((3 - (i) % 4) * 8) 264 * handling"-comment for grcan_start_xmit for more details. 371 return sum - size; in grcan_ring_add() [all …]
|
/linux/fs/notify/inotify/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 10 descriptor, which is also select()- and poll()-able. 12 new features including multiple file events, one-shot support, and
|
/linux/drivers/rtc/ |
H A D | rtc-tps6594.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2023 BayLibre Incorporated - https://www.baylibre.com/ 26 #define NUM_TIME_REGS (TPS6594_REG_RTC_WEEKS - TPS6594_REG_RTC_SECONDS + 1) 29 #define NUM_TIME_ALARM_REGS (NUM_TIME_REGS - 1) 33 * After conversion, the values do not exceed the range [-32767, 33767] 36 #define MIN_OFFSET (-277774) 53 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_alarm_irq_enable() 58 return regmap_update_bits(tps->regmap, TPS6594_REG_RTC_INTERRUPTS, in tps6594_rtc_alarm_irq_enable() 69 * an up-to-date timestamp. in tps6594_rtc_shadow_timestamp() 71 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_shadow_timestamp() [all …]
|
H A D | rtc-tps65910.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * rtc-tps65910.c -- TPS65910 Real Time Clock interface 8 * Based on original TI driver rtc-twl.c 32 #define NUM_TIME_REGS (TPS65910_YEARS - TPS65910_SECONDS + 1) 35 #define NUM_COMP_REGS (TPS65910_RTC_COMP_MSB - TPS65910_RTC_COMP_LSB + 1) 38 #define MIN_OFFSET (-277761) 50 struct tps65910 *tps = dev_get_drvdata(dev->parent); in tps65910_rtc_alarm_irq_enable() 56 return regmap_write(tps->regmap, TPS65910_RTC_INTERRUPTS, val); in tps65910_rtc_alarm_irq_enable() 65 * - Months are 1..12 vs Linux 0-11 66 * - Years are 0..99 vs Linux 1900..N (we assume 21st century) [all …]
|
/linux/kernel/trace/ |
H A D | trace_stat.h | 1 // SPDX-License-Identifier: GPL-2.0 8 * If you want to provide a stat file (one-shot statistics), fill
|
/linux/sound/ppc/ |
H A D | snd_ps3.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 46 * there should be only ONE hardware. 94 /* one stage (stereo) of audio FIFO in bytes */ 102 /* PS3 audio DMAC max block count in one dma shot = 128 (0x80) blocks*/
|
/linux/Documentation/devicetree/bindings/timer/ |
H A D | nvidia,tegra186-timer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/timer/nvidia,tegra186-timer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <treding@nvidia.com> 13 The Tegra timer provides 29-bit timer counters and a 32-bit timestamp 16 programmed to generate one-shot, periodic, or watchdog interrupts. 22 - const: nvidia,tegra186-timer 24 The Tegra186 timer provides ten 29-bit timer counters. 25 - const: nvidia,tegra234-timer [all …]
|
H A D | arm,sp804.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Haojian Zhuang <haojian.zhuang@linaro.org> 14 16 or 32 bit operation and capable of running in one-shot, periodic, or 15 free-running mode. The input clock is shared, but can be gated and prescaled 18 There is a viriant of Arm SP804: Hisilicon 64-bit SP804 timer. Some Hisilicon 27 - arm,sp804 28 - hisilicon,sp804 30 - compatible [all …]
|
H A D | sprd,sc9860-timer.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/timer/sprd,sc9860-timer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Orson Zhai <orsonzhai@gmail.com> 11 - Baolin Wang <baolin.wang7@gmail.com> 12 - Chunyan Zhang <zhang.lyra@gmail.com> 15 The Spreadtrum SC9860 platform provides 3 general-purpose timers. 17 period mode or one-shot mode, and they can be a wakeup source 23 - sprd,sc9860-timer [all …]
|
H A D | nvidia,tegra-timer.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/timer/nvidia,tegra-timer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Stephen Warren <swarren@nvidia.com> 13 - if: 17 const: nvidia,tegra210-timer 25 A list of 14 interrupts; one per each timer channels 0 through 13 27 - if: 31 - items: [all …]
|
/linux/Documentation/userspace-api/media/dvb/ |
H A D | dmx-set-filter.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 11 ---- 16 -------- 23 --------- 33 ----------- 39 state whether a section should be CRC-checked, whether the filter should 40 be a "one-shot" filter, i.e. if the filtering operation should be 43 :ref:`DMX_START` ioctl call). If a filter was previously set-up, this 47 ------------ 51 On error -1 is returned, and the ``errno`` variable is set [all …]
|
/linux/include/linux/ |
H A D | user_events.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 23 /* Used for one-shot lists, protected by event_mutex */ 40 if (!t || !current->user_event_mm) in user_events_fork() 43 old_mm = current->user_event_mm; in user_events_fork() 46 t->user_event_mm = old_mm; in user_events_fork() 47 refcount_inc(&old_mm->tasks); in user_events_fork() 56 if (!t || !t->user_event_mm) in user_events_execve() 64 if (!t || !t->user_event_mm) in user_events_exit()
|