Lines Matching defs:polarity
27 u32 polarity;
100 /* Setup LP timer encoder/counter and polarity, without prescaler */
105 val |= FIELD_PREP(STM32_LPTIM_CKPOL, enable ? priv->polarity : 0);
167 if (priv->polarity == STM32_LPTIM_CKPOL_BOTH_EDGES) {
190 priv->polarity = STM32_LPTIM_CKPOL_BOTH_EDGES;
295 switch (priv->polarity) {
334 /* only set polarity when in counter mode (on input 1) */
341 priv->polarity = STM32_LPTIM_CKPOL_RISING_EDGE;
344 priv->polarity = STM32_LPTIM_CKPOL_FALLING_EDGE;
347 priv->polarity = STM32_LPTIM_CKPOL_BOTH_EDGES;