Home
last modified time | relevance | path

Searched refs:trigger (Results 1 – 25 of 119) sorted by relevance

12345

/drivers/vfio/pci/
Dvfio_pci_intrs.c249 eventfd_signal(vdev->ctx[0].trigger, 1); in vfio_send_intx_eventfd()
391 struct eventfd_ctx *trigger; in vfio_intx_set_signal() local
395 if (vdev->ctx[0].trigger) { in vfio_intx_set_signal()
398 eventfd_ctx_put(vdev->ctx[0].trigger); in vfio_intx_set_signal()
399 vdev->ctx[0].trigger = NULL; in vfio_intx_set_signal()
410 trigger = eventfd_ctx_fdget(fd); in vfio_intx_set_signal()
411 if (IS_ERR(trigger)) { in vfio_intx_set_signal()
413 return PTR_ERR(trigger); in vfio_intx_set_signal()
416 vdev->ctx[0].trigger = trigger; in vfio_intx_set_signal()
424 vdev->ctx[0].trigger = NULL; in vfio_intx_set_signal()
[all …]
/drivers/leds/
Dled-triggers.c81 if (!led_cdev->trigger) in led_trigger_show()
87 if (led_cdev->trigger && !strcmp(led_cdev->trigger->name, in led_trigger_show()
113 if (led_cdev->trigger) { in led_trigger_set()
114 write_lock_irqsave(&led_cdev->trigger->leddev_list_lock, flags); in led_trigger_set()
116 write_unlock_irqrestore(&led_cdev->trigger->leddev_list_lock, in led_trigger_set()
120 if (led_cdev->trigger->deactivate) in led_trigger_set()
121 led_cdev->trigger->deactivate(led_cdev); in led_trigger_set()
122 led_cdev->trigger = NULL; in led_trigger_set()
129 led_cdev->trigger = trig; in led_trigger_set()
208 if (!led_cdev->trigger && led_cdev->default_trigger && in led_trigger_register()
[all …]
/drivers/staging/iio/Documentation/
Dtrigger.txt1 IIO trigger drivers.
8 struct iio_trig *trig = iio_trigger_alloc("<trigger format string>", ...);
10 allocates a trigger structure. The key elements to then fill in within
18 Function that enables / disables the underlying source of the trigger.
28 to register the trigger with the core, making it available to trigger
Dsysfs-bus-iio-trigger-sysfs5 This file is provided by the iio-trig-sysfs stand-alone trigger
7 driven driver, associated with this trigger, to capture data
9 automated testing or in situations, where other trigger methods
11 X is the IIO index of the trigger.
Doverview.txt42 external signal (trigger). These triggers might be a data ready
44 processor periodic interrupt. A single trigger may initialize data
53 trigger.txt - elements of a typical trigger driver.
/drivers/pinctrl/
Dpinctrl-s3c64xx.c238 int trigger; in s3c64xx_irq_get_trigger() local
242 trigger = EINT_EDGE_RISING; in s3c64xx_irq_get_trigger()
245 trigger = EINT_EDGE_FALLING; in s3c64xx_irq_get_trigger()
248 trigger = EINT_EDGE_BOTH; in s3c64xx_irq_get_trigger()
251 trigger = EINT_LEVEL_HIGH; in s3c64xx_irq_get_trigger()
254 trigger = EINT_LEVEL_LOW; in s3c64xx_irq_get_trigger()
260 return trigger; in s3c64xx_irq_get_trigger()
349 int trigger; in s3c64xx_gpio_irq_set_type() local
353 trigger = s3c64xx_irq_get_trigger(type); in s3c64xx_gpio_irq_set_type()
354 if (trigger < 0) { in s3c64xx_gpio_irq_set_type()
[all …]
/drivers/gpio/
Dgpio-vr41xx.c212 void vr41xx_set_irq_trigger(unsigned int pin, irq_trigger_t trigger, in vr41xx_set_irq_trigger() argument
219 if (trigger != IRQ_TRIGGER_LEVEL) { in vr41xx_set_irq_trigger()
226 switch (trigger) { in vr41xx_set_irq_trigger()
254 if (trigger != IRQ_TRIGGER_LEVEL) { in vr41xx_set_irq_trigger()
261 switch (trigger) { in vr41xx_set_irq_trigger()
496 unsigned int trigger, i, pin; in giu_probe() local
532 trigger = giu_read(GIUINTTYPH) << 16; in giu_probe()
533 trigger |= giu_read(GIUINTTYPL); in giu_probe()
541 if (trigger & (1 << pin)) in giu_probe()
Dgpio-davinci.c231 static int gpio_irq_type(struct irq_data *d, unsigned trigger) in gpio_irq_type() argument
233 if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) in gpio_irq_type()
316 static int gpio_irq_type_unbanked(struct irq_data *data, unsigned trigger) in gpio_irq_type_unbanked() argument
327 if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) in gpio_irq_type_unbanked()
330 __raw_writel(mask, (trigger & IRQ_TYPE_EDGE_FALLING) in gpio_irq_type_unbanked()
332 __raw_writel(mask, (trigger & IRQ_TYPE_EDGE_RISING) in gpio_irq_type_unbanked()
Dgpio-pl061.c147 static int pl061_irq_type(struct irq_data *d, unsigned trigger) in pl061_irq_type() argument
162 if (trigger & (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW)) { in pl061_irq_type()
164 if (trigger & IRQ_TYPE_LEVEL_HIGH) in pl061_irq_type()
173 if ((trigger & IRQ_TYPE_EDGE_BOTH) == IRQ_TYPE_EDGE_BOTH) in pl061_irq_type()
177 if (trigger & IRQ_TYPE_EDGE_RISING) in pl061_irq_type()
179 else if (trigger & IRQ_TYPE_EDGE_FALLING) in pl061_irq_type()
Dgpio-omap.c295 unsigned trigger) in set_gpio_trigger() argument
301 trigger & IRQ_TYPE_LEVEL_LOW); in set_gpio_trigger()
303 trigger & IRQ_TYPE_LEVEL_HIGH); in set_gpio_trigger()
305 trigger & IRQ_TYPE_EDGE_RISING); in set_gpio_trigger()
307 trigger & IRQ_TYPE_EDGE_FALLING); in set_gpio_trigger()
319 _gpio_rmw(base, bank->regs->wkup_en, gpio_bit, trigger != 0); in set_gpio_trigger()
338 if (trigger & IRQ_TYPE_EDGE_BOTH) in set_gpio_trigger()
378 unsigned trigger) in _set_gpio_triggering() argument
385 set_gpio_trigger(bank, gpio, trigger); in _set_gpio_triggering()
390 if ((trigger & IRQ_TYPE_SENSE_MASK) == IRQ_TYPE_EDGE_BOTH) in _set_gpio_triggering()
[all …]
Dgpio-timberdale.c136 static int timbgpio_irq_type(struct irq_data *d, unsigned trigger) in timbgpio_irq_type() argument
157 if (trigger & (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW)) { in timbgpio_irq_type()
160 if (trigger & IRQ_TYPE_LEVEL_HIGH) in timbgpio_irq_type()
166 if ((trigger & IRQ_TYPE_EDGE_BOTH) == IRQ_TYPE_EDGE_BOTH) { in timbgpio_irq_type()
177 if (trigger & IRQ_TYPE_EDGE_FALLING) in timbgpio_irq_type()
Dgpio-max732x.c404 uint8_t trigger; in max732x_irq_pending() local
413 trigger = status >> 8; in max732x_irq_pending()
414 trigger &= chip->irq_mask; in max732x_irq_pending()
416 if (!trigger) in max732x_irq_pending()
422 old_stat = cur_stat ^ trigger; in max732x_irq_pending()
426 pending &= trigger; in max732x_irq_pending()
/drivers/input/joystick/iforce/
Diforce-ff.c298 || old->trigger.button != new->trigger.button in need_core()
299 || old->trigger.interval != new->trigger.interval in need_core()
407 effect->trigger.button, in iforce_upload_periodic()
408 effect->trigger.interval, in iforce_upload_periodic()
467 effect->trigger.button, in iforce_upload_constant()
468 effect->trigger.interval, in iforce_upload_constant()
532 effect->trigger.button, effect->trigger.interval, in iforce_upload_condition()
/drivers/net/wireless/ti/wl12xx/
Dscan.c100 struct wl1271_cmd_trigger_scan_to *trigger; in wl1271_scan_send() local
109 trigger = kzalloc(sizeof(*trigger), GFP_KERNEL); in wl1271_scan_send()
110 if (!cmd || !trigger) { in wl1271_scan_send()
165 trigger->timeout = cpu_to_le32(wl->conf.scan.split_scan_timeout); in wl1271_scan_send()
166 ret = wl1271_cmd_send(wl, CMD_TRIGGER_SCAN_TO, trigger, in wl1271_scan_send()
167 sizeof(*trigger), 0); in wl1271_scan_send()
183 kfree(trigger); in wl1271_scan_send()
/drivers/staging/iio/trigger/
DKconfig16 tristate "GPIO trigger"
22 tristate "SYSFS trigger"
33 tristate "Blackfin TIMER trigger"
/drivers/iio/common/hid-sensors/
DKconfig18 tristate "Common module (trigger) for all HID Sensor IIO drivers"
22 Say yes here to build trigger support for HID sensors.
26 hid-sensor-trigger.
/drivers/s390/block/
Ddasd_eer.c279 __u32 trigger; member
294 int trigger) in dasd_eer_write_standard_trigger() argument
311 header.trigger = trigger; in dasd_eer_write_standard_trigger()
338 int trigger) in dasd_eer_write_snss_trigger() argument
354 header.trigger = DASD_EER_STATECHANGE; in dasd_eer_write_snss_trigger()
/drivers/spi/
Dspi-imx.c77 void (*trigger)(struct spi_imx_data *); member
537 .trigger = mx1_trigger,
546 .trigger = mx21_trigger,
556 .trigger = mx21_trigger,
565 .trigger = mx31_trigger,
575 .trigger = mx31_trigger,
584 .trigger = mx51_ecspi_trigger,
646 spi_imx->devtype_data->trigger(spi_imx); in spi_imx_push()
/drivers/acpi/
Dtables.c133 u16 polarity, trigger; in acpi_table_print_madt_entry() local
138 trigger = (p->inti_flags & ACPI_MADT_TRIGGER_MASK) >> 2; in acpi_table_print_madt_entry()
144 mps_inti_flags_trigger[trigger], in acpi_table_print_madt_entry()
/drivers/net/ethernet/sfc/
Drx.c694 unsigned int max_fill, trigger, max_trigger; in efx_init_rx_queue() local
717 trigger = max_fill * min(rx_refill_threshold, 100U) / 100U; in efx_init_rx_queue()
718 if (trigger > max_trigger) in efx_init_rx_queue()
719 trigger = max_trigger; in efx_init_rx_queue()
721 trigger = max_trigger; in efx_init_rx_queue()
725 rx_queue->fast_fill_trigger = trigger; in efx_init_rx_queue()
/drivers/ps3/
Dps3-vuart.c694 if (priv->rx_list.work.trigger) { in ps3_vuart_read_async()
713 priv->rx_list.work.trigger = bytes; in ps3_vuart_read_async()
725 to_port_priv(dev)->rx_list.work.trigger = 0; in ps3_vuart_cancel_async()
814 if (priv->rx_list.work.trigger && priv->rx_list.bytes_held in ps3_vuart_handle_interrupt_rx()
815 >= priv->rx_list.work.trigger) { in ps3_vuart_handle_interrupt_rx()
817 __func__, __LINE__, priv->rx_list.work.trigger); in ps3_vuart_handle_interrupt_rx()
818 priv->rx_list.work.trigger = 0; in ps3_vuart_handle_interrupt_rx()
1056 priv->rx_list.work.trigger = 0; in ps3_vuart_probe()
/drivers/leds/trigger/
DKconfig5 This option enables trigger support for the leds class.
80 be triggered by this trigger when user slides up to show
92 comment "iptables trigger is under Netfilter config (LED target)"
/drivers/net/phy/
Ddp83640.c275 u16 gpio, ptp_trig, trigger, val; in periodic_output() local
278 trigger = PER_TRIGGER; in periodic_output()
281 (trigger & TRIG_CSEL_MASK) << TRIG_CSEL_SHIFT | in periodic_output()
286 val = (trigger & TRIG_SEL_MASK) << TRIG_SEL_SHIFT; in periodic_output()
541 u16 cal_gpio, cfg0, evnt, ptp_trig, trigger, val; in recalibrate() local
543 trigger = CAL_TRIGGER; in recalibrate()
580 ptp_trig |= (trigger & TRIG_CSEL_MASK) << TRIG_CSEL_SHIFT; in recalibrate()
585 val = (trigger & TRIG_SEL_MASK) << TRIG_SEL_SHIFT; in recalibrate()
595 val = (trigger & TRIG_SEL_MASK) << TRIG_SEL_SHIFT; in recalibrate()
/drivers/net/plip/
Dplip.c215 unsigned long trigger; member
304 nl->trigger = PLIP_TRIGGER_WAIT; in plip_init_netdev()
604 if (plip_receive(nl->trigger, dev, in plip_receive_packet()
768 cx = nl->trigger; in plip_send_packet()
1210 pc->trigger = nl->trigger; in plip_ioctl()
1216 nl->trigger = pc->trigger; in plip_ioctl()
/drivers/mfd/
Dasic3.c303 u16 trigger, level, edge, bit; in asic3_gpio_irq_type() local
315 trigger = asic3_read_register(asic, in asic3_gpio_irq_type()
320 trigger |= bit; in asic3_gpio_irq_type()
323 trigger |= bit; in asic3_gpio_irq_type()
326 trigger |= bit; in asic3_gpio_irq_type()
333 trigger &= ~bit; in asic3_gpio_irq_type()
336 trigger &= ~bit; in asic3_gpio_irq_type()
351 trigger); in asic3_gpio_irq_type()

12345