Searched refs:counter_device (Results 1 - 17 of 17) sorted by relevance

/linux-master/drivers/counter/
H A Dcounter-chrdev.h11 int counter_chrdev_add(struct counter_device *const counter);
12 void counter_chrdev_remove(struct counter_device *const counter);
H A Dcounter-sysfs.h11 int counter_sysfs_add(struct counter_device *const counter);
H A Dcounter-core.c31 struct counter_device counter;
43 struct counter_device *const counter =
44 container_of(dev, struct counter_device, dev);
53 .name = "counter_device",
70 void *counter_priv(const struct counter_device *const counter)
80 * counter_alloc - allocate a counter_device
86 * If this succeeds, call counter_put() to get rid of the counter_device again.
88 struct counter_device *counter_alloc(size_t sizeof_priv)
91 struct counter_device *counter;
139 void counter_put(struct counter_device *counte
[all...]
H A Dti-ecap-capture.c100 static u8 ecap_cnt_capture_get_evmode(struct counter_device *counter)
112 static void ecap_cnt_capture_set_evmode(struct counter_device *counter, u8 ev_mode)
121 static void ecap_cnt_capture_enable(struct counter_device *counter)
136 static void ecap_cnt_capture_disable(struct counter_device *counter)
149 static u32 ecap_cnt_count_get_val(struct counter_device *counter, unsigned int reg)
161 static void ecap_cnt_count_set_val(struct counter_device *counter, unsigned int reg, u32 val)
170 static int ecap_cnt_count_read(struct counter_device *counter,
178 static int ecap_cnt_count_write(struct counter_device *counter,
189 static int ecap_cnt_function_read(struct counter_device *counter,
198 static int ecap_cnt_action_read(struct counter_device *counte
[all...]
H A Dinterrupt-cnt.c29 struct counter_device *counter = dev_id;
39 static int interrupt_cnt_enable_read(struct counter_device *counter,
49 static int interrupt_cnt_enable_write(struct counter_device *counter,
77 static int interrupt_cnt_action_read(struct counter_device *counter,
87 static int interrupt_cnt_read(struct counter_device *counter,
97 static int interrupt_cnt_write(struct counter_device *counter,
114 static int interrupt_cnt_function_read(struct counter_device *counter,
123 static int interrupt_cnt_signal_read(struct counter_device *counter,
142 static int interrupt_cnt_watch_validate(struct counter_device *counter,
164 struct counter_device *counte
[all...]
H A Dti-eqep.c85 struct counter_device counter;
90 static struct ti_eqep_cnt *ti_eqep_count_from_counter(struct counter_device *counter)
95 static int ti_eqep_count_read(struct counter_device *counter,
107 static int ti_eqep_count_write(struct counter_device *counter,
120 static int ti_eqep_function_read(struct counter_device *counter,
147 static int ti_eqep_function_write(struct counter_device *counter,
176 static int ti_eqep_action_read(struct counter_device *counter,
249 static int ti_eqep_position_ceiling_read(struct counter_device *counter,
263 static int ti_eqep_position_ceiling_write(struct counter_device *counter,
277 static int ti_eqep_position_enable_read(struct counter_device *counte
[all...]
H A Dstm32-timer-cnt.c46 static int stm32_count_read(struct counter_device *counter,
58 static int stm32_count_write(struct counter_device *counter,
71 static int stm32_count_function_read(struct counter_device *counter,
98 static int stm32_count_function_write(struct counter_device *counter,
138 static int stm32_count_direction_read(struct counter_device *counter,
152 static int stm32_count_ceiling_read(struct counter_device *counter,
165 static int stm32_count_ceiling_write(struct counter_device *counter,
180 static int stm32_count_enable_read(struct counter_device *counter,
193 static int stm32_count_enable_write(struct counter_device *counter,
231 static int stm32_action_read(struct counter_device *counte
[all...]
H A Di8254.c57 static int i8254_count_read(struct counter_device *const counter, struct counter_count *const count,
84 static int i8254_function_read(struct counter_device *const counter,
96 static int i8254_action_read(struct counter_device *const counter,
125 static int i8254_count_ceiling_read(struct counter_device *const counter,
156 static int i8254_count_mode_read(struct counter_device *const counter,
187 static int i8254_count_mode_write(struct counter_device *const counter,
232 static int i8254_count_floor_read(struct counter_device *const counter,
258 static int i8254_count_preset_read(struct counter_device *const counter,
268 static int i8254_count_preset_write(struct counter_device *const counter,
406 struct counter_device *counte
[all...]
H A Dftm-quaddec.c117 static int ftm_quaddec_get_prescaler(struct counter_device *counter,
130 static int ftm_quaddec_set_prescaler(struct counter_device *counter,
160 static int ftm_quaddec_count_read(struct counter_device *counter,
174 static int ftm_quaddec_count_write(struct counter_device *counter,
190 static int ftm_quaddec_count_function_read(struct counter_device *counter,
199 static int ftm_quaddec_action_read(struct counter_device *counter,
261 struct counter_device *counter;
H A Dintel-qep.c108 static int intel_qep_count_read(struct counter_device *counter,
124 static int intel_qep_function_read(struct counter_device *counter,
137 static int intel_qep_action_read(struct counter_device *counter,
175 static int intel_qep_ceiling_read(struct counter_device *counter,
187 static int intel_qep_ceiling_write(struct counter_device *counter,
212 static int intel_qep_enable_read(struct counter_device *counter,
222 static int intel_qep_enable_write(struct counter_device *counter,
254 static int intel_qep_spike_filter_ns_read(struct counter_device *counter,
275 static int intel_qep_spike_filter_ns_write(struct counter_device *counter,
324 static int intel_qep_preset_enable_read(struct counter_device *counte
[all...]
H A D104-quad-8.c215 static int quad8_signal_read(struct counter_device *counter,
235 static int quad8_count_read(struct counter_device *counter,
283 static int quad8_count_write(struct counter_device *counter,
345 static int quad8_function_read(struct counter_device *counter,
362 static int quad8_function_write(struct counter_device *counter,
410 static int quad8_direction_read(struct counter_device *counter,
439 static int quad8_action_read(struct counter_device *counter,
504 static int quad8_events_configure(struct counter_device *counter)
557 static int quad8_watch_validate(struct counter_device *counter,
596 static int quad8_index_polarity_get(struct counter_device *counte
[all...]
H A Dcounter-sysfs.c22 static inline struct counter_device *counter_from_dev(struct device *dev)
24 return container_of(dev, struct counter_device, dev);
109 struct counter_device *const counter = counter_from_dev(dev);
141 struct counter_device *const counter = counter_from_dev(dev);
177 struct counter_device *const counter = counter_from_dev(dev);
242 struct counter_device *const counter = counter_from_dev(dev);
306 struct counter_device *const counter = counter_from_dev(dev);
334 struct counter_device *const counter = counter_from_dev(dev);
366 struct counter_device *const counter = counter_from_dev(dev);
388 struct counter_device *cons
[all...]
H A Dstm32-lptimer-cnt.c140 static int stm32_lptim_cnt_read(struct counter_device *counter,
156 static int stm32_lptim_cnt_function_read(struct counter_device *counter,
175 static int stm32_lptim_cnt_function_write(struct counter_device *counter,
198 static int stm32_lptim_cnt_enable_read(struct counter_device *counter,
214 static int stm32_lptim_cnt_enable_write(struct counter_device *counter,
239 static int stm32_lptim_cnt_ceiling_read(struct counter_device *counter,
250 static int stm32_lptim_cnt_ceiling_write(struct counter_device *counter,
274 static int stm32_lptim_cnt_action_read(struct counter_device *counter,
318 static int stm32_lptim_cnt_action_write(struct counter_device *counter,
413 struct counter_device *counte
[all...]
H A Drz-mtu3-cnt.c97 static inline struct rz_mtu3_channel *rz_mtu3_get_ch(struct counter_device *counter, int id)
105 static bool rz_mtu3_is_counter_invalid(struct counter_device *counter, int id)
123 static int rz_mtu3_lock_if_counter_is_valid(struct counter_device *counter,
157 static int rz_mtu3_count_read(struct counter_device *counter,
179 static int rz_mtu3_count_write(struct counter_device *counter,
231 static int rz_mtu3_count_function_read(struct counter_device *counter,
249 static int rz_mtu3_count_function_write(struct counter_device *counter,
290 static int rz_mtu3_count_direction_read(struct counter_device *counter,
314 static int rz_mtu3_count_ceiling_read(struct counter_device *counter,
345 static int rz_mtu3_count_ceiling_write(struct counter_device *counte
[all...]
H A Dcounter-chrdev.c68 struct counter_device *const counter = filp->private_data;
106 struct counter_device *const counter = filp->private_data;
138 static int counter_set_event_node(struct counter_device *const counter,
195 static int counter_enable_events(struct counter_device *const counter)
216 static int counter_disable_events(struct counter_device *const counter)
264 static int counter_add_watch(struct counter_device *const counter,
385 struct counter_device *const counter = filp->private_data;
416 struct counter_device *const counter = container_of(inode->i_cdev,
428 struct counter_device *const counter = filp->private_data;
465 int counter_chrdev_add(struct counter_device *cons
[all...]
H A Dmicrochip-tcb-capture.c68 static int mchp_tc_count_function_read(struct counter_device *counter,
82 static int mchp_tc_count_function_write(struct counter_device *counter,
144 static int mchp_tc_count_signal_read(struct counter_device *counter,
164 static int mchp_tc_count_action_read(struct counter_device *counter,
203 static int mchp_tc_count_action_write(struct counter_device *counter,
238 static int mchp_tc_count_read(struct counter_device *counter,
307 struct counter_device *counter;
/linux-master/include/linux/
H A Dcounter.h19 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 *counte
375 struct counter_device { struct
[all...]

Completed in 170 milliseconds