/linux/include/linux/ |
A D | counter.h | 19 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 D | 104-quad-8.c | 55 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 D | interrupt-cnt.c | 19 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 D | stm32-timer-cnt.c | 32 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 D | ti-eqep.c | 85 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 D | intel-qep.c | 66 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 D | stm32-lptimer-cnt.c | 23 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 D | counter-chrdev.c | 60 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 D | ftm-quaddec.c | 29 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 D | counter-sysfs.c | 93 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 D | counter-core.c | 29 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 D | microchip-tcb-capture.c | 27 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 D | counter-chrdev.h | 11 int counter_chrdev_add(struct counter_device *const counter); 12 void counter_chrdev_remove(struct counter_device *const counter);
|
A D | counter-sysfs.h | 11 int counter_sysfs_add(struct counter_device *const counter);
|
/linux/Documentation/driver-api/ |
A D | generic-counter.rst | 249 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,
|