Lines Matching refs:counter

29 	struct counter_device *counter = dev_id;  in interrupt_cnt_isr()  local
30 struct interrupt_cnt_priv *priv = counter_priv(counter); in interrupt_cnt_isr()
34 counter_push_event(counter, COUNTER_EVENT_CHANGE_OF_STATE, 0); in interrupt_cnt_isr()
39 static int interrupt_cnt_enable_read(struct counter_device *counter, in interrupt_cnt_enable_read() argument
42 struct interrupt_cnt_priv *priv = counter_priv(counter); in interrupt_cnt_enable_read()
49 static int interrupt_cnt_enable_write(struct counter_device *counter, in interrupt_cnt_enable_write() argument
52 struct interrupt_cnt_priv *priv = counter_priv(counter); in interrupt_cnt_enable_write()
77 static int interrupt_cnt_action_read(struct counter_device *counter, in interrupt_cnt_action_read() argument
87 static int interrupt_cnt_read(struct counter_device *counter, in interrupt_cnt_read() argument
90 struct interrupt_cnt_priv *priv = counter_priv(counter); in interrupt_cnt_read()
97 static int interrupt_cnt_write(struct counter_device *counter, in interrupt_cnt_write() argument
100 struct interrupt_cnt_priv *priv = counter_priv(counter); in interrupt_cnt_write()
102 if (val != (typeof(priv->count.counter))val) in interrupt_cnt_write()
114 static int interrupt_cnt_function_read(struct counter_device *counter, in interrupt_cnt_function_read() argument
123 static int interrupt_cnt_signal_read(struct counter_device *counter, in interrupt_cnt_signal_read() argument
127 struct interrupt_cnt_priv *priv = counter_priv(counter); in interrupt_cnt_signal_read()
142 static int interrupt_cnt_watch_validate(struct counter_device *counter, in interrupt_cnt_watch_validate() argument
164 struct counter_device *counter; in interrupt_cnt_probe() local
168 counter = devm_counter_alloc(dev, sizeof(*priv)); in interrupt_cnt_probe()
169 if (!counter) in interrupt_cnt_probe()
171 priv = counter_priv(counter); in interrupt_cnt_probe()
202 counter->signals = &priv->signals; in interrupt_cnt_probe()
203 counter->num_signals = 1; in interrupt_cnt_probe()
217 counter->name = dev_name(dev); in interrupt_cnt_probe()
218 counter->parent = dev; in interrupt_cnt_probe()
219 counter->ops = &interrupt_cnt_ops; in interrupt_cnt_probe()
220 counter->counts = &priv->cnts; in interrupt_cnt_probe()
221 counter->num_counts = 1; in interrupt_cnt_probe()
226 dev_name(dev), counter); in interrupt_cnt_probe()
230 ret = devm_counter_add(dev, counter); in interrupt_cnt_probe()