Home
last modified time | relevance | path

Searched defs:counter (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/linux-5.19.10/drivers/counter/
Dcounter-core.c31 struct counter_device counter; member
42 struct counter_device *const counter = in counter_device_release() local
69 void *counter_priv(const struct counter_device *const counter) in counter_priv()
90 struct counter_device *counter; in counter_alloc() local
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()
193 static void devm_counter_release(void *counter) in devm_counter_release()
198 static void devm_counter_put(void *counter) in devm_counter_put()
213 struct counter_device *counter; in devm_counter_alloc() local
[all …]
D104-quad-8.c110 static int quad8_signal_read(struct counter_device *counter, in quad8_signal_read()
129 static int quad8_count_read(struct counter_device *counter, in quad8_count_read()
161 static int quad8_count_write(struct counter_device *counter, in quad8_count_write()
210 static int quad8_function_read(struct counter_device *counter, in quad8_function_read()
240 static int quad8_function_write(struct counter_device *counter, in quad8_function_write()
302 static int quad8_direction_read(struct counter_device *counter, in quad8_direction_read()
331 static int quad8_action_read(struct counter_device *counter, in quad8_action_read()
397 static int quad8_events_configure(struct counter_device *counter) in quad8_events_configure()
454 static int quad8_watch_validate(struct counter_device *counter, in quad8_watch_validate()
493 static int quad8_index_polarity_get(struct counter_device *counter, in quad8_index_polarity_get()
[all …]
Dcounter-chrdev.c60 struct counter_device *const counter = filp->private_data; in counter_chrdev_read() local
98 struct counter_device *const counter = filp->private_data; in counter_chrdev_poll() local
130 static int counter_set_event_node(struct counter_device *const counter, in counter_set_event_node()
187 static int counter_enable_events(struct counter_device *const counter) in counter_enable_events()
208 static int counter_disable_events(struct counter_device *const counter) in counter_disable_events()
231 static int counter_add_watch(struct counter_device *const counter, in counter_add_watch()
351 struct counter_device *const counter = filp->private_data; in counter_chrdev_ioctl() local
382 struct counter_device *const counter = container_of(inode->i_cdev, in counter_chrdev_open() local
394 struct counter_device *const counter = filp->private_data; in counter_chrdev_release() local
431 int counter_chrdev_add(struct counter_device *const counter) in counter_chrdev_add()
[all …]
Dinterrupt-cnt.c29 struct counter_device *counter = dev_id; in interrupt_cnt_isr() local
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()
153 struct counter_device *counter; in interrupt_cnt_probe() local
Dstm32-timer-cnt.c46 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 …]
Dti-eqep.c85 struct counter_device counter; member
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 …]
Dcounter-sysfs.c98 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u8_show() local
130 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u8_store() local
166 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u32_show() local
229 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u32_store() local
289 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u64_show() local
317 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u64_store() local
588 static int counter_signal_attrs_create(struct counter_device *const counter, in counter_signal_attrs_create()
628 static int counter_sysfs_signals_add(struct counter_device *const counter, in counter_sysfs_signals_add()
652 static int counter_sysfs_synapses_add(struct counter_device *const counter, in counter_sysfs_synapses_add()
702 static int counter_count_attrs_create(struct counter_device *const counter, in counter_count_attrs_create()
[all …]
Dstm32-lptimer-cnt.c140 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() local
Dintel-qep.c108 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 …]
Dftm-quaddec.c117 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() local
Dmicrochip-tcb-capture.c70 static int mchp_tc_count_function_read(struct counter_device *counter, in mchp_tc_count_function_read()
84 static int mchp_tc_count_function_write(struct counter_device *counter, in mchp_tc_count_function_write()
146 static int mchp_tc_count_signal_read(struct counter_device *counter, in mchp_tc_count_signal_read()
166 static int mchp_tc_count_action_read(struct counter_device *counter, in mchp_tc_count_action_read()
194 static int mchp_tc_count_action_write(struct counter_device *counter, in mchp_tc_count_action_write()
229 static int mchp_tc_count_read(struct counter_device *counter, in mchp_tc_count_read()
298 struct counter_device *counter; in mchp_tc_probe() local
/linux-5.19.10/drivers/comedi/drivers/
Dni_tio.c149 void ni_tio_write(struct ni_gpct *counter, unsigned int value, in ni_tio_write()
162 unsigned int ni_tio_read(struct ni_gpct *counter, enum ni_gpct_register reg) in ni_tio_read()
170 static void ni_tio_reset_count_and_disarm(struct ni_gpct *counter) in ni_tio_reset_count_and_disarm()
177 static int ni_tio_clock_period_ps(const struct ni_gpct *counter, in ni_tio_clock_period_ps()
221 static void ni_tio_set_bits_transient(struct ni_gpct *counter, in ni_tio_set_bits_transient()
252 void ni_tio_set_bits(struct ni_gpct *counter, enum ni_gpct_register reg, in ni_tio_set_bits()
268 unsigned int ni_tio_get_soft_copy(const struct ni_gpct *counter, in ni_tio_get_soft_copy()
285 static unsigned int ni_tio_clock_src_modifiers(const struct ni_gpct *counter) in ni_tio_clock_src_modifiers()
303 static int ni_m_series_clock_src_select(const struct ni_gpct *counter, in ni_m_series_clock_src_select()
370 static int ni_660x_clock_src_select(const struct ni_gpct *counter, in ni_660x_clock_src_select()
[all …]
Dni_tiocmd.c38 static void ni_tio_configure_dma(struct ni_gpct *counter, in ni_tio_configure_dma()
78 struct ni_gpct *counter = s->private; in ni_tio_input_inttrig() local
102 struct ni_gpct *counter = s->private; in ni_tio_input_cmd() local
153 struct ni_gpct *counter = s->private; in ni_tio_output_cmd() local
163 struct ni_gpct *counter = s->private; in ni_tio_cmd_setup() local
206 struct ni_gpct *counter = s->private; in ni_tio_cmd() local
237 struct ni_gpct *counter = s->private; in ni_tio_cmdtest() local
332 int ni_tio_cancel(struct ni_gpct *counter) in ni_tio_cancel()
350 static int should_ack_gate(struct ni_gpct *counter) in should_ack_gate()
384 static void ni_tio_acknowledge_and_confirm(struct ni_gpct *counter, in ni_tio_acknowledge_and_confirm()
[all …]
Dcomedi_8254.c184 unsigned int comedi_8254_status(struct comedi_8254 *i8254, unsigned int counter) in comedi_8254_status()
203 unsigned int comedi_8254_read(struct comedi_8254 *i8254, unsigned int counter) in comedi_8254_read()
229 unsigned int counter, unsigned int val) in comedi_8254_write()
252 int comedi_8254_set_mode(struct comedi_8254 *i8254, unsigned int counter, in comedi_8254_set_mode()
278 int comedi_8254_load(struct comedi_8254 *i8254, unsigned int counter, in comedi_8254_load()
470 unsigned int counter, bool busy) in comedi_8254_set_busy()
/linux-5.19.10/arch/arm64/include/asm/
Darm_dsu_pmu.h53 static inline void __dsu_pmu_select_counter(int counter) in __dsu_pmu_select_counter()
59 static inline u64 __dsu_pmu_read_counter(int counter) in __dsu_pmu_read_counter()
65 static inline void __dsu_pmu_write_counter(int counter, u64 val) in __dsu_pmu_write_counter()
72 static inline void __dsu_pmu_set_event(int counter, u32 event) in __dsu_pmu_set_event()
90 static inline void __dsu_pmu_disable_counter(int counter) in __dsu_pmu_disable_counter()
96 static inline void __dsu_pmu_enable_counter(int counter) in __dsu_pmu_enable_counter()
102 static inline void __dsu_pmu_counter_interrupt_enable(int counter) in __dsu_pmu_counter_interrupt_enable()
108 static inline void __dsu_pmu_counter_interrupt_disable(int counter) in __dsu_pmu_counter_interrupt_disable()
/linux-5.19.10/drivers/infiniband/core/
Dcounters.c78 static void auto_mode_init_counter(struct rdma_counter *counter, in auto_mode_init_counter()
91 static int __rdma_counter_bind_qp(struct rdma_counter *counter, in __rdma_counter_bind_qp()
146 struct rdma_counter *counter; in alloc_and_bind() local
207 static void rdma_counter_free(struct rdma_counter *counter) in rdma_counter_free()
225 static bool auto_mode_match(struct ib_qp *qp, struct rdma_counter *counter, in auto_mode_match()
243 struct rdma_counter *counter = qp->counter; in __rdma_counter_unbind_qp() local
256 static void counter_history_stat_update(struct rdma_counter *counter) in counter_history_stat_update()
282 struct rdma_counter *counter = NULL; in rdma_get_counter_auto_mode() local
311 struct rdma_counter *counter; in counter_release() local
327 struct rdma_counter *counter; in rdma_counter_bind_qp_auto() local
[all …]
/linux-5.19.10/drivers/net/ethernet/marvell/prestera/
Dprestera_counter.c50 static void prestera_counter_lock(struct prestera_counter *counter) in prestera_counter_lock()
55 static void prestera_counter_unlock(struct prestera_counter *counter) in prestera_counter_unlock()
89 prestera_counter_block_lookup_not_full(struct prestera_counter *counter, in prestera_counter_block_lookup_not_full()
109 static int prestera_counter_block_list_add(struct prestera_counter *counter, in prestera_counter_block_list_add()
141 prestera_counter_block_get(struct prestera_counter *counter, u32 client) in prestera_counter_block_get()
199 static void prestera_counter_block_put(struct prestera_counter *counter, in prestera_counter_block_put()
251 int prestera_counter_get(struct prestera_counter *counter, u32 client, in prestera_counter_get()
284 void prestera_counter_put(struct prestera_counter *counter, in prestera_counter_put()
300 static u32 prestera_counter_block_idx_next(struct prestera_counter *counter, in prestera_counter_block_idx_next()
320 prestera_counter_block_get_by_idx(struct prestera_counter *counter, u32 idx) in prestera_counter_block_get_by_idx()
[all …]
/linux-5.19.10/mm/
Dpage_counter.c50 void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages) in page_counter_cancel()
71 void page_counter_charge(struct page_counter *counter, unsigned long nr_pages) in page_counter_charge()
98 bool page_counter_try_charge(struct page_counter *counter, in page_counter_try_charge()
154 void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages) in page_counter_uncharge()
172 int page_counter_set_max(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_max()
211 void page_counter_set_min(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_min()
228 void page_counter_set_low(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_low()
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_counters.c114 struct mlx5_fc *counter; in mlx5_fc_counters_lookup_next() local
130 struct mlx5_fc *counter) in mlx5_fc_stats_insert()
138 struct mlx5_fc *counter) in mlx5_fc_stats_remove()
185 struct mlx5_fc *counter = first; in mlx5_fc_stats_query_counter_range() local
220 static void mlx5_fc_free(struct mlx5_core_dev *dev, struct mlx5_fc *counter) in mlx5_fc_free()
226 static void mlx5_fc_release(struct mlx5_core_dev *dev, struct mlx5_fc *counter) in mlx5_fc_release()
281 struct mlx5_fc *counter = NULL, *last = NULL, *tmp; in mlx5_fc_stats_work() local
319 struct mlx5_fc *counter; in mlx5_fc_single_alloc() local
338 struct mlx5_fc *counter; in mlx5_fc_acquire() local
351 struct mlx5_fc *counter = mlx5_fc_acquire(dev, aging); in mlx5_fc_create_ex() local
[all …]
/linux-5.19.10/arch/x86/kernel/cpu/
Dperfctr-watchdog.c110 unsigned int counter; in reserve_perfctr_nmi() local
125 unsigned int counter; in release_perfctr_nmi() local
138 unsigned int counter; in reserve_evntsel_nmi() local
153 unsigned int counter; in release_evntsel_nmi() local
/linux-5.19.10/tools/perf/util/
Dstat-display.c382 static bool is_mixed_hw_group(struct evsel *counter) in is_mixed_hw_group()
407 struct evsel *counter, double uval, in printout()
521 struct evsel *counter; in aggr_update_shadow() local
542 static void uniquify_event_name(struct evsel *counter) in uniquify_event_name()
578 static void collect_all_aliases(struct perf_stat_config *config, struct evsel *counter, in collect_all_aliases()
613 static bool hybrid_merge(struct evsel *counter, struct perf_stat_config *config, in hybrid_merge()
626 static bool collect_data(struct perf_stat_config *config, struct evsel *counter, in collect_data()
649 struct evsel *counter, void *data, bool first) in aggr_cb()
684 struct evsel *counter, int s, in print_counter_aggrdata()
731 struct evsel *counter; in print_aggr() local
[all …]
Dbpf_counter.c40 struct bpf_counter *counter; in bpf_counter_alloc() local
50 struct bpf_counter *counter, *tmp; in bpf_program_profiler__destroy() local
105 struct bpf_counter *counter; in bpf_program_profiler_load_one() local
200 struct bpf_counter *counter; in bpf_program_profiler__enable() local
216 struct bpf_counter *counter; in bpf_program_profiler__disable() local
232 struct bpf_counter *counter; in bpf_program_profiler__read() local
277 struct bpf_counter *counter; in bpf_program_profiler__install_pe() local
/linux-5.19.10/include/linux/
Dpage_counter.h45 static inline void page_counter_init(struct page_counter *counter, in page_counter_init()
53 static inline unsigned long page_counter_read(struct page_counter *counter) in page_counter_read()
67 static inline void page_counter_set_high(struct page_counter *counter, in page_counter_set_high()
77 static inline void page_counter_reset_watermark(struct page_counter *counter) in page_counter_reset_watermark()
/linux-5.19.10/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dtimed_ctrl.c28 hrt_data counter, in timed_ctrl_snd_commnd()
49 hrt_data counter, in timed_ctrl_snd_sp_commnd()
65 hrt_data counter, in timed_ctrl_snd_gpio_commnd()
/linux-5.19.10/drivers/perf/
Dfsl_imx8_ddr_perf.c348 static void ddr_perf_free_counter(struct ddr_pmu *pmu, int counter) in ddr_perf_free_counter()
353 static u32 ddr_perf_read_counter(struct ddr_pmu *pmu, int counter) in ddr_perf_read_counter()
416 int counter, bool enable) in ddr_perf_counter_enable()
439 static bool ddr_perf_counter_overflow(struct ddr_pmu *pmu, int counter) in ddr_perf_counter_overflow()
448 static void ddr_perf_counter_clear(struct ddr_pmu *pmu, int counter) in ddr_perf_counter_clear()
466 int counter = hwc->idx; in ddr_perf_event_update() local
493 int counter = hwc->idx; in ddr_perf_event_start() local
506 int counter; in ddr_perf_event_add() local
548 int counter = hwc->idx; in ddr_perf_event_stop() local
560 int counter = hwc->idx; in ddr_perf_event_del() local

12345678910>>...15