Home
last modified time | relevance | path

Searched refs:TIM_SMCR_SMS (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/iio/trigger/
Dstm32-timer-trigger.c420 dat &= TIM_SMCR_SMS; in stm32_counter_read_raw()
510 regmap_update_bits(priv->regmap, TIM_SMCR, TIM_SMCR_SMS, TIM_SMCR_SMS); in stm32_set_trigger_mode()
523 return (smcr & TIM_SMCR_SMS) == TIM_SMCR_SMS ? 0 : -EINVAL; in stm32_get_trigger_mode()
573 regmap_update_bits(priv->regmap, TIM_SMCR, TIM_SMCR_SMS, sms); in stm32_set_enable_mode()
599 smcr &= TIM_SMCR_SMS; in stm32_get_enable_mode()
623 regmap_update_bits(priv->regmap, TIM_SMCR, TIM_SMCR_SMS, mode + 1); in stm32_set_quadrature_mode()
636 mode = (smcr & TIM_SMCR_SMS) - 1; in stm32_get_quadrature_mode()
665 mode = (val & TIM_SMCR_SMS) - 1; in stm32_set_count_direction()
/Linux-v4.19/include/linux/mfd/
Dstm32-timers.h40 #define TIM_SMCR_SMS (BIT(0) | BIT(1) | BIT(2)) /* Slave mode selection */ macro