• Home
  • Raw
  • Download

Lines Matching refs:counter

215 static int quad8_signal_read(struct counter_device *counter,  in quad8_signal_read()  argument
219 const struct quad8 *const priv = counter_priv(counter); in quad8_signal_read()
235 static int quad8_count_read(struct counter_device *counter, in quad8_count_read() argument
238 struct quad8 *const priv = counter_priv(counter); in quad8_count_read()
283 static int quad8_count_write(struct counter_device *counter, in quad8_count_write() argument
286 struct quad8 *const priv = counter_priv(counter); in quad8_count_write()
345 static int quad8_function_read(struct counter_device *counter, in quad8_function_read() argument
349 struct quad8 *const priv = counter_priv(counter); in quad8_function_read()
362 static int quad8_function_write(struct counter_device *counter, in quad8_function_write() argument
366 struct quad8 *const priv = counter_priv(counter); in quad8_function_write()
410 static int quad8_direction_read(struct counter_device *counter, in quad8_direction_read() argument
414 const struct quad8 *const priv = counter_priv(counter); in quad8_direction_read()
439 static int quad8_action_read(struct counter_device *counter, in quad8_action_read() argument
444 struct quad8 *const priv = counter_priv(counter); in quad8_action_read()
469 err = quad8_direction_read(counter, count, &direction); in quad8_action_read()
504 static int quad8_events_configure(struct counter_device *counter) in quad8_events_configure() argument
506 struct quad8 *const priv = counter_priv(counter); in quad8_events_configure()
515 list_for_each_entry(event_node, &counter->events_list, l) { in quad8_events_configure()
557 static int quad8_watch_validate(struct counter_device *counter, in quad8_watch_validate() argument
570 list_for_each_entry(event_node, &counter->next_events_list, l) in quad8_watch_validate()
596 static int quad8_index_polarity_get(struct counter_device *counter, in quad8_index_polarity_get() argument
600 const struct quad8 *const priv = counter_priv(counter); in quad8_index_polarity_get()
608 static int quad8_index_polarity_set(struct counter_device *counter, in quad8_index_polarity_set() argument
612 struct quad8 *const priv = counter_priv(counter); in quad8_index_polarity_set()
627 static int quad8_polarity_read(struct counter_device *counter, in quad8_polarity_read() argument
634 err = quad8_index_polarity_get(counter, signal, &index_polarity); in quad8_polarity_read()
644 static int quad8_polarity_write(struct counter_device *counter, in quad8_polarity_write() argument
651 return quad8_index_polarity_set(counter, signal, pol); in quad8_polarity_write()
659 static int quad8_synchronous_mode_get(struct counter_device *counter, in quad8_synchronous_mode_get() argument
663 const struct quad8 *const priv = counter_priv(counter); in quad8_synchronous_mode_get()
671 static int quad8_synchronous_mode_set(struct counter_device *counter, in quad8_synchronous_mode_set() argument
675 struct quad8 *const priv = counter_priv(counter); in quad8_synchronous_mode_set()
699 static int quad8_count_floor_read(struct counter_device *counter, in quad8_count_floor_read() argument
708 static int quad8_count_mode_read(struct counter_device *counter, in quad8_count_mode_read() argument
712 const struct quad8 *const priv = counter_priv(counter); in quad8_count_mode_read()
732 static int quad8_count_mode_write(struct counter_device *counter, in quad8_count_mode_write() argument
736 struct quad8 *const priv = counter_priv(counter); in quad8_count_mode_write()
769 static int quad8_count_enable_read(struct counter_device *counter, in quad8_count_enable_read() argument
772 const struct quad8 *const priv = counter_priv(counter); in quad8_count_enable_read()
779 static int quad8_count_enable_write(struct counter_device *counter, in quad8_count_enable_write() argument
782 struct quad8 *const priv = counter_priv(counter); in quad8_count_enable_write()
800 static int quad8_error_noise_get(struct counter_device *counter, in quad8_error_noise_get() argument
803 const struct quad8 *const priv = counter_priv(counter); in quad8_error_noise_get()
815 static int quad8_count_preset_read(struct counter_device *counter, in quad8_count_preset_read() argument
818 const struct quad8 *const priv = counter_priv(counter); in quad8_count_preset_read()
825 static int quad8_count_preset_write(struct counter_device *counter, in quad8_count_preset_write() argument
828 struct quad8 *const priv = counter_priv(counter); in quad8_count_preset_write()
845 static int quad8_count_ceiling_read(struct counter_device *counter, in quad8_count_ceiling_read() argument
848 struct quad8 *const priv = counter_priv(counter); in quad8_count_ceiling_read()
869 static int quad8_count_ceiling_write(struct counter_device *counter, in quad8_count_ceiling_write() argument
872 struct quad8 *const priv = counter_priv(counter); in quad8_count_ceiling_write()
898 static int quad8_count_preset_enable_read(struct counter_device *counter, in quad8_count_preset_enable_read() argument
902 const struct quad8 *const priv = counter_priv(counter); in quad8_count_preset_enable_read()
910 static int quad8_count_preset_enable_write(struct counter_device *counter, in quad8_count_preset_enable_write() argument
914 struct quad8 *const priv = counter_priv(counter); in quad8_count_preset_enable_write()
929 static int quad8_signal_cable_fault_read(struct counter_device *counter, in quad8_signal_cable_fault_read() argument
933 struct quad8 *const priv = counter_priv(counter); in quad8_signal_cable_fault_read()
962 static int quad8_signal_cable_fault_enable_read(struct counter_device *counter, in quad8_signal_cable_fault_enable_read() argument
966 const struct quad8 *const priv = counter_priv(counter); in quad8_signal_cable_fault_enable_read()
974 static int quad8_signal_cable_fault_enable_write(struct counter_device *counter, in quad8_signal_cable_fault_enable_write() argument
978 struct quad8 *const priv = counter_priv(counter); in quad8_signal_cable_fault_enable_write()
1001 static int quad8_signal_fck_prescaler_read(struct counter_device *counter, in quad8_signal_fck_prescaler_read() argument
1005 const struct quad8 *const priv = counter_priv(counter); in quad8_signal_fck_prescaler_read()
1026 static int quad8_signal_fck_prescaler_write(struct counter_device *counter, in quad8_signal_fck_prescaler_write() argument
1030 struct quad8 *const priv = counter_priv(counter); in quad8_signal_fck_prescaler_write()
1193 struct counter_device *counter = private; in quad8_irq_handler() local
1194 struct quad8 *const priv = counter_priv(counter); in quad8_irq_handler()
1231 counter_push_event(counter, event, channel); in quad8_irq_handler()
1277 struct counter_device *counter; in quad8_probe() local
1289 counter = devm_counter_alloc(dev, sizeof(*priv)); in quad8_probe()
1290 if (!counter) in quad8_probe()
1292 priv = counter_priv(counter); in quad8_probe()
1304 counter->name = dev_name(dev); in quad8_probe()
1305 counter->parent = dev; in quad8_probe()
1306 counter->ops = &quad8_ops; in quad8_probe()
1307 counter->counts = quad8_counts; in quad8_probe()
1308 counter->num_counts = ARRAY_SIZE(quad8_counts); in quad8_probe()
1309 counter->signals = quad8_signals; in quad8_probe()
1310 counter->num_signals = ARRAY_SIZE(quad8_signals); in quad8_probe()
1339 ret = devm_request_irq(&counter->dev, irq[id], quad8_irq_handler, in quad8_probe()
1340 IRQF_SHARED, counter->name, counter); in quad8_probe()
1344 ret = devm_counter_add(dev, counter); in quad8_probe()