Home
last modified time | relevance | path

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

/Linux-v5.10/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.10/drivers/counter/
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()
208 static ssize_t ti_eqep_position_ceiling_read(struct counter_device *counter, in ti_eqep_position_ceiling_read()
220 static ssize_t ti_eqep_position_ceiling_write(struct counter_device *counter, in ti_eqep_position_ceiling_write()
238 static ssize_t ti_eqep_position_floor_read(struct counter_device *counter, in ti_eqep_position_floor_read()
250 static ssize_t ti_eqep_position_floor_write(struct counter_device *counter, in ti_eqep_position_floor_write()
[all …]
Dstm32-timer-cnt.c31 struct counter_device counter;
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()
83 static int stm32_count_function_get(struct counter_device *counter, in stm32_count_function_get()
107 static int stm32_count_function_set(struct counter_device *counter, in stm32_count_function_set()
149 static ssize_t stm32_count_direction_read(struct counter_device *counter, in stm32_count_direction_read()
163 static ssize_t stm32_count_ceiling_read(struct counter_device *counter, in stm32_count_ceiling_read()
175 static ssize_t stm32_count_ceiling_write(struct counter_device *counter, in stm32_count_ceiling_write()
196 static ssize_t stm32_count_enable_read(struct counter_device *counter, in stm32_count_enable_read()
208 static ssize_t stm32_count_enable_write(struct counter_device *counter, in stm32_count_enable_write()
[all …]
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 …]
D104-quad-8.c48 struct counter_device counter;
623 static int quad8_signal_read(struct counter_device *counter, in quad8_signal_read()
641 static int quad8_count_read(struct counter_device *counter, in quad8_count_read()
672 static int quad8_count_write(struct counter_device *counter, in quad8_count_write()
727 static int quad8_function_get(struct counter_device *counter, in quad8_function_get()
755 static int quad8_function_set(struct counter_device *counter, in quad8_function_set()
811 static void quad8_direction_get(struct counter_device *counter, in quad8_direction_get()
844 static int quad8_action_get(struct counter_device *counter, in quad8_action_get()
908 static int quad8_index_polarity_get(struct counter_device *counter, in quad8_index_polarity_get()
919 static int quad8_index_polarity_set(struct counter_device *counter, in quad8_index_polarity_set()
[all …]
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()
179 static int ftm_quaddec_count_read(struct counter_device *counter, in ftm_quaddec_count_read()
193 static int ftm_quaddec_count_write(struct counter_device *counter, in ftm_quaddec_count_write()
209 static int ftm_quaddec_count_function_get(struct counter_device *counter, in ftm_quaddec_count_function_get()
218 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()
156 static int mchp_tc_count_signal_read(struct counter_device *counter, in mchp_tc_count_signal_read()
176 static int mchp_tc_count_action_get(struct counter_device *counter, in mchp_tc_count_action_get()
200 static int mchp_tc_count_action_set(struct counter_device *counter, in mchp_tc_count_action_set()
232 static int mchp_tc_count_read(struct counter_device *counter, in mchp_tc_count_read()
Dstm32-lptimer-cnt.c22 struct counter_device counter;
379 static int stm32_lptim_cnt_read(struct counter_device *counter, in stm32_lptim_cnt_read()
395 static int stm32_lptim_cnt_function_get(struct counter_device *counter, in stm32_lptim_cnt_function_get()
414 static int stm32_lptim_cnt_function_set(struct counter_device *counter, in stm32_lptim_cnt_function_set()
436 static ssize_t stm32_lptim_cnt_enable_read(struct counter_device *counter, in stm32_lptim_cnt_enable_read()
450 static ssize_t stm32_lptim_cnt_enable_write(struct counter_device *counter, in stm32_lptim_cnt_enable_write()
481 static ssize_t stm32_lptim_cnt_ceiling_read(struct counter_device *counter, in stm32_lptim_cnt_ceiling_read()
490 static ssize_t stm32_lptim_cnt_ceiling_write(struct counter_device *counter, in stm32_lptim_cnt_ceiling_write()
513 static int stm32_lptim_cnt_action_get(struct counter_device *counter, in stm32_lptim_cnt_action_get()
542 static int stm32_lptim_cnt_action_set(struct counter_device *counter, in stm32_lptim_cnt_action_set()
/Linux-v5.10/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