| /linux/include/linux/ |
| A D | counter.h | 20 struct counter_device; 158 int (*action_read)(struct counter_device *counter, 163 int (*count_u8_read)(struct counter_device *counter, 192 int (*action_write)(struct counter_device *counter, 326 int (*signal_read)(struct counter_device *counter, 329 int (*count_read)(struct counter_device *counter, 331 int (*count_write)(struct counter_device *counter, 339 int (*action_read)(struct counter_device *counter, 343 int (*action_write)(struct counter_device *counter, 375 struct counter_device { struct [all …]
|
| /linux/drivers/counter/ |
| A D | ti-ecap-capture.c | 170 static int ecap_cnt_count_read(struct counter_device *counter, in ecap_cnt_count_read() 178 static int ecap_cnt_count_write(struct counter_device *counter, in ecap_cnt_count_write() 198 static int ecap_cnt_action_read(struct counter_device *counter, in ecap_cnt_action_read() 235 static int ecap_cnt_pol_read(struct counter_device *counter, in ecap_cnt_pol_read() 251 static int ecap_cnt_pol_write(struct counter_device *counter, in ecap_cnt_pol_write() 267 static int ecap_cnt_cap_read(struct counter_device *counter, in ecap_cnt_cap_read() 276 static int ecap_cnt_cap_write(struct counter_device *counter, in ecap_cnt_cap_write() 438 struct counter_device *counter_dev = dev_id; in ecap_cnt_isr() 477 struct counter_device *counter_dev; in ecap_cnt_probe() 551 struct counter_device *counter_dev = dev_get_drvdata(dev); in ecap_cnt_suspend() [all …]
|
| A D | counter-core.c | 31 struct counter_device counter; 43 struct counter_device *const counter = in counter_device_release() 44 container_of(dev, struct counter_device, dev); in counter_device_release() 70 void *counter_priv(const struct counter_device *const counter) in counter_priv() 88 struct counter_device *counter_alloc(size_t sizeof_priv) in counter_alloc() 91 struct counter_device *counter; in counter_alloc() 139 void counter_put(struct counter_device *counter) in counter_put() 153 int counter_add(struct counter_device *counter) in counter_add() 178 void counter_unregister(struct counter_device *const counter) in counter_unregister() 214 struct counter_device *counter; in devm_counter_alloc() [all …]
|
| A D | interrupt-cnt.c | 29 struct counter_device *counter = dev_id; in interrupt_cnt_isr() 39 static int interrupt_cnt_enable_read(struct counter_device *counter, in interrupt_cnt_enable_read() 49 static int interrupt_cnt_enable_write(struct counter_device *counter, in interrupt_cnt_enable_write() 77 static int interrupt_cnt_action_read(struct counter_device *counter, in interrupt_cnt_action_read() 87 static int interrupt_cnt_read(struct counter_device *counter, in interrupt_cnt_read() 97 static int interrupt_cnt_write(struct counter_device *counter, in interrupt_cnt_write() 114 static int interrupt_cnt_function_read(struct counter_device *counter, in interrupt_cnt_function_read() 123 static int interrupt_cnt_signal_read(struct counter_device *counter, in interrupt_cnt_signal_read() 142 static int interrupt_cnt_watch_validate(struct counter_device *counter, in interrupt_cnt_watch_validate() 164 struct counter_device *counter; in interrupt_cnt_probe()
|
| A D | 104-quad-8.c | 215 static int quad8_signal_read(struct counter_device *counter, in quad8_signal_read() 235 static int quad8_count_read(struct counter_device *counter, in quad8_count_read() 283 static int quad8_count_write(struct counter_device *counter, in quad8_count_write() 345 static int quad8_function_read(struct counter_device *counter, in quad8_function_read() 362 static int quad8_function_write(struct counter_device *counter, in quad8_function_write() 410 static int quad8_direction_read(struct counter_device *counter, in quad8_direction_read() 439 static int quad8_action_read(struct counter_device *counter, in quad8_action_read() 557 static int quad8_watch_validate(struct counter_device *counter, in quad8_watch_validate() 627 static int quad8_polarity_read(struct counter_device *counter, in quad8_polarity_read() 1193 struct counter_device *counter = private; in quad8_irq_handler() [all …]
|
| A D | ti-eqep.c | 129 static int ti_eqep_count_read(struct counter_device *counter, in ti_eqep_count_read() 141 static int ti_eqep_count_write(struct counter_device *counter, in ti_eqep_count_write() 154 static int ti_eqep_function_read(struct counter_device *counter, in ti_eqep_function_read() 181 static int ti_eqep_function_write(struct counter_device *counter, in ti_eqep_function_write() 210 static int ti_eqep_action_read(struct counter_device *counter, in ti_eqep_action_read() 275 static int ti_eqep_events_configure(struct counter_device *counter) in ti_eqep_events_configure() 295 static int ti_eqep_watch_validate(struct counter_device *counter, in ti_eqep_watch_validate() 348 static int ti_eqep_position_enable_read(struct counter_device *counter, in ti_eqep_position_enable_read() 430 struct counter_device *counter = dev_id; in ti_eqep_irq_handler() 466 struct counter_device *counter; in ti_eqep_probe() [all …]
|
| A D | rz-mtu3-cnt.c | 157 static int rz_mtu3_count_read(struct counter_device *counter, in rz_mtu3_count_read() 179 static int rz_mtu3_count_write(struct counter_device *counter, in rz_mtu3_count_write() 231 static int rz_mtu3_count_function_read(struct counter_device *counter, in rz_mtu3_count_function_read() 249 static int rz_mtu3_count_function_write(struct counter_device *counter, in rz_mtu3_count_function_write() 314 static int rz_mtu3_count_ceiling_read(struct counter_device *counter, in rz_mtu3_count_ceiling_read() 345 static int rz_mtu3_count_ceiling_write(struct counter_device *counter, in rz_mtu3_count_ceiling_write() 393 static void rz_mtu3_32bit_cnt_setting(struct counter_device *counter) in rz_mtu3_32bit_cnt_setting() 472 static int rz_mtu3_count_enable_read(struct counter_device *counter, in rz_mtu3_count_enable_read() 495 static int rz_mtu3_count_enable_write(struct counter_device *counter, in rz_mtu3_count_enable_write() 625 static int rz_mtu3_action_read(struct counter_device *counter, in rz_mtu3_action_read() [all …]
|
| A D | stm32-timer-cnt.c | 59 static int stm32_count_read(struct counter_device *counter, in stm32_count_read() 71 static int stm32_count_write(struct counter_device *counter, in stm32_count_write() 84 static int stm32_count_function_read(struct counter_device *counter, in stm32_count_function_read() 171 static int stm32_count_ceiling_read(struct counter_device *counter, in stm32_count_ceiling_read() 199 static int stm32_count_enable_read(struct counter_device *counter, in stm32_count_enable_read() 212 static int stm32_count_enable_write(struct counter_device *counter, in stm32_count_enable_write() 265 static int stm32_count_cap_read(struct counter_device *counter, in stm32_count_cap_read() 299 static int stm32_count_nb_ovf_read(struct counter_device *counter, in stm32_count_nb_ovf_read() 347 static int stm32_action_read(struct counter_device *counter, in stm32_action_read() 613 struct counter_device *counter = ptr; in stm32_timer_cnt_isr() [all …]
|
| A D | intel-qep.c | 108 static int intel_qep_count_read(struct counter_device *counter, in intel_qep_count_read() 124 static int intel_qep_function_read(struct counter_device *counter, in intel_qep_function_read() 137 static int intel_qep_action_read(struct counter_device *counter, in intel_qep_action_read() 175 static int intel_qep_ceiling_read(struct counter_device *counter, in intel_qep_ceiling_read() 187 static int intel_qep_ceiling_write(struct counter_device *counter, in intel_qep_ceiling_write() 212 static int intel_qep_enable_read(struct counter_device *counter, in intel_qep_enable_read() 222 static int intel_qep_enable_write(struct counter_device *counter, in intel_qep_enable_write() 254 static int intel_qep_spike_filter_ns_read(struct counter_device *counter, in intel_qep_spike_filter_ns_read() 324 static int intel_qep_preset_enable_read(struct counter_device *counter, in intel_qep_preset_enable_read() 340 static int intel_qep_preset_enable_write(struct counter_device *counter, in intel_qep_preset_enable_write() [all …]
|
| A D | i8254.c | 57 static int i8254_count_read(struct counter_device *const counter, struct counter_count *const count, in i8254_count_read() 84 static int i8254_function_read(struct counter_device *const counter, in i8254_function_read() 96 static int i8254_action_read(struct counter_device *const counter, in i8254_action_read() 125 static int i8254_count_ceiling_read(struct counter_device *const counter, in i8254_count_ceiling_read() 156 static int i8254_count_mode_read(struct counter_device *const counter, in i8254_count_mode_read() 187 static int i8254_count_mode_write(struct counter_device *const counter, in i8254_count_mode_write() 232 static int i8254_count_floor_read(struct counter_device *const counter, in i8254_count_floor_read() 258 static int i8254_count_preset_read(struct counter_device *const counter, in i8254_count_preset_read() 268 static int i8254_count_preset_write(struct counter_device *const counter, in i8254_count_preset_write() 406 struct counter_device *counter; in devm_i8254_regmap_register()
|
| A D | stm32-lptimer-cnt.c | 140 static int stm32_lptim_cnt_read(struct counter_device *counter, in stm32_lptim_cnt_read() 156 static int stm32_lptim_cnt_function_read(struct counter_device *counter, in stm32_lptim_cnt_function_read() 175 static int stm32_lptim_cnt_function_write(struct counter_device *counter, in stm32_lptim_cnt_function_write() 198 static int stm32_lptim_cnt_enable_read(struct counter_device *counter, in stm32_lptim_cnt_enable_read() 214 static int stm32_lptim_cnt_enable_write(struct counter_device *counter, in stm32_lptim_cnt_enable_write() 239 static int stm32_lptim_cnt_ceiling_read(struct counter_device *counter, in stm32_lptim_cnt_ceiling_read() 250 static int stm32_lptim_cnt_ceiling_write(struct counter_device *counter, in stm32_lptim_cnt_ceiling_write() 274 static int stm32_lptim_cnt_action_read(struct counter_device *counter, in stm32_lptim_cnt_action_read() 318 static int stm32_lptim_cnt_action_write(struct counter_device *counter, in stm32_lptim_cnt_action_write() 413 struct counter_device *counter; in stm32_lptim_cnt_probe()
|
| A D | counter-chrdev.c | 68 struct counter_device *const counter = filp->private_data; in counter_chrdev_read() 106 struct counter_device *const counter = filp->private_data; in counter_chrdev_poll() 138 static int counter_set_event_node(struct counter_device *const counter, in counter_set_event_node() 195 static int counter_enable_events(struct counter_device *const counter) in counter_enable_events() 264 static int counter_add_watch(struct counter_device *const counter, in counter_add_watch() 385 struct counter_device *const counter = filp->private_data; in counter_chrdev_ioctl() 416 struct counter_device *const counter = container_of(inode->i_cdev, in counter_chrdev_open() 428 struct counter_device *const counter = filp->private_data; in counter_chrdev_release() 464 int counter_chrdev_add(struct counter_device *const counter) in counter_chrdev_add() 482 void counter_chrdev_remove(struct counter_device *const counter) in counter_chrdev_remove() [all …]
|
| A D | counter-sysfs.c | 24 return container_of(dev, struct counter_device, dev); in counter_from_dev() 109 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u8_show() 141 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u8_store() 177 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u32_show() 242 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u32_store() 306 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u64_show() 334 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u64_store() 366 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u32_show() 388 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u32_store() 416 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u64_show() [all …]
|
| A D | ftm-quaddec.c | 117 static int ftm_quaddec_get_prescaler(struct counter_device *counter, in ftm_quaddec_get_prescaler() 130 static int ftm_quaddec_set_prescaler(struct counter_device *counter, in ftm_quaddec_set_prescaler() 160 static int ftm_quaddec_count_read(struct counter_device *counter, in ftm_quaddec_count_read() 174 static int ftm_quaddec_count_write(struct counter_device *counter, in ftm_quaddec_count_write() 190 static int ftm_quaddec_count_function_read(struct counter_device *counter, in ftm_quaddec_count_function_read() 199 static int ftm_quaddec_action_read(struct counter_device *counter, in ftm_quaddec_action_read() 261 struct counter_device *counter; in ftm_quaddec_probe()
|
| A D | microchip-tcb-capture.c | 68 static int mchp_tc_count_function_read(struct counter_device *counter, in mchp_tc_count_function_read() 82 static int mchp_tc_count_function_write(struct counter_device *counter, in mchp_tc_count_function_write() 144 static int mchp_tc_count_signal_read(struct counter_device *counter, in mchp_tc_count_signal_read() 164 static int mchp_tc_count_action_read(struct counter_device *counter, in mchp_tc_count_action_read() 203 static int mchp_tc_count_action_write(struct counter_device *counter, in mchp_tc_count_action_write() 238 static int mchp_tc_count_read(struct counter_device *counter, in mchp_tc_count_read() 307 struct counter_device *counter; in mchp_tc_probe()
|
| 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 counter_device structure is allocated using counter_alloc() and then 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,
|