Lines Matching refs:trig
114 const struct sensor_trigger *trig, in bmi160_trigger_drdy_set() argument
123 data->trig_drdy_acc = trig; in bmi160_trigger_drdy_set()
134 data->trig_drdy_gyr = trig; in bmi160_trigger_drdy_set()
152 const struct sensor_trigger *trig, in bmi160_trigger_anym_set() argument
159 data->trig_anymotion = trig; in bmi160_trigger_anym_set()
176 const struct sensor_trigger *trig, in bmi160_trigger_set_acc() argument
179 if (trig->type == SENSOR_TRIG_DATA_READY) { in bmi160_trigger_set_acc()
180 return bmi160_trigger_drdy_set(dev, trig->chan, trig, handler); in bmi160_trigger_set_acc()
181 } else if (trig->type == SENSOR_TRIG_DELTA) { in bmi160_trigger_set_acc()
182 return bmi160_trigger_anym_set(dev, trig, handler); in bmi160_trigger_set_acc()
235 const struct sensor_trigger *trig, in bmi160_trigger_set_gyr() argument
238 if (trig->type == SENSOR_TRIG_DATA_READY) { in bmi160_trigger_set_gyr()
239 return bmi160_trigger_drdy_set(dev, trig->chan, trig, handler); in bmi160_trigger_set_gyr()
247 const struct sensor_trigger *trig, in bmi160_trigger_set() argument
251 if (trig->chan == SENSOR_CHAN_ACCEL_XYZ) { in bmi160_trigger_set()
252 return bmi160_trigger_set_acc(dev, trig, handler); in bmi160_trigger_set()
256 if (trig->chan == SENSOR_CHAN_GYRO_XYZ) { in bmi160_trigger_set()
257 return bmi160_trigger_set_gyr(dev, trig, handler); in bmi160_trigger_set()