Home
last modified time | relevance | path

Searched refs:trig (Results 1 – 25 of 78) sorted by relevance

1234

/linux-2.6.39/drivers/staging/iio/
Dindustrialio-trigger.c156 struct iio_trigger *trig; in iio_trigger_find_by_name() local
163 list_for_each_entry(trig, &iio_trigger_list, list) { in iio_trigger_find_by_name()
164 if (strncmp(trig->name, name, len) == 0) { in iio_trigger_find_by_name()
171 return found ? trig : NULL; in iio_trigger_find_by_name()
175 void iio_trigger_poll(struct iio_trigger *trig, s64 time) in iio_trigger_poll() argument
179 list_for_each_entry(pf_cursor, &trig->pollfunc_list, list) { in iio_trigger_poll()
182 trig->use_count++; in iio_trigger_poll()
185 list_for_each_entry(pf_cursor, &trig->pollfunc_list, list) { in iio_trigger_poll()
189 trig->use_count++; in iio_trigger_poll()
195 void iio_trigger_notify_done(struct iio_trigger *trig) in iio_trigger_notify_done() argument
[all …]
Dtrigger.h44 int (*set_trigger_state)(struct iio_trigger *trig, bool state);
45 int (*try_reenable)(struct iio_trigger *trig);
53 static inline void iio_put_trigger(struct iio_trigger *trig) in iio_put_trigger() argument
55 put_device(&trig->dev); in iio_put_trigger()
56 module_put(trig->owner); in iio_put_trigger()
59 static inline void iio_get_trigger(struct iio_trigger *trig) in iio_get_trigger() argument
61 __module_get(trig->owner); in iio_get_trigger()
62 get_device(&trig->dev); in iio_get_trigger()
103 int iio_trigger_attach_poll_func(struct iio_trigger *trig,
112 int iio_trigger_dettach_poll_func(struct iio_trigger *trig,
[all …]
/linux-2.6.39/drivers/staging/iio/accel/
Dadis16201_trigger.c24 struct iio_trigger *trig = st->trig; in adis16201_data_rdy_trig_poll() local
26 iio_trigger_poll(trig, timestamp); in adis16201_data_rdy_trig_poll()
47 static int adis16201_data_rdy_trigger_set_state(struct iio_trigger *trig, in adis16201_data_rdy_trigger_set_state() argument
50 struct adis16201_state *st = trig->private_data; in adis16201_data_rdy_trigger_set_state()
72 static int adis16201_trig_try_reen(struct iio_trigger *trig) in adis16201_trig_try_reen() argument
74 struct adis16201_state *st = trig->private_data; in adis16201_trig_try_reen()
84 st->trig = iio_allocate_trigger(); in adis16201_probe_trigger()
85 st->trig->name = kasprintf(GFP_KERNEL, in adis16201_probe_trigger()
88 if (!st->trig->name) { in adis16201_probe_trigger()
92 st->trig->dev.parent = &st->us->dev; in adis16201_probe_trigger()
[all …]
Dadis16203_trigger.c24 struct iio_trigger *trig = st->trig; in adis16203_data_rdy_trig_poll() local
26 iio_trigger_poll(trig, timestamp); in adis16203_data_rdy_trig_poll()
47 static int adis16203_data_rdy_trigger_set_state(struct iio_trigger *trig, in adis16203_data_rdy_trigger_set_state() argument
50 struct adis16203_state *st = trig->private_data; in adis16203_data_rdy_trigger_set_state()
72 static int adis16203_trig_try_reen(struct iio_trigger *trig) in adis16203_trig_try_reen() argument
74 struct adis16203_state *st = trig->private_data; in adis16203_trig_try_reen()
84 st->trig = iio_allocate_trigger(); in adis16203_probe_trigger()
85 st->trig->name = kasprintf(GFP_KERNEL, in adis16203_probe_trigger()
88 if (!st->trig->name) { in adis16203_probe_trigger()
92 st->trig->dev.parent = &st->us->dev; in adis16203_probe_trigger()
[all …]
Dadis16204_trigger.c24 struct iio_trigger *trig = st->trig; in adis16204_data_rdy_trig_poll() local
26 iio_trigger_poll(trig, timestamp); in adis16204_data_rdy_trig_poll()
47 static int adis16204_data_rdy_trigger_set_state(struct iio_trigger *trig, in adis16204_data_rdy_trigger_set_state() argument
50 struct adis16204_state *st = trig->private_data; in adis16204_data_rdy_trigger_set_state()
72 static int adis16204_trig_try_reen(struct iio_trigger *trig) in adis16204_trig_try_reen() argument
74 struct adis16204_state *st = trig->private_data; in adis16204_trig_try_reen()
84 st->trig = iio_allocate_trigger(); in adis16204_probe_trigger()
85 st->trig->name = kasprintf(GFP_KERNEL, in adis16204_probe_trigger()
88 if (!st->trig->name) { in adis16204_probe_trigger()
92 st->trig->dev.parent = &st->us->dev; in adis16204_probe_trigger()
[all …]
Dadis16209_trigger.c24 struct iio_trigger *trig = st->trig; in adis16209_data_rdy_trig_poll() local
26 iio_trigger_poll(trig, timestamp); in adis16209_data_rdy_trig_poll()
47 static int adis16209_data_rdy_trigger_set_state(struct iio_trigger *trig, in adis16209_data_rdy_trigger_set_state() argument
50 struct adis16209_state *st = trig->private_data; in adis16209_data_rdy_trigger_set_state()
72 static int adis16209_trig_try_reen(struct iio_trigger *trig) in adis16209_trig_try_reen() argument
74 struct adis16209_state *st = trig->private_data; in adis16209_trig_try_reen()
84 st->trig = iio_allocate_trigger(); in adis16209_probe_trigger()
85 st->trig->name = kasprintf(GFP_KERNEL, in adis16209_probe_trigger()
88 if (!st->trig->name) { in adis16209_probe_trigger()
92 st->trig->dev.parent = &st->us->dev; in adis16209_probe_trigger()
[all …]
Dadis16240_trigger.c24 struct iio_trigger *trig = st->trig; in adis16240_data_rdy_trig_poll() local
26 iio_trigger_poll(trig, timestamp); in adis16240_data_rdy_trig_poll()
47 static int adis16240_data_rdy_trigger_set_state(struct iio_trigger *trig, in adis16240_data_rdy_trigger_set_state() argument
50 struct adis16240_state *st = trig->private_data; in adis16240_data_rdy_trigger_set_state()
72 static int adis16240_trig_try_reen(struct iio_trigger *trig) in adis16240_trig_try_reen() argument
74 struct adis16240_state *st = trig->private_data; in adis16240_trig_try_reen()
84 st->trig = iio_allocate_trigger(); in adis16240_probe_trigger()
85 st->trig->name = kasprintf(GFP_KERNEL, in adis16240_probe_trigger()
88 if (!st->trig->name) { in adis16240_probe_trigger()
92 st->trig->dev.parent = &st->us->dev; in adis16240_probe_trigger()
[all …]
Dlis3l02dq_ring.c143 iio_trigger_poll(st->trig, timestamp); in lis3l02dq_data_rdy_trig_poll()
373 static int lis3l02dq_data_rdy_trigger_set_state(struct iio_trigger *trig, in lis3l02dq_data_rdy_trigger_set_state() argument
376 struct lis3l02dq_state *st = trig->private_data; in lis3l02dq_data_rdy_trigger_set_state()
418 static int lis3l02dq_trig_try_reen(struct iio_trigger *trig) in lis3l02dq_trig_try_reen() argument
420 struct lis3l02dq_state *st = trig->private_data; in lis3l02dq_trig_try_reen()
444 state->trig = iio_allocate_trigger(); in lis3l02dq_probe_trigger()
445 if (!state->trig) in lis3l02dq_probe_trigger()
448 state->trig->name = kasprintf(GFP_KERNEL, in lis3l02dq_probe_trigger()
451 if (!state->trig->name) { in lis3l02dq_probe_trigger()
456 state->trig->dev.parent = &state->us->dev; in lis3l02dq_probe_trigger()
[all …]
/linux-2.6.39/drivers/staging/iio/gyro/
Dadis16260_trigger.c24 struct iio_trigger *trig = st->trig; in adis16260_data_rdy_trig_poll() local
26 iio_trigger_poll(trig, timestamp); in adis16260_data_rdy_trig_poll()
47 static int adis16260_data_rdy_trigger_set_state(struct iio_trigger *trig, in adis16260_data_rdy_trigger_set_state() argument
50 struct adis16260_state *st = trig->private_data; in adis16260_data_rdy_trigger_set_state()
72 static int adis16260_trig_try_reen(struct iio_trigger *trig) in adis16260_trig_try_reen() argument
74 struct adis16260_state *st = trig->private_data; in adis16260_trig_try_reen()
84 st->trig = iio_allocate_trigger(); in adis16260_probe_trigger()
85 st->trig->name = kasprintf(GFP_KERNEL, in adis16260_probe_trigger()
88 if (!st->trig->name) { in adis16260_probe_trigger()
92 st->trig->dev.parent = &st->us->dev; in adis16260_probe_trigger()
[all …]
/linux-2.6.39/drivers/staging/iio/imu/
Dadis16300_trigger.c24 struct iio_trigger *trig = st->trig; in adis16300_data_rdy_trig_poll() local
26 iio_trigger_poll(trig, timestamp); in adis16300_data_rdy_trig_poll()
47 static int adis16300_data_rdy_trigger_set_state(struct iio_trigger *trig, in adis16300_data_rdy_trigger_set_state() argument
50 struct adis16300_state *st = trig->private_data; in adis16300_data_rdy_trigger_set_state()
74 static int adis16300_trig_try_reen(struct iio_trigger *trig) in adis16300_trig_try_reen() argument
76 struct adis16300_state *st = trig->private_data; in adis16300_trig_try_reen()
87 st->trig = iio_allocate_trigger(); in adis16300_probe_trigger()
88 st->trig->name = kasprintf(GFP_KERNEL, in adis16300_probe_trigger()
91 if (!st->trig->name) { in adis16300_probe_trigger()
95 st->trig->dev.parent = &st->us->dev; in adis16300_probe_trigger()
[all …]
Dadis16400_trigger.c24 struct iio_trigger *trig = st->trig; in adis16400_data_rdy_trig_poll() local
26 iio_trigger_poll(trig, timestamp); in adis16400_data_rdy_trig_poll()
47 static int adis16400_data_rdy_trigger_set_state(struct iio_trigger *trig, in adis16400_data_rdy_trigger_set_state() argument
50 struct adis16400_state *st = trig->private_data; in adis16400_data_rdy_trigger_set_state()
74 static int adis16400_trig_try_reen(struct iio_trigger *trig) in adis16400_trig_try_reen() argument
76 struct adis16400_state *st = trig->private_data; in adis16400_trig_try_reen()
87 st->trig = iio_allocate_trigger(); in adis16400_probe_trigger()
88 st->trig->name = kasprintf(GFP_KERNEL, in adis16400_probe_trigger()
91 if (!st->trig->name) { in adis16400_probe_trigger()
95 st->trig->dev.parent = &st->us->dev; in adis16400_probe_trigger()
[all …]
Dadis16350_trigger.c24 struct iio_trigger *trig = st->trig; in adis16350_data_rdy_trig_poll() local
26 iio_trigger_poll(trig, timestamp); in adis16350_data_rdy_trig_poll()
47 static int adis16350_data_rdy_trigger_set_state(struct iio_trigger *trig, in adis16350_data_rdy_trigger_set_state() argument
50 struct adis16350_state *st = trig->private_data; in adis16350_data_rdy_trigger_set_state()
74 static int adis16350_trig_try_reen(struct iio_trigger *trig) in adis16350_trig_try_reen() argument
76 struct adis16350_state *st = trig->private_data; in adis16350_trig_try_reen()
87 st->trig = iio_allocate_trigger(); in adis16350_probe_trigger()
88 st->trig->name = kasprintf(GFP_KERNEL, in adis16350_probe_trigger()
91 if (!st->trig->name) { in adis16350_probe_trigger()
95 st->trig->dev.parent = &st->us->dev; in adis16350_probe_trigger()
[all …]
/linux-2.6.39/drivers/staging/iio/meter/
Dade7758_trigger.c24 struct iio_trigger *trig = st->trig; in ade7758_data_rdy_trig_poll() local
26 iio_trigger_poll(trig, timestamp); in ade7758_data_rdy_trig_poll()
47 static int ade7758_data_rdy_trigger_set_state(struct iio_trigger *trig, in ade7758_data_rdy_trigger_set_state() argument
50 struct ade7758_state *st = trig->private_data; in ade7758_data_rdy_trigger_set_state()
74 static int ade7758_trig_try_reen(struct iio_trigger *trig) in ade7758_trig_try_reen() argument
76 struct ade7758_state *st = trig->private_data; in ade7758_trig_try_reen()
87 st->trig = iio_allocate_trigger(); in ade7758_probe_trigger()
88 st->trig->name = kasprintf(GFP_KERNEL, in ade7758_probe_trigger()
91 if (!st->trig->name) { in ade7758_probe_trigger()
95 st->trig->dev.parent = &st->us->dev; in ade7758_probe_trigger()
[all …]
/linux-2.6.39/drivers/staging/iio/trigger/
Diio-trig-gpio.c64 struct iio_trigger *trig, *trig2; in iio_gpio_trigger_probe() local
82 trig = iio_allocate_trigger(); in iio_gpio_trigger_probe()
83 if (!trig) { in iio_gpio_trigger_probe()
93 trig->control_attrs = &iio_gpio_trigger_attr_group; in iio_gpio_trigger_probe()
94 trig->private_data = trig_info; in iio_gpio_trigger_probe()
96 trig->owner = THIS_MODULE; in iio_gpio_trigger_probe()
97 trig->name = kasprintf(GFP_KERNEL, "irqtrig%d", irq); in iio_gpio_trigger_probe()
98 if (trig->name == NULL) { in iio_gpio_trigger_probe()
103 irqflags, trig->name, trig); in iio_gpio_trigger_probe()
110 ret = iio_trigger_register(trig); in iio_gpio_trigger_probe()
[all …]
Diio-trig-periodic-rtc.c31 static int iio_trig_periodic_rtc_set_state(struct iio_trigger *trig, bool state) in iio_trig_periodic_rtc_set_state() argument
33 struct iio_prtc_trigger_info *trig_info = trig->private_data; in iio_trig_periodic_rtc_set_state()
44 struct iio_trigger *trig = dev_get_drvdata(dev); in iio_trig_periodic_read_freq() local
45 struct iio_prtc_trigger_info *trig_info = trig->private_data; in iio_trig_periodic_read_freq()
54 struct iio_trigger *trig = dev_get_drvdata(dev); in iio_trig_periodic_write_freq() local
55 struct iio_prtc_trigger_info *trig_info = trig->private_data; in iio_trig_periodic_write_freq()
99 struct iio_trigger *trig, *trig2; in iio_trig_periodic_rtc_probe() local
106 trig = iio_allocate_trigger(); in iio_trig_periodic_rtc_probe()
107 if (!trig) { in iio_trig_periodic_rtc_probe()
111 list_add(&trig->alloc_list, &iio_prtc_trigger_list); in iio_trig_periodic_rtc_probe()
[all …]
Diio-trig-sysfs.c19 struct iio_trigger *trig = dev_get_drvdata(dev); in iio_sysfs_trigger_poll() local
20 iio_trigger_poll(trig, 0); in iio_sysfs_trigger_poll()
40 struct iio_trigger *trig; in iio_sysfs_trigger_probe() local
43 trig = iio_allocate_trigger(); in iio_sysfs_trigger_probe()
44 if (!trig) { in iio_sysfs_trigger_probe()
49 trig->control_attrs = &iio_sysfs_trigger_attr_group; in iio_sysfs_trigger_probe()
50 trig->owner = THIS_MODULE; in iio_sysfs_trigger_probe()
51 trig->name = kasprintf(GFP_KERNEL, "sysfstrig%d", pdev->id); in iio_sysfs_trigger_probe()
52 if (trig->name == NULL) { in iio_sysfs_trigger_probe()
57 ret = iio_trigger_register(trig); in iio_sysfs_trigger_probe()
[all …]
Diio-trig-bfin-timer.c54 struct iio_trigger *trig; member
63 struct iio_trigger *trig = dev_get_drvdata(dev); in iio_bfin_tmr_frequency_store() local
64 struct bfin_tmr_state *st = trig->private_data; in iio_bfin_tmr_frequency_store()
100 struct iio_trigger *trig = dev_get_drvdata(dev); in iio_bfin_tmr_frequency_show() local
101 struct bfin_tmr_state *st = trig->private_data; in iio_bfin_tmr_frequency_show()
127 iio_trigger_poll(st->trig, 0); in iio_bfin_tmr_trigger_isr()
168 st->trig = iio_allocate_trigger(); in iio_bfin_tmr_trigger_probe()
169 if (!st->trig) { in iio_bfin_tmr_trigger_probe()
174 st->trig->private_data = st; in iio_bfin_tmr_trigger_probe()
175 st->trig->control_attrs = &iio_bfin_tmr_trigger_attr_group; in iio_bfin_tmr_trigger_probe()
[all …]
DMakefile5 obj-$(CONFIG_IIO_PERIODIC_RTC_TRIGGER) += iio-trig-periodic-rtc.o
6 obj-$(CONFIG_IIO_GPIO_TRIGGER) += iio-trig-gpio.o
7 obj-$(CONFIG_IIO_SYSFS_TRIGGER) += iio-trig-sysfs.o
8 obj-$(CONFIG_IIO_BFIN_TMR_TRIGGER) += iio-trig-bfin-timer.o
/linux-2.6.39/drivers/leds/
Dled-triggers.c40 struct led_trigger *trig; in led_trigger_store() local
56 list_for_each_entry(trig, &trigger_list, next_trig) { in led_trigger_store()
57 if (!strcmp(trigger_name, trig->name)) { in led_trigger_store()
59 led_trigger_set(led_cdev, trig); in led_trigger_store()
76 struct led_trigger *trig; in led_trigger_show() local
87 list_for_each_entry(trig, &trigger_list, next_trig) { in led_trigger_show()
89 trig->name)) in led_trigger_show()
90 len += sprintf(buf+len, "[%s] ", trig->name); in led_trigger_show()
92 len += sprintf(buf+len, "%s ", trig->name); in led_trigger_show()
139 struct led_trigger *trig; in led_trigger_set_default() local
[all …]
/linux-2.6.39/drivers/staging/iio/Documentation/
Dtrigger.txt8 struct iio_trig *trig = iio_allocate_trigger();
13 trig->control_attrs
16 trig->private_data
19 trig->owner
23 trig->name
28 iio_trigger_register(trig);
/linux-2.6.39/net/mac80211/
Dled.c108 if (led_trigger_register(&local->tpt_led_trigger->trig)) { in ieee80211_led_init()
135 led_trigger_unregister(&local->tpt_led_trigger->trig); in ieee80211_led_exit()
212 read_lock(&tpt_trig->trig.leddev_list_lock); in tpt_trig_timer()
213 list_for_each_entry(led_cdev, &tpt_trig->trig.led_cdevs, trig_list) in tpt_trig_timer()
215 read_unlock(&tpt_trig->trig.leddev_list_lock); in tpt_trig_timer()
236 tpt_trig->trig.name = tpt_trig->name; in __ieee80211_create_tpt_led_trigger()
276 read_lock(&tpt_trig->trig.leddev_list_lock); in ieee80211_stop_tpt_led_trig()
277 list_for_each_entry(led_cdev, &tpt_trig->trig.led_cdevs, trig_list) in ieee80211_stop_tpt_led_trig()
279 read_unlock(&tpt_trig->trig.leddev_list_lock); in ieee80211_stop_tpt_led_trig()
/linux-2.6.39/arch/cris/include/arch-v32/mach-a3/mach/hwregs/
Dtimer_defs.h190 unsigned int trig : 1; member
201 unsigned int trig : 1; member
212 unsigned int trig : 1; member
222 unsigned int trig : 1; member
/linux-2.6.39/arch/cris/include/arch-v32/mach-fs/mach/hwregs/
Dtimer_defs.h193 unsigned int trig : 1; member
204 unsigned int trig : 1; member
215 unsigned int trig : 1; member
225 unsigned int trig : 1; member
/linux-2.6.39/arch/cris/arch-v32/kernel/
Dfasttimer.c132 reg_timer_rw_trig trig; in start_timer_trig() local
145 intr_mask.trig = 0; in start_timer_trig()
150 trig_wrap = (trig = r_time0 + delay_us*(1000/10)) < r_time0; in start_timer_trig()
152 timer_div_settings[fast_timers_started % NUM_TIMER_STATS] = trig; in start_timer_trig()
156 ack_intr.trig = 1; in start_timer_trig()
160 REG_WR(timer, regi_timer0, rw_trig, trig); in start_timer_trig()
168 if ((trig_wrap && !time_wrap) || (r_time1 < trig)) { in start_timer_trig()
171 intr_mask.trig = 1; in start_timer_trig()
313 if (!masked_intr.trig) in timer_trig_interrupt()
338 intr_mask.trig = 0; in timer_trig_handler()
[all …]
/linux-2.6.39/drivers/staging/iio/adc/
Dad799x_ring.c222 if (indio_dev->trig) { in ad799x_ring_cleanup()
223 iio_put_trigger(indio_dev->trig); in ad799x_ring_cleanup()
224 iio_trigger_dettach_poll_func(indio_dev->trig, in ad799x_ring_cleanup()

1234