Home
last modified time | relevance | path

Searched refs:irq_trig (Results 1 – 8 of 8) sorted by relevance

/drivers/iio/common/st_sensors/
Dst_sensors_trigger.c124 unsigned long irq_trig; in st_sensors_allocate_trigger() local
137 irq_trig = irqd_get_trigger_type(irq_get_irq_data(sdata->irq)); in st_sensors_allocate_trigger()
142 switch(irq_trig) { in st_sensors_allocate_trigger()
148 if (irq_trig == IRQF_TRIGGER_FALLING) in st_sensors_allocate_trigger()
149 irq_trig = IRQF_TRIGGER_RISING; in st_sensors_allocate_trigger()
150 if (irq_trig == IRQF_TRIGGER_LOW) in st_sensors_allocate_trigger()
151 irq_trig = IRQF_TRIGGER_HIGH; in st_sensors_allocate_trigger()
174 "unsupported IRQ trigger specified (%lx), enforce rising edge\n", irq_trig); in st_sensors_allocate_trigger()
175 irq_trig = IRQF_TRIGGER_RISING; in st_sensors_allocate_trigger()
179 if (irq_trig == IRQF_TRIGGER_FALLING || in st_sensors_allocate_trigger()
[all …]
/drivers/iio/gyro/
Dmpu3050-core.c1056 unsigned long irq_trig; in mpu3050_trigger_probe() local
1069 irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq)); in mpu3050_trigger_probe()
1075 switch (irq_trig) { in mpu3050_trigger_probe()
1094 irq_trig |= IRQF_ONESHOT; in mpu3050_trigger_probe()
1099 irq_trig |= IRQF_ONESHOT; in mpu3050_trigger_probe()
1107 "rising edge\n", irq_trig); in mpu3050_trigger_probe()
1108 irq_trig = IRQF_TRIGGER_RISING; in mpu3050_trigger_probe()
1114 irq_trig |= IRQF_SHARED; in mpu3050_trigger_probe()
1119 irq_trig, in mpu3050_trigger_probe()
Dfxas21002c_core.c825 unsigned long irq_trig; in fxas21002c_trigger_probe() local
852 irq_trig = irqd_get_trigger_type(irq_get_irq_data(data->irq)); in fxas21002c_trigger_probe()
854 if (irq_trig == IRQF_TRIGGER_RISING) { in fxas21002c_trigger_probe()
861 irq_trig |= IRQF_SHARED; in fxas21002c_trigger_probe()
866 irq_trig, "fxas21002c_data_ready", in fxas21002c_trigger_probe()
/drivers/iio/magnetometer/
Dak8974.c821 unsigned long irq_trig; in ak8974_probe() local
919 irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq)); in ak8974_probe()
920 if (irq_trig == IRQF_TRIGGER_RISING) { in ak8974_probe()
922 } else if (irq_trig == IRQF_TRIGGER_FALLING) { in ak8974_probe()
926 irq_trig = IRQF_TRIGGER_RISING; in ak8974_probe()
928 irq_trig |= IRQF_ONESHOT; in ak8974_probe()
929 irq_trig |= IRQF_SHARED; in ak8974_probe()
935 irq_trig, in ak8974_probe()
/drivers/iio/adc/
Dti-ads1015.c1041 unsigned long irq_trig = in ads1015_probe() local
1049 switch (irq_trig) { in ads1015_probe()
1069 irq_trig | IRQF_ONESHOT, in ads1015_probe()
/drivers/iio/pressure/
Dbmp280-core.c2026 unsigned long irq_trig; in bmp085_fetch_eoc_irq() local
2029 irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq)); in bmp085_fetch_eoc_irq()
2030 if (irq_trig != IRQF_TRIGGER_RISING) { in bmp085_fetch_eoc_irq()
2032 irq_trig = IRQF_TRIGGER_RISING; in bmp085_fetch_eoc_irq()
2041 irq_trig, in bmp085_fetch_eoc_irq()
/drivers/net/dsa/realtek/
Drtl8365mb.c1699 u32 irq_trig; in rtl8365mb_irq_setup() local
1743 irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq)); in rtl8365mb_irq_setup()
1744 switch (irq_trig) { in rtl8365mb_irq_setup()
1755 irq_trig); in rtl8365mb_irq_setup()
Drtl8366rb.c554 unsigned long irq_trig; in rtl8366rb_setup_cascaded_irq() local
582 irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq)); in rtl8366rb_setup_cascaded_irq()
583 switch (irq_trig) { in rtl8366rb_setup_cascaded_irq()