Home
last modified time | relevance | path

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

12345678910>>...30

/kernel/linux/linux-6.6/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 …]
Dti-ecap-capture.c100 static u8 ecap_cnt_capture_get_evmode(struct counter_device *counter) in ecap_cnt_capture_get_evmode()
112 static void ecap_cnt_capture_set_evmode(struct counter_device *counter, u8 ev_mode) in ecap_cnt_capture_set_evmode()
121 static void ecap_cnt_capture_enable(struct counter_device *counter) in ecap_cnt_capture_enable()
136 static void ecap_cnt_capture_disable(struct counter_device *counter) in ecap_cnt_capture_disable()
149 static u32 ecap_cnt_count_get_val(struct counter_device *counter, unsigned int reg) in ecap_cnt_count_get_val()
161 static void ecap_cnt_count_set_val(struct counter_device *counter, unsigned int reg, u32 val) in ecap_cnt_count_set_val()
170 static int ecap_cnt_count_read(struct counter_device *counter, in ecap_cnt_count_read()
178 static int ecap_cnt_count_write(struct counter_device *counter, in ecap_cnt_count_write()
189 static int ecap_cnt_function_read(struct counter_device *counter, in ecap_cnt_function_read()
198 static int ecap_cnt_action_read(struct counter_device *counter, in ecap_cnt_action_read()
[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()
142 static int interrupt_cnt_watch_validate(struct counter_device *counter, in interrupt_cnt_watch_validate()
164 struct counter_device *counter; in interrupt_cnt_probe() local
Dcounter-chrdev.c68 struct counter_device *const counter = filp->private_data; in counter_chrdev_read() local
106 struct counter_device *const counter = filp->private_data; in counter_chrdev_poll() local
138 static int counter_set_event_node(struct counter_device *const counter, in counter_set_event_node()
195 static int counter_enable_events(struct counter_device *const counter) in counter_enable_events()
216 static int counter_disable_events(struct counter_device *const counter) in counter_disable_events()
264 static int counter_add_watch(struct counter_device *const counter, in counter_add_watch()
385 struct counter_device *const counter = filp->private_data; in counter_chrdev_ioctl() local
416 struct counter_device *const counter = container_of(inode->i_cdev, in counter_chrdev_open() local
428 struct counter_device *const counter = filp->private_data; in counter_chrdev_release() local
465 int counter_chrdev_add(struct counter_device *const counter) in counter_chrdev_add()
[all …]
Drz-mtu3-cnt.c97 static inline struct rz_mtu3_channel *rz_mtu3_get_ch(struct counter_device *counter, int id) in rz_mtu3_get_ch()
105 static bool rz_mtu3_is_counter_invalid(struct counter_device *counter, int id) in rz_mtu3_is_counter_invalid()
123 static int rz_mtu3_lock_if_counter_is_valid(struct counter_device *counter, in rz_mtu3_lock_if_counter_is_valid()
157 static int rz_mtu3_count_read(struct counter_device *counter, in rz_mtu3_count_read()
179 static int rz_mtu3_count_write(struct counter_device *counter, in rz_mtu3_count_write()
231 static int rz_mtu3_count_function_read(struct counter_device *counter, in rz_mtu3_count_function_read()
249 static int rz_mtu3_count_function_write(struct counter_device *counter, in rz_mtu3_count_function_write()
290 static int rz_mtu3_count_direction_read(struct counter_device *counter, in rz_mtu3_count_direction_read()
314 static int rz_mtu3_count_ceiling_read(struct counter_device *counter, in rz_mtu3_count_ceiling_read()
345 static int rz_mtu3_count_ceiling_write(struct counter_device *counter, in rz_mtu3_count_ceiling_write()
[all …]
D104-quad-8.c215 static int quad8_signal_read(struct counter_device *counter, in quad8_signal_read()
235 static int quad8_count_read(struct counter_device *counter, in quad8_count_read()
283 static int quad8_count_write(struct counter_device *counter, in quad8_count_write()
345 static int quad8_function_read(struct counter_device *counter, in quad8_function_read()
362 static int quad8_function_write(struct counter_device *counter, in quad8_function_write()
410 static int quad8_direction_read(struct counter_device *counter, in quad8_direction_read()
439 static int quad8_action_read(struct counter_device *counter, in quad8_action_read()
504 static int quad8_events_configure(struct counter_device *counter) in quad8_events_configure()
557 static int quad8_watch_validate(struct counter_device *counter, in quad8_watch_validate()
596 static int quad8_index_polarity_get(struct counter_device *counter, in quad8_index_polarity_get()
[all …]
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.c109 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u8_show() local
141 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u8_store() local
177 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u32_show() local
242 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u32_store() local
306 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u64_show() local
334 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u64_store() local
366 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u32_show() local
388 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u32_store() local
416 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u64_show() local
448 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u64_store() local
[all …]
/kernel/linux/linux-5.10/drivers/staging/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dcounters.c71 struct rdma_counter *counter; in rdma_counter_alloc() local
116 static void rdma_counter_free(struct rdma_counter *counter) in rdma_counter_free()
135 static void auto_mode_init_counter(struct rdma_counter *counter, in auto_mode_init_counter()
148 static bool auto_mode_match(struct ib_qp *qp, struct rdma_counter *counter, in auto_mode_match()
164 static int __rdma_counter_bind_qp(struct rdma_counter *counter, in __rdma_counter_bind_qp()
184 struct rdma_counter *counter = qp->counter; in __rdma_counter_unbind_qp() local
197 static void counter_history_stat_update(struct rdma_counter *counter) in counter_history_stat_update()
223 struct rdma_counter *counter = NULL; in rdma_get_counter_auto_mode() local
250 static void rdma_counter_res_add(struct rdma_counter *counter, in rdma_counter_res_add()
259 struct rdma_counter *counter; in counter_release() local
[all …]
/kernel/linux/linux-5.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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/mm/
Dpage_counter.c49 void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages) in page_counter_cancel()
70 void page_counter_charge(struct page_counter *counter, unsigned long nr_pages) in page_counter_charge()
97 bool page_counter_try_charge(struct page_counter *counter, in page_counter_try_charge()
153 void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages) in page_counter_uncharge()
171 int page_counter_set_max(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_max()
210 void page_counter_set_min(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_min()
227 void page_counter_set_low(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_low()
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/
Dperfctr-watchdog.c109 int avail_to_resrv_perfctr_nmi_bit(unsigned int counter) in avail_to_resrv_perfctr_nmi_bit()
119 unsigned int counter; in reserve_perfctr_nmi() local
134 unsigned int counter; in release_perfctr_nmi() local
147 unsigned int counter; in reserve_evntsel_nmi() local
162 unsigned int counter; in release_evntsel_nmi() local
/kernel/linux/linux-5.10/mm/
Dpage_counter.c50 void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages) in page_counter_cancel()
67 void page_counter_charge(struct page_counter *counter, unsigned long nr_pages) in page_counter_charge()
94 bool page_counter_try_charge(struct page_counter *counter, in page_counter_try_charge()
151 void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages) in page_counter_uncharge()
169 int page_counter_set_max(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_max()
208 void page_counter_set_min(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_min()
225 void page_counter_set_low(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_low()
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/counter/
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 …]
/kernel/linux/linux-6.6/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

12345678910>>...30