Home
last modified time | relevance | path

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

12345678910>>...14

/Linux-v5.15/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.c186 unsigned int comedi_8254_status(struct comedi_8254 *i8254, unsigned int counter) in comedi_8254_status()
205 unsigned int comedi_8254_read(struct comedi_8254 *i8254, unsigned int counter) in comedi_8254_read()
231 unsigned int counter, unsigned int val) in comedi_8254_write()
254 int comedi_8254_set_mode(struct comedi_8254 *i8254, unsigned int counter, in comedi_8254_set_mode()
280 int comedi_8254_load(struct comedi_8254 *i8254, unsigned int counter, in comedi_8254_load()
472 unsigned int counter, bool busy) in comedi_8254_set_busy()
/Linux-v5.15/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()
114 struct rdma_counter *counter; in alloc_and_bind() local
175 static void rdma_counter_free(struct rdma_counter *counter) in rdma_counter_free()
193 static bool auto_mode_match(struct ib_qp *qp, struct rdma_counter *counter, in auto_mode_match()
211 struct rdma_counter *counter = qp->counter; in __rdma_counter_unbind_qp() local
224 static void counter_history_stat_update(struct rdma_counter *counter) in counter_history_stat_update()
250 struct rdma_counter *counter = NULL; in rdma_get_counter_auto_mode() local
279 struct rdma_counter *counter; in counter_release() local
295 struct rdma_counter *counter; in rdma_counter_bind_qp_auto() local
[all …]
/Linux-v5.15/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-v5.15/drivers/counter/
D104-quad-8.c47 struct counter_device counter; member
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 …]
Dstm32-timer-cnt.c31 struct counter_device counter; member
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 …]
Dinterrupt-cnt.c18 struct counter_device counter; member
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()
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() local
[all …]
Dstm32-lptimer-cnt.c22 struct counter_device counter; member
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()
Dti-eqep.c90 struct counter_device counter; member
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()
Dintel-qep.c73 struct counter_device counter; member
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 …]
Dftm-quaddec.c28 struct counter_device counter; member
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; member
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/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()
155 void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages) in page_counter_uncharge()
173 int page_counter_set_max(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_max()
212 void page_counter_set_min(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_min()
229 void page_counter_set_low(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_low()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_counters.c112 struct mlx5_fc *counter; in mlx5_fc_counters_lookup_next() local
128 struct mlx5_fc *counter) in mlx5_fc_stats_insert()
136 struct mlx5_fc *counter) in mlx5_fc_stats_remove()
177 struct mlx5_fc *counter = first; in mlx5_fc_stats_query_counter_range() local
212 static void mlx5_fc_free(struct mlx5_core_dev *dev, struct mlx5_fc *counter) in mlx5_fc_free()
218 static void mlx5_fc_release(struct mlx5_core_dev *dev, struct mlx5_fc *counter) in mlx5_fc_release()
238 struct mlx5_fc *counter = NULL, *last = NULL, *tmp; in mlx5_fc_stats_work() local
269 struct mlx5_fc *counter; in mlx5_fc_single_alloc() local
288 struct mlx5_fc *counter; in mlx5_fc_acquire() local
301 struct mlx5_fc *counter = mlx5_fc_acquire(dev, aging); in mlx5_fc_create() local
[all …]
/Linux-v5.15/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-v5.15/tools/perf/util/
Dstat-display.c384 static bool is_mixed_hw_group(struct evsel *counter) in is_mixed_hw_group()
409 struct evsel *counter, double uval, in printout()
522 struct evsel *counter; in aggr_update_shadow() local
541 static void uniquify_event_name(struct evsel *counter) in uniquify_event_name()
577 static void collect_all_aliases(struct perf_stat_config *config, struct evsel *counter, in collect_all_aliases()
611 static bool collect_data(struct perf_stat_config *config, struct evsel *counter, in collect_data()
634 struct evsel *counter, void *data, bool first) in aggr_cb()
666 struct evsel *counter, int s, in print_counter_aggrdata()
714 struct evsel *counter; in print_aggr() local
749 struct evsel *counter, in sort_aggr_thread()
[all …]
Dbpf_counter.c39 struct bpf_counter *counter; in bpf_counter_alloc() local
49 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
234 struct bpf_counter *counter; in bpf_program_profiler__read() local
272 struct bpf_counter *counter; in bpf_program_profiler__install_pe() local
/Linux-v5.15/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-v5.15/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-v5.15/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
/Linux-v5.15/drivers/misc/lkdtm/
Dcfi.c10 static noinline void lkdtm_increment_void(int *counter) in lkdtm_increment_void()
16 static noinline int lkdtm_increment_int(int *counter) in lkdtm_increment_int()
/Linux-v5.15/arch/mips/cavium-octeon/executive/
Dcvmx-l2c.c169 void cvmx_l2c_config_perf(uint32_t counter, enum cvmx_l2c_event event, in cvmx_l2c_config_perf()
233 uint64_t cvmx_l2c_read_perf(uint32_t counter) in cvmx_l2c_read_perf()
240 uint64_t counter = 0; in cvmx_l2c_read_perf() local
251 uint64_t counter = 0; in cvmx_l2c_read_perf() local
262 uint64_t counter = 0; in cvmx_l2c_read_perf() local
274 uint64_t counter = 0; in cvmx_l2c_read_perf() local
/Linux-v5.15/drivers/acpi/
Dacpi_lpit.c24 static int lpit_read_residency_counter_us(u64 *counter, bool io_mem) in lpit_read_residency_counter_us()
60 u64 counter; in low_power_idle_system_residency_us_show() local
75 u64 counter; in low_power_idle_cpu_residency_us_show() local

12345678910>>...14