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);
150 /* Index must match with stm32_lptim_cnt_polarity[] (priv->polarity) */
184 if (priv->polarity == STM32_LPTIM_SYNAPSE_ACTION_BOTH_EDGES) {
207 priv->polarity = STM32_LPTIM_SYNAPSE_ACTION_BOTH_EDGES;
322 *action = priv->polarity;
327 *action = priv->polarity;
350 /* only set polarity when in counter mode (on input 1) */
357 priv->polarity = action;