Home
last modified time | relevance | path

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

/drivers/iio/common/st_sensors/
Dst_sensors_trigger.c122 unsigned long irq_trig; in st_sensors_allocate_trigger() local
135 irq_trig = irqd_get_trigger_type(irq_get_irq_data(sdata->irq)); in st_sensors_allocate_trigger()
140 switch(irq_trig) { in st_sensors_allocate_trigger()
146 if (irq_trig == IRQF_TRIGGER_FALLING) in st_sensors_allocate_trigger()
147 irq_trig = IRQF_TRIGGER_RISING; in st_sensors_allocate_trigger()
148 if (irq_trig == IRQF_TRIGGER_LOW) in st_sensors_allocate_trigger()
149 irq_trig = IRQF_TRIGGER_HIGH; in st_sensors_allocate_trigger()
172 "unsupported IRQ trigger specified (%lx), enforce rising edge\n", irq_trig); in st_sensors_allocate_trigger()
173 irq_trig = IRQF_TRIGGER_RISING; in st_sensors_allocate_trigger()
177 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
1070 irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq)); in mpu3050_trigger_probe()
1076 switch (irq_trig) { in mpu3050_trigger_probe()
1095 irq_trig |= IRQF_ONESHOT; in mpu3050_trigger_probe()
1100 irq_trig |= IRQF_ONESHOT; in mpu3050_trigger_probe()
1108 "rising edge\n", irq_trig); in mpu3050_trigger_probe()
1109 irq_trig = IRQF_TRIGGER_RISING; in mpu3050_trigger_probe()
1115 irq_trig |= IRQF_SHARED; in mpu3050_trigger_probe()
1120 irq_trig, in mpu3050_trigger_probe()
Dfxas21002c_core.c826 unsigned long irq_trig; in fxas21002c_trigger_probe() local
854 irq_trig = irqd_get_trigger_type(irq_get_irq_data(data->irq)); in fxas21002c_trigger_probe()
856 if (irq_trig == IRQF_TRIGGER_RISING) { in fxas21002c_trigger_probe()
863 irq_trig |= IRQF_SHARED; in fxas21002c_trigger_probe()
868 irq_trig, "fxas21002c_data_ready", in fxas21002c_trigger_probe()
/drivers/iio/magnetometer/
Dak8974.c822 unsigned long irq_trig; in ak8974_probe() local
920 irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq)); in ak8974_probe()
921 if (irq_trig == IRQF_TRIGGER_RISING) { in ak8974_probe()
923 } else if (irq_trig == IRQF_TRIGGER_FALLING) { in ak8974_probe()
927 irq_trig = IRQF_TRIGGER_RISING; in ak8974_probe()
929 irq_trig |= IRQF_ONESHOT; in ak8974_probe()
930 irq_trig |= IRQF_SHARED; in ak8974_probe()
936 irq_trig, in ak8974_probe()
/drivers/iio/pressure/
Dbmp280-core.c943 unsigned long irq_trig; in bmp085_fetch_eoc_irq() local
946 irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq)); in bmp085_fetch_eoc_irq()
947 if (irq_trig != IRQF_TRIGGER_RISING) { in bmp085_fetch_eoc_irq()
949 irq_trig = IRQF_TRIGGER_RISING; in bmp085_fetch_eoc_irq()
958 irq_trig, in bmp085_fetch_eoc_irq()
/drivers/iio/adc/
Dti-ads1015.c1006 unsigned long irq_trig = in ads1015_probe() local
1014 switch (irq_trig) { in ads1015_probe()
1034 irq_trig | IRQF_ONESHOT, in ads1015_probe()
/drivers/net/dsa/
Drtl8366rb.c503 unsigned long irq_trig; in rtl8366rb_setup_cascaded_irq() local
531 irq_trig = irqd_get_trigger_type(irq_get_irq_data(irq)); in rtl8366rb_setup_cascaded_irq()
532 switch (irq_trig) { in rtl8366rb_setup_cascaded_irq()