Searched refs:trigger (Results 1 - 200 of 1594) sorted by relevance

12345678

/linux-4.1.27/drivers/staging/iio/trigger/
H A Diio-trig-bfin-timer.h5 * struct iio_bfin_timer_trigger_pdata - timer trigger platform data
6 * @output_enable: Enable external trigger pulse generation.
7 * @active_low: Whether the trigger pulse is active low.
8 * @duty_ns: Length of the trigger pulse in nanoseconds.
11 * timer trigger. If output_enable is set to true an external trigger signal
14 * duty_ns are used to configure the type of the trigger pulse. If output_enable
15 * is set to false no external trigger pulse will be generated and active_low
H A Diio-trig-periodic-rtc.c1 /* The industrial I/O periodic RTC trigger driver
11 * but via a trigger rather than a specific periodic timer system.
20 #include <linux/iio/trigger.h>
39 dev_dbg(&trig_info->rtc->dev, "trigger frequency is %u\n", iio_trig_periodic_rtc_set_state()
214 MODULE_DESCRIPTION("Periodic realtime clock trigger for the iio subsystem");
/linux-4.1.27/drivers/iio/common/hid-sensors/
H A DMakefile6 obj-$(CONFIG_HID_SENSOR_IIO_TRIGGER) += hid-sensor-trigger.o
H A Dhid-sensor-trigger.c28 #include <linux/iio/trigger.h>
30 #include "hid-sensor-trigger.h"
133 iio_trigger_unregister(attrb->trigger); hid_sensor_remove_trigger()
134 iio_trigger_free(attrb->trigger); hid_sensor_remove_trigger()
165 attrb->trigger = trig; hid_sensor_setup_trigger()
219 MODULE_DESCRIPTION("HID Sensor trigger processing");
/linux-4.1.27/tools/testing/selftests/user/
H A DMakefile3 # No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
/linux-4.1.27/include/linux/iio/
H A Dtrigger.h1 /* The industrial I/O core, trigger handling functions
23 * @owner: used to monitor usage count of the trigger.
24 * @set_trigger_state: switch on/off the trigger on demand
25 * @try_reenable: function to reenable the trigger when the
28 * current trigger gets changed.
43 * struct iio_trigger - industrial I/O trigger device
48 * @list: [INTERN] used in maintenance of global trigger list
49 * @alloc_list: [DRIVER] used for driver specific trigger list
50 * @use_count: use count for the trigger
52 * @subirq_base: [INTERN] base number for irqs provided by trigger.
96 * iio_device_set_drvdata() - Set trigger driver data
97 * @trig: IIO trigger structure
100 * Allows to attach an arbitrary pointer to an IIO trigger, which can later be
109 * iio_trigger_get_drvdata() - Get trigger driver data
110 * @trig: IIO trigger structure
120 * iio_trigger_register() - register a trigger with the IIO core
121 * @trig_info: trigger to be registered
126 * iio_trigger_unregister() - unregister a trigger from the core
127 * @trig_info: trigger to be unregistered
132 * iio_trigger_poll() - called on a trigger occurring
133 * @trig: trigger which occurred
H A Dtrigger_consumer.h1 /* The industrial I/O core, trigger consumer functions
23 * @h: the function that is actually run on trigger
26 * @name: name used to identify the trigger consumer.
28 * trigger pool
30 * as possible after the trigger - hence handler
58 * is attached and detached from a trigger
/linux-4.1.27/include/uapi/linux/netfilter/
H A Dxt_LED.h7 char id[27]; /* Unique ID for this trigger in the LED class */
9 __u32 delay; /* Delay until LED is switched off after trigger */
/linux-4.1.27/drivers/iio/
H A Diio_core_trigger.h2 /* The industrial I/O core, trigger consumer handling functions
14 * @indio_dev: iio_dev associated with the device that will consume the trigger
20 * @indio_dev: iio_dev associated with the device that consumed the trigger
28 * @indio_dev: iio_dev associated with the device that will consume the trigger
37 * @indio_dev: iio_dev associated with the device that consumed the trigger
H A DMakefile8 industrialio-$(CONFIG_IIO_TRIGGER) += industrialio-trigger.o
29 obj-y += trigger/
H A Dindustrialio-trigger.c1 /* The industrial I/O core, trigger handling functions
19 #include <linux/iio/trigger.h>
25 * Make the common case (single sensor single trigger)
26 * simple by starting trigger capture from when first sensors
30 * of the trigger. (not implemented)
69 dev_set_name(&trig_info->dev, "trigger%ld", iio_trigger_register()
193 * This is not currently handled. Alternative of not enabling trigger unless
204 /* Prevent the module from being removed whilst attached to a trigger */ iio_trigger_attach_poll_func()
290 * iio_trigger_read_current() - trigger consumer sysfs query current trigger
292 * For trigger consumers the current_trigger interface allows the trigger
307 * iio_trigger_write_current() - trigger consumer sysfs set current trigger
309 * For trigger consumers the current_trigger interface allows the trigger
310 * used for this device to be specified at run time based on the trigger's
366 .name = "trigger",
501 * @fmt: trigger name format. If it includes format
566 /* Clean up an associated but not attached trigger reference */ iio_device_unregister_trigger_consumer()
H A Dindustrialio-triggered-buffer.c72 /* Ring buffer functions - here trigger setup related */ iio_triggered_buffer_setup()
/linux-4.1.27/include/linux/platform_data/
H A Dat91_adc.h18 * @name: name of the trigger advertised to the user
19 * @value: value to set in the ADC's trigger setup register
20 to enable the trigger
21 * @is_external: Does the trigger rely on an external pin?
H A Dgpio-ts5500.h19 * If you need a bidirectional line which can trigger an IRQ, you
H A Dmtd-nand-s3c2410.h30 * allows to pass flag to the underlying NAND layer. 'disable_ecc' will trigger
/linux-4.1.27/tools/testing/selftests/firmware/
H A DMakefile3 # No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
H A Dfw_filesystem.sh50 echo "$0: could not trigger request" >&2
/linux-4.1.27/tools/testing/selftests/sysctl/
H A DMakefile4 # No binaries, but make sure arg-less "make" doesn't trigger "run_tests".
/linux-4.1.27/drivers/acpi/
H A Dgsi.c17 static unsigned int acpi_gsi_get_irq_type(int trigger, int polarity) acpi_gsi_get_irq_type() argument
21 return trigger == ACPI_EDGE_SENSITIVE ? acpi_gsi_get_irq_type()
25 return trigger == ACPI_EDGE_SENSITIVE ? acpi_gsi_get_irq_type()
29 if (trigger == ACPI_EDGE_SENSITIVE) acpi_gsi_get_irq_type()
66 * @trigger: trigger type of the GSI number to be mapped
72 int acpi_register_gsi(struct device *dev, u32 gsi, int trigger, acpi_register_gsi() argument
76 unsigned int irq_type = acpi_gsi_get_irq_type(trigger, polarity); acpi_register_gsi()
/linux-4.1.27/drivers/iio/common/st_sensors/
H A Dst_sensors_trigger.c2 * STMicroelectronics sensors trigger library driver
15 #include <linux/iio/trigger.h>
27 sdata->trig = iio_trigger_alloc("%s-trigger", indio_dev->name); st_sensors_allocate_trigger()
30 dev_err(&indio_dev->dev, "failed to allocate iio trigger.\n"); st_sensors_allocate_trigger()
49 dev_err(&indio_dev->dev, "failed to register iio trigger.\n"); st_sensors_allocate_trigger()
76 MODULE_DESCRIPTION("STMicroelectronics ST-sensors trigger");
H A Dst_sensors_buffer.c15 #include <linux/iio/trigger.h>
/linux-4.1.27/arch/ia64/include/asm/
H A Diosapic.h68 extern struct irq_chip *ia64_native_iosapic_get_irq_chip(unsigned long trigger);
94 unsigned long trigger);
98 unsigned long trigger);
104 unsigned long trigger);
113 #define iosapic_register_intr(gsi,polarity,trigger) (gsi)
115 #define iosapic_override_isa_irq(isa_irq,gsi,polarity,trigger) do { } while (0)
117 polarity,trigger) (gsi)
/linux-4.1.27/drivers/iio/imu/
H A Dadis_trigger.c16 #include <linux/iio/trigger.h>
33 * adis_probe_trigger() - Sets up trigger for a adis device
39 * adis_remove_trigger() should be used to free the trigger.
78 * adis_remove_trigger() - Remove trigger for a adis devices
81 * Removes the trigger previously registered with adis_probe_trigger().
H A Dadis_buffer.c114 * adis_setup_buffer_and_trigger() - Sets up buffer and trigger for the adis device
117 * @trigger_handler: Optional trigger handler, may be NULL.
121 * This function sets up the buffer and trigger for a adis devices. If
122 * 'trigger_handler' is NULL the default trigger handler will be used. The
123 * default trigger handler will simply read the registers assigned to the
156 * adis_cleanup_buffer_and_trigger() - Free buffer and trigger resources
/linux-4.1.27/drivers/vfio/pci/
H A Dvfio_pci_intrs.c36 eventfd_signal(vdev->ctx[0].trigger, 1); vfio_send_intx_eventfd()
95 * A pending interrupt here would immediately trigger, vfio_pci_intx_unmask_handler()
178 struct eventfd_ctx *trigger; vfio_intx_set_signal() local
182 if (vdev->ctx[0].trigger) { vfio_intx_set_signal()
185 eventfd_ctx_put(vdev->ctx[0].trigger); vfio_intx_set_signal()
186 vdev->ctx[0].trigger = NULL; vfio_intx_set_signal()
197 trigger = eventfd_ctx_fdget(fd); vfio_intx_set_signal()
198 if (IS_ERR(trigger)) { vfio_intx_set_signal()
200 return PTR_ERR(trigger); vfio_intx_set_signal()
203 vdev->ctx[0].trigger = trigger; vfio_intx_set_signal()
211 vdev->ctx[0].trigger = NULL; vfio_intx_set_signal()
213 eventfd_ctx_put(trigger); vfio_intx_set_signal()
244 struct eventfd_ctx *trigger = arg; vfio_msihandler() local
246 eventfd_signal(trigger, 1); vfio_msihandler()
314 struct eventfd_ctx *trigger; vfio_msi_set_vector_signal() local
320 if (vdev->ctx[vector].trigger) { vfio_msi_set_vector_signal()
321 free_irq(irq, vdev->ctx[vector].trigger); vfio_msi_set_vector_signal()
323 eventfd_ctx_put(vdev->ctx[vector].trigger); vfio_msi_set_vector_signal()
324 vdev->ctx[vector].trigger = NULL; vfio_msi_set_vector_signal()
335 trigger = eventfd_ctx_fdget(fd); vfio_msi_set_vector_signal()
336 if (IS_ERR(trigger)) { vfio_msi_set_vector_signal()
338 return PTR_ERR(trigger); vfio_msi_set_vector_signal()
356 vdev->ctx[vector].name, trigger); vfio_msi_set_vector_signal()
359 eventfd_ctx_put(trigger); vfio_msi_set_vector_signal()
363 vdev->ctx[vector].trigger = trigger; vfio_msi_set_vector_signal()
498 uint8_t trigger = *(uint8_t *)data; vfio_pci_set_intx_trigger() local
499 if (trigger) vfio_pci_set_intx_trigger()
543 if (!vdev->ctx[i].trigger) vfio_pci_set_msi_trigger()
546 eventfd_signal(vdev->ctx[i].trigger, 1); vfio_pci_set_msi_trigger()
550 eventfd_signal(vdev->ctx[i].trigger, 1); vfio_pci_set_msi_trigger()
570 uint8_t trigger = *(uint8_t *)data; vfio_pci_set_ctx_trigger_single() local
571 if (trigger && *ctx) vfio_pci_set_ctx_trigger_single()
H A Dvfio_pci_private.h27 struct eventfd_ctx *trigger; member in struct:vfio_pci_irq_ctx
/linux-4.1.27/drivers/leds/
H A Dled-triggers.c90 if (!led_cdev->trigger) led_trigger_show()
96 if (led_cdev->trigger && !strcmp(led_cdev->trigger->name, led_trigger_show()
121 /* Remove any existing trigger */ led_trigger_set()
122 if (led_cdev->trigger) { led_trigger_set()
123 write_lock_irqsave(&led_cdev->trigger->leddev_list_lock, flags); led_trigger_set()
125 write_unlock_irqrestore(&led_cdev->trigger->leddev_list_lock, led_trigger_set()
129 if (led_cdev->trigger->deactivate) led_trigger_set()
130 led_cdev->trigger->deactivate(led_cdev); led_trigger_set()
131 led_cdev->trigger = NULL; led_trigger_set()
138 led_cdev->trigger = trig; led_trigger_set()
202 /* Make sure the trigger's name isn't already in use */ led_trigger_register()
213 /* Register with any LEDs that have this as a default trigger */ led_trigger_register()
217 if (!led_cdev->trigger && led_cdev->default_trigger && led_trigger_register()
240 /* Remove anyone actively using this trigger */ led_trigger_unregister()
244 if (led_cdev->trigger == trig) led_trigger_unregister()
321 pr_warn("LED trigger %s failed to register (%d)\n", led_trigger_register_simple()
325 pr_warn("LED trigger %s failed to register (no memory)\n", led_trigger_register_simple()
H A Dleds-versatile.c28 const char *trigger; member in struct:__anon5356
87 led->cdev.default_trigger = versatile_leds[i].trigger; versatile_leds_probe()
H A Dleds.h56 struct led_trigger *trigger);
/linux-4.1.27/drivers/staging/iio/
H A Diio_simple_dummy_buffer.c11 * To test without hardware use the sysfs trigger.
36 * iio_simple_dummy_trigger_h() - the trigger handler function
40 * This is the guts of buffered capture. On a trigger event occurring,
93 * Tell the core we are done with this trigger and ready for the iio_simple_dummy_trigger_h()
104 * Generic function that simply attaches the pollfunc to the trigger.
106 * trigger.
111 * Generic function that simple detaches the pollfunc from the trigger.
112 * Replace this to put hardware state back again after the trigger is
143 * When a trigger event with this polling function connected iio_simple_dummy_configure_buffer()
149 * a timestamp as close as possible to a data ready trigger firing. iio_simple_dummy_configure_buffer()
171 * driven by a trigger. iio_simple_dummy_configure_buffer()
H A DMakefile23 obj-y += trigger/
/linux-4.1.27/include/uapi/linux/
H A Dserial_reg.h53 * Note: The FIFO trigger levels are chip specific:
75 #define UART_FCR_TRIGGER_MASK 0xC0 /* Mask for the FIFO trigger range */
76 #define UART_FCR_TRIGGER_1 0x00 /* Mask for trigger set at 1 */
77 #define UART_FCR_TRIGGER_4 0x40 /* Mask for trigger set at 4 */
78 #define UART_FCR_TRIGGER_8 0x80 /* Mask for trigger set at 8 */
79 #define UART_FCR_TRIGGER_14 0xC0 /* Mask for trigger set at 14 */
81 #define UART_FCR6_R_TRIGGER_8 0x00 /* Mask for receive trigger set at 1 */
82 #define UART_FCR6_R_TRIGGER_16 0x40 /* Mask for receive trigger set at 4 */
83 #define UART_FCR6_R_TRIGGER_24 0x80 /* Mask for receive trigger set at 8 */
84 #define UART_FCR6_R_TRIGGER_28 0xC0 /* Mask for receive trigger set at 14 */
85 #define UART_FCR6_T_TRIGGER_16 0x00 /* Mask for transmit trigger set at 16 */
86 #define UART_FCR6_T_TRIGGER_8 0x10 /* Mask for transmit trigger set at 8 */
87 #define UART_FCR6_T_TRIGGER_24 0x20 /* Mask for transmit trigger set at 24 */
88 #define UART_FCR6_T_TRIGGER_30 0x30 /* Mask for transmit trigger set at 30 */
186 #define UART_TI752_TLR 7 /* I/O: trigger level register */
193 * Out: Fifo custom trigger levels */
214 #define UART_FCTR_TRGA 0x00 /* Tx/Rx 550 trigger table select */
215 #define UART_FCTR_TRGB 0x10 /* Tx/Rx 650 trigger table select */
216 #define UART_FCTR_TRGC 0x20 /* Tx/Rx 654 trigger table select */
217 #define UART_FCTR_TRGD 0x30 /* Tx/Rx 850 programmable trigger select */
219 #define UART_FCTR_RX 0x00 /* Programmable trigger mode select */
220 #define UART_FCTR_TX 0x80 /* Programmable trigger mode select */
275 #define UART_ACR_TLENB 0x20 /* 950 trigger levels enable */
368 #define UART_FCTR_EXAR_TRGA 0x00 /* FIFO trigger table A */
369 #define UART_FCTR_EXAR_TRGB 0x60 /* FIFO trigger table B */
370 #define UART_FCTR_EXAR_TRGC 0x80 /* FIFO trigger table C */
371 #define UART_FCTR_EXAR_TRGD 0xc0 /* FIFO trigger table D programmable */
373 #define UART_EXAR_TXTRG 0x0a /* Tx FIFO trigger level write-only */
374 #define UART_EXAR_RXTRG 0x0b /* Rx FIFO trigger level write-only */
H A Dif_plip.h21 unsigned long trigger; member in struct:plipconf
H A Dsecurebits.h24 /* When set, setuid to/from uid 0 does not trigger capability-"fixup".
/linux-4.1.27/drivers/scsi/mpt3sas/
H A Dmpt3sas_trigger_diag.h54 /* trigger types */
60 /* trigger names */
66 /* master trigger bitmask */
90 * struct SL_WH_EVENT_TRIGGER_T - Definition of an event trigger element
91 * @EventValue: Event Code to trigger on
106 * @EventTriggerEntry: List of Event trigger elements.
118 * struct SL_WH_SCSI_TRIGGER_T - Definition of a SCSI trigger element
136 * list of SCSI sense codes that should trigger a DIAG_SERVICE event when
140 * @SCSITriggerEntry: List of SCSI Sense Code trigger elements.
151 * struct SL_WH_MPI_TRIGGER_T - Definition of an MPI trigger element
166 * list of MPI IOCStatus/IocLogInfo pairs that should trigger a DIAG_SERVICE
170 * @MPITriggerEntry: List of MPI IOCStatus/IocLogInfo trigger elements.
181 * struct SL_WH_TRIGGERS_EVENT_DATA_T - event data for trigger
182 * @trigger_type: trigger type (see MPT3SAS_TRIGGER_XXXX)
183 * @u: trigger condition that caused trigger to be sent
H A Dmpt3sas_trigger_diag.c2 * This module provides common API to set Diagnostic trigger for MPT
108 * mpt3sas_process_trigger_data - process the event data for the trigger
137 * mpt3sas_trigger_master - Master trigger handler
175 /* don't send trigger if an trigger is currently active */ mpt3sas_trigger_master()
181 /* check for the trigger condition */ mpt3sas_trigger_master()
210 * mpt3sas_trigger_event - Event trigger handler
246 /* don't send trigger if an trigger is currently active */ mpt3sas_trigger_event()
252 /* check for the trigger condition */ mpt3sas_trigger_event()
289 * mpt3sas_trigger_scsi - SCSI trigger handler
326 /* don't send trigger if an trigger is currently active */ mpt3sas_trigger_scsi()
332 /* check for the trigger condition */ mpt3sas_trigger_scsi()
365 * mpt3sas_trigger_mpi - MPI trigger handler
400 /* don't send trigger if an trigger is currently active */ mpt3sas_trigger_mpi()
406 /* check for the trigger condition */ mpt3sas_trigger_mpi()
/linux-4.1.27/drivers/staging/iio/meter/
H A Dade7758_trigger.c15 #include <linux/iio/trigger.h>
42 * ade7758_trig_try_reen() try renabling irq for data rdy trigger
43 * @trig: the datardy trigger
87 /* select default trigger */ ade7758_probe_trigger()
/linux-4.1.27/arch/sparc/crypto/
H A Dcrop_devid.c5 * opcode drivers. It serves to trigger the module autoloading
/linux-4.1.27/arch/mips/boot/dts/include/dt-bindings/leds/
H A Dcommon.h12 /* External trigger type */
/linux-4.1.27/arch/powerpc/boot/dts/include/dt-bindings/leds/
H A Dcommon.h12 /* External trigger type */
/linux-4.1.27/arch/arm64/boot/dts/include/dt-bindings/leds/
H A Dcommon.h12 /* External trigger type */
/linux-4.1.27/arch/metag/boot/dts/include/dt-bindings/leds/
H A Dcommon.h12 /* External trigger type */
/linux-4.1.27/arch/arm/boot/dts/include/dt-bindings/leds/
H A Dcommon.h12 /* External trigger type */
/linux-4.1.27/include/dt-bindings/leds/
H A Dcommon.h12 /* External trigger type */
/linux-4.1.27/drivers/leds/trigger/
H A Dledtrig-cpu.c2 * ledtrig-cpu.c - LED trigger based on CPU activity
4 * This LED trigger will be registered for each possible CPU and named as
42 * ledtrig_cpu - emit a CPU event as a trigger
45 * Emit a CPU event on a CPU core, which will trigger a
124 * Registering CPU led trigger for each CPU core here ledtrig_cpu_init()
126 * fine with this trigger. ledtrig_cpu_init()
165 MODULE_DESCRIPTION("CPU LED trigger");
H A Dledtrig-backlight.c2 * Backlight emulation LED trigger
109 dev_err(led->dev, "unable to allocate backlight trigger\n"); bl_trig_activate()
124 dev_err(led->dev, "unable to register backlight trigger\n"); bl_trig_activate()
167 MODULE_DESCRIPTION("Backlight emulation LED trigger");
H A Dledtrig-default-on.c44 MODULE_DESCRIPTION("Default-ON LED trigger");
H A Dledtrig-transient.c17 * Transient trigger allows one shot timer activation. Please refer to
168 "unable to allocate transient trigger\n"); transient_trig_activate()
196 dev_err(led_cdev->dev, "unable to register transient trigger\n"); transient_trig_activate()
238 MODULE_DESCRIPTION("Transient LED trigger");
H A Dledtrig-timer.c129 MODULE_DESCRIPTION("Timer LED trigger");
/linux-4.1.27/kernel/trace/
H A Dtrace_events_trigger.c46 * For each trigger associated with an event, invoke the trigger
47 * function registered with the associated trigger command. If rec is
48 * non-NULL, it means that the trigger requires further processing and
50 * trigger has a filter associated with it, rec will checked against
51 * the filter and if the record matches the trigger will be invoked.
52 * If the trigger is a 'post_trigger', meaning it shouldn't be invoked
53 * in any case until the current event is written, the trigger
55 * trigger is set in the return value.
58 * any trigger that should be deferred, ETT_NONE if nothing to defer.
63 * any trigger that should be deferred, ETT_NONE if nothing to defer.
96 * @tt: enum event_trigger_type containing a set bit for each trigger to invoke
98 * For each trigger associated with an event, invoke the trigger
99 * function registered with the associated trigger command, if the
358 * @name: The name of the event trigger
366 * trigger command and then invokes this.
393 * @ops: The trigger ops associated with the trigger
396 * Common implementation of event trigger initialization.
398 * Usually used directly as the @init method in event trigger
413 * @ops: The trigger ops associated with the trigger
416 * Common implementation of event trigger de-initialization.
418 * Usually used directly as the @free method in event trigger
457 * For each trigger, the triggering event has its tm_ref decremented
461 * combination effectively reverses the soft-mode/trigger state added
462 * by trigger registration.
486 * a post_trigger, trigger invocation needs to be deferred until after
511 * @glob: The raw string used to register the trigger
512 * @ops: The trigger ops associated with the trigger
513 * @data: Trigger-specific data to associate with the trigger
516 * Common implementation for event trigger registration.
557 * @glob: The raw string used to register the trigger
558 * @ops: The trigger ops associated with the trigger
559 * @test: Trigger-specific data used to find the trigger to remove
562 * Common implementation for event trigger unregistration.
590 * @cmd_ops: The command ops, used for trigger registration
592 * @glob: The raw string used to register the trigger
593 * @cmd: The cmd portion of the string used to register the trigger
594 * @param: The params portion of the string used to register the trigger
596 * Common implementation for event command parsing and trigger
611 char *trigger = NULL; event_trigger_callback() local
615 /* separate the trigger from the filter (t:n [if filter]) */ event_trigger_callback()
617 trigger = strsep(&param, " \t"); event_trigger_callback()
619 trigger_ops = cmd_ops->get_trigger_ops(cmd, trigger); event_trigger_callback()
638 if (trigger) { event_trigger_callback()
639 number = strsep(&trigger, ":"); event_trigger_callback()
689 * @filter_str: The filter string for the trigger, NULL to remove filter
723 /* The filter is for the 'trigger' event, not the triggered event */ set_trigger_filter()
1172 char *trigger; event_enable_trigger_func() local
1180 /* separate the trigger from the filter (s:e:n [if filter]) */ event_enable_trigger_func()
1181 trigger = strsep(&param, " \t"); event_enable_trigger_func()
1182 if (!trigger) event_enable_trigger_func()
1185 system = strsep(&trigger, ":"); event_enable_trigger_func()
1186 if (!trigger) event_enable_trigger_func()
1189 event = strsep(&trigger, ":"); event_enable_trigger_func()
1198 trigger_ops = cmd_ops->get_trigger_ops(cmd, trigger); event_enable_trigger_func()
1229 if (trigger) { event_enable_trigger_func()
1230 number = strsep(&trigger, ":"); event_enable_trigger_func()
H A Dtrace.h1108 * The methods in this structure provide per-event trigger hooks for
1109 * various trigger operations.
1114 * @func: The trigger 'probe' function called when the triggering
1117 * registered the trigger (see struct event_command).
1119 * @init: An optional initialization function called for the trigger
1120 * when the trigger is registered (via the event_command reg()
1121 * function). This can be used to perform per-trigger
1122 * initialization such as incrementing a per-trigger reference
1128 * trigger when the trigger is unregistered (via the
1130 * per-trigger de-initialization such as decrementing a
1131 * per-trigger reference count and freeing corresponding trigger
1136 * @print: The callback function invoked to have the trigger print
1156 * into the 'trigger' file associated with a trace event. The
1158 * command are used to create an event trigger instance, which is
1159 * added to the list of trigger instances associated with that trace
1170 * the name used when setting triggers via trigger files.
1174 * only one trigger of the same type can be set at a given time
1176 * a traceon and traceoff trigger attached to a single event at
1179 * also used as a bit value for deferring the actual trigger
1190 * the trigger may itself log data into the trace buffer. Thus
1192 * those triggers. To do that, the trigger invocation is split
1196 * directly invokes the trigger. Once all commands have been
1209 * registering the trigger written to the 'trigger' file by the
1210 * user. It allocates the trigger instance and registers it with
1216 * @reg: Adds the trigger to the list of triggers associated with the
1217 * event, and enables the event trigger itself, after
1221 * the trigger should be allowed. This is usually implemented by
1225 * @unreg: Removes the trigger from the list of triggers associated
1226 * with the event, and disables the event trigger itself, after
1232 * for the trigger. If no @set_filter() method is set for the
/linux-4.1.27/drivers/vfio/platform/
H A Dvfio_platform_irq.c166 eventfd_signal(irq_ctx->trigger, 1); vfio_automasked_irq_handler()
175 eventfd_signal(irq_ctx->trigger, 1); vfio_irq_handler()
184 struct eventfd_ctx *trigger; vfio_set_trigger() local
187 if (irq->trigger) { vfio_set_trigger()
190 eventfd_ctx_put(irq->trigger); vfio_set_trigger()
191 irq->trigger = NULL; vfio_set_trigger()
202 trigger = eventfd_ctx_fdget(fd); vfio_set_trigger()
203 if (IS_ERR(trigger)) { vfio_set_trigger()
205 return PTR_ERR(trigger); vfio_set_trigger()
208 irq->trigger = trigger; vfio_set_trigger()
214 eventfd_ctx_put(trigger); vfio_set_trigger()
215 irq->trigger = NULL; vfio_set_trigger()
254 uint8_t trigger = *(uint8_t *)data; vfio_platform_set_irq_trigger() local
256 if (trigger) vfio_platform_set_irq_trigger()
H A Dvfio_platform_private.h35 struct eventfd_ctx *trigger; member in struct:vfio_platform_irq
/linux-4.1.27/include/linux/
H A Dleds.h91 /* Protects the trigger data below */
94 struct led_trigger *trigger; member in struct:led_classdev
217 /* LEDs under control by this trigger (for simple triggers) */
221 /* Link to next registered trigger */
226 extern int led_trigger_register(struct led_trigger *trigger);
227 extern void led_trigger_unregister(struct led_trigger *trigger);
230 struct led_trigger **trigger);
231 extern void led_trigger_unregister_simple(struct led_trigger *trigger);
232 extern void led_trigger_event(struct led_trigger *trigger,
234 extern void led_trigger_blink(struct led_trigger *trigger,
237 extern void led_trigger_blink_oneshot(struct led_trigger *trigger,
242 * led_trigger_rename_static - rename a trigger
243 * @name: the new trigger name
244 * @trig: the LED trigger to rename
246 * Change a LED trigger name by copying the string passed in
247 * name into current trigger name, which MUST be large
266 struct led_trigger **trigger) {} led_trigger_unregister_simple()
267 static inline void led_trigger_unregister_simple(struct led_trigger *trigger) {} led_trigger_event() argument
268 static inline void led_trigger_event(struct led_trigger *trigger, led_trigger_event() argument
265 led_trigger_register_simple(const char *name, struct led_trigger **trigger) led_trigger_register_simple() argument
H A Datmel_tc.h127 * PWM output, and TIOB as either another PWM or as a trigger. Capture mode
136 #define ATMEL_TC_SWTRG (1 << 2) /* software trigger */
161 #define ATMEL_TC_ETRGEDG (3 << 8) /* external trigger edge */
166 #define ATMEL_TC_ABETRG (1 << 10) /* external trigger is TIOA? */
167 #define ATMEL_TC_CPCTRG (1 << 14) /* RC compare trigger enable */
192 #define ATMEL_TC_ENETRG (1 << 12) /* external event is trigger */
213 #define ATMEL_TC_ASWTRG (3 << 22) /* software trigger changes TIOA */
233 #define ATMEL_TC_BSWTRG (3 << 30) /* software trigger changes TIOB */
262 #define ATMEL_TC_ETRGS (1 << 7) /* external trigger */
H A Dgameport.h30 void (*trigger)(struct gameport *); member in struct:gameport
171 if (gameport->trigger) gameport_trigger()
172 gameport->trigger(gameport); gameport_trigger()
H A Drfkill.h276 * rfkill_get_led_trigger_name - Get the LED trigger name for the button's LED.
278 * LED trigger failed. Use this as "default_trigger" for the LED.
283 * rfkill_set_led_trigger_name -- set the LED trigger name
285 * @name: LED trigger name
287 * This function sets the LED trigger name of the radio LED
288 * trigger that rfkill creates. It is optional, but if called
/linux-4.1.27/tools/iio/
H A Dgeneric_buffer.c16 * If trigger name is not specified the program assumes you want a dataready
17 * trigger associated with the device and goes looking for it.
215 * Build the trigger name. If it is device associated main()
227 /* Verify the trigger exists */ main()
228 trig_num = find_type_by_name(trigger_name, "trigger"); main()
230 printf("Failed to find the trigger %s\n", trigger_name); main()
234 printf("iio trigger number being used is %d\n", trig_num); main()
236 printf("trigger-less mode selected\n"); main()
263 /* Set the device trigger to be the data ready trigger found main()
265 ret = write_sysfs_string_and_verify("trigger/current_trigger", main()
342 /* Disconnect the trigger - just write a dummy name. */ main()
343 write_sysfs_string("trigger/current_trigger", main()
/linux-4.1.27/arch/powerpc/platforms/85xx/
H A Dsgy_cts1000.c44 int trigger, gpio; gpio_halt_cb() local
54 trigger = (flags == OF_GPIO_ACTIVE_LOW); gpio_halt_cb()
59 gpio_set_value(gpio, trigger); gpio_halt_cb()
77 int trigger; gpio_halt_probe() local
105 trigger = (flags == OF_GPIO_ACTIVE_LOW); gpio_halt_probe()
107 gpio_direction_output(gpio, !trigger); gpio_halt_probe()
125 printk(KERN_INFO "gpio-halt: registered GPIO %d (%d trigger, %d" gpio_halt_probe()
126 " irq).\n", gpio, trigger, irq); gpio_halt_probe()
/linux-4.1.27/drivers/iio/trigger/
H A Diio-trig-interrupt.c2 * Industrial I/O - generic interrupt based trigger support
18 #include <linux/iio/trigger.h>
81 /* First clean up the partly allocated trigger */ iio_interrupt_trigger_probe()
118 MODULE_DESCRIPTION("Interrupt trigger for the iio subsystem");
H A Diio-trig-sysfs.c16 #include <linux/iio/trigger.h>
227 MODULE_DESCRIPTION("Sysfs based trigger for the iio subsystem");
/linux-4.1.27/drivers/net/wireless/iwlwifi/
H A Diwl-fw-error-dump.h239 * @FW_DBG_TRIGGER_USER: trigger log collection by user
240 * This should not be defined as a trigger to the driver, but a value the
241 * driver should set to indicate that the trigger was initiated by the
243 * @FW_DBG_TRIGGER_FW_ASSERT: trigger log collection when the firmware asserts
244 * @FW_DBG_TRIGGER_MISSED_BEACONS: trigger log collection when beacons are
246 * @FW_DBG_TRIGGER_CHANNEL_SWITCH: trigger log collection upon channel switch.
247 * @FW_DBG_TRIGGER_FW_NOTIF: trigger log collection when the firmware sends a
249 * @FW_DBG_TRIGGER_MLME: trigger log collection upon MLME event.
250 * @FW_DBG_TRIGGER_STATS: trigger log collection upon statistics threshold.
251 * @FW_DBG_TRIGGER_RSSI: trigger log collection when the rssi of the beacon
255 * @FW_DBG_TRIGGER_TIME_EVENT: trigger log collection upon time events related
276 * struct iwl_fw_error_dump_trigger_desc - describes the trigger condition
H A Diwl-fw-file.h472 * @IWL_FW_DBG_TRIGGER_START: when trigger occurs re-conf the dbg mechanism
473 * @IWL_FW_DBG_TRIGGER_STOP: when trigger occurs pull the dbg data
481 * enum iwl_fw_dbg_trigger_vif_type - define the VIF type for a trigger
501 * struct iwl_fw_dbg_trigger_tlv - a TLV that describes the trigger
504 * @stop_conf_ids: bitmap of configurations this trigger relates to.
509 * after the STOP trigger fires.
513 * @occurrences: number of occurrences. 0 means the trigger will never fire.
533 * struct iwl_fw_dbg_trigger_missed_bcon - configures trigger for missed beacons
551 * struct iwl_fw_dbg_trigger_cmd - configures trigger for messages from FW.
552 * cmds: the list of commands to trigger the collection on
562 * iwl_fw_dbg_trigger_stats - configures trigger for statistics
576 * struct iwl_fw_dbg_trigger_low_rssi - trigger for low beacon RSSI
577 * @rssi: RSSI value to trigger at
584 * struct iwl_fw_dbg_trigger_mlme - configures trigger for mlme events
646 * struct iwl_fw_dbg_trigger_time_event - configures a time event trigger
648 * trigger each time a time event notification that relates to time event
/linux-4.1.27/arch/x86/include/asm/
H A Dhw_breakpoint.h36 /* trigger on instruction execute */
38 /* trigger on memory write */
40 /* trigger on memory read or write */
H A Dapb_timer.h36 extern int arch_setup_apbt_irqs(int irq, int trigger, int mask, int cpu);
H A Dmwait.h43 * which can obviate IPI to trigger checking of need_resched.
H A Dio_apic.h76 trigger : 1, /* 0: edge, 1: level */ member in struct:IO_APIC_route_entry
91 trigger : 1, member in struct:IR_IO_APIC_route_entry
167 int trigger; member in struct:io_apic_irq_attr
206 extern int mp_set_gsi_attr(u32 gsi, int trigger, int polarity, int node);
H A Dlguest_hcall.h51 /* "int" is the Intel instruction to trigger a trap. */ hcall()
/linux-4.1.27/drivers/power/reset/
H A Dltc2952-poweroff.c32 * - trigger (input)
33 * A level change indicates the shut-down trigger. If it's state reverts
51 * The driver requires a non-shared, edge-triggered interrupt on the trigger
140 * Triggered each time the trigger signal changes state and (de)activates a
205 data->gpio_trigger = devm_gpiod_get(&pdev->dev, "trigger", GPIOD_IN); ltc2952_poweroff_init()
208 * It's not a problem if the trigger gpio isn't available, but ltc2952_poweroff_init()
214 "unable to claim gpio \"trigger\"\n"); ltc2952_poweroff_init()
225 * - No trigger input was defined ltc2952_poweroff_init()
236 * start the watchdog trigger. ltc2952_poweroff_init()
240 "unable to configure the trigger interrupt\n"); ltc2952_poweroff_init()
245 "power down trigger input will not be used\n"); ltc2952_poweroff_init()
/linux-4.1.27/arch/x86/kernel/
H A Ddevicetree.c171 u32 trigger; member in struct:of_ioapic_type
179 .trigger = IOAPIC_EDGE,
184 .trigger = IOAPIC_LEVEL,
189 .trigger = IOAPIC_LEVEL,
194 .trigger = IOAPIC_EDGE,
219 if (mp_set_gsi_attr(gsi, it->trigger, it->polarity, cpu_to_node(0))) ioapic_xlate()
H A Di8259.c233 static void restore_ELCR(char *trigger) restore_ELCR() argument
235 outb(trigger[0], 0x4d0); restore_ELCR()
236 outb(trigger[1], 0x4d1); restore_ELCR()
239 static void save_ELCR(char *trigger) save_ELCR() argument
242 trigger[0] = inb(0x4d0) & 0xF8; save_ELCR()
243 trigger[1] = inb(0x4d1) & 0xDE; save_ELCR()
/linux-4.1.27/drivers/staging/iio/adc/
H A Dad7606_ring.c22 * ad7606_trigger_handler_th() th/bh of trigger launched polling to ring buffer
36 * ad7606_poll_bh_to_ring() bh of trigger launched polling to ring buffer
42 * trigger was set far too high and the reads then locked up the computer.
/linux-4.1.27/include/sound/
H A Dpcm_oss.h42 trigger: 1, /* trigger flag */ member in struct:snd_pcm_oss_runtime
43 sync_trigger: 1; /* sync trigger flag */
H A Dwm8996.h37 int irq_flags; /** Set IRQ trigger flags; default active low */
H A Dsoc-dpcm.h55 * Dynamic PCM trigger ordering. Triggering flexibility is required as some
59 * trigger() whilst others will just use the regular core ordering.
106 int trigger_pending; /* trigger cmd + 1 if pending, 0 if not */
H A Drawmidi.h56 void (*trigger) (struct snd_rawmidi_substream * substream, int up); member in struct:snd_rawmidi_ops
84 /* defers calls to event [input] or ops->trigger [output] */
H A Dseq_virmidi.h39 unsigned int trigger: 1; member in struct:snd_virmidi
/linux-4.1.27/security/tomoyo/
H A Dload_policy.c51 * Path to the trigger. (default = CONFIG_SECURITY_TOMOYO_ACTIVATION_TRIGGER)
56 * tomoyo_trigger_setup - Set trigger for activation.
58 * @str: Program to use as an activation trigger (e.g. /sbin/init ).
/linux-4.1.27/arch/x86/include/asm/uv/
H A Duv_irq.h22 trigger : 1, member in struct:uv_IO_APIC_route_entry
/linux-4.1.27/arch/arm/mach-omap2/
H A Domap4-restart.c15 * omap44xx_restart - trigger a software restart of the SoC
H A Dam33xx-restart.c15 * am3xx_restart - trigger a software restart of the SoC
H A Domap3-restart.c23 * omap3xxx_restart - trigger a software restart of the SoC
H A Dti81xx-restart.c19 * ti81xx_restart - trigger a software restart of the SoC
/linux-4.1.27/tools/testing/selftests/timers/
H A DMakefile22 # and may modify the system time or trigger
/linux-4.1.27/arch/ia64/kernel/
H A Diosapic.c147 unsigned char trigger : 1; /* trigger mode (see iosapic.h) */ member in struct:iosapic_intr_info
219 unsigned long pol, trigger, dmode; set_rte() local
234 trigger = iosapic_intr_info[irq].trigger; set_rte()
244 (trigger << IOSAPIC_TRIGGER_SHIFT) | set_rte()
485 static int iosapic_find_sharable_irq(unsigned long trigger, unsigned long pol) iosapic_find_sharable_irq() argument
494 if (trigger == IOSAPIC_EDGE) iosapic_find_sharable_irq()
499 if (info->trigger == trigger && info->polarity == pol && iosapic_find_sharable_irq()
545 ia64_native_iosapic_get_irq_chip(unsigned long trigger) ia64_native_iosapic_get_irq_chip() argument
547 if (trigger == IOSAPIC_EDGE) ia64_native_iosapic_get_irq_chip()
555 unsigned long polarity, unsigned long trigger) register_intr()
587 (info->trigger != trigger || info->polarity != polarity)){ register_intr()
600 iosapic_intr_info[irq].trigger = trigger; register_intr()
602 irq_type = iosapic_get_irq_chip(trigger); register_intr()
613 __irq_set_chip_handler_name_locked(irq, chip, trigger == IOSAPIC_EDGE ? register_intr()
717 unsigned long polarity, unsigned long trigger) iosapic_register_intr()
748 irq = iosapic_find_sharable_irq(trigger, polarity); iosapic_register_intr()
757 err = register_intr(gsi, irq, dmode, polarity, trigger); iosapic_register_intr()
774 gsi, (trigger == IOSAPIC_EDGE ? "edge" : "level"), iosapic_register_intr()
790 unsigned long trigger, polarity; iosapic_unregister_intr() local
829 trigger = iosapic_intr_info[irq].trigger; iosapic_unregister_intr()
834 gsi, (trigger == IOSAPIC_EDGE ? "edge" : "level"), iosapic_unregister_intr()
847 iosapic_intr_info[irq].trigger = 0; iosapic_unregister_intr()
863 unsigned long polarity, unsigned long trigger) iosapic_register_platform_intr()
900 register_intr(gsi, irq, delivery, polarity, trigger); iosapic_register_platform_intr()
906 int_type, gsi, (trigger == IOSAPIC_EDGE ? "edge" : "level"), iosapic_register_platform_intr()
918 unsigned long polarity, unsigned long trigger) iosapic_override_isa_irq()
927 register_intr(gsi, irq, dmode, polarity, trigger); iosapic_override_isa_irq()
930 isa_irq, gsi, trigger == IOSAPIC_EDGE ? "edge" : "level", iosapic_override_isa_irq()
554 register_intr(unsigned int gsi, int irq, unsigned char delivery, unsigned long polarity, unsigned long trigger) register_intr() argument
716 iosapic_register_intr(unsigned int gsi, unsigned long polarity, unsigned long trigger) iosapic_register_intr() argument
861 iosapic_register_platform_intr(u32 int_type, unsigned int gsi, int iosapic_vector, u16 eid, u16 id, unsigned long polarity, unsigned long trigger) iosapic_register_platform_intr() argument
917 iosapic_override_isa_irq(unsigned int isa_irq, unsigned int gsi, unsigned long polarity, unsigned long trigger) iosapic_override_isa_irq() argument
/linux-4.1.27/kernel/irq/
H A Dmigration.c37 * but in a edge trigger case, we might be setting rte irq_move_masked_irq()
38 * when an active trigger is coming in. This could irq_move_masked_irq()
H A Dautoprobe.c61 /* Wait for longstanding interrupts to trigger. */
80 * Wait for spurious interrupts to trigger
H A Dresend.c80 * careful, because we cannot trigger it check_irq_resend()
/linux-4.1.27/tools/testing/selftests/powerpc/mm/
H A Dhugetlb_vs_thp_test.c42 * Either a user or kernel access is sufficient to trigger the bug. test_body()
43 * A kernel access is easier to spot & debug, as it will trigger the test_body()
/linux-4.1.27/arch/arm/include/asm/
H A Dcti.h40 * struct cti - cross trigger interface struct
76 * @trig_in: trigger in number
77 * @trig_out: trigger out number
80 * This function maps one trigger in of @trig_in to one trigger
H A Dhw_breakpoint.h22 u32 trigger; member in struct:arch_hw_breakpoint
/linux-4.1.27/drivers/pinctrl/samsung/
H A Dpinctrl-s3c64xx.c62 /* S3C64xx specific external interrupt trigger types */
238 int trigger; s3c64xx_irq_get_trigger() local
242 trigger = EINT_EDGE_RISING; s3c64xx_irq_get_trigger()
245 trigger = EINT_EDGE_FALLING; s3c64xx_irq_get_trigger()
248 trigger = EINT_EDGE_BOTH; s3c64xx_irq_get_trigger()
251 trigger = EINT_LEVEL_HIGH; s3c64xx_irq_get_trigger()
254 trigger = EINT_LEVEL_LOW; s3c64xx_irq_get_trigger()
260 return trigger; s3c64xx_irq_get_trigger()
349 int trigger; s3c64xx_gpio_irq_set_type() local
353 trigger = s3c64xx_irq_get_trigger(type); s3c64xx_gpio_irq_set_type()
354 if (trigger < 0) { s3c64xx_gpio_irq_set_type()
361 /* Set up interrupt trigger */ s3c64xx_gpio_irq_set_type()
364 shift = 4 * (shift / 4); /* 4 EINTs per trigger selector */ s3c64xx_gpio_irq_set_type()
368 val |= trigger << shift; s3c64xx_gpio_irq_set_type()
561 int trigger; s3c64xx_eint0_irq_set_type() local
565 trigger = s3c64xx_irq_get_trigger(type); s3c64xx_eint0_irq_set_type()
566 if (trigger < 0) { s3c64xx_eint0_irq_set_type()
573 /* Set up interrupt trigger */ s3c64xx_eint0_irq_set_type()
584 val |= trigger << shift; s3c64xx_eint0_irq_set_type()
H A Dpinctrl-exynos.h41 /* Exynos specific external interrupt trigger types */
/linux-4.1.27/drivers/gpio/
H A Dgpio-vr41xx.c232 void vr41xx_set_irq_trigger(unsigned int pin, irq_trigger_t trigger, vr41xx_set_irq_trigger() argument
239 if (trigger != IRQ_TRIGGER_LEVEL) { vr41xx_set_irq_trigger()
246 switch (trigger) { vr41xx_set_irq_trigger()
274 if (trigger != IRQ_TRIGGER_LEVEL) { vr41xx_set_irq_trigger()
281 switch (trigger) { vr41xx_set_irq_trigger()
516 unsigned int trigger, i, pin; giu_probe() local
556 trigger = giu_read(GIUINTTYPH) << 16; giu_probe()
557 trigger |= giu_read(GIUINTTYPL); giu_probe()
565 if (trigger & (1 << pin)) giu_probe()
H A Dgpio-davinci.c313 static int gpio_irq_type(struct irq_data *d, unsigned trigger) gpio_irq_type() argument
315 if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) gpio_irq_type()
366 /* now it may re-trigger */ gpio_irq_handler()
393 static int gpio_irq_type_unbanked(struct irq_data *data, unsigned trigger) gpio_irq_type_unbanked() argument
403 if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) gpio_irq_type_unbanked()
406 writel_relaxed(mask, (trigger & IRQ_TYPE_EDGE_FALLING) gpio_irq_type_unbanked()
408 writel_relaxed(mask, (trigger & IRQ_TYPE_EDGE_RISING) gpio_irq_type_unbanked()
540 * controller only handling trigger modes. We currently assume no davinci_gpio_irq_setup()
556 /* default trigger: both edges */ davinci_gpio_irq_setup()
H A Dgpio-timberdale.c136 static int timbgpio_irq_type(struct irq_data *d, unsigned trigger) timbgpio_irq_type() argument
157 if (trigger & (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW)) { timbgpio_irq_type()
160 if (trigger & IRQ_TYPE_LEVEL_HIGH) timbgpio_irq_type()
166 if ((trigger & IRQ_TYPE_EDGE_BOTH) == IRQ_TYPE_EDGE_BOTH) { timbgpio_irq_type()
177 if (trigger & IRQ_TYPE_EDGE_FALLING) timbgpio_irq_type()
H A Dgpio-pl061.c143 static int pl061_irq_type(struct irq_data *d, unsigned trigger) pl061_irq_type() argument
161 if (trigger & (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW)) { pl061_irq_type()
163 if (trigger & IRQ_TYPE_LEVEL_HIGH) pl061_irq_type()
170 if ((trigger & IRQ_TYPE_EDGE_BOTH) == IRQ_TYPE_EDGE_BOTH) pl061_irq_type()
175 if (trigger & IRQ_TYPE_EDGE_RISING) pl061_irq_type()
177 else if (trigger & IRQ_TYPE_EDGE_FALLING) pl061_irq_type()
H A Dgpio-omap.c294 unsigned trigger) omap_set_gpio_trigger()
300 trigger & IRQ_TYPE_LEVEL_LOW); omap_set_gpio_trigger()
302 trigger & IRQ_TYPE_LEVEL_HIGH); omap_set_gpio_trigger()
304 trigger & IRQ_TYPE_EDGE_RISING); omap_set_gpio_trigger()
306 trigger & IRQ_TYPE_EDGE_FALLING); omap_set_gpio_trigger()
318 omap_gpio_rmw(base, bank->regs->wkup_en, gpio_bit, trigger != 0); omap_set_gpio_trigger()
332 * Log the edge gpio and manually trigger the IRQ omap_set_gpio_trigger()
337 if (trigger & IRQ_TYPE_EDGE_BOTH) omap_set_gpio_trigger()
377 unsigned trigger) omap_set_gpio_triggering()
384 omap_set_gpio_trigger(bank, gpio, trigger); omap_set_gpio_triggering()
389 if ((trigger & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_BOTH) omap_set_gpio_triggering()
391 if (trigger & IRQ_TYPE_EDGE_RISING) omap_set_gpio_triggering()
393 else if (trigger & IRQ_TYPE_EDGE_FALLING) omap_set_gpio_triggering()
408 if (trigger & IRQ_TYPE_EDGE_RISING) omap_set_gpio_triggering()
410 if (trigger & IRQ_TYPE_EDGE_FALLING) omap_set_gpio_triggering()
414 omap_gpio_rmw(base, bank->regs->wkup_en, BIT(gpio), trigger); omap_set_gpio_triggering()
672 /* Set trigger to none. You need to enable the desired trigger with omap_gpio_request()
849 u32 trigger = irqd_get_trigger_type(d); omap_gpio_unmask_irq() local
853 if (trigger) omap_gpio_unmask_irq()
854 omap_set_gpio_triggering(bank, offset, trigger); omap_gpio_unmask_irq()
1336 * GPIOs were set to edge trigger also in order to be able to omap_gpio_runtime_resume()
293 omap_set_gpio_trigger(struct gpio_bank *bank, int gpio, unsigned trigger) omap_set_gpio_trigger() argument
376 omap_set_gpio_triggering(struct gpio_bank *bank, int gpio, unsigned trigger) omap_set_gpio_triggering() argument
H A Dgpiolib.h86 #define FLAG_TRIG_FALL 4 /* trigger on falling edge */
87 #define FLAG_TRIG_RISE 5 /* trigger on rising edge */
/linux-4.1.27/drivers/platform/mips/
H A Dacpi_init.c120 /* GPM3 config ACPI trigger SCIOUT */ acpi_registers_setup()
123 /* GPM9 config ACPI trigger SCIOUT */ acpi_registers_setup()
126 /* GPM3 config falling edge trigger */ acpi_registers_setup()
/linux-4.1.27/arch/x86/kernel/acpi/
H A Dboot.c324 static void __init mp_override_legacy_irq(u8 bus_irq, u8 polarity, u8 trigger, mp_override_legacy_irq() argument
341 * erroneously sets the trigger to level, resulting in a HUGE mp_override_legacy_irq()
344 if ((bus_irq == 0) && (trigger == 3)) mp_override_legacy_irq()
345 trigger = 1; mp_override_legacy_irq()
349 mp_irq.irqflag = (trigger << 2) | polarity; mp_override_legacy_irq()
367 static int mp_config_acpi_gsi(struct device *dev, u32 gsi, int trigger, mp_config_acpi_gsi() argument
390 mp_irq.irqflag = (trigger == ACPI_EDGE_SENSITIVE ? 4 : 0x0c) | mp_config_acpi_gsi()
403 static int mp_register_gsi(struct device *dev, u32 gsi, int trigger, mp_register_gsi() argument
411 trigger = trigger == ACPI_EDGE_SENSITIVE ? 0 : 1; mp_register_gsi()
414 if (mp_set_gsi_attr(gsi, trigger, polarity, node)) { mp_register_gsi()
425 mp_config_acpi_gsi(dev, gsi, trigger, polarity); mp_register_gsi()
476 static void __init acpi_sci_ioapic_setup(u8 bus_irq, u16 polarity, u16 trigger, u32 gsi) acpi_sci_ioapic_setup() argument
478 if (trigger == 0) /* compatible SCI trigger is level */ acpi_sci_ioapic_setup()
479 trigger = 3; acpi_sci_ioapic_setup()
486 trigger = (acpi_sci_flags & ACPI_MADT_TRIGGER_MASK) >> 2; acpi_sci_ioapic_setup()
491 mp_override_legacy_irq(bus_irq, polarity, trigger, gsi); acpi_sci_ioapic_setup()
492 acpi_penalize_sci_irq(bus_irq, trigger, polarity); acpi_sci_ioapic_setup()
566 * use ELCR to set PIC-mode trigger type for SCI
577 void __init acpi_pic_sci_set_trigger(unsigned int irq, u16 trigger) acpi_pic_sci_set_trigger() argument
596 switch (trigger) { acpi_pic_sci_set_trigger()
615 int rc, irq, trigger, polarity; acpi_gsi_to_irq() local
622 rc = acpi_get_override_irq(gsi, &trigger, &polarity); acpi_gsi_to_irq()
624 trigger = trigger ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE; acpi_gsi_to_irq()
626 irq = acpi_register_gsi(NULL, gsi, trigger, polarity); acpi_gsi_to_irq()
649 int trigger, int polarity) acpi_register_gsi_pic()
655 if (trigger == ACPI_LEVEL_SENSITIVE) acpi_register_gsi_pic()
664 int trigger, int polarity) acpi_register_gsi_ioapic()
670 irq = mp_register_gsi(dev, gsi, trigger, polarity); acpi_register_gsi_ioapic()
688 int trigger, int polarity) = acpi_register_gsi_pic;
701 int acpi_register_gsi(struct device *dev, u32 gsi, int trigger, int polarity) acpi_register_gsi() argument
703 return __acpi_register_gsi(dev, gsi, trigger, polarity); acpi_register_gsi()
648 acpi_register_gsi_pic(struct device *dev, u32 gsi, int trigger, int polarity) acpi_register_gsi_pic() argument
663 acpi_register_gsi_ioapic(struct device *dev, u32 gsi, int trigger, int polarity) acpi_register_gsi_ioapic() argument
/linux-4.1.27/drivers/isdn/hardware/eicon/
H A Dum_xdi.h21 #define DIVA_UM_IDI_GET_FEATURES 1 /* trigger features indication */
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Daddi_apci_1500.c58 /* Digital trigger configuration [0]=AND [1]=OR */
307 /* Set Port A for selected trigger pattern */ apci1500_di_inttrig_start()
312 /* Set Port B for selected trigger pattern */ apci1500_di_inttrig_start()
317 /* Set Port A trigger mode (if enabled) and enable interrupt */ apci1500_di_inttrig_start()
336 /* Set Port B trigger mode (if enabled) and enable interrupt */ apci1500_di_inttrig_start()
360 "digital trigger %d is not configured\n", trig_num); apci1500_di_inttrig_start()
396 /* Step 2a : make sure trigger sources are unique */ apci1500_di_cmdtest()
445 * data[1] : trigger number
474 "invalid digital trigger number (0=AND, 1=OR)\n"); apci1500_di_cfg_trig()
479 dev_dbg(dev->class_dev, "invalid digital trigger channel\n"); apci1500_di_cfg_trig()
485 /* clear trigger configuration */ apci1500_di_cfg_trig()
507 * The AND mode trigger can only have one channel (max) enabled apci1500_di_cfg_trig()
524 "invalid AND trigger configuration\n"); apci1500_di_cfg_trig()
529 /* save the trigger configuration */ apci1500_di_cfg_trig()
718 cmd |= Z8536_CT_CMD_TCB; /* set trigger */ apci1500_timer_insn_write()
720 /* software trigger a timer, it only makes sense to do one write */ apci1500_timer_insn_write()
H A Damplc_pci230.c100 * TRIG_EXT is not supported. The trigger is a rising edge
172 * trigger input for AI commands on PCI230 and PCI230+, so would need to
219 #define PCI230_ADCSWTRIG 0x08 /* ADC software trigger (w) */
224 #define PCI230P_ADCTRIG 0x10 /* ADC start acquisition trigger */
225 #define PCI230P_ADCTH 0x12 /* ADC analog trigger threshold */
228 #define PCI230P_ADCPTSC 0x18 /* ADC pre-trigger sample count (r) */
229 #define PCI230P_ADCHYST 0x1A /* ADC analog trigger hysteresys */
234 #define PCI230P2_DACSWTRIG 0x02 /* DAC soft trigger (FIFO mode) (r) */
252 #define PCI230P2_DAC_TRIG_NONE (0 << 2) /* No trigger */
253 #define PCI230P2_DAC_TRIG_SW (1 << 2) /* Software trigger trigger */
254 #define PCI230P2_DAC_TRIG_EXTP (2 << 2) /* EXTTRIG +ve edge trigger */
255 #define PCI230P2_DAC_TRIG_EXTN (3 << 2) /* EXTTRIG -ve edge trigger */
256 #define PCI230P2_DAC_TRIG_Z2CT0 (4 << 2) /* CT0-OUT +ve edge trigger */
257 #define PCI230P2_DAC_TRIG_Z2CT1 (5 << 2) /* CT1-OUT +ve edge trigger */
258 #define PCI230P2_DAC_TRIG_Z2CT2 (6 << 2) /* CT2-OUT +ve edge trigger */
307 #define PCI230_ADC_TRIG_NONE (0 << 0) /* No trigger */
308 #define PCI230_ADC_TRIG_SW (1 << 0) /* Software trigger trigger */
309 #define PCI230_ADC_TRIG_EXTP (2 << 0) /* EXTTRIG +ve edge trigger */
310 #define PCI230_ADC_TRIG_EXTN (3 << 0) /* EXTTRIG -ve edge trigger */
311 #define PCI230_ADC_TRIG_Z2CT0 (4 << 0) /* CT0-OUT +ve edge trigger */
312 #define PCI230_ADC_TRIG_Z2CT1 (5 << 0) /* CT1-OUT +ve edge trigger */
313 #define PCI230_ADC_TRIG_Z2CT2 (6 << 0) /* CT2-OUT +ve edge trigger */
744 * Use Z2-CT2 as a conversion trigger instead of the built-in pci230_ai_insn_read()
745 * software trigger, as otherwise triggering of differential channels pci230_ai_insn_read()
893 * trigger from EXTTRIG/EXTCONVCLK input (PCI230+ pin 25). pci230_ao_cmdtest()
916 /* Step 2a : make sure trigger sources are unique */ pci230_ao_cmdtest()
946 * External trigger - for PCI230+ hardware version 2 onwards. pci230_ao_cmdtest()
1154 * to FIFO. Set FIFO interrupt trigger level pci230_handle_ao_fifo()
1195 /* Read DACSWTRIG register to trigger conversion. */ pci230_ao_inttrig_scan_begin()
1227 /* Set scan trigger source. */ pci230_ao_start()
1332 * Set DAC FIFO interrupt trigger level to 'not half full'. pci230_ao_cmd()
1515 * Unfortunately, we cannot trigger a scan off an external pci230_ai_cmdtest()
1531 /* Step 2a : make sure trigger sources are unique */ pci230_ai_cmdtest()
1594 * external trigger pci230_ai_cmdtest()
1597 * => trigger on +ve edge. pci230_ai_cmdtest()
1599 * => trigger on -ve edge. pci230_ai_cmdtest()
1623 * convert_arg == 0 => trigger on -ve edge. pci230_ai_cmdtest()
1624 * convert_arg == 1 => trigger on +ve edge. pci230_ai_cmdtest()
1643 * external "trigger" to begin each scan: pci230_ai_cmdtest()
1645 * of CT2 (sample convert trigger is CT2) pci230_ai_cmdtest()
1864 /* Enable ADC FIFO trigger level interrupt. */ pci230_ai_start()
1871 * Update conversion trigger source which is currently set pci230_ai_start()
1904 * Use CT2 output for software trigger due to problems pci230_ai_start()
1916 * Update FIFO interrupt trigger level, which is currently pci230_ai_start()
1939 /* Set monostable CT0 trigger source. */ pci230_ai_start()
1946 * For CT0 on PCI230, the external trigger pci230_ai_start()
1951 * trigger. pci230_ai_start()
2067 /* update FIFO interrupt trigger level if still running */ pci230_handle_ai()
2089 * Need Z2-CT2 to supply a conversion trigger source at a high pci230_ai_cmd()
2114 * may have been a false conversion trigger on some versions of pci230_ai_cmd()
2118 * - Set actual conversion trigger source and FIFO interrupt trigger pci230_ai_cmd()
2184 * Temporarily use CT2 output as conversion trigger source and pci230_ai_cmd()
2185 * temporarily set FIFO interrupt trigger level to 'full'. pci230_ai_cmd()
2190 * Enable and reset FIFO, specify FIFO trigger level full, specify pci230_ai_cmd()
2193 * will produce a false conversion trigger on some versions of the pci230_ai_cmd()
2227 * rising edge on the trigger (gate) input of CT0 will pci230_ai_cmd()
2228 * trigger the monostable, causing its output to go low pci230_ai_cmd()
2233 * Set the trigger high before setting up the pci230_ai_cmd()
2234 * monostable to stop it triggering. The trigger pci230_ai_cmd()
H A Dadl_pci9118.c24 * - If cmd->scan_begin_src=TRIG_EXT then trigger input is TGIN (pin 46).
25 * - If cmd->convert_src=TRIG_EXT then trigger input is EXTTRG (pin 44).
26 * - If cmd->start_src/stop_src=TRIG_EXT then trigger input is TGIN (pin 46).
102 #define PCI9118_AI_STATUS_ACMP (1 << 5) /* 1=about trigger complete */
103 #define PCI9118_AI_STATUS_DTH (1 << 4) /* 1=ext. digital trigger */
113 #define PCI9118_AI_CTRL_EXTM (1 << 3) /* 1=ext. trigger (pin 44) */
114 #define PCI9118_AI_CTRL_TMRTR (1 << 2) /* 1=8254 is trigger source */
125 #define PCI9118_AI_CFG_PDTRG (1 << 7) /* 1=positive trigger */
126 #define PCI9118_AI_CFG_PETRG (1 << 6) /* 1=positive ext. trigger */
130 #define PCI9118_AI_CFG_PM (1 << 2) /* 1=post trigger */
131 #define PCI9118_AI_CFG_AM (1 << 1) /* 1=about trigger */
132 #define PCI9118_AI_CFG_START (1 << 0) /* 1=trigger start */
136 #define PCI9118_INT_CTRL_ABOUT (1 << 2) /* about trigger complete */
138 #define PCI9118_INT_CTRL_DTRG (1 << 0) /* ext. digital trigger */
140 #define START_AI_EXT 0x01 /* start measure on external trigger */
141 #define STOP_AI_EXT 0x02 /* stop measure on external trigger */
142 #define STOP_AI_INT 0x08 /* stop measure on internal trigger */
237 * on external trigger
761 /* deactivate EXT trigger */ pci9118_interrupt()
771 /* deactivate EXT trigger */ pci9118_interrupt()
1116 /* external trigger conversion */ pci9118_ai_cmd()
1152 /* start async command now or wait for internal trigger */ pci9118_ai_cmd()
1158 /* enable external trigger for command start/stop */ pci9118_ai_cmd()
1196 /* Step 2a : make sure trigger sources are unique */ pci9118_ai_cmdtest()
1233 /* start_arg is the internal trigger (any value) */ pci9118_ai_cmdtest()
H A Damplc_pci224.c44 * There is only one external trigger source so only one of start_src,
96 * trigger source is switched from 'none' to 'timer' (scan_begin_src =
98 * of acquisition and the trigger source is at logic level 1 at the
126 #define PCI224_SOFTTRIG 0x00 /* (r-o) DAC software scan trigger. */
134 /* (r/w) Scan trigger. */
157 /* (r/w) FIFO interrupt trigger level (most values are not very useful). */
563 * Change FIFO interrupt trigger level to wait pci224_ao_handle_fifo()
577 * start of the acquisition. The DAC's scan trigger pci224_ao_handle_fifo()
581 * DAC's scan trigger source can be set to the pci224_ao_handle_fifo()
585 * if the scan trigger source is at logic level 1. pci224_ao_handle_fifo()
679 /* Step 2a : make sure trigger sources are unique */ pci224_ao_cmdtest()
688 * There's only one external trigger signal (which makes these pci224_ao_cmdtest()
711 /* Force to external trigger 0. */ pci224_ao_cmdtest()
737 /* Force to external trigger 0. */ pci224_ao_cmdtest()
763 /* Force to external trigger 0. */ pci224_ao_cmdtest()
811 * The output of timer Z2-0 will be used as the scan trigger pci224_ao_start_pacer()
864 * Set DAC scan trigger source to 'none'. pci224_ao_cmd()
865 * Set DAC FIFO interrupt trigger level to 'not half full'. pci224_ao_cmd()
888 /* Enable external interrupt trigger to start acquisition. */ pci224_ao_cmd()
H A Dni_at_a2150.c87 #define TRIGGER_REG 0x2 /* trigger config register */
90 #define HW_TRIG_EN 0x10 /* enable hardware trigger */
91 #define FIFO_START_REG 0x6 /* software start aquistion trigger */
208 * the stop_src set to an external trigger, in which case there a2150_interrupt()
431 /* Step 2a : make sure trigger sources are unique */ a2150_ai_cmdtest()
556 /* set trigger source to delay trigger */ a2150_ai_cmd()
562 /* enable external hardware trigger */ a2150_ai_cmd()
566 /* XXX add support for level/slope start trigger using TRIG_OTHER */ a2150_ai_cmd()
569 /* send trigger config bits */ a2150_ai_cmd()
572 /* start acquisition for soft trigger */ a2150_ai_cmd()
620 /* start acquisition for soft trigger */ a2150_ai_rinsn()
H A Damplc_pc236.c36 * a rising edge on port C bit 3 acts as an external trigger, which can be
H A Dcb_pcidas.c51 start_arg == 0 => gated trigger (level high)
52 start_arg == CR_INVERT => gated trigger (level low)
55 For the other boards the trigger will be done on rising edge
114 #define SW_TRIGGER 0x1 /* software start trigger */
115 #define EXT_TRIGGER 0x2 /* ext. start trigger */
116 #define ANALOG_TRIGGER 0x3 /* ext. analog trigger */
117 #define TRIGGER_MASK 0x3 /* start trigger mask */
118 #define TGPOL 0x04 /* invert trigger (1602 only) */
120 #define TGEN 0x10 /* enable external start trigger */
122 #define XTRCL 0x80 /* clear external trigger */
412 /* trigger conversion */ cb_pcidas_ai_rinsn()
790 /* Step 2a : make sure trigger sources are unique */ cb_pcidas_ai_cmdtest()
817 /* External trigger, only CR_EDGE and CR_INVERT flags allowed */ cb_pcidas_ai_cmdtest()
942 /* set start trigger and burst mode */ cb_pcidas_ai_cmd()
1001 /* Step 2a : make sure trigger sources are unique */ cb_pcidas_ao_cmdtest()
1067 /* disable start trigger source and burst mode */ cb_pcidas_cancel()
/linux-4.1.27/drivers/clocksource/
H A Dvf_pit_timer.c150 * The value for the LDVAL register trigger is calculated as: pit_clockevent_init()
151 * LDVAL trigger = (period / clock period) - 1 pit_clockevent_init()
154 * LDVAL trigger value is 1. And then the min_delta is pit_clockevent_init()
155 * minimal LDVAL trigger value + 1, and the max_delta is full 32-bit. pit_clockevent_init()
/linux-4.1.27/sound/soc/intel/boards/
H A Dhaswell.c117 .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
129 .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
140 .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
151 .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
H A Dbroadwell.c163 .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
175 .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
186 .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
197 .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
/linux-4.1.27/drivers/pcmcia/
H A Dpxa2xx_hx4700.c35 * The asic3 default IRQ type is level trigger low level detect, exactly hx4700_pcmcia_hw_init()
38 * repeatedly because it is unable to clear the level trigger interrupt. hx4700_pcmcia_hw_init()
/linux-4.1.27/arch/arm/mach-footbridge/
H A Debsa285.c37 const char *trigger; member in struct:__anon203
93 led->cdev.default_trigger = ebsa285_leds[i].trigger; ebsa285_leds_init()
H A Dnetwinder-hw.c195 * Keyboard IRQ 1, active high, edge trigger wb977_init_keyboard()
201 * Mouse IRQ 5, active high, edge trigger wb977_init_keyboard()
230 * IRDA IRQ 6, active high, edge trigger wb977_init_irda()
279 * GP10 (Orage button) IRQ 10, active high, edge trigger wb977_init_gpio()
676 const char *trigger; member in struct:__anon204
736 led->cdev.default_trigger = netwinder_leds[i].trigger; netwinder_leds_init()
/linux-4.1.27/sound/firewire/dice/
H A Ddice-midi.c84 .trigger = midi_capture_trigger,
90 .trigger = midi_playback_trigger,
/linux-4.1.27/arch/powerpc/sysdev/
H A Duic.c127 int trigger, polarity; uic_set_irq_type() local
136 trigger = 1; polarity = 1; uic_set_irq_type()
139 trigger = 1; polarity = 0; uic_set_irq_type()
142 trigger = 0; polarity = 1; uic_set_irq_type()
145 trigger = 0; polarity = 0; uic_set_irq_type()
156 tr = (tr & mask) | (trigger << (31-src)); uic_set_irq_type()
/linux-4.1.27/drivers/net/ethernet/freescale/
H A Dgianfar_ptp.c66 u32 tmr_etts1_h; /* Timestamp of general purpose external trigger */
67 u32 tmr_etts1_l; /* Timestamp of general purpose external trigger */
68 u32 tmr_etts2_h; /* Timestamp of general purpose external trigger */
69 u32 tmr_etts2_l; /* Timestamp of general purpose external trigger */
84 #define ETEP2 (1<<9) /* External trigger 2 edge polarity */
85 #define ETEP1 (1<<8) /* External trigger 1 edge polarity */
95 #define ETS2 (1<<25) /* External trigger 2 timestamp sampled */
96 #define ETS1 (1<<24) /* External trigger 1 timestamp sampled */
104 #define ETS2EN (1<<25) /* External trigger 2 timestamp enable */
105 #define ETS1EN (1<<24) /* External trigger 1 timestamp enable */
/linux-4.1.27/drivers/input/joystick/iforce/
H A Diforce-ff.c298 || old->trigger.button != new->trigger.button need_core()
299 || old->trigger.interval != new->trigger.interval need_core()
407 effect->trigger.button, iforce_upload_periodic()
408 effect->trigger.interval, iforce_upload_periodic()
467 effect->trigger.button, iforce_upload_constant()
468 effect->trigger.interval, iforce_upload_constant()
532 effect->trigger.button, effect->trigger.interval, iforce_upload_condition()
/linux-4.1.27/arch/x86/kernel/apic/
H A Dio_apic.c82 int trigger; member in struct:mp_pin_info
539 * Otherwise, we simulate the EOI message manually by changing the trigger
552 * Mask the entry and change the trigger mode to edge. native_eoi_ioapic_pin()
555 entry1.trigger = IOAPIC_EDGE; native_eoi_ioapic_pin()
601 * Make sure the trigger mode is set to level. Explicit EOI clear_IO_APIC_pin()
602 * doesn't clear the remote-IRR if the trigger mode is not clear_IO_APIC_pin()
605 if (!entry.trigger) { clear_IO_APIC_pin()
606 entry.trigger = IOAPIC_LEVEL; clear_IO_APIC_pin()
819 * trigger depending on the ELCR value. If an interrupt is listed as
820 * EISA conforming in the MP table, that means its trigger type must
877 int trigger; irq_trigger() local
880 * Determine IRQ trigger mode (edge or level sensitive): irq_trigger()
886 trigger = default_ISA_trigger(idx); irq_trigger()
888 trigger = default_PCI_trigger(idx); irq_trigger()
898 trigger = default_EISA_trigger(idx); irq_trigger()
909 trigger = 1; irq_trigger()
917 trigger = 0; irq_trigger()
923 trigger = 1; irq_trigger()
928 trigger = 1; irq_trigger()
934 trigger = 0; irq_trigger()
938 return trigger; irq_trigger()
1193 unsigned long trigger) ioapic_register_intr()
1199 if ((trigger == IOAPIC_AUTO && IO_APIC_irq_trigger(irq)) || ioapic_register_intr()
1200 trigger == IOAPIC_LEVEL) { ioapic_register_intr()
1209 fasteoi = trigger != 0; ioapic_register_intr()
1227 entry->trigger = attr->trigger; native_setup_ioapic_entry()
1234 if (attr->trigger) native_setup_ioapic_entry()
1265 cfg->vector, irq, attr->trigger, attr->polarity, dest); setup_ioapic_irq()
1275 ioapic_register_intr(irq, cfg, attr->trigger); setup_ioapic_irq()
1325 entry.trigger = 0; setup_timer_IRQ0_pin()
1356 entry.trigger, native_io_apic_print_entries()
1386 ir_entry->trigger, intel_ir_io_apic_print_entries()
1568 entry.trigger = 0; /* Edge */ native_disable_io_apic()
1970 * by setting the trigger mode to edge and then to level when the edge ack_ioapic_level()
1971 * trigger mode gets detected in the TMR of a local APIC for a ack_ioapic_level()
2121 entry1.trigger = 0; unlock_ExtINT_logic()
2225 /* for edge trigger, setup_ioapic_irq already check_timer()
2227 * so only need to unmask if it is level-trigger check_timer()
2228 * do we really have level trigger timer? check_timer()
2637 int acpi_get_override_irq(u32 gsi, int *trigger, int *polarity) acpi_get_override_irq() argument
2656 *trigger = irq_trigger(idx); acpi_get_override_irq()
3011 int trigger, int polarity) set_io_apic_irq_attr()
3015 irq_attr->trigger = trigger; set_io_apic_irq_attr()
3030 if (acpi_get_override_irq(gsi, &info->trigger, mp_irqdomain_map()
3036 info->trigger = 1; mp_irqdomain_map()
3043 * trigger and polarity attributes. Don't set the flag for that mp_irqdomain_map()
3045 * with real trigger and polarity attributes. mp_irqdomain_map()
3050 set_io_apic_irq_attr(&attr, ioapic, hwirq, info->trigger, mp_irqdomain_map()
3069 int mp_set_gsi_attr(u32 gsi, int trigger, int polarity, int node) mp_set_gsi_attr() argument
3081 trigger = trigger ? 1 : 0; mp_set_gsi_attr()
3086 info->trigger = trigger; mp_set_gsi_attr()
3090 } else if (info->trigger != trigger || info->polarity != polarity) { mp_set_gsi_attr()
1192 ioapic_register_intr(unsigned int irq, struct irq_cfg *cfg, unsigned long trigger) ioapic_register_intr() argument
3009 set_io_apic_irq_attr(struct io_apic_irq_attr *irq_attr, int ioapic, int ioapic_pin, int trigger, int polarity) set_io_apic_irq_attr() argument
/linux-4.1.27/drivers/irqchip/
H A Dirq-metag-ext.c7 * in the external trigger block. Interrupts from SoC peripherals are
8 * multiplexed onto a single Meta CPU "trigger" - traditionally it has always
9 * been trigger 2 (TR2). For info on how de-multiplexing happens check out
50 * @hw: Hardware IRQ number (within external trigger block)
61 * @hw: Hardware IRQ number (within external trigger block)
72 * @hw: Hardware IRQ number (within external trigger block)
85 * @hw: Hardware IRQ number (within external trigger block)
98 * @hw: Hardware IRQ number (within external trigger block)
111 * @hw: Hardware IRQ number (within external trigger block)
113 * Returns: Address of a HWVECEXT register controlling the core trigger to
232 * won't trigger an interrupt to the core.
246 * the IRQ can now trigger an interrupt to the core.
346 * Re-trigger interrupt meta_intc_unmask_edge_irq_nomask()
386 /* Re-trigger interrupt */ meta_intc_unmask_level_irq_nomask()
400 * when to trigger.
501 * Revector the specified external irq onto a specific cpu's TR2 trigger, so
561 * @d: irq domain of external trigger block
563 * @hw: hardware irq number within external trigger block
649 /* save trigger vector */ meta_intc_suspend()
668 /* save trigger matrixing */ meta_intc_suspend()
714 /* restore trigger vector */ meta_intc_resume()
745 /* restore trigger matrixing */ meta_intc_resume()
H A Dirq-metag.c171 * Re-trigger interrupt metag_internal_irq_unmask()
221 * figure out exactly which trigger needs servicing.
296 * @d: irq domain of internal trigger block
298 * @hw: hardware irq number within internal trigger block
/linux-4.1.27/drivers/base/
H A Dattribute_container.c127 * @fn: function to trigger addition of class device.
241 * attribute_container_device_trigger - execute a trigger for each matching classdev
243 * @dev: The generic device to run the trigger for
246 * This funcion is for executing a trigger when you need to know both
280 * attribute_container_trigger - trigger a function for each matching container
282 * @dev: The generic device to activate the trigger for
283 * @fn: the function to trigger
/linux-4.1.27/drivers/staging/comedi/
H A Dcomedidev.h133 * @inttrig: software trigger function for command, or NULL
468 * comedi_check_trigger_src() - trivially validate a comedi_cmd trigger source
469 * @src: pointer to the trigger source to validate
470 * @flags: bitmask of valid TRIG_* for the trigger
475 * triggers as TRIG_ANY and get back a bitmask of the valid trigger sources.
489 * comedi_check_trigger_is_unique() - make sure a trigger source is unique
490 * @src: the trigger source to check
501 * comedi_check_trigger_arg_is() - trivially validate a trigger argument
502 * @arg: pointer to the trigger arg to validate
516 * comedi_check_trigger_arg_min() - trivially validate a trigger argument
517 * @arg: pointer to the trigger arg to validate
531 * comedi_check_trigger_arg_max() - trivially validate a trigger argument
532 * @arg: pointer to the trigger arg to validate
H A Dcomedi.h123 /* trigger flags */
169 /* trigger sources */
174 #define TRIG_NONE 0x00000001 /* never trigger */
175 #define TRIG_NOW 0x00000002 /* trigger now + N ns */
176 #define TRIG_FOLLOW 0x00000004 /* trigger on next lower level trig */
177 #define TRIG_TIME 0x00000008 /* trigger at time N ns */
178 #define TRIG_TIMER 0x00000010 /* trigger at rate N ns */
179 #define TRIG_COUNT 0x00000020 /* trigger when count reaches N */
180 #define TRIG_EXT 0x00000040 /* trigger on external signal N */
181 #define TRIG_INT 0x00000080 /* trigger on comedi-internal signal N */
304 * data[1] = trigger ID
316 * COMEDI_DIGITAL_TRIG_DISABLE returns the trigger to its default, inactive,
320 * that each can fire the trigger.
323 * level inputs that can fire the trigger.
325 * "left-shift" is useful if the trigger has more than 32 inputs to specify the
330 * when setting up a trigger that has more than 32 inputs or has a combination
/linux-4.1.27/drivers/net/wireless/ti/wl12xx/
H A Dscan.c100 struct wl1271_cmd_trigger_scan_to *trigger; wl1271_scan_send() local
109 trigger = kzalloc(sizeof(*trigger), GFP_KERNEL); wl1271_scan_send()
110 if (!cmd || !trigger) { wl1271_scan_send()
165 trigger->timeout = cpu_to_le32(wl->conf.scan.split_scan_timeout); wl1271_scan_send()
166 ret = wl1271_cmd_send(wl, CMD_TRIGGER_SCAN_TO, trigger, wl1271_scan_send()
167 sizeof(*trigger), 0); wl1271_scan_send()
169 wl1271_error("trigger scan to failed for hw scan"); wl1271_scan_send()
183 kfree(trigger); wl1271_scan_send()
/linux-4.1.27/sound/core/seq/
H A Dseq_virmidi.c88 if (!vmidi->trigger) snd_virmidi_dev_receive_event()
137 * trigger rawmidi stream for input
144 vmidi->trigger = 1; snd_virmidi_input_trigger()
146 vmidi->trigger = 0; snd_virmidi_input_trigger()
151 * trigger rawmidi stream for output
161 vmidi->trigger = 1; snd_virmidi_output_trigger()
200 vmidi->trigger = 0; snd_virmidi_output_trigger()
355 .trigger = snd_virmidi_input_trigger,
361 .trigger = snd_virmidi_output_trigger,
/linux-4.1.27/drivers/net/wireless/prism54/
H A Disl_38xx.c99 DEBUG(SHOW_ANYTHING, "Wake up handler trigger the device\n"); isl38xx_handle_wakeup()
103 * trigger the device by setting the Update bit in the Device Int reg */ isl38xx_handle_wakeup()
117 DEBUG(SHOW_FUNCTION_CALLS, "isl38xx trigger device\n"); isl38xx_trigger_device()
122 /* device is in powersave, trigger the device for wakeup */ isl38xx_trigger_device()
180 /* trigger the device by setting the Update bit in the Device Int reg */ isl38xx_trigger_device()
/linux-4.1.27/drivers/s390/block/
H A Ddasd_eer.c245 * function dasd_eer_write and gives the respective trigger ID as
257 * The DASD_EER_STATECHANGE trigger is special since a sense subsystem
261 * trigger.
279 __u32 trigger; member in struct:dasd_eer_header
294 int trigger) dasd_eer_write_standard_trigger()
311 header.trigger = trigger; dasd_eer_write_standard_trigger()
334 * This function writes a DASD_EER_STATECHANGE trigger.
338 int trigger) dasd_eer_write_snss_trigger()
354 header.trigger = DASD_EER_STATECHANGE; dasd_eer_write_snss_trigger()
375 * function that writes the actual trigger records.
393 default: /* unknown trigger, so we write it without any sense data */ dasd_eer_write()
292 dasd_eer_write_standard_trigger(struct dasd_device *device, struct dasd_ccw_req *cqr, int trigger) dasd_eer_write_standard_trigger() argument
336 dasd_eer_write_snss_trigger(struct dasd_device *device, struct dasd_ccw_req *cqr, int trigger) dasd_eer_write_snss_trigger() argument
/linux-4.1.27/arch/m68k/include/asm/
H A Dmcfwdebug.h17 #define MCFDEBUG_AATR 0x6 /* Address attribute trigger */
26 /* Define some handy constants for the trigger definition register */
61 /* Constants for the address attribute trigger register */
/linux-4.1.27/sound/soc/
H A Dsoc-pcm.c966 if (codec_dai->driver->ops && codec_dai->driver->ops->trigger) { soc_pcm_trigger()
967 ret = codec_dai->driver->ops->trigger(substream, soc_pcm_trigger()
974 if (platform->driver->ops && platform->driver->ops->trigger) { soc_pcm_trigger()
975 ret = platform->driver->ops->trigger(substream, cmd); soc_pcm_trigger()
980 if (cpu_dai->driver->ops && cpu_dai->driver->ops->trigger) { soc_pcm_trigger()
981 ret = cpu_dai->driver->ops->trigger(substream, cmd, cpu_dai); soc_pcm_trigger()
986 if (rtd->dai_link->ops && rtd->dai_link->ops->trigger) { soc_pcm_trigger()
987 ret = rtd->dai_link->ops->trigger(substream, cmd); soc_pcm_trigger()
1517 * for avoiding the race with trigger callback.
1518 * If the state is unset and a trigger is pending while the previous operation,
1519 * process the pending trigger action here.
1826 dev_dbg(dpcm->be->dev, "ASoC: trigger BE %s cmd %d\n", dpcm_do_trigger()
1831 dev_err(dpcm->be->dev,"ASoC: trigger BE failed %d\n", ret); dpcm_do_trigger()
1934 enum snd_soc_dpcm_trigger trigger = fe->dai_link->trigger[stream]; dpcm_fe_dai_do_trigger() local
1938 switch (trigger) { dpcm_fe_dai_do_trigger()
1940 /* call trigger on the frontend before the backend. */ dpcm_fe_dai_do_trigger()
1942 dev_dbg(fe->dev, "ASoC: pre trigger FE %s cmd %d\n", dpcm_fe_dai_do_trigger()
1947 dev_err(fe->dev,"ASoC: trigger FE failed %d\n", ret); dpcm_fe_dai_do_trigger()
1954 /* call trigger on the frontend after the backend. */ dpcm_fe_dai_do_trigger()
1958 dev_err(fe->dev,"ASoC: trigger FE failed %d\n", ret); dpcm_fe_dai_do_trigger()
1962 dev_dbg(fe->dev, "ASoC: post trigger FE %s cmd %d\n", dpcm_fe_dai_do_trigger()
1968 /* bespoke trigger() - handles both FE and BEs */ dpcm_fe_dai_do_trigger()
1970 dev_dbg(fe->dev, "ASoC: bespoke trigger FE %s cmd %d\n", dpcm_fe_dai_do_trigger()
1975 dev_err(fe->dev,"ASoC: trigger FE failed %d\n", ret); dpcm_fe_dai_do_trigger()
1980 dev_err(fe->dev, "ASoC: invalid trigger cmd %d for %s\n", cmd, dpcm_fe_dai_do_trigger()
2010 * process this trigger later at exit dpcm_fe_dai_trigger()
2017 /* we're alone, let's trigger */ dpcm_fe_dai_trigger()
2112 enum snd_soc_dpcm_trigger trigger = fe->dai_link->trigger[stream]; dpcm_run_update_shutdown() local
2118 if (trigger == SND_SOC_DPCM_TRIGGER_BESPOKE) { dpcm_run_update_shutdown()
2119 /* call bespoke trigger - FE takes care of all BE triggers */ dpcm_run_update_shutdown()
2120 dev_dbg(fe->dev, "ASoC: bespoke trigger FE %s cmd stop\n", dpcm_run_update_shutdown()
2125 dev_err(fe->dev,"ASoC: trigger FE failed %d\n", err); dpcm_run_update_shutdown()
2127 dev_dbg(fe->dev, "ASoC: trigger FE %s cmd stop\n", dpcm_run_update_shutdown()
2132 dev_err(fe->dev,"ASoC: trigger FE failed %d\n", err); dpcm_run_update_shutdown()
2154 enum snd_soc_dpcm_trigger trigger = fe->dai_link->trigger[stream]; dpcm_run_update_startup() local
2195 if (trigger == SND_SOC_DPCM_TRIGGER_BESPOKE) { dpcm_run_update_startup()
2196 /* call trigger on the frontend - FE takes care of all BE triggers */ dpcm_run_update_startup()
2197 dev_dbg(fe->dev, "ASoC: bespoke trigger FE %s cmd start\n", dpcm_run_update_startup()
2202 dev_err(fe->dev,"ASoC: bespoke trigger FE failed %d\n", ret); dpcm_run_update_startup()
2206 dev_dbg(fe->dev, "ASoC: trigger FE %s cmd start\n", dpcm_run_update_startup()
2212 dev_err(fe->dev,"ASoC: trigger FE failed %d\n", ret); dpcm_run_update_startup()
2533 rtd->ops.trigger = dpcm_fe_dai_trigger; soc_new_pcm()
2542 rtd->ops.trigger = soc_pcm_trigger; soc_new_pcm()
2684 if (platform->driver->ops && platform->driver->ops->trigger) snd_soc_platform_trigger()
2685 return platform->driver->ops->trigger(substream, cmd); snd_soc_platform_trigger()
H A Dsoc-compress.c290 if (platform->driver->compr_ops && platform->driver->compr_ops->trigger) { soc_compr_trigger()
291 ret = platform->driver->compr_ops->trigger(cstream, cmd); soc_compr_trigger()
320 platform->driver->compr_ops->trigger) soc_compr_trigger_fe()
321 return platform->driver->compr_ops->trigger(cstream, soc_compr_trigger_fe()
333 if (platform->driver->compr_ops && platform->driver->compr_ops->trigger) { soc_compr_trigger_fe()
334 ret = platform->driver->compr_ops->trigger(cstream, cmd); soc_compr_trigger_fe()
593 .trigger = soc_compr_trigger,
608 .trigger = soc_compr_trigger_fe,
/linux-4.1.27/drivers/iio/gyro/
H A Ditg3200_buffer.c20 #include <linux/iio/trigger.h>
134 /* select default trigger */ itg3200_probe_trigger()
/linux-4.1.27/drivers/net/wireless/p54/
H A Dled.c86 char *name, char *trigger) p54_register_led()
99 led->led_dev.default_trigger = trigger; p54_register_led()
84 p54_register_led(struct p54_common *priv, unsigned int led_index, char *name, char *trigger) p54_register_led() argument
/linux-4.1.27/drivers/staging/iio/light/
H A Dtsl2x7x.h57 * @als_thresh_low: CH0 'low' count to trigger interrupt.
58 * @als_thresh_high: CH0 'high' count to trigger interrupt.
/linux-4.1.27/arch/parisc/include/asm/
H A Dsuperio.h15 #define TRIGGER_1 0x67 /* Edge/level trigger register 1 */
16 #define TRIGGER_2 0x68 /* Edge/level trigger register 2 */
/linux-4.1.27/arch/frv/kernel/
H A Dirq.c124 /* set the trigger levels for internal interrupt sources init_IRQ()
152 #error dont know external IRQ trigger levels for this setup init_IRQ()
/linux-4.1.27/arch/arm/plat-omap/
H A Ddebug-leds.c58 const char *trigger; member in struct:__anon285
127 led->cdev.default_trigger = dbg_leds[i].trigger; fpga_probe()
/linux-4.1.27/sound/firewire/bebob/
H A Dbebob_midi.c104 .trigger = midi_capture_trigger,
110 .trigger = midi_playback_trigger,
/linux-4.1.27/sound/firewire/fireworks/
H A Dfireworks_midi.c105 .trigger = midi_capture_trigger,
111 .trigger = midi_playback_trigger,
/linux-4.1.27/sound/firewire/oxfw/
H A Doxfw-midi.c122 .trigger = midi_capture_trigger,
128 .trigger = midi_playback_trigger,
/linux-4.1.27/sound/pci/hda/
H A Dhda_auto_parser.h86 #define HDA_PINCFG_HEADSET_MIC (1 << 2) /* Try to find headset mic; mark seq number as 0xc to trigger */
87 #define HDA_PINCFG_HEADPHONE_MIC (1 << 3) /* Try to find headphone mic; mark seq number as 0xd to trigger */
H A Dhda_intel.h32 /* card list (for power_save trigger) */
/linux-4.1.27/sound/usb/caiaq/
H A Dmidi.c109 .trigger = snd_usb_caiaq_midi_output_trigger,
116 .trigger = snd_usb_caiaq_midi_input_trigger,
/linux-4.1.27/drivers/pinctrl/
H A Dpinctrl-coh901.c435 /* High now, let's trigger on falling edge next then */ u300_toggle_trigger()
440 /* Low now, let's trigger on rising edge next then */ u300_toggle_trigger()
447 static int u300_gpio_irq_type(struct irq_data *d, unsigned trigger) u300_gpio_irq_type() argument
455 if ((trigger & IRQF_TRIGGER_RISING) && u300_gpio_irq_type()
456 (trigger & IRQF_TRIGGER_FALLING)) { u300_gpio_irq_type()
458 * The GPIO block can only trigger on falling OR rising edges, u300_gpio_irq_type()
463 "trigger on both rising and falling edge on pin %d\n", u300_gpio_irq_type()
467 } else if (trigger & IRQF_TRIGGER_RISING) { u300_gpio_irq_type()
468 dev_dbg(gpio->dev, "trigger on rising edge on pin %d\n", u300_gpio_irq_type()
473 } else if (trigger & IRQF_TRIGGER_FALLING) { u300_gpio_irq_type()
474 dev_dbg(gpio->dev, "trigger on falling edge on pin %d\n", u300_gpio_irq_type()
/linux-4.1.27/arch/arm/vfp/
H A Dvfpmodule.c336 void VFP_bounce(u32 trigger, u32 fpexc, struct pt_regs *regs) VFP_bounce() argument
340 pr_debug("VFP: bounce: trigger %08x fpexc %08x\n", trigger, fpexc); VFP_bounce()
366 * Synchronous exception, emulate the trigger instruction VFP_bounce()
377 trigger = fmrx(FPINST); VFP_bounce()
386 vfp_raise_exceptions(VFP_EXCEPTION_ERROR, trigger, fpscr, regs); VFP_bounce()
409 exceptions = vfp_emulate_instruction(trigger, fpscr, regs); VFP_bounce()
411 vfp_raise_exceptions(exceptions, trigger, orig_fpscr, regs); VFP_bounce()
425 trigger = fmrx(FPINST2); VFP_bounce()
428 exceptions = vfp_emulate_instruction(trigger, orig_fpscr, regs); VFP_bounce()
430 vfp_raise_exceptions(exceptions, trigger, orig_fpscr, regs); VFP_bounce()
/linux-4.1.27/drivers/iio/adc/
H A Dat91_adc.c30 #include <linux/iio/trigger.h>
269 /* Handler for classic adc channel eoc trigger */ handle_adc_eoc_trigger()
367 /* Set up period trigger for sampling */ at91_adc_rl_interrupt()
429 /* Set up period trigger for sampling */ at91_adc_9x5_interrupt()
599 struct at91_adc_trigger *trigger) at91_adc_allocate_trigger()
605 idev->id, trigger->name); at91_adc_allocate_trigger()
642 "Could not allocate trigger %d\n", i); at91_adc_trigger_init()
913 dev_err(&idev->dev, "Could not allocate trigger list memory.\n"); at91_adc_probe_dt()
922 if (of_property_read_string(trig_node, "trigger-name", &name)) { for_each_child_of_node()
923 dev_err(&idev->dev, "Missing trigger-name property in the DT.\n"); for_each_child_of_node()
929 if (of_property_read_u32(trig_node, "trigger-value", &prop)) { for_each_child_of_node()
930 dev_err(&idev->dev, "Missing trigger-value property in the DT.\n"); for_each_child_of_node()
935 trig->is_external = of_property_read_bool(trig_node, "trigger-external"); for_each_child_of_node()
1269 * Since touch screen will set trigger register as period trigger. So at91_adc_probe()
1271 * trigger for classic adc. at91_adc_probe()
598 at91_adc_allocate_trigger(struct iio_dev *idev, struct at91_adc_trigger *trigger) at91_adc_allocate_trigger() argument
H A Dad_sigma_delta.c21 #include <linux/iio/trigger.h>
421 * @trig: The new trigger
423 * Returns: 0 if the 'trig' matches the trigger registered by the ad_sigma_delta
474 /* select default trigger */ ad_sd_probe_trigger()
H A Dmax1027.c25 #include <linux/iio/trigger.h>
226 dev_warn(&indio_dev->dev, "trigger mode already enabled"); max1027_read_single_value()
450 st->trig = devm_iio_trigger_alloc(&spi->dev, "%s-trigger", max1027_probe()
454 dev_err(&indio_dev->dev, "Failed to allocate iio trigger\n"); max1027_probe()
/linux-4.1.27/drivers/net/phy/
H A Ddp83640.c307 int trigger) periodic_output()
316 trigger); periodic_output()
324 (trigger & TRIG_CSEL_MASK) << TRIG_CSEL_SHIFT | periodic_output()
329 val = (trigger & TRIG_SEL_MASK) << TRIG_SEL_SHIFT; periodic_output()
350 /*load trigger*/ periodic_output()
360 if (trigger < 2) { periodic_output()
365 /*enable trigger*/ periodic_output()
621 u16 cal_gpio, cfg0, evnt, ptp_trig, trigger, val; recalibrate() local
623 trigger = CAL_TRIGGER; recalibrate()
661 * configure a trigger recalibrate()
664 ptp_trig |= (trigger & TRIG_CSEL_MASK) << TRIG_CSEL_SHIFT; recalibrate()
668 /* load trigger */ recalibrate()
669 val = (trigger & TRIG_SEL_MASK) << TRIG_SEL_SHIFT; recalibrate()
673 /* enable trigger */ recalibrate()
678 /* disable trigger */ recalibrate()
679 val = (trigger & TRIG_SEL_MASK) << TRIG_SEL_SHIFT; recalibrate()
305 periodic_output(struct dp83640_clock *clock, struct ptp_clock_request *clkreq, bool on, int trigger) periodic_output() argument
/linux-4.1.27/drivers/media/usb/pvrusb2/
H A Dpvrusb2-debugifc.h25 /* Print general status of driver. This will also trigger a probe of
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
H A Dmlme_linux.c35 * When the countermeasure is trigger, the driver have to rtw_reset_securitypriv23a()
/linux-4.1.27/drivers/gpu/drm/exynos/
H A Dexynos_drm_crtc.h37 * to trigger to transfer video image at the tearing effect synchronization
/linux-4.1.27/drivers/input/
H A Dinput-compat.h56 struct ff_trigger trigger; member in struct:ff_effect_compat
/linux-4.1.27/arch/x86/mm/
H A Dphysaddr.c37 /* only check upper bounds since lower bounds will trigger carry */ __phys_addr_symbol()
/linux-4.1.27/arch/mips/include/asm/vr41xx/
H A Dgiu.h44 extern void vr41xx_set_irq_trigger(unsigned int pin, irq_trigger_t trigger,
/linux-4.1.27/arch/m68k/coldfire/
H A DMakefile9 # set up you HW breakpoints to trigger a DBG interrupt:
/linux-4.1.27/Documentation/watchdog/src/
H A Dwatchdog-test.c19 * the PC Watchdog card to reset its internal timer so it doesn't trigger
/linux-4.1.27/include/linux/irqchip/
H A Dchained_irq.h25 * may implement either fasteoi or level-trigger flow control.
/linux-4.1.27/include/linux/mfd/
H A Dmax77693.h71 /* trigger types */
/linux-4.1.27/arch/x86/pci/
H A Dxen.c109 int trigger, int polarity) acpi_register_gsi_xen_hvm()
114 return xen_register_pirq(gsi, -1 /* no GSI override */, trigger, acpi_register_gsi_xen_hvm()
148 int trigger, int polarity) acpi_register_gsi_xen()
150 return xen_register_gsi(gsi, -1 /* no GSI override */, trigger, polarity); acpi_register_gsi_xen()
496 int trigger, polarity; pci_xen_initial_domain() local
498 if (acpi_get_override_irq(irq, &trigger, &polarity) == -1) pci_xen_initial_domain()
502 trigger ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE, pci_xen_initial_domain()
108 acpi_register_gsi_xen_hvm(struct device *dev, u32 gsi, int trigger, int polarity) acpi_register_gsi_xen_hvm() argument
147 acpi_register_gsi_xen(struct device *dev, u32 gsi, int trigger, int polarity) acpi_register_gsi_xen() argument
/linux-4.1.27/drivers/clk/bcm/
H A Dclk-kona.h262 * using its gate). In addition, a trigger register (described
337 * must be enabled, and a trigger must be used to commit the change.
360 * requires the use of a trigger. A trigger is defined by a single
363 * trigger bit is polled; the read value will be 1 while the change
366 * Occasionally a clock will have more than one trigger. In this
367 * case, the "pre-trigger" will be used when changing a clock's
371 u32 offset; /* trigger register offset */
372 u32 bit; /* trigger bit */
378 * EXISTS means this trigger exists
/linux-4.1.27/drivers/pwm/
H A Dpwm-atmel-tcb.c145 * configure the output correctly on software trigger: atmel_tcb_pwm_disable()
175 * Use software trigger to apply the new setting. atmel_tcb_pwm_disable()
201 * configure the output correctly on software trigger: atmel_tcb_pwm_enable()
235 * The output will be configured on software trigger and keep atmel_tcb_pwm_enable()
263 /* Use software trigger to apply the new setting */ atmel_tcb_pwm_enable()
H A Dpwm-bcm-kona.c34 * a subsequent rising edge of the trigger bit.
36 * 3) If the smooth bit and trigger bit are both low, the output is a constant
39 * 4) If the smooth bit is set on the rising edge of the trigger bit, output
83 /* Clear trigger bit but set smooth bit to maintain old output */ kona_pwmc_apply_settings()
88 /* Set trigger bit and clear smooth bit to apply new settings */ kona_pwmc_apply_settings()
/linux-4.1.27/include/linux/pinctrl/
H A Dpinconf-generic.h67 * @PIN_CONFIG_INPUT_SCHMITT_ENABLE: control schmitt-trigger mode on the pin.
68 * If the argument != 0, schmitt-trigger mode is enabled. If it's 0,
69 * schmitt-trigger mode is disabled.
71 * schmitt-trigger mode. If the schmitt-trigger has adjustable hysteresis,
/linux-4.1.27/drivers/mfd/
H A Dtwl4030-irq.c45 * enable/disable and trigger controls; they do most of the work.
129 /* Note: *all* of these IRQs default to no-trigger */
154 /* Note: most of these IRQs default to no-trigger */
189 /* Note: *all* of these IRQs default to no-trigger */
213 /* Note: most of these IRQs default to no-trigger */
262 /* Note: most of these IRQs default to no-trigger */
474 static int twl4030_sih_set_type(struct irq_data *data, unsigned trigger) twl4030_sih_set_type() argument
478 if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) twl4030_sih_set_type()
481 if (irqd_get_trigger_type(data) != trigger) twl4030_sih_set_type()
H A Dasic3.c303 u16 trigger, level, edge, bit; asic3_gpio_irq_type() local
315 trigger = asic3_read_register(asic, asic3_gpio_irq_type()
320 trigger |= bit; asic3_gpio_irq_type()
323 trigger |= bit; asic3_gpio_irq_type()
326 trigger |= bit; asic3_gpio_irq_type()
333 trigger &= ~bit; asic3_gpio_irq_type()
336 trigger &= ~bit; asic3_gpio_irq_type()
351 trigger); asic3_gpio_irq_type()
/linux-4.1.27/arch/s390/kernel/
H A Dipl.c46 * Four shutdown trigger types are supported:
77 void (*fn) (struct shutdown_trigger *trigger);
538 static void ipl_run(struct shutdown_trigger *trigger) ipl_run() argument
1093 static void reipl_run(struct shutdown_trigger *trigger) reipl_run() argument
1435 static void dump_run(struct shutdown_trigger *trigger) dump_run() argument
1516 static void dump_reipl_run(struct shutdown_trigger *trigger) dump_reipl_run() argument
1524 dump_run(trigger); dump_reipl_run()
1572 static void vmcmd_run(struct shutdown_trigger *trigger) vmcmd_run() argument
1576 if (strcmp(trigger->name, ON_REIPL_STR) == 0) vmcmd_run()
1578 else if (strcmp(trigger->name, ON_PANIC_STR) == 0) vmcmd_run()
1580 else if (strcmp(trigger->name, ON_HALT_STR) == 0) vmcmd_run()
1582 else if (strcmp(trigger->name, ON_POFF_STR) == 0) vmcmd_run()
1584 else if (strcmp(trigger->name, ON_RESTART_STR) == 0) vmcmd_run()
1611 static void stop_run(struct shutdown_trigger *trigger) stop_run() argument
1613 if (strcmp(trigger->name, ON_PANIC_STR) == 0 || stop_run()
1614 strcmp(trigger->name, ON_RESTART_STR) == 0) stop_run()
1635 static int set_trigger(const char *buf, struct shutdown_trigger *trigger, set_trigger() argument
1645 trigger->action = shutdown_actions_list[i]; set_trigger()
/linux-4.1.27/sound/pci/oxygen/
H A Doxygen_pcm.c641 .trigger = oxygen_trigger,
652 .trigger = oxygen_trigger,
663 .trigger = oxygen_trigger,
674 .trigger = oxygen_trigger,
685 .trigger = oxygen_trigger,
696 .trigger = oxygen_trigger,
/linux-4.1.27/drivers/staging/comedi/drivers/addi-data/
H A Dhwdrv_apci1564.c198 data[1] = (status >> 1) & 1; /* software trigger status */ apci1564_counter_insn_read()
199 data[2] = (status >> 2) & 1; /* hardware trigger status */ apci1564_counter_insn_read()
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
H A Dled.c125 char *trigger) carl9170_led_register_led()
136 ar->leds[i].l.default_trigger = trigger; carl9170_led_register_led()
124 carl9170_led_register_led(struct ar9170 *ar, int i, char *name, char *trigger) carl9170_led_register_led() argument
/linux-4.1.27/block/
H A Dblk-iopoll.c26 * Add this blk_iopoll structure to the pending poll list and trigger the
194 * and trigger a run of the softirq blk_iopoll_cpu_notify()
/linux-4.1.27/drivers/tty/serial/
H A Dm32r_sio_reg.h38 * Out: Fifo custom trigger levels
79 * Out: Fifo custom trigger levels
/linux-4.1.27/drivers/watchdog/
H A Driowd.c27 * trigger a power-on reset when the signal is asserted. The BBC
34 * re-set the watchdog else it will trigger.
/linux-4.1.27/arch/arm/mach-pxa/
H A Didp.c213 const char *trigger; member in struct:__anon242
259 led->cdev.default_trigger = idp_leds[i].trigger; idp_leds_init()
/linux-4.1.27/arch/arc/plat-arcfpga/
H A Dsmp.c86 * So an IDU ASSERT on IRQ 'x' will trigger Interupt on CPU 'x', which iss_model_init_smp()
94 * Claim an IRQ which would trigger IPI on this CPU. iss_model_init_smp()
/linux-4.1.27/net/ipv6/
H A Dxfrm6_state.c89 * rule 2: select MIPv6 RO or inbound trigger
127 * rule 2: select MIPv6 RO or inbound trigger
/linux-4.1.27/sound/isa/msnd/
H A Dmsnd_midi.c94 * trigger input
148 .trigger = snd_msndmidi_input_trigger,
/linux-4.1.27/sound/pci/ice1712/
H A Dak4xxx.c109 /* assert a cs pulse to trigger */ snd_ice1712_akm4xxx_write()
114 tmp |= priv->cs_mask; /* chip select high to trigger */ snd_ice1712_akm4xxx_write()
/linux-4.1.27/sound/usb/6fire/
H A Dmidi.c145 .trigger = usb6fire_midi_out_trigger,
152 .trigger = usb6fire_midi_in_trigger
/linux-4.1.27/sound/usb/line6/
H A Dmidi.c206 .trigger = line6_midi_output_trigger,
213 .trigger = line6_midi_input_trigger,
/linux-4.1.27/drivers/crypto/caam/
H A Dkey_gen.c80 * do a FIFO_LOAD of zero, this will trigger the internal key expansion gen_split_key()
/linux-4.1.27/arch/unicore32/include/asm/
H A Dirq.h95 #define IRQ_SD_CD IRQ_GPIO6 /* falling or rising trigger */
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/engine/
H A Dfifo.h74 struct nvkm_event uevent; /* async user trigger */
/linux-4.1.27/include/media/
H A Dsmiapp.h57 u8 trigger; member in struct:smiapp_flash_strobe_parms
/linux-4.1.27/arch/powerpc/platforms/cell/
H A Daxon_msi.c76 u32 __iomem *trigger; member in struct:axon_msic
455 out_le32(msic->trigger, val); msic_set()
478 msic->trigger = ioremap(addr, 0x4); axon_msi_debug_setup()
479 if (!msic->trigger) { axon_msi_debug_setup()
/linux-4.1.27/arch/powerpc/platforms/pseries/
H A Devent_sources.c35 * trigger request_event_sources_irqs()
/linux-4.1.27/arch/mips/loongson/lemote-2f/
H A Dirq.c116 /* setup cs5536 as high level trigger */ mach_init_irq()
/linux-4.1.27/arch/powerpc/include/asm/
H A Dkexec.h60 * via panic or invoking dump using sysrq-trigger.
/linux-4.1.27/arch/blackfin/kernel/
H A Dreboot.c31 * much as possible. This code is in L1, so it won't trigger bfin_reset()
/linux-4.1.27/arch/blackfin/mach-common/
H A Dclocks-init.c51 /* Kill any active DMAs as they may trigger external memory accesses init_clocks()
/linux-4.1.27/arch/m68k/amiga/
H A Dpcmcia.c39 /* be careful as this may trigger a GAYLE_IRQ_WR interrupt ! */
/linux-4.1.27/lib/
H A Dtest_firmware.c2 * This module provides an interface to trigger and test firmware loading.
/linux-4.1.27/mm/
H A Dkmemcheck.c33 * this memory will trigger a page fault and let us analyze kmemcheck_alloc_shadow()
/linux-4.1.27/sound/arm/
H A Dpxa2xx-pcm.c84 .trigger = pxa2xx_pcm_trigger,
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/
H A Dlost_exception_test.c16 * Test that tries to trigger CPU_FTR_PMAO_BUG. Which is a hardware defect
/linux-4.1.27/sound/soc/intel/baytrail/
H A Dsst-baytrail-ipc.h55 /* stream ALSA trigger operations */
/linux-4.1.27/drivers/iio/light/
H A Dhid-sensor-als.c32 #include "../common/hid-sensors/hid-sensor-trigger.h"
308 dev_err(&pdev->dev, "failed to initialize trigger buffer\n"); hid_als_probe()
315 dev_err(&pdev->dev, "trigger setup failed\n"); hid_als_probe()
H A Dhid-sensor-prox.c31 #include "../common/hid-sensors/hid-sensor-trigger.h"
297 dev_err(&pdev->dev, "failed to initialize trigger buffer\n"); hid_prox_probe()
304 dev_err(&pdev->dev, "trigger setup failed\n"); hid_prox_probe()
/linux-4.1.27/drivers/iio/orientation/
H A Dhid-sensor-rotation.c27 #include "../common/hid-sensors/hid-sensor-trigger.h"
270 dev_err(&pdev->dev, "failed to initialize trigger buffer\n"); hid_dev_rot_probe()
277 dev_err(&pdev->dev, "trigger setup failed\n"); hid_dev_rot_probe()

Completed in 3655 milliseconds

12345678