Lines Matching refs:counter

31 	struct counter_device counter;  member
59 static int stm32_count_read(struct counter_device *counter, in stm32_count_read() argument
62 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_read()
71 static int stm32_count_write(struct counter_device *counter, in stm32_count_write() argument
75 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_write()
83 static int stm32_count_function_get(struct counter_device *counter, in stm32_count_function_get() argument
87 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_function_get()
107 static int stm32_count_function_set(struct counter_device *counter, in stm32_count_function_set() argument
111 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_function_set()
149 static ssize_t stm32_count_direction_read(struct counter_device *counter, in stm32_count_direction_read() argument
153 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_direction_read()
163 static ssize_t stm32_count_ceiling_read(struct counter_device *counter, in stm32_count_ceiling_read() argument
167 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_ceiling_read()
175 static ssize_t stm32_count_ceiling_write(struct counter_device *counter, in stm32_count_ceiling_write() argument
180 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_ceiling_write()
196 static ssize_t stm32_count_enable_read(struct counter_device *counter, in stm32_count_enable_read() argument
200 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_enable_read()
208 static ssize_t stm32_count_enable_write(struct counter_device *counter, in stm32_count_enable_write() argument
213 struct stm32_timer_cnt *const priv = counter->priv; in stm32_count_enable_write()
269 static int stm32_action_get(struct counter_device *counter, in stm32_action_get() argument
280 err = stm32_count_function_get(counter, count, &function); in stm32_action_get()
364 priv->counter.name = dev_name(dev); in stm32_timer_cnt_probe()
365 priv->counter.parent = dev; in stm32_timer_cnt_probe()
366 priv->counter.ops = &stm32_timer_cnt_ops; in stm32_timer_cnt_probe()
367 priv->counter.counts = &stm32_counts; in stm32_timer_cnt_probe()
368 priv->counter.num_counts = 1; in stm32_timer_cnt_probe()
369 priv->counter.signals = stm32_signals; in stm32_timer_cnt_probe()
370 priv->counter.num_signals = ARRAY_SIZE(stm32_signals); in stm32_timer_cnt_probe()
371 priv->counter.priv = priv; in stm32_timer_cnt_probe()
376 return devm_counter_register(dev, &priv->counter); in stm32_timer_cnt_probe()