Lines Matching refs:counter
55 struct counter_device counter; member
112 static int quad8_signal_read(struct counter_device *counter, in quad8_signal_read() argument
116 const struct quad8 *const priv = counter->priv; in quad8_signal_read()
131 static int quad8_count_read(struct counter_device *counter, in quad8_count_read() argument
134 struct quad8 *const priv = counter->priv; in quad8_count_read()
163 static int quad8_count_write(struct counter_device *counter, in quad8_count_write() argument
166 struct quad8 *const priv = counter->priv; in quad8_count_write()
212 static int quad8_function_read(struct counter_device *counter, in quad8_function_read() argument
216 struct quad8 *const priv = counter->priv; in quad8_function_read()
242 static int quad8_function_write(struct counter_device *counter, in quad8_function_write() argument
246 struct quad8 *const priv = counter->priv; in quad8_function_write()
304 static int quad8_direction_read(struct counter_device *counter, in quad8_direction_read() argument
308 const struct quad8 *const priv = counter->priv; in quad8_direction_read()
333 static int quad8_action_read(struct counter_device *counter, in quad8_action_read() argument
338 struct quad8 *const priv = counter->priv; in quad8_action_read()
354 err = quad8_function_read(counter, count, &function); in quad8_action_read()
369 err = quad8_direction_read(counter, count, &direction); in quad8_action_read()
400 static int quad8_events_configure(struct counter_device *counter) in quad8_events_configure() argument
402 struct quad8 *const priv = counter->priv; in quad8_events_configure()
442 static int quad8_watch_validate(struct counter_device *counter, in quad8_watch_validate() argument
445 struct quad8 *const priv = counter->priv; in quad8_watch_validate()
496 static int quad8_index_polarity_get(struct counter_device *counter, in quad8_index_polarity_get() argument
500 const struct quad8 *const priv = counter->priv; in quad8_index_polarity_get()
508 static int quad8_index_polarity_set(struct counter_device *counter, in quad8_index_polarity_set() argument
512 struct quad8 *const priv = counter->priv; in quad8_index_polarity_set()
537 static int quad8_synchronous_mode_get(struct counter_device *counter, in quad8_synchronous_mode_get() argument
541 const struct quad8 *const priv = counter->priv; in quad8_synchronous_mode_get()
549 static int quad8_synchronous_mode_set(struct counter_device *counter, in quad8_synchronous_mode_set() argument
553 struct quad8 *const priv = counter->priv; in quad8_synchronous_mode_set()
579 static int quad8_count_floor_read(struct counter_device *counter, in quad8_count_floor_read() argument
588 static int quad8_count_mode_read(struct counter_device *counter, in quad8_count_mode_read() argument
592 const struct quad8 *const priv = counter->priv; in quad8_count_mode_read()
613 static int quad8_count_mode_write(struct counter_device *counter, in quad8_count_mode_write() argument
617 struct quad8 *const priv = counter->priv; in quad8_count_mode_write()
661 static int quad8_count_enable_read(struct counter_device *counter, in quad8_count_enable_read() argument
664 const struct quad8 *const priv = counter->priv; in quad8_count_enable_read()
671 static int quad8_count_enable_write(struct counter_device *counter, in quad8_count_enable_write() argument
674 struct quad8 *const priv = counter->priv; in quad8_count_enable_write()
699 static int quad8_error_noise_get(struct counter_device *counter, in quad8_error_noise_get() argument
702 const struct quad8 *const priv = counter->priv; in quad8_error_noise_get()
710 static int quad8_count_preset_read(struct counter_device *counter, in quad8_count_preset_read() argument
713 const struct quad8 *const priv = counter->priv; in quad8_count_preset_read()
736 static int quad8_count_preset_write(struct counter_device *counter, in quad8_count_preset_write() argument
739 struct quad8 *const priv = counter->priv; in quad8_count_preset_write()
755 static int quad8_count_ceiling_read(struct counter_device *counter, in quad8_count_ceiling_read() argument
758 struct quad8 *const priv = counter->priv; in quad8_count_ceiling_read()
780 static int quad8_count_ceiling_write(struct counter_device *counter, in quad8_count_ceiling_write() argument
783 struct quad8 *const priv = counter->priv; in quad8_count_ceiling_write()
806 static int quad8_count_preset_enable_read(struct counter_device *counter, in quad8_count_preset_enable_read() argument
810 const struct quad8 *const priv = counter->priv; in quad8_count_preset_enable_read()
817 static int quad8_count_preset_enable_write(struct counter_device *counter, in quad8_count_preset_enable_write() argument
821 struct quad8 *const priv = counter->priv; in quad8_count_preset_enable_write()
844 static int quad8_signal_cable_fault_read(struct counter_device *counter, in quad8_signal_cable_fault_read() argument
848 struct quad8 *const priv = counter->priv; in quad8_signal_cable_fault_read()
874 static int quad8_signal_cable_fault_enable_read(struct counter_device *counter, in quad8_signal_cable_fault_enable_read() argument
878 const struct quad8 *const priv = counter->priv; in quad8_signal_cable_fault_enable_read()
886 static int quad8_signal_cable_fault_enable_write(struct counter_device *counter, in quad8_signal_cable_fault_enable_write() argument
890 struct quad8 *const priv = counter->priv; in quad8_signal_cable_fault_enable_write()
912 static int quad8_signal_fck_prescaler_read(struct counter_device *counter, in quad8_signal_fck_prescaler_read() argument
916 const struct quad8 *const priv = counter->priv; in quad8_signal_fck_prescaler_read()
923 static int quad8_signal_fck_prescaler_write(struct counter_device *counter, in quad8_signal_fck_prescaler_write() argument
927 struct quad8 *const priv = counter->priv; in quad8_signal_fck_prescaler_write()
1119 counter_push_event(&priv->counter, event, channel); in quad8_irq_handler()
1146 priv->counter.name = dev_name(dev); in quad8_probe()
1147 priv->counter.parent = dev; in quad8_probe()
1148 priv->counter.ops = &quad8_ops; in quad8_probe()
1149 priv->counter.counts = quad8_counts; in quad8_probe()
1150 priv->counter.num_counts = ARRAY_SIZE(quad8_counts); in quad8_probe()
1151 priv->counter.signals = quad8_signals; in quad8_probe()
1152 priv->counter.num_signals = ARRAY_SIZE(quad8_signals); in quad8_probe()
1153 priv->counter.priv = priv; in quad8_probe()
1195 priv->counter.name, priv); in quad8_probe()
1199 return devm_counter_register(dev, &priv->counter); in quad8_probe()