Home
last modified time | relevance | path

Searched +full:trigger +full:- +full:name (Results 1 – 25 of 1056) sorted by relevance

12345678910>>...43

/linux/kernel/trace/
H A Dtrace_events_trigger.c1 // SPDX-License-Identifier: GPL-2.0
3 * trace_events_trigger - trace event triggers
22 if (data->cmd_ops->set_filter) in trigger_data_free()
23 data->cmd_ops->set_filter(NULL, data, NULL); in trigger_data_free()
32 * event_triggers_call - Call triggers associated with a trace event
38 * For each trigger associated with an event, invoke the trigger
39 * function registered with the associated trigger command. If rec is
40 * non-NULL, it means that the trigger requires further processing and
41 * shouldn't be unconditionally invoked. If rec is non-NULL and the
42 * trigger has a filter associated with it, rec will checked against
[all …]
/linux/drivers/iio/
H A Dindustrialio-trigger.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* The industrial I/O core, trigger handling functions
17 #include <linux/iio/iio-opaque.h>
18 #include <linux/iio/trigger.h>
23 /* RFC - Question of approach
24 * Make the common case (single sensor single trigger)
25 * simple by starting trigger capture from when first sensors
29 * of the trigger. (not implemented)
41 * name_show() - retrieve useful identifying name
45 * @buf: buffer to print the name into
[all …]
/linux/drivers/leds/
H A Dled-triggers.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright 2005-2007 Openedhand Ltd.
23 * Nests outside led_cdev->trigger_lock
33 return !trig->trigger_type || trig->trigger_type == led_cdev->trigger_type; in trigger_relevant()
45 mutex_lock(&led_cdev->led_access); in led_trigger_write()
48 ret = -EBUSY; in led_trigger_write()
59 if (sysfs_streq(buf, trig->name) && trigger_relevant(led_cdev, trig)) { in led_trigger_write()
60 down_write(&led_cdev->trigger_lock); in led_trigger_write()
62 up_write(&led_cdev->trigger_lock); in led_trigger_write()
68 /* we come here only if buf matches no trigger */ in led_trigger_write()
[all …]
/linux/Documentation/driver-api/iio/
H A Dtriggers.rst5 * struct iio_trigger — industrial I/O trigger device
6 * :c:func:`devm_iio_trigger_alloc` — Resource-managed iio_trigger_alloc
7 * :c:func:`devm_iio_trigger_register` — Resource-managed iio_trigger_register
9 * :c:func:`iio_trigger_validate_own_device` — Check if a trigger and IIO
13 on some external event (trigger) as opposed to periodically polling for data.
14 An IIO trigger can be provided by a device driver that also has an IIO device
18 a specific file in sysfs). A trigger may initiate data capture for a number of
21 IIO trigger sysfs interface
26 * :file:`/sys/bus/iio/devices/trigger{Y}/*`, this file is created once an
27 IIO trigger is registered with the IIO core and corresponds to trigger
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-coresight-devices-cti1 What: /sys/bus/coresight/devices/<cti-name>/enable
7 What: /sys/bus/coresight/devices/<cti-name>/powered
13 What: /sys/bus/coresight/devices/<cti-name>/ctmid
19 What: /sys/bus/coresight/devices/<cti-name>/nr_trigger_cons
25 What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/name
29 Description: (Read) Name of connected device <N>
31 What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/in_signals
35 Description: (Read) Input trigger signals from connected device <N>
37 What: /sys/bus/coresight/devices/<cti-name>/triggers<N>/in_types
41 Description: (Read) Functional types for the input trigger signals
[all …]
H A Dsysfs-bus-iio-trigger-sysfs3 Contact: linux-iio@vger.kernel.org
5 This file is provided by the iio-trig-sysfs stand-alone trigger
7 driven driver, associated with this trigger, to capture data
9 automated testing or in situations, where other trigger methods
11 X is the IIO index of the trigger.
13 What: /sys/bus/iio/devices/triggerX/name
15 Contact: linux-iio@vger.kernel.org
17 The name attribute holds a description string for the current
18 trigger. In order to associate the trigger with an IIO device
19 one should write this name string to
[all …]
/linux/drivers/vfio/fsl-mc/
H A Dvfio_fsl_mc_intr.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright 2013-2016 Freescale Semiconductor Inc.
17 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_irqs_allocate()
23 if (mc_dev->obj_desc.irq_count == 0) in vfio_fsl_mc_irqs_allocate()
27 if (vdev->mc_irqs) in vfio_fsl_mc_irqs_allocate()
30 irq_count = mc_dev->obj_desc.irq_count; in vfio_fsl_mc_irqs_allocate()
34 return -ENOMEM; in vfio_fsl_mc_irqs_allocate()
48 vdev->mc_irqs = mc_irq; in vfio_fsl_mc_irqs_allocate()
57 eventfd_signal(mc_irq->trigger); in vfio_fsl_mc_irq_handler()
64 struct vfio_fsl_mc_irq *irq = &vdev->mc_irqs[index]; in vfio_set_trigger()
[all …]
/linux/include/linux/
H A Dleds.h1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #include <dt-bindings/leds/common.h>
47 * struct led_lookup_data - represents a single LED lookup entry
50 * @provider: name of led_classdev providing the LED
51 * @dev_id: name of the device associated with this LED
52 * @con_id: name of the LED from the device's point of view
66 * with in-driver hard-coded LED names used as a fallback when
73 * either for label based LED name composition path or for fwnode
78 * indicates if LED name should always comprise devicename section;
79 * only LEDs exposed by drivers of hot-pluggable devices should
[all …]
/linux/Documentation/leds/
H A Dleds-class.rst8 of the LED (taking a value 0-max_brightness). Most LEDs don't have hardware
9 brightness support so will just be turned on for non-zero brightness settings.
11 The class also introduces the optional concept of an LED trigger. A trigger
13 complex. A simple trigger isn't configurable and is designed to slot into
14 existing subsystems with minimal additional code. Examples are the disk-activity,
15 nand-disk and sharpsl-charge triggers. With led triggers disabled, the code
19 parameters and work on a per LED basis. The timer trigger is an example.
20 The timer trigger will periodically change the LED brightness between
24 trigger. However, if you set the brightness value to LED_OFF it will
25 also disable the timer trigger.
[all …]
/linux/drivers/vfio/platform/
H A Dvfio_platform_irq.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2013 - Virtual Open Systems
22 spin_lock_irqsave(&irq_ctx->lock, flags); in vfio_platform_mask()
24 if (!irq_ctx->masked) { in vfio_platform_mask()
25 disable_irq_nosync(irq_ctx->hwirq); in vfio_platform_mask()
26 irq_ctx->masked = true; in vfio_platform_mask()
29 spin_unlock_irqrestore(&irq_ctx->lock, flags); in vfio_platform_mask()
47 return -EINVAL; in vfio_platform_set_irq_mask()
49 if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) in vfio_platform_set_irq_mask()
50 return -EINVAL; in vfio_platform_set_irq_mask()
[all …]
/linux/drivers/iio/trigger/
H A Diio-trig-loop.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Based on a mashup of the hrtimer trigger and continuous sampling proposal of
30 #include <linux/iio/trigger.h>
60 loop_trig->task = kthread_run(iio_loop_thread, in iio_loop_trigger_set_state()
61 trig, trig->name); in iio_loop_trigger_set_state()
62 if (IS_ERR(loop_trig->task)) { in iio_loop_trigger_set_state()
63 dev_err(&trig->dev, in iio_loop_trigger_set_state()
64 "failed to create trigger loop thread\n"); in iio_loop_trigger_set_state()
65 return PTR_ERR(loop_trig->task); in iio_loop_trigger_set_state()
68 kthread_stop(loop_trig->task); in iio_loop_trigger_set_state()
[all …]
H A Diio-trig-hrtimer.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * The industrial I/O periodic hrtimer trigger driver
8 * Author: Lars-Peter Clausen <lars@metafoo.de>
16 #include <linux/iio/trigger.h>
22 /* default sampling frequency - 100Hz */
45 ARRAY_SIZE(info->sampling_frequency), in iio_hrtimer_show_sampling_frequency()
46 info->sampling_frequency); in iio_hrtimer_show_sampling_frequency()
64 return -ERANGE; in iio_hrtimer_store_sampling_frequency()
69 return -EINVAL; in iio_hrtimer_store_sampling_frequency()
71 info->sampling_frequency[0] = integer; /* Hz */ in iio_hrtimer_store_sampling_frequency()
[all …]
/linux/include/linux/iio/
H A Dtrigger.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* The industrial I/O core, trigger handling functions
22 * struct iio_trigger_ops - operations structure for an iio_trigger.
23 * @set_trigger_state: switch on/off the trigger on demand
24 * @reenable: function to reenable the trigger when the
27 * current trigger gets changed.
41 * struct iio_trigger - industrial I/O trigger device
45 * @name: [DRIVER] unique name
47 * @list: [INTERN] used in maintenance of global trigger list
48 * @alloc_list: [DRIVER] used for driver specific trigger list
[all …]
/linux/Documentation/devicetree/bindings/arm/
H A Darm,coresight-cti.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 ---
5 $id: http://devicetree.org/schemas/arm/arm,coresight-cti.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: ARM Coresight Cross Trigger Interface (CTI) device.
11 The CoreSight Embedded Cross Trigger (ECT) consists of CTI devices connected
13 a star topology via the Cross Trigger Matrix (CTM), which is not programmable.
19 output hardware trigger signals. CTIs can have a maximum number of input and
20 output hardware trigger signals (8 each for v1 CTI, 32 each for v2 CTI). The
30 In general the connections between CTI and components via the trigger signals
[all …]
/linux/tools/perf/util/
H A Dtrigger.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 * Use trigger to model operations which need to be executed when
14 * OFF--> ON --> READY --(hit)--> HIT
21 * a trigger. is_hit means the event already happen; is_ready means the
22 * trigger is waiting for the event.
25 struct trigger { struct
27 TRIGGER_ERROR = -2,
28 TRIGGER_OFF = -1,
33 const char *name; member
37 WARN_ONCE(t->state != exp, "trigger '%s' state transist error: %d in %s()\n", \ argument
[all …]
/linux/Documentation/trace/
H A Devents.rst24 ---------------------------------
36 To disable an event, echo the event name to the set_event file prefixed
50 etc., and a full event name looks like this: <subsystem>:<event>. The
51 subsystem name is optional, but it is displayed in the available_events
59 ---------------------------
82 - 0 - all events this file affects are disabled
83 - 1 - all events this file affects are enabled
84 - X - there is a mixture of events enabled and disabled
85 - ? - this file does not affect any event
88 ---------------
[all …]
H A Dhistogram-design.rst1 .. SPDX-License-Identifier: GPL-2.0
20 generally be truncated - only enough to make the point is displayed.
28 of the hist trigger internals described in this document. Specific
35 can do with histograms - create one with a single key on a single
38 # echo 'hist:keys=pid' >> events/sched/sched_waking/trigger
63 The hitcount value is a per-bucket value that's automatically
86 (in most cases - some hist_fields such as hitcount don't directly map
87 to an event field in the trace buffer - in these cases the function
89 indicates which type of field it is - key, value, variable, variable
95 lock-free hash table used to implement histograms (see
[all …]
/linux/sound/soc/mediatek/mt6797/
H A Dmt6797-mt6351.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt6797-mt6351.c -- MT6797 MT6351 ALSA SoC machine driver
11 #include "mt6797-afe-common.h"
60 DAILINK_COMP_ARRAY(COMP_CODEC(NULL, "mt6351-snd-codec-aif1")),
76 .name = "Playback_1",
78 .trigger = {SND_SOC_DPCM_TRIGGER_PRE,
85 .name = "Playback_2",
87 .trigger = {SND_SOC_DPCM_TRIGGER_PRE,
94 .name = "Playback_3",
96 .trigger = {SND_SOC_DPCM_TRIGGER_PRE,
[all …]
/linux/tools/testing/selftests/ftrace/test.d/trigger/
H A Dtrigger-multihist.tc2 # SPDX-License-Identifier: GPL-2.0
3 # description: event trigger - test multiple histogram triggers
4 # requires: set_event events/sched/sched_process_fork/trigger events/sched/sched_process_fork/hist
14 echo 'hist:keys=parent_pid:vals=child_pid' > events/sched/sched_process_fork/trigger
15 echo 'hist:keys=parent_comm:vals=child_pid' >> events/sched/sched_process_fork/trigger
18 fail "hist trigger on sched_process_fork did not work"
20 fail "hist trigger on sched_process_fork did not work"
27 echo "Test histogram with its name"
29 echo 'hist:name=test_hist:keys=common_pid' > events/sched/sched_process_fork/trigger
36 echo 'hist:name=test_hist:keys=common_pid' > events/sched/sched_process_exit/trigger
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Derror-dump.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2014, 2018-2024 Intel Corporation
4 * Copyright (C) 2014-2015 Intel Mobile Communications GmbH
5 * Copyright (C) 2016-2017 Intel Deutschland GmbH
17 * enum iwl_fw_error_dump_type - types of data in the dump file
18 * @IWL_FW_ERROR_DUMP_CSR: Control Status Registers - from offset 0
25 * @IWL_FW_ERROR_DUMP_PRPH: range of periphery registers - there can be several
39 * for that reason is not in use in any other place in the Linux Wi-Fi
68 * struct iwl_fw_error_dump_data - data for one type
80 * struct iwl_dump_file_name_info - data for dump file name addition
[all …]
/linux/tools/iio/
H A Diio_generic_buffer.c1 // SPDX-License-Identifier: GPL-2.0-only
12 * generic_buffer -n <device_name> -t <trigger_name>
13 * If trigger name is not specified the program assumes you want a dataready
14 * trigger associated with the device and goes looking for it.
38 * enum autochan - state for the automatic channel enabling mechanism
47 * size_from_channelarray() - calculate the storage size of a scan
66 channels[i].location = bytes - bytes % channels[i].bytes in size_from_channelarray()
79 bytes += max - misalignment; in size_from_channelarray()
90 input >>= info->shift; in print1byte()
91 input &= info->mask; in print1byte()
[all …]
/linux/net/mac80211/
H A Dled.c1 // SPDX-License-Identifier: GPL-2.0-only
14 if (!atomic_read(&local->assoc_led_active)) in ieee80211_led_assoc()
17 led_trigger_event(&local->assoc_led, LED_FULL); in ieee80211_led_assoc()
19 led_trigger_event(&local->assoc_led, LED_OFF); in ieee80211_led_assoc()
24 if (!atomic_read(&local->radio_led_active)) in ieee80211_led_radio()
27 led_trigger_event(&local->radio_led, LED_FULL); in ieee80211_led_radio()
29 led_trigger_event(&local->radio_led, LED_OFF); in ieee80211_led_radio()
34 local->rx_led.name = kasprintf(GFP_KERNEL, "%srx", in ieee80211_alloc_led_names()
35 wiphy_name(local->hw.wiphy)); in ieee80211_alloc_led_names()
36 local->tx_led.name = kasprintf(GFP_KERNEL, "%stx", in ieee80211_alloc_led_names()
[all …]
/linux/sound/soc/mediatek/mt8192/
H A Dmt8192-mt6359-rt1015-rt5682.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt8192-mt6359-rt1015-rt5682.c --
4 // MT8192-MT6359-RT1015-RT6358 ALSA SoC machine driver
22 #include "../common/mtk-afe-platform-driver.h"
23 #include "../common/mtk-soc-card.h"
24 #include "../common/mtk-soundcard-driver.h"
25 #include "mt8192-afe-common.h"
26 #include "mt8192-afe-clk.h"
27 #include "mt8192-afe-gpio.h"
31 #define RT1015_CODEC_DAI "rt1015-aif"
[all …]
/linux/Documentation/trace/coresight/
H A Dcoresight-ect.rst1 .. SPDX-License-Identifier: GPL-2.0
4 CoreSight Embedded Cross Trigger (CTI & CTM).
11 --------------------
13 The CoreSight Cross Trigger Interface (CTI) is a hardware device that takes
15 devices and interconnects them via the Cross Trigger Matrix (CTM) to other
21 0 C 0----------->: : +======>(other CTI channel IO)
22 0 P 0<-----------: : v
24 0000000 : CTI :<=========>*CTM*<====>: CTI :---+
25 ####### in_trigs : : (id 0-3) ***** ::::::: v
26 # ETM #----------->: : ^ #######
[all …]
/linux/drivers/net/phy/
H A Dphy_led_triggers.c1 // SPDX-License-Identifier: GPL-2.0+
13 for (i = 0; i < phy->phy_num_led_triggers; i++) { in phy_speed_to_led_trigger()
14 if (phy->phy_led_triggers[i].speed == speed) in phy_speed_to_led_trigger()
15 return &phy->phy_led_triggers[i]; in phy_speed_to_led_trigger()
22 if (phy->last_triggered) { in phy_led_trigger_no_link()
23 led_trigger_event(&phy->last_triggered->trigger, LED_OFF); in phy_led_trigger_no_link()
24 led_trigger_event(&phy->led_link_trigger->trigger, LED_OFF); in phy_led_trigger_no_link()
25 phy->last_triggered = NULL; in phy_led_trigger_no_link()
33 if (!phy->link) in phy_led_trigger_change_speed()
36 if (phy->speed == 0) in phy_led_trigger_change_speed()
[all …]

12345678910>>...43