/Linux-v6.1/include/linux/ |
D | counter.h | 19 struct counter_device; 157 int (*action_read)(struct counter_device *counter, 161 int (*device_u8_read)(struct counter_device *counter, u8 *val); 162 int (*count_u8_read)(struct counter_device *counter, 164 int (*signal_u8_read)(struct counter_device *counter, 166 int (*device_u32_read)(struct counter_device *counter, 168 int (*count_u32_read)(struct counter_device *counter, 170 int (*signal_u32_read)(struct counter_device *counter, 172 int (*device_u64_read)(struct counter_device *counter, 174 int (*count_u64_read)(struct counter_device *counter, [all …]
|
/Linux-v6.1/drivers/counter/ |
D | ti-ecap-capture.c | 100 static u8 ecap_cnt_capture_get_evmode(struct counter_device *counter) in ecap_cnt_capture_get_evmode() 112 static void ecap_cnt_capture_set_evmode(struct counter_device *counter, u8 ev_mode) in ecap_cnt_capture_set_evmode() 121 static void ecap_cnt_capture_enable(struct counter_device *counter) in ecap_cnt_capture_enable() 136 static void ecap_cnt_capture_disable(struct counter_device *counter) in ecap_cnt_capture_disable() 149 static u32 ecap_cnt_count_get_val(struct counter_device *counter, unsigned int reg) in ecap_cnt_count_get_val() 161 static void ecap_cnt_count_set_val(struct counter_device *counter, unsigned int reg, u32 val) in ecap_cnt_count_set_val() 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() 189 static int ecap_cnt_function_read(struct counter_device *counter, in ecap_cnt_function_read() 198 static int ecap_cnt_action_read(struct counter_device *counter, in ecap_cnt_action_read() [all …]
|
D | counter-core.c | 31 struct counter_device counter; 42 struct counter_device *const counter = in counter_device_release() 43 container_of(dev, struct counter_device, dev); in counter_device_release() 69 void *counter_priv(const struct counter_device *const counter) in counter_priv() 87 struct counter_device *counter_alloc(size_t sizeof_priv) in counter_alloc() 90 struct counter_device *counter; in counter_alloc() 138 void counter_put(struct counter_device *counter) in counter_put() 152 int counter_add(struct counter_device *counter) in counter_add() 177 void counter_unregister(struct counter_device *const counter) in counter_unregister() 211 struct counter_device *devm_counter_alloc(struct device *dev, size_t sizeof_priv) in devm_counter_alloc() [all …]
|
D | ti-eqep.c | 85 struct counter_device counter; 90 static struct ti_eqep_cnt *ti_eqep_count_from_counter(struct counter_device *counter) in ti_eqep_count_from_counter() 95 static int ti_eqep_count_read(struct counter_device *counter, in ti_eqep_count_read() 107 static int ti_eqep_count_write(struct counter_device *counter, in ti_eqep_count_write() 120 static int ti_eqep_function_read(struct counter_device *counter, in ti_eqep_function_read() 147 static int ti_eqep_function_write(struct counter_device *counter, in ti_eqep_function_write() 176 static int ti_eqep_action_read(struct counter_device *counter, in ti_eqep_action_read() 249 static int ti_eqep_position_ceiling_read(struct counter_device *counter, in ti_eqep_position_ceiling_read() 263 static int ti_eqep_position_ceiling_write(struct counter_device *counter, in ti_eqep_position_ceiling_write() 277 static int ti_eqep_position_enable_read(struct counter_device *counter, in ti_eqep_position_enable_read() [all …]
|
D | 104-quad-8.c | 136 static int quad8_signal_read(struct counter_device *counter, in quad8_signal_read() 154 static int quad8_count_read(struct counter_device *counter, in quad8_count_read() 186 static int quad8_count_write(struct counter_device *counter, in quad8_count_write() 259 static int quad8_function_read(struct counter_device *counter, in quad8_function_read() 276 static int quad8_function_write(struct counter_device *counter, in quad8_function_write() 338 static int quad8_direction_read(struct counter_device *counter, in quad8_direction_read() 367 static int quad8_action_read(struct counter_device *counter, in quad8_action_read() 442 static int quad8_events_configure(struct counter_device *counter) in quad8_events_configure() 498 static int quad8_watch_validate(struct counter_device *counter, in quad8_watch_validate() 537 static int quad8_index_polarity_get(struct counter_device *counter, in quad8_index_polarity_get() [all …]
|
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()
|
D | stm32-timer-cnt.c | 46 static int stm32_count_read(struct counter_device *counter, in stm32_count_read() 58 static int stm32_count_write(struct counter_device *counter, in stm32_count_write() 71 static int stm32_count_function_read(struct counter_device *counter, in stm32_count_function_read() 98 static int stm32_count_function_write(struct counter_device *counter, in stm32_count_function_write() 138 static int stm32_count_direction_read(struct counter_device *counter, in stm32_count_direction_read() 152 static int stm32_count_ceiling_read(struct counter_device *counter, in stm32_count_ceiling_read() 165 static int stm32_count_ceiling_write(struct counter_device *counter, in stm32_count_ceiling_write() 180 static int stm32_count_enable_read(struct counter_device *counter, in stm32_count_enable_read() 193 static int stm32_count_enable_write(struct counter_device *counter, in stm32_count_enable_write() 231 static int stm32_action_read(struct counter_device *counter, in stm32_action_read() [all …]
|
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() 275 static int intel_qep_spike_filter_ns_write(struct counter_device *counter, in intel_qep_spike_filter_ns_write() 324 static int intel_qep_preset_enable_read(struct counter_device *counter, in intel_qep_preset_enable_read() [all …]
|
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()
|
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() 216 static int counter_disable_events(struct counter_device *const counter) in counter_disable_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() 465 int counter_chrdev_add(struct counter_device *const counter) in counter_chrdev_add() [all …]
|
D | counter-sysfs.c | 22 static inline struct counter_device *counter_from_dev(struct device *dev) in counter_from_dev() 24 return container_of(dev, struct counter_device, dev); in counter_from_dev() 103 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u8_show() 135 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u8_store() 171 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u32_show() 236 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u32_store() 300 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u64_show() 328 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u64_store() 360 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u32_show() 382 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u32_store() [all …]
|
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()
|
D | microchip-tcb-capture.c | 69 static int mchp_tc_count_function_read(struct counter_device *counter, in mchp_tc_count_function_read() 83 static int mchp_tc_count_function_write(struct counter_device *counter, in mchp_tc_count_function_write() 145 static int mchp_tc_count_signal_read(struct counter_device *counter, in mchp_tc_count_signal_read() 165 static int mchp_tc_count_action_read(struct counter_device *counter, in mchp_tc_count_action_read() 204 static int mchp_tc_count_action_write(struct counter_device *counter, in mchp_tc_count_action_write() 239 static int mchp_tc_count_read(struct counter_device *counter, in mchp_tc_count_read() 308 struct counter_device *counter; in mchp_tc_probe()
|
D | counter-chrdev.h | 11 int counter_chrdev_add(struct counter_device *const counter); 12 void counter_chrdev_remove(struct counter_device *const counter);
|
D | counter-sysfs.h | 11 int counter_sysfs_add(struct counter_device *const counter);
|
/Linux-v6.1/Documentation/driver-api/ |
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,
|