Lines Matching refs:trig
117 struct iio_trigger *trig, in stm32_timer_start() argument
163 if (stm32_timer_is_trgo2_name(trig->name)) in stm32_timer_start()
181 struct iio_trigger *trig) in stm32_timer_stop() argument
197 if (stm32_timer_is_trgo2_name(trig->name)) in stm32_timer_stop()
216 struct iio_trigger *trig = to_iio_trigger(dev); in stm32_tt_store_frequency() local
217 struct stm32_timer_trigger *priv = iio_trigger_get_drvdata(trig); in stm32_tt_store_frequency()
226 stm32_timer_stop(priv, trig); in stm32_tt_store_frequency()
228 ret = stm32_timer_start(priv, trig, freq); in stm32_tt_store_frequency()
239 struct iio_trigger *trig = to_iio_trigger(dev); in stm32_tt_read_frequency() local
240 struct stm32_timer_trigger *priv = iio_trigger_get_drvdata(trig); in stm32_tt_read_frequency()
289 struct iio_trigger *trig = to_iio_trigger(dev); in stm32_tt_show_master_mode() local
294 if (stm32_timer_is_trgo2_name(trig->name)) in stm32_tt_show_master_mode()
307 struct iio_trigger *trig = to_iio_trigger(dev); in stm32_tt_store_master_mode() local
311 if (stm32_timer_is_trgo2_name(trig->name)) { in stm32_tt_store_master_mode()
344 struct iio_trigger *trig = to_iio_trigger(dev); in stm32_tt_show_master_mode_avail() local
348 if (stm32_timer_is_trgo2_name(trig->name)) in stm32_tt_show_master_mode_avail()
406 struct iio_trigger *trig; in stm32_register_iio_triggers() local
415 trig = devm_iio_trigger_alloc(priv->dev, "%s", *cur); in stm32_register_iio_triggers()
416 if (!trig) in stm32_register_iio_triggers()
419 trig->dev.parent = priv->dev->parent; in stm32_register_iio_triggers()
420 trig->ops = &timer_trigger_ops; in stm32_register_iio_triggers()
427 trig->dev.groups = stm32_trigger_attr_groups; in stm32_register_iio_triggers()
429 iio_trigger_set_drvdata(trig, priv); in stm32_register_iio_triggers()
431 ret = iio_trigger_register(trig); in stm32_register_iio_triggers()
437 list_add_tail(&trig->alloc_list, &priv->tr_list); in stm32_register_iio_triggers()
518 struct iio_trigger *trig) in stm32_counter_validate_trigger() argument
524 if (!is_stm32_timer_trigger(trig)) in stm32_counter_validate_trigger()
528 if (!strncmp(trig->name, *cur, strlen(trig->name))) { in stm32_counter_validate_trigger()
745 bool is_stm32_timer_trigger(struct iio_trigger *trig) in is_stm32_timer_trigger() argument
747 return (trig->ops == &timer_trigger_ops); in is_stm32_timer_trigger()