Home
last modified time | relevance | path

Searched refs:counter_device (Results 1 – 15 of 15) sorted by relevance

/linux/include/linux/
A Dcounter.h19 struct counter_device;
107 int (*action_read)(struct counter_device *counter,
112 int (*count_u8_read)(struct counter_device *counter,
130 int (*action_write)(struct counter_device *counter,
253 int (*signal_read)(struct counter_device *counter,
256 int (*count_read)(struct counter_device *counter,
258 int (*count_write)(struct counter_device *counter,
266 int (*action_read)(struct counter_device *counter,
270 int (*action_write)(struct counter_device *counter,
303 struct counter_device { struct
[all …]
/linux/drivers/counter/
A D104-quad-8.c55 struct counter_device counter;
112 static int quad8_signal_read(struct counter_device *counter, in quad8_signal_read()
131 static int quad8_count_read(struct counter_device *counter, in quad8_count_read()
163 static int quad8_count_write(struct counter_device *counter, in quad8_count_write()
212 static int quad8_function_read(struct counter_device *counter, in quad8_function_read()
242 static int quad8_function_write(struct counter_device *counter, in quad8_function_write()
304 static int quad8_direction_read(struct counter_device *counter, in quad8_direction_read()
333 static int quad8_action_read(struct counter_device *counter, in quad8_action_read()
442 static int quad8_watch_validate(struct counter_device *counter, in quad8_watch_validate()
588 static int quad8_count_mode_read(struct counter_device *counter, in quad8_count_mode_read()
[all …]
A Dinterrupt-cnt.c19 struct counter_device counter;
37 static int interrupt_cnt_enable_read(struct counter_device *counter, in interrupt_cnt_enable_read()
47 static int interrupt_cnt_enable_write(struct counter_device *counter, in interrupt_cnt_enable_write()
75 static int interrupt_cnt_action_read(struct counter_device *counter, in interrupt_cnt_action_read()
85 static int interrupt_cnt_read(struct counter_device *counter, in interrupt_cnt_read()
95 static int interrupt_cnt_write(struct counter_device *counter, in interrupt_cnt_write()
112 static int interrupt_cnt_function_read(struct counter_device *counter, in interrupt_cnt_function_read()
121 static int interrupt_cnt_signal_read(struct counter_device *counter, in interrupt_cnt_signal_read()
A Dstm32-timer-cnt.c32 struct counter_device counter;
47 static int stm32_count_read(struct counter_device *counter, in stm32_count_read()
59 static int stm32_count_write(struct counter_device *counter, in stm32_count_write()
72 static int stm32_count_function_read(struct counter_device *counter, in stm32_count_function_read()
99 static int stm32_count_function_write(struct counter_device *counter, in stm32_count_function_write()
139 static int stm32_count_direction_read(struct counter_device *counter, in stm32_count_direction_read()
153 static int stm32_count_ceiling_read(struct counter_device *counter, in stm32_count_ceiling_read()
166 static int stm32_count_ceiling_write(struct counter_device *counter, in stm32_count_ceiling_write()
181 static int stm32_count_enable_read(struct counter_device *counter, in stm32_count_enable_read()
194 static int stm32_count_enable_write(struct counter_device *counter, in stm32_count_enable_write()
[all …]
A Dti-eqep.c85 struct counter_device counter;
90 static int ti_eqep_count_read(struct counter_device *counter, in ti_eqep_count_read()
102 static int ti_eqep_count_write(struct counter_device *counter, in ti_eqep_count_write()
115 static int ti_eqep_function_read(struct counter_device *counter, in ti_eqep_function_read()
142 static int ti_eqep_function_write(struct counter_device *counter, in ti_eqep_function_write()
171 static int ti_eqep_action_read(struct counter_device *counter, in ti_eqep_action_read()
244 static int ti_eqep_position_ceiling_read(struct counter_device *counter, in ti_eqep_position_ceiling_read()
258 static int ti_eqep_position_ceiling_write(struct counter_device *counter, in ti_eqep_position_ceiling_write()
272 static int ti_eqep_position_enable_read(struct counter_device *counter, in ti_eqep_position_enable_read()
285 static int ti_eqep_position_enable_write(struct counter_device *counter, in ti_eqep_position_enable_write()
A Dintel-qep.c66 struct counter_device counter;
109 static int intel_qep_count_read(struct counter_device *counter, in intel_qep_count_read()
125 static int intel_qep_function_read(struct counter_device *counter, in intel_qep_function_read()
138 static int intel_qep_action_read(struct counter_device *counter, in intel_qep_action_read()
176 static int intel_qep_ceiling_read(struct counter_device *counter, in intel_qep_ceiling_read()
188 static int intel_qep_ceiling_write(struct counter_device *counter, in intel_qep_ceiling_write()
213 static int intel_qep_enable_read(struct counter_device *counter, in intel_qep_enable_read()
223 static int intel_qep_enable_write(struct counter_device *counter, in intel_qep_enable_write()
255 static int intel_qep_spike_filter_ns_read(struct counter_device *counter, in intel_qep_spike_filter_ns_read()
325 static int intel_qep_preset_enable_read(struct counter_device *counter, in intel_qep_preset_enable_read()
[all …]
A Dstm32-lptimer-cnt.c23 struct counter_device counter;
141 static int stm32_lptim_cnt_read(struct counter_device *counter, in stm32_lptim_cnt_read()
157 static int stm32_lptim_cnt_function_read(struct counter_device *counter, in stm32_lptim_cnt_function_read()
176 static int stm32_lptim_cnt_function_write(struct counter_device *counter, in stm32_lptim_cnt_function_write()
199 static int stm32_lptim_cnt_enable_read(struct counter_device *counter, in stm32_lptim_cnt_enable_read()
215 static int stm32_lptim_cnt_enable_write(struct counter_device *counter, in stm32_lptim_cnt_enable_write()
240 static int stm32_lptim_cnt_ceiling_read(struct counter_device *counter, in stm32_lptim_cnt_ceiling_read()
251 static int stm32_lptim_cnt_ceiling_write(struct counter_device *counter, in stm32_lptim_cnt_ceiling_write()
275 static int stm32_lptim_cnt_action_read(struct counter_device *counter, in stm32_lptim_cnt_action_read()
319 static int stm32_lptim_cnt_action_write(struct counter_device *counter, in stm32_lptim_cnt_action_write()
A Dcounter-chrdev.c60 struct counter_device *const counter = filp->private_data; in counter_chrdev_read()
98 struct counter_device *const counter = filp->private_data; in counter_chrdev_poll()
130 static int counter_set_event_node(struct counter_device *const counter, in counter_set_event_node()
187 static int counter_enable_events(struct counter_device *const counter) in counter_enable_events()
231 static int counter_add_watch(struct counter_device *const counter, in counter_add_watch()
351 struct counter_device *const counter = filp->private_data; in counter_chrdev_ioctl()
382 struct counter_device *const counter = container_of(inode->i_cdev, in counter_chrdev_open()
394 struct counter_device *const counter = filp->private_data; in counter_chrdev_release()
431 int counter_chrdev_add(struct counter_device *const counter) in counter_chrdev_add()
449 void counter_chrdev_remove(struct counter_device *const counter) in counter_chrdev_remove()
[all …]
A Dftm-quaddec.c29 struct counter_device counter;
118 static int ftm_quaddec_get_prescaler(struct counter_device *counter, in ftm_quaddec_get_prescaler()
131 static int ftm_quaddec_set_prescaler(struct counter_device *counter, in ftm_quaddec_set_prescaler()
161 static int ftm_quaddec_count_read(struct counter_device *counter, in ftm_quaddec_count_read()
175 static int ftm_quaddec_count_write(struct counter_device *counter, in ftm_quaddec_count_write()
191 static int ftm_quaddec_count_function_read(struct counter_device *counter, in ftm_quaddec_count_function_read()
200 static int ftm_quaddec_action_read(struct counter_device *counter, in ftm_quaddec_action_read()
A Dcounter-sysfs.c93 struct counter_device *const counter = dev_get_drvdata(dev); in counter_comp_u8_show()
125 struct counter_device *const counter = dev_get_drvdata(dev); in counter_comp_u8_store()
161 struct counter_device *const counter = dev_get_drvdata(dev); in counter_comp_u32_show()
224 struct counter_device *const counter = dev_get_drvdata(dev); in counter_comp_u32_store()
284 struct counter_device *const counter = dev_get_drvdata(dev); in counter_comp_u64_show()
312 struct counter_device *const counter = dev_get_drvdata(dev); in counter_comp_u64_store()
623 static int counter_sysfs_signals_add(struct counter_device *const counter, in counter_sysfs_signals_add()
746 static int counter_sysfs_counts_add(struct counter_device *const counter, in counter_sysfs_counts_add()
789 static int counter_events_queue_size_read(struct counter_device *counter, in counter_events_queue_size_read()
830 static int counter_sysfs_attr_add(struct counter_device *const counter, in counter_sysfs_attr_add()
[all …]
A Dcounter-core.c29 struct counter_device *const counter = dev_get_drvdata(dev); in counter_device_release()
58 int counter_register(struct counter_device *const counter) in counter_register()
111 void counter_unregister(struct counter_device *const counter) in counter_unregister()
147 struct counter_device *const counter) in devm_counter_register()
A Dmicrochip-tcb-capture.c27 struct counter_device counter;
71 static int mchp_tc_count_function_read(struct counter_device *counter, in mchp_tc_count_function_read()
85 static int mchp_tc_count_function_write(struct counter_device *counter, in mchp_tc_count_function_write()
147 static int mchp_tc_count_signal_read(struct counter_device *counter, in mchp_tc_count_signal_read()
167 static int mchp_tc_count_action_read(struct counter_device *counter, in mchp_tc_count_action_read()
195 static int mchp_tc_count_action_write(struct counter_device *counter, in mchp_tc_count_action_write()
230 static int mchp_tc_count_read(struct counter_device *counter, in mchp_tc_count_read()
A Dcounter-chrdev.h11 int counter_chrdev_add(struct counter_device *const counter);
12 void counter_chrdev_remove(struct counter_device *const counter);
A Dcounter-sysfs.h11 int counter_sysfs_add(struct counter_device *const counter);
/linux/Documentation/driver-api/
A Dgeneric-counter.rst249 allocated counter_device structure before the Counter is registered to
257 set to the counts array member of an allocated counter_device structure
260 Driver callbacks must be provided to the counter_device structure in
265 A defined counter_device structure may be registered to the system by
304 int count_direction_read(struct counter_device *counter,
307 int count_enable_read(struct counter_device *counter,
309 int count_enable_write(struct counter_device *counter,
311 int count_ceiling_read(struct counter_device *counter,
313 int count_ceiling_write(struct counter_device *counter,
506 void counter_push_event(struct counter_device *const counter, const u8 event,

Completed in 24 milliseconds