Home
last modified time | relevance | path

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

/Linux-v5.15/include/linux/
Dcounter.h27 struct counter_device;
39 ssize_t (*read)(struct counter_device *counter,
41 ssize_t (*write)(struct counter_device *counter,
87 int (*get)(struct counter_device *counter,
89 int (*set)(struct counter_device *counter,
157 ssize_t (*read)(struct counter_device *counter,
159 ssize_t (*write)(struct counter_device *counter,
228 int (*get)(struct counter_device *counter, struct counter_count *count,
230 int (*set)(struct counter_device *counter, struct counter_count *count,
325 int (*signal_read)(struct counter_device *counter,
[all …]
Dcounter_enum.h11 struct counter_device;
15 ssize_t counter_signal_enum_read(struct counter_device *counter,
18 ssize_t counter_signal_enum_write(struct counter_device *counter,
22 ssize_t counter_signal_enum_available_read(struct counter_device *counter,
26 ssize_t counter_count_enum_read(struct counter_device *counter,
29 ssize_t counter_count_enum_write(struct counter_device *counter,
33 ssize_t counter_count_enum_available_read(struct counter_device *counter,
37 ssize_t counter_device_enum_read(struct counter_device *counter, void *priv,
39 ssize_t counter_device_enum_write(struct counter_device *counter, void *priv,
42 ssize_t counter_device_enum_available_read(struct counter_device *counter,
/Linux-v5.15/drivers/counter/
D104-quad-8.c47 struct counter_device counter;
100 static int quad8_signal_read(struct counter_device *counter, in quad8_signal_read()
119 static int quad8_count_read(struct counter_device *counter, in quad8_count_read()
150 static int quad8_count_write(struct counter_device *counter, in quad8_count_write()
205 static int quad8_function_get(struct counter_device *counter, in quad8_function_get()
233 static int quad8_function_set(struct counter_device *counter, in quad8_function_set()
293 static void quad8_direction_get(struct counter_device *counter, in quad8_direction_get()
326 static int quad8_action_get(struct counter_device *counter, in quad8_action_get()
396 static int quad8_index_polarity_get(struct counter_device *counter, in quad8_index_polarity_get()
407 static int quad8_index_polarity_set(struct counter_device *counter, in quad8_index_polarity_set()
[all …]
Dinterrupt-cnt.c18 struct counter_device counter;
36 static ssize_t interrupt_cnt_enable_read(struct counter_device *counter, in interrupt_cnt_enable_read()
45 static ssize_t interrupt_cnt_enable_write(struct counter_device *counter, in interrupt_cnt_enable_write()
84 static int interrupt_cnt_action_get(struct counter_device *counter, in interrupt_cnt_action_get()
94 static int interrupt_cnt_read(struct counter_device *counter, in interrupt_cnt_read()
104 static int interrupt_cnt_write(struct counter_device *counter, in interrupt_cnt_write()
122 static int interrupt_cnt_function_get(struct counter_device *counter, in interrupt_cnt_function_get()
131 static int interrupt_cnt_signal_read(struct counter_device *counter, in interrupt_cnt_signal_read()
Dti-eqep.c90 struct counter_device 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_get(struct counter_device *counter, in ti_eqep_function_get()
132 static int ti_eqep_function_set(struct counter_device *counter, in ti_eqep_function_set()
141 static int ti_eqep_action_get(struct counter_device *counter, in ti_eqep_action_get()
213 static ssize_t ti_eqep_position_ceiling_read(struct counter_device *counter, in ti_eqep_position_ceiling_read()
225 static ssize_t ti_eqep_position_ceiling_write(struct counter_device *counter, in ti_eqep_position_ceiling_write()
243 static ssize_t ti_eqep_position_enable_read(struct counter_device *counter, in ti_eqep_position_enable_read()
255 static ssize_t ti_eqep_position_enable_write(struct counter_device *counter, in ti_eqep_position_enable_write()
Dcounter.c37 ssize_t counter_signal_enum_read(struct counter_device *counter, in counter_signal_enum_read()
59 ssize_t counter_signal_enum_write(struct counter_device *counter, in counter_signal_enum_write()
82 ssize_t counter_signal_enum_available_read(struct counter_device *counter, in counter_signal_enum_available_read()
100 ssize_t counter_count_enum_read(struct counter_device *counter, in counter_count_enum_read()
122 ssize_t counter_count_enum_write(struct counter_device *counter, in counter_count_enum_write()
145 ssize_t counter_count_enum_available_read(struct counter_device *counter, in counter_count_enum_available_read()
163 ssize_t counter_device_enum_read(struct counter_device *counter, void *priv, in counter_device_enum_read()
184 ssize_t counter_device_enum_write(struct counter_device *counter, void *priv, in counter_device_enum_write()
206 ssize_t counter_device_enum_available_read(struct counter_device *counter, in counter_device_enum_available_read()
300 struct counter_device *const counter = dev_get_drvdata(dev); in counter_signal_show()
[all …]
Dstm32-timer-cnt.c31 struct counter_device counter;
60 static int stm32_count_read(struct counter_device *counter, in stm32_count_read()
72 static int stm32_count_write(struct counter_device *counter, in stm32_count_write()
86 static int stm32_count_function_get(struct counter_device *counter, in stm32_count_function_get()
113 static int stm32_count_function_set(struct counter_device *counter, in stm32_count_function_set()
153 static ssize_t stm32_count_direction_read(struct counter_device *counter, in stm32_count_direction_read()
167 static ssize_t stm32_count_ceiling_read(struct counter_device *counter, in stm32_count_ceiling_read()
179 static ssize_t stm32_count_ceiling_write(struct counter_device *counter, in stm32_count_ceiling_write()
202 static ssize_t stm32_count_enable_read(struct counter_device *counter, in stm32_count_enable_read()
214 static ssize_t stm32_count_enable_write(struct counter_device *counter, in stm32_count_enable_write()
[all …]
Dintel-qep.c73 struct counter_device counter;
116 static int intel_qep_count_read(struct counter_device *counter, in intel_qep_count_read()
133 static int intel_qep_function_get(struct counter_device *counter, in intel_qep_function_get()
146 static int intel_qep_action_get(struct counter_device *counter, in intel_qep_action_get()
184 static ssize_t ceiling_read(struct counter_device *counter, in ceiling_read()
198 static ssize_t ceiling_write(struct counter_device *counter, in ceiling_write()
226 static ssize_t enable_read(struct counter_device *counter, in enable_read()
235 static ssize_t enable_write(struct counter_device *counter, in enable_write()
273 static ssize_t spike_filter_ns_read(struct counter_device *counter, in spike_filter_ns_read()
292 static ssize_t spike_filter_ns_write(struct counter_device *counter, in spike_filter_ns_write()
[all …]
Dstm32-lptimer-cnt.c22 struct counter_device counter;
157 static int stm32_lptim_cnt_read(struct counter_device *counter, in stm32_lptim_cnt_read()
173 static int stm32_lptim_cnt_function_get(struct counter_device *counter, in stm32_lptim_cnt_function_get()
192 static int stm32_lptim_cnt_function_set(struct counter_device *counter, in stm32_lptim_cnt_function_set()
215 static ssize_t stm32_lptim_cnt_enable_read(struct counter_device *counter, in stm32_lptim_cnt_enable_read()
229 static ssize_t stm32_lptim_cnt_enable_write(struct counter_device *counter, in stm32_lptim_cnt_enable_write()
260 static ssize_t stm32_lptim_cnt_ceiling_read(struct counter_device *counter, in stm32_lptim_cnt_ceiling_read()
269 static ssize_t stm32_lptim_cnt_ceiling_write(struct counter_device *counter, in stm32_lptim_cnt_ceiling_write()
306 static int stm32_lptim_cnt_action_get(struct counter_device *counter, in stm32_lptim_cnt_action_get()
336 static int stm32_lptim_cnt_action_set(struct counter_device *counter, in stm32_lptim_cnt_action_set()
Dftm-quaddec.c28 struct counter_device counter;
117 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()
178 static int ftm_quaddec_count_read(struct counter_device *counter, in ftm_quaddec_count_read()
192 static int ftm_quaddec_count_write(struct counter_device *counter, in ftm_quaddec_count_write()
208 static int ftm_quaddec_count_function_get(struct counter_device *counter, in ftm_quaddec_count_function_get()
217 static int ftm_quaddec_action_get(struct counter_device *counter, in ftm_quaddec_action_get()
Dmicrochip-tcb-capture.c27 struct counter_device counter;
83 static int mchp_tc_count_function_get(struct counter_device *counter, in mchp_tc_count_function_get()
97 static int mchp_tc_count_function_set(struct counter_device *counter, in mchp_tc_count_function_set()
159 static int mchp_tc_count_signal_read(struct counter_device *counter, in mchp_tc_count_signal_read()
179 static int mchp_tc_count_action_get(struct counter_device *counter, in mchp_tc_count_action_get()
207 static int mchp_tc_count_action_set(struct counter_device *counter, in mchp_tc_count_action_set()
242 static int mchp_tc_count_read(struct counter_device *counter, in mchp_tc_count_read()
/Linux-v5.15/Documentation/driver-api/
Dgeneric-counter.rst259 allocated counter_device structure before the Counter is registered to
267 set to the counts array member of an allocated counter_device structure
270 Driver callbacks should be provided to the counter_device structure via
276 A defined counter_device structure may be registered to the system by