Lines Matching refs:counter

31 	struct counter_device counter;  member
60 static int stm32_count_read(struct counter_device *counter, in stm32_count_read() argument
63 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_read()
72 static int stm32_count_write(struct counter_device *counter, in stm32_count_write() argument
76 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_write()
86 static int stm32_count_function_get(struct counter_device *counter, in stm32_count_function_get() argument
90 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_function_get()
113 static int stm32_count_function_set(struct counter_device *counter, in stm32_count_function_set() argument
117 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_function_set()
153 static ssize_t stm32_count_direction_read(struct counter_device *counter, in stm32_count_direction_read() argument
157 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_direction_read()
167 static ssize_t stm32_count_ceiling_read(struct counter_device *counter, in stm32_count_ceiling_read() argument
171 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_ceiling_read()
179 static ssize_t stm32_count_ceiling_write(struct counter_device *counter, in stm32_count_ceiling_write() argument
184 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_ceiling_write()
202 static ssize_t stm32_count_enable_read(struct counter_device *counter, in stm32_count_enable_read() argument
206 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_enable_read()
214 static ssize_t stm32_count_enable_write(struct counter_device *counter, in stm32_count_enable_write() argument
219 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_enable_write()
275 static int stm32_action_get(struct counter_device *counter, in stm32_action_get() argument
283 err = stm32_count_function_get(counter, count, &function); in stm32_action_get()
375 priv->counter.name = dev_name(dev); in stm32_timer_cnt_probe()
376 priv->counter.parent = dev; in stm32_timer_cnt_probe()
377 priv->counter.ops = &stm32_timer_cnt_ops; in stm32_timer_cnt_probe()
378 priv->counter.counts = &stm32_counts; in stm32_timer_cnt_probe()
379 priv->counter.num_counts = 1; in stm32_timer_cnt_probe()
380 priv->counter.signals = stm32_signals; in stm32_timer_cnt_probe()
381 priv->counter.num_signals = ARRAY_SIZE(stm32_signals); in stm32_timer_cnt_probe()
382 priv->counter.priv = priv; in stm32_timer_cnt_probe()
387 return devm_counter_register(dev, &priv->counter); in stm32_timer_cnt_probe()