Lines Matching refs:counter

32 	struct counter_device counter;  member
47 static int stm32_count_read(struct counter_device *counter, in stm32_count_read() argument
50 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_read()
59 static int stm32_count_write(struct counter_device *counter, in stm32_count_write() argument
62 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_write()
72 static int stm32_count_function_read(struct counter_device *counter, in stm32_count_function_read() argument
76 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_function_read()
99 static int stm32_count_function_write(struct counter_device *counter, in stm32_count_function_write() argument
103 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_function_write()
139 static int stm32_count_direction_read(struct counter_device *counter, in stm32_count_direction_read() argument
143 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_direction_read()
153 static int stm32_count_ceiling_read(struct counter_device *counter, in stm32_count_ceiling_read() argument
156 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_ceiling_read()
166 static int stm32_count_ceiling_write(struct counter_device *counter, in stm32_count_ceiling_write() argument
169 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_ceiling_write()
181 static int stm32_count_enable_read(struct counter_device *counter, in stm32_count_enable_read() argument
184 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_enable_read()
194 static int stm32_count_enable_write(struct counter_device *counter, in stm32_count_enable_write() argument
197 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_enable_write()
232 static int stm32_action_read(struct counter_device *counter, in stm32_action_read() argument
240 err = stm32_count_function_read(counter, count, &function); in stm32_action_read()
332 priv->counter.name = dev_name(dev); in stm32_timer_cnt_probe()
333 priv->counter.parent = dev; in stm32_timer_cnt_probe()
334 priv->counter.ops = &stm32_timer_cnt_ops; in stm32_timer_cnt_probe()
335 priv->counter.counts = &stm32_counts; in stm32_timer_cnt_probe()
336 priv->counter.num_counts = 1; in stm32_timer_cnt_probe()
337 priv->counter.signals = stm32_signals; in stm32_timer_cnt_probe()
338 priv->counter.num_signals = ARRAY_SIZE(stm32_signals); in stm32_timer_cnt_probe()
339 priv->counter.priv = priv; in stm32_timer_cnt_probe()
344 return devm_counter_register(dev, &priv->counter); in stm32_timer_cnt_probe()