Lines Matching refs:t

295 static int bmc150_accel_any_motion_setup(struct bmc150_accel_trigger *t,  in bmc150_accel_any_motion_setup()  argument
299 return bmc150_accel_update_slope(t->data); in bmc150_accel_any_motion_setup()
1250 struct bmc150_accel_trigger *t = iio_trigger_get_drvdata(trig); in bmc150_accel_trig_reen() local
1251 struct bmc150_accel_data *data = t->data; in bmc150_accel_trig_reen()
1256 if (t == &t->data->triggers[BMC150_ACCEL_TRIGGER_DATA_READY]) in bmc150_accel_trig_reen()
1272 struct bmc150_accel_trigger *t = iio_trigger_get_drvdata(trig); in bmc150_accel_trigger_set_state() local
1273 struct bmc150_accel_data *data = t->data; in bmc150_accel_trigger_set_state()
1278 if (t->enabled == state) { in bmc150_accel_trigger_set_state()
1283 if (t->setup) { in bmc150_accel_trigger_set_state()
1284 ret = t->setup(t, state); in bmc150_accel_trigger_set_state()
1291 ret = bmc150_accel_set_interrupt(data, t->intr, state); in bmc150_accel_trigger_set_state()
1297 t->enabled = state; in bmc150_accel_trigger_set_state()
1428 int (*setup)(struct bmc150_accel_trigger *t, bool state);
1461 struct bmc150_accel_trigger *t = &data->triggers[i]; in bmc150_accel_triggers_setup() local
1463 t->indio_trig = devm_iio_trigger_alloc(dev, in bmc150_accel_triggers_setup()
1467 if (!t->indio_trig) { in bmc150_accel_triggers_setup()
1472 t->indio_trig->ops = &bmc150_accel_trigger_ops; in bmc150_accel_triggers_setup()
1473 t->intr = bmc150_accel_triggers[i].intr; in bmc150_accel_triggers_setup()
1474 t->data = data; in bmc150_accel_triggers_setup()
1475 t->setup = bmc150_accel_triggers[i].setup; in bmc150_accel_triggers_setup()
1476 iio_trigger_set_drvdata(t->indio_trig, t); in bmc150_accel_triggers_setup()
1478 ret = iio_trigger_register(t->indio_trig); in bmc150_accel_triggers_setup()